/* ===== Colors ===== */
:root {
  --bg-dark: #000;
  --card-bg: #111;
  --primary: #ffe100;
  --primary-hover: #ffd000;
  --primary-text: #000;
  --text-white: #fff;
  --text-muted: #aaa;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --card-radius: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-dark);
  color: var(--text-white);
}

/* ===== Navbar ===== */
.navbar-edeka {
  background: #111;
  padding: 0.75rem 0;
  border-bottom: 1px solid #222;
}
.navbar-edeka .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
.navbar-logo {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.navbar-edeka .nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.navbar-edeka .nav-link:hover,
.navbar-edeka .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== Hero ===== */
.hero {
  background: #111;
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero .badge-exclusive {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.hero .hero-sub {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

/* ===== Search Bar ===== */
.search-bar-wrap {
  position: relative;
}
.search-bar {
  display: flex;
  gap: 0.5rem;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--card-radius);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.search-result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  text-decoration: none;
  color: #eee;
  transition: background 0.15s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: #222;
  color: #fff;
}
.search-result-name {
  font-weight: 600;
  font-size: 0.92rem;
  flex: 1;
}
.search-result-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 100%;
}
.search-result-distance {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: auto;
}
.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Market Cards Grid ===== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .market-grid { grid-template-columns: 1fr; }
}

.market-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid #333;
  padding: 1.25rem;
  text-decoration: none;
  color: #eee;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}
.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: #fff;
}
.market-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}
.market-card-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.market-card-distance {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===== Coupon Cards Grid ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
  color: #fff;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .coupon-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
}

.coupon-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.coupon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  color: inherit;
  text-decoration: none;
}
.coupon-card .card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.coupon-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.coupon-card:hover .card-img-wrap img {
  transform: scale(1.03);
}
.coupon-card .discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.coupon-card .card-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.coupon-card .card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #fff;
}
.coupon-card .card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.coupon-code code {
  background: #222;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* ===== Breadcrumbs ===== */
.breadcrumb-nav {
  background: #0a0a0a;
  padding: 0.6rem 0;
  border-bottom: 1px solid #222;
}
.breadcrumb {
  font-size: 0.82rem;
}
.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-item.active {
  color: #eee;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #555;
}

/* ===== Map ===== */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--card-radius);
  border: 1px solid #333;
  overflow: hidden;
}

/* ===== Buttons ===== */
.btn-edeka {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-edeka:hover {
  background: var(--primary-hover);
  color: var(--primary-text);
  transform: translateY(-1px);
}
.btn-edeka:active {
  transform: translateY(0);
}
.btn-edeka:disabled {
  opacity: 0.7;
  transform: none;
}
.btn-edeka-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #555;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-edeka-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: #888;
  color: #fff;
}

/* ===== Footer ===== */
.footer-edeka {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 2rem;
}
.footer-edeka a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-edeka a:hover {
  color: #fff;
}

/* ===== Admin Styles ===== */
.admin-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-card {
  background: #1a1a1a;
  border-radius: var(--card-radius);
  border: 1px solid #333;
  overflow: hidden;
}
.admin-card .card-header {
  background: #222;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #333;
}
.admin-card .card-body {
  background: #1a1a1a;
}
.admin-table {
  color: #fff;
  --bs-table-bg: #1a1a1a;
  --bs-table-color: #fff;
  --bs-table-border-color: #333;
  --bs-table-striped-bg: #222;
  --bs-table-striped-color: #fff;
  --bs-table-hover-bg: #2a2a2a;
  --bs-table-hover-color: #fff;
}
.admin-table thead {
  background: #222;
}
.admin-table thead th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  white-space: nowrap;
  border-color: #333;
  background: #222;
}
.admin-table tbody tr {
  border-color: #333;
}
.admin-table tbody td {
  vertical-align: middle;
  font-size: 0.88rem;
  color: #eee;
  border-color: #333;
}
.admin-table code {
  color: var(--primary);
}
.admin-actions .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  margin: 1px;
}

/* ===== Misc ===== */
html, body {
  overflow-x: hidden;
}
.alert { border-radius: 10px; }
.form-control, .form-select {
  border-radius: 10px;
  background: #222;
  border-color: #444;
  color: #fff;
}
.form-control:focus, .form-select:focus {
  background: #222;
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255,225,0,0.15);
}
.form-control::placeholder { color: #777; }
.form-text { color: var(--text-muted); }
.form-label { color: #ddd; }
.badge { font-weight: 600; }
.text-muted { color: var(--text-muted) !important; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
code { color: var(--primary); }
.form-check-input { background-color: #333; border-color: #555; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { color: #ddd; }

/* ===== Mobile fixes ===== */
@media (max-width: 575px) {
  .hero { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero .btn-lg { font-size: 0.88rem; padding: 0.5rem 1.2rem; }
  .section-title { font-size: 1.25rem; }
  .navbar-edeka .navbar-brand { font-size: 0.95rem; }
  .navbar-logo { height: 26px; }
  .navbar-edeka .nav-link { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
}

/* ============================================
   Landing Page (retailer-campaign clone)
   ============================================ */

/* --- LP Nav --- */
.lp-nav {
  background: #fff;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.lp-nav-brand {
  display: flex;
  align-items: center;
}
.lp-nav-logo {
  height: 40px;
  width: auto;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.lp-nav-link {
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lp-nav-link:hover {
  background: #f5f5f5;
  color: #000;
}
.lp-nav-cta {
  background: var(--primary);
  color: var(--primary-text) !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
}
.lp-nav-cta:hover {
  background: var(--primary-hover);
}

/* --- LP Tagline Banner --- */
.lp-tagline {
  background: var(--primary);
  color: var(--primary-text);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- LP Hero --- */
.lp-hero {
  position: relative;
  background: #1a3a2a;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
}
.lp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 3rem 1rem;
}
.lp-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.lp-hero-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* --- LP Sections --- */
.lp-section {
  padding: 3.5rem 0;
  background: #fff;
  color: #1a1a1a;
}
.lp-section-alt {
  background: #f7f7f7;
}
.lp-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.lp-section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* --- LP Coupon Grid --- */
.lp-coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- LP Coupon Card --- */
.lp-coupon-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-coupon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.lp-coupon-img {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.lp-coupon-img-placeholder {
  background: linear-gradient(135deg, #1a5c2e 0%, #2d8a4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-coupon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.lp-coupon-badge-big {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lp-coupon-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lp-coupon-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #1a1a1a;
}
.lp-coupon-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.lp-coupon-terms {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.75rem;
}
.lp-coupon-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.lp-btn-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}
.lp-btn-wallet:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.lp-btn-apple {
  background: #000;
  color: #fff;
}
.lp-btn-apple:hover { color: #fff; }
.lp-btn-google {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #ddd;
}
.lp-btn-google:hover { color: #1a1a1a; }
.lp-btn-download {
  background: #f5f5f5;
  color: #333;
  border: 1.5px solid #e0e0e0;
}
.lp-btn-download:hover { color: #333; }

/* --- LP Steps --- */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.lp-step {
  padding: 1.5rem;
}
.lp-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.lp-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.lp-step p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- LP Store Grid --- */
.lp-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.lp-store-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
}
.lp-store-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #1a1a1a;
}
.lp-store-address {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

/* --- LP FAQ --- */
.lp-faq {
  max-width: 800px;
  margin: 0 auto;
}
.lp-faq-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.lp-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #1a1a1a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: #999;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.lp-faq-item[open] summary::after {
  content: '−';
}
.lp-faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.lp-faq-item a {
  color: #1a5c2e;
}

/* --- LP T&Cs --- */
.lp-tnb {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
}
.lp-tnb p {
  margin-bottom: 0.5rem;
}

/* --- LP Footer --- */
.lp-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.5);
  padding: 1.5rem 0;
  font-size: 0.82rem;
}
.lp-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.lp-footer a:hover {
  color: #fff;
}

/* --- LP Responsive --- */
@media (max-width: 991px) {
  .lp-coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .lp-hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 767px) {
  .lp-steps { grid-template-columns: 1fr; gap: 0.5rem; }
  .lp-step { padding: 1rem 0.5rem; }
}
@media (max-width: 575px) {
  .lp-coupon-grid { grid-template-columns: 1fr; }
  .lp-hero-content h1 { font-size: 1.75rem; }
  .lp-hero-content { padding: 2rem 1rem; }
  .lp-hero { min-height: 280px; }
  .lp-section { padding: 2.5rem 0; }
  .lp-section-title { font-size: 1.35rem; }
}
