/* ─── Design tokens — Uber-style black & white ──────────────────────────── */
:root {
  --bg-primary:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F5F5F5;
  --bg-hover:      #EEEEEE;
  --border:        #E8E8E8;
  --border-accent: #D4D4D4;

  --accent-black:       #000000;
  --accent-black-light: #333333;
  --accent-black-dim:   rgba(0,0,0,.06);
  --accent-green:       #00A651;
  --accent-green-dim:   rgba(0,166,81,.08);
  --accent-orange:      #E86C00;
  --accent-red:         #E81C28;

  --text-primary:   #1A1A1A;
  --text-secondary: #545454;
  --text-muted:     #717171;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card:   0 2px 8px rgba(0,0,0,.08);
  --shadow-elevated: 0 4px 16px rgba(0,0,0,.10);
  --shadow-accent: 0 4px 12px rgba(0,0,0,.12);
  --transition:    .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: .35s cubic-bezier(.4,0,.2,1);

  --header-height: 62px;
  --bottom-nav-height: 56px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-body); font-weight: 700; line-height: 1.2; }
p { margin: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

/* ─── Accessibility ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent-black);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.header-mode-tabs { flex: 1; display: flex; justify-content: center; }
.header-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.header-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.header-logo svg {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.header-logo:hover svg {
  transform: scale(1.05) rotate(-5deg);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-black);
  letter-spacing: -.03em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav-link.active {
  color: var(--accent-black);
  background: var(--bg-elevated);
  font-weight: 600;
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .65rem;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 140px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-dropdown li a {
  display: block;
  padding: .6rem 1rem;
  font-size: .875rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.lang-dropdown li[aria-selected="true"] a,
.lang-dropdown li a:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* Cart button */
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cart-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent-black);
  color: #fff;
  border-radius: 9px;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--transition);
}
.cart-count.bump { transform: scale(1.4); }

/* Main content */
.site-main {
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  padding-bottom: calc(var(--bottom-nav-height) + 1rem);
}

/* Bottom nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--bottom-nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: .35rem .5rem;
  color: var(--text-muted);
  font-size: .625rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.bottom-nav-item.active { color: var(--accent-black); }
.bottom-nav-item .active-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-black);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.bottom-nav-item.active .active-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-black);
  border-radius: 50%;
  opacity: 1;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.6); }
}

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-black);
}
.footer-tagline {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.footer-patreon-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-patreon-link:hover { color: var(--accent-black); }
.footer-col-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.footer-col ul li,
.footer-links ul li,
.footer-support ul li { margin-bottom: .4rem; }
.footer-col ul li a,
.footer-links ul li a,
.footer-support ul li a {
  color: var(--text-secondary);
  font-size: .875rem;
  padding: .45rem 0;
  display: inline-block;
  transition: color var(--transition);
}
.footer-col ul li a:hover,
.footer-links ul li a:hover,
.footer-support ul li a:hover { color: var(--accent-black); }
.footer-lang-active {
  font-weight: 600;
  color: var(--text-primary) !important;
}
.footer-about {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.footer-about-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text-primary);
}
.footer-about-body {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
}
.footer-bottom-note {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Dopamine concept bar ───────────────────────────────────────────────── */
.dopamine-bar {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a3a 50%, #0a1a2a 100%);
  border-bottom: 1px solid rgba(124,92,255,.3);
  padding: .85rem 1.25rem;
  position: relative;
  z-index: 50;
}
.dopamine-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.dopamine-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(124,92,255,.2);
  border: 1px solid rgba(124,92,255,.4);
  color: #a78bff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dopamine-bar-badge::before {
  content: '🧠';
  font-size: .9em;
}
.dopamine-bar-text {
  flex: 1;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  min-width: 0;
}
.dopamine-bar-cta {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .78rem !important;
  padding: .35rem .9rem !important;
  height: auto !important;
}
.dopamine-bar-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.dopamine-bar-close:hover { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 600px) {
  .dopamine-bar-text { font-size: .78rem; }
  .dopamine-bar-inner { gap: .6rem; }
}

/* ─── Cart button active state ───────────────────────────────────────────── */
.cart-icon-btn.has-items {
  background: var(--accent-black);
  color: #fff;
  border: none;
}
.cart-icon-btn.has-items:hover {
  background: var(--accent-black-light);
  color: #fff;
}

/* ─── Uber-style split hero ──────────────────────────────────────────────── */
.ub-hero {
  position: relative;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.ub-visual-eats {
  background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1400&q=80&auto=format&fit=crop') center / cover no-repeat !important;
}
.eats-hero-map { display: none; }
.ub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.015) 0%, transparent 50%);
  pointer-events: none;
}
.ub-hero-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - var(--header-height));
  /* no max-width — let the map bleed full right */
}

/* Left column — text & form, aligned with 1200px container */
.ub-left {
  flex: 0 0 50%;
  max-width: 620px;
  padding: 4rem max(1.5rem, 3vw) 4rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ub-city {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .825rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  letter-spacing: .01em;
  border-left: 2px solid var(--accent-black);
  padding-left: .5rem;
}
.ub-city svg { color: var(--accent-black); flex-shrink: 0; }
.ub-city-loading {
  display: inline-block;
  min-width: 80px;
  height: .85em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer .9s ease infinite;
  vertical-align: middle;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.ub-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 0;
}
.ub-subtitle {
  font-size: .95rem;
  color: var(--text-secondary);
  margin: .6rem 0 0;
  line-height: 1.5;
  max-width: 380px;
}

/* Uber-style search form */
.ub-form {
  margin-top: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  position: relative;
}
/* Connector line between the two dots */
.ub-form::after {
  content: '';
  position: absolute;
  left: calc(1.35rem + 5px);
  top: 52px;
  bottom: 52px;
  width: 1.5px;
  background: var(--border-accent);
  z-index: 0;
}
.ub-form-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: .9rem;
  position: relative;
  z-index: 1;
  transition: background var(--transition);
}
.ub-form-row:hover {
  background: var(--bg-elevated);
}
.ub-form-top { border-bottom: 1px solid var(--border); }

.uf-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.uf-circle {
  border-radius: 50%;
  border: 2.5px solid var(--text-primary);
}
.uf-square {
  border-radius: 2px;
  background: var(--text-primary);
}
.uf-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: .95rem;
  font-family: var(--font-body);
  padding: 0;
  min-width: 0;
}
.uf-input::placeholder { color: var(--text-muted); }
.uf-select {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: .95rem;
  font-family: var(--font-body);
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}
.uf-select option { background: var(--bg-primary); color: var(--text-primary); }

/* CTAs */
.ub-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.ub-cta-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.ub-cta-link:hover { color: var(--text-primary); }

/* Right column — full-bleed map panel */
.ub-right {
  flex: 1;
  position: relative;
  align-self: stretch;
  min-height: 100%;
}
.ub-visual {
  position: absolute;
  inset: 0;
  background: #f0f0f0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* Gradient fade — blends map into page on left + top + bottom edges */
.ub-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  #FFFFFF 0%, rgba(255,255,255,0) 35%),
    linear-gradient(to bottom, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 20%),
    linear-gradient(to top,    rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 20%);
  z-index: 6;
  pointer-events: none;
}
.ubv-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,.03) 0%, transparent 65%);
  pointer-events: none;
}

/* Floating product cards */
.ubv-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .65rem .9rem;
  min-width: 175px;
  max-width: 220px;
  box-shadow: var(--shadow-elevated);
}
.ubv-card-1 { top: 10%;  left: 6%;  animation: ub-float-a 5s ease-in-out infinite; }
.ubv-card-2 { top: 42%;  right: 6%; animation: ub-float-b 6s ease-in-out infinite 1.2s; }
.ubv-card-3 { bottom:12%;left: 18%; animation: ub-float-a 4.5s ease-in-out infinite 0.6s; }

@keyframes ub-float-a {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes ub-float-b {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.ubvc-emoji { font-size: 1.5rem; flex-shrink: 0; }
.ubvc-body  { flex: 1; min-width: 0; }
.ubvc-name  { font-size: .8rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubvc-meta  { font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.ubvc-badge {
  margin-left: auto;
  font-size: .62rem;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  border: 1px solid rgba(0,166,81,.15);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Notification chips */
.ubv-notif {
  position: absolute;
  top: 8%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,0,0,.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem .8rem;
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 500;
  animation: ub-float-b 4s ease-in-out infinite 2s;
  white-space: nowrap;
}
.ubv-pill {
  position: absolute;
  bottom: 30%;
  right: 6%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  animation: ub-float-a 5.5s ease-in-out infinite 3s;
  box-shadow: var(--shadow-card);
}
.ubvp-stars { font-size: .8rem; color: #E86C00; font-weight: 700; display: block; }
.ubvp-name  { font-size: .72rem; color: var(--text-muted); display: block; margin-top: .05rem; }

/* Form wrapper */
.ub-form-wrap { position: relative; margin-top: 2rem; }
.ub-form { margin-top: 0 !important; }

/* Custom category select button */
.ub-cat-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .95rem;
  font-family: var(--font-body);
  text-align: left;
  min-width: 0;
}
.ucb-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}
.ucb-label { flex: 1; min-width: 0; }
.ucb-chevron {
  margin-left: auto;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.ub-cat-btn[aria-expanded="true"] .ucb-chevron { transform: rotate(180deg); }

/* Location badge in eats form bottom row */
.ub-location-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ub-location-badge svg { color: var(--accent-black); flex-shrink: 0; }

/* Responsive */
@media (max-width: 960px) {
  .ub-hero-inner { min-height: 70vh; }
  .ub-left { flex: 1; padding: 2.5rem 1.25rem; max-width: none; }
  .ub-right { display: none; }
  .ub-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}
@media (max-width: 600px) {
  .ub-hero-inner { min-height: auto; }
}
@media (max-width: 480px) {
  .ub-hero-inner { padding: 2rem 1rem; }
  .ub-form-wrap  { margin-top: 1.5rem; }
  .ub-form-row   { padding: .9rem 1rem; }
  .ub-ctas       { gap: .9rem; }
}

/* ─── Header mode tabs (Jedzenie / Przejazd) ────────────────────────────── */
.header-mode-tabs {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 .25rem;
  display: flex;
  gap: .15rem;
  margin: 0 auto;
  align-items: center;
}
.hmt-btn {
  border-radius: 100px;
  padding: .35rem 1rem;
  height: auto;
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}
.hmt-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.hmt-btn.hmt-active {
  color: #fff;
  font-weight: 700;
  background: var(--accent-black);
}
.hmt-btn.hmt-active:hover {
  background: var(--accent-black-light);
  color: #fff;
}
@media (max-width: 480px) {
  .hmt-btn { padding: .3rem .6rem; font-size: .78rem; }
}
@media (max-width: 360px) {
  /* On very small screens, show only the active tab label — others show as dots */
  .hmt-btn:not(.hmt-active) { padding: .3rem .45rem; font-size: 0; }
  .hmt-btn:not(.hmt-active)::before { content: ''; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
}

/* ─── Hamburger button ───────────────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ─── Mobile drawer ──────────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 82vw);
  z-index: 600;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 599;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  overflow-y: auto;
}
.mobile-drawer-close {
  align-self: flex-end;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.mobile-drawer-close:hover { background: var(--border-accent); }
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: .975rem;
  font-weight: 500;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer-item:hover,
.mobile-drawer-item:focus-visible { background: var(--bg-elevated); }
.mobile-drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mobile-drawer-lang {
  padding: .3rem .65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .78rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.mobile-drawer-lang.active,
.mobile-drawer-lang:hover {
  background: var(--accent-black);
  color: #fff;
  border-color: transparent;
}

/* ─── Hero maps (taxi + eats) ─────────────────────────────────────────────── */
.taxi-hero-map,
.eats-hero-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
}
.ub-visual-taxi { background: #f0f0f0; }
.ub-visual-eats { background: #f0f0f0; }

/* Overlay cards/pills sit above map but BELOW the fade (fade uses ::before z:6, cards z:8) */
.ub-visual-taxi .ubv-card,
.ub-visual-taxi .ubv-pill,
.ub-visual-eats .ubv-pill {
  z-index: 8;
}
.ub-visual-eats .ubv-pill {
  bottom: 12%;
  right: 8%;
}

/* Restaurant marker on map */
.lmap-rest-marker {
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  border: 2px solid #fff;
  transition: transform .2s ease;
}
.lmap-rest-marker:hover { transform: scale(1.15); }
.lmap-rest-emoji { font-size: 1.2rem; line-height: 1; }

/* Leaflet popup override */
.lmap-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
}
.lmap-popup .leaflet-popup-tip { display: none; }

/* Taxi floating cards positions */
.uvt-card-eta { bottom: 10%; left: 8%; animation: ub-float-a 5s ease-in-out infinite 1s; }

/* ─── Taxi car types section ─────────────────────────────────────────────── */
.taxi-types-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}
.taxi-types-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.taxi-types-grid { display: flex; flex-direction: column; gap: 0; }
.tct-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tct-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.tct-card:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-bottom: 2px solid transparent; }
.tct-card:hover { background: var(--bg-elevated); }
.tct-card.tct-selected {
  border: 2px solid var(--accent-black);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  z-index: 1;
}
.tct-car-img {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  line-height: 1;
}
.tct-info { flex: 1; min-width: 0; }
.tct-name-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.tct-name { font-size: .95rem; font-weight: 700; color: var(--text-primary); }
.tct-eta-pill {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: 100px;
  padding: 1px 8px;
  white-space: nowrap;
}
.tct-meta { display: block; font-size: .775rem; color: var(--text-muted); margin-top: .15rem; }
.tct-right { flex-shrink: 0; text-align: right; }
.tct-price { font-size: .95rem; font-weight: 800; color: var(--accent-green); letter-spacing: .02em; }
.tct-badge-pop {
  font-size: .6rem; font-weight: 700;
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(0,166,81,.15);
  border-radius: 100px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* Error highlight on taxi destination input */
.uf-input-error { animation: input-shake .35s ease; outline: 2px solid var(--accent-red) !important; }
@keyframes input-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }

/* ─── Taxi form wrapper ─────────────────────────────────────────────────── */
.taxi-form-wrap { position: relative; }

/* ─── Destination autocomplete dropdown ─────────────────────────────────── */
.taxi-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  z-index: 9999;
  max-height: 280px;
  overflow-y: auto;
}
.ts-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.ts-item:last-child { border-bottom: none; }
.ts-item:hover, .ts-item.ts-focused { background: var(--bg-elevated); }
.ts-pin-icon { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.ts-body { min-width: 0; }
.ts-main { font-size: .85rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-sub  { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Route info strip ───────────────────────────────────────────────────── */
.taxi-route-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .5rem;
}
.taxi-route-info svg { color: var(--text-muted); flex-shrink: 0; }
.tri-sep { color: var(--text-muted); }
.tri-clear {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.tri-clear:hover { color: var(--text-primary); }

/* ─── Payment modal: car type cards ─────────────────────────────────────── */
.pm-car-types { margin-bottom: 1rem; }
.pmc-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: .25rem;
}
.pmc-card:hover { background: var(--bg-elevated); }
.pmc-card.pmc-selected {
  border-color: var(--accent-black);
  background: var(--bg-elevated);
}
.pmc-car-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pmc-card.pmc-selected .pmc-car-icon {
  background: var(--accent-black);
  border-color: var(--accent-black);
  color: #fff;
}
.pmc-car-icon-vip { background: #1A1A1A !important; border-color: #1A1A1A !important; color: #FFD700 !important; }
.pmc-info { flex: 1; min-width: 0; }
.pmc-name { font-size: .9rem; font-weight: 700; color: var(--text-primary); display: block; }
.pmc-meta { font-size: .75rem; color: var(--text-muted); }
.pmc-badge-pop {
  background: var(--accent-black);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: .25rem;
}
.pmc-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ─── Payment modal (Uber-style bottom sheet) ───────────────────────────── */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pm-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  padding: .75rem 1.25rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,0,.15,1);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,.16);
  max-height: 92vh;
  overflow-y: auto;
}
.pm-sheet-open { transform: translateY(0) !important; }
.pm-handle {
  width: 36px; height: 4px;
  background: var(--border-accent);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* Header: title + price + ETA */
.pm-header-uber { text-align: center; margin-bottom: .85rem; border-bottom: 1px solid var(--border); padding-bottom: .85rem; }
.pm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .35rem;
}
.pm-price-big {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: .2rem;
}
.pm-eta-line {
  font-size: .85rem;
  color: var(--text-muted);
}
.pm-eta-line strong { color: var(--text-primary); }

/* Route summary */
.pm-route-summary {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: .15rem .65rem;
  align-items: center;
  padding: .85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.pm-route-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  justify-self: center;
}
.pm-route-dot-green { background: var(--accent-green); }
.pm-route-dot-black { background: var(--accent-black); }
.pm-route-label {
  font-size: .85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-route-line-v {
  width: 1.5px;
  height: 16px;
  background: var(--border-accent);
  justify-self: center;
}

/* Payment method row (single selected) */
.pm-pay-section { margin-bottom: 1.25rem; }
.pm-pay-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.pm-pay-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}
.pm-pay-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.pm-pay-change {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-black);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pm-pay-change:hover { background: var(--bg-elevated); }

/* Expandable payment methods list */
.pm-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: .25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pm-method-opt {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: none;
  background: var(--bg-primary);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
  font-family: var(--font-body);
  border-bottom: 1px solid var(--border);
}
.pm-method-opt:last-child { border-bottom: none; }
.pm-method-opt:hover { background: var(--bg-elevated); }
.pm-mo-icon {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pm-mo-name {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}
.pm-mo-check {
  color: var(--accent-black);
  flex-shrink: 0;
}

/* Big CTA button */
.pm-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background: var(--accent-black);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.pm-cta-btn:hover { background: var(--accent-black-light); }
.pm-cta-btn:active { transform: scale(.98); }

/* Cancel link (small, centered) */
.pm-cancel-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: .75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: .5rem;
  transition: color var(--transition);
}
.pm-cancel-link:hover { color: var(--text-primary); }

/* ─── Ride confirmed overlay ────────────────────────────────────────────── */
.ride-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.ride-overlay.ro-visible { opacity: 1; }

.ro-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
}

/* Phase 1: Matching */
.ro-pulse-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ro-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-black);
  opacity: .2;
  animation: ro-pulse 2s ease-out infinite;
}
.ro-pulse-ring-2 { animation-delay: 1s; }
@keyframes ro-pulse {
  0%   { transform: scale(.6); opacity: .4; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ro-car-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 1;
  animation: ro-car-bounce 1.5s ease-in-out infinite;
}
@keyframes ro-car-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.ro-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.ro-subtitle {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.ro-cancel-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .85rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.ro-cancel-link:hover { color: var(--text-primary); }

/* Phase 2: Driver found */
.ro-check-wrap {
  margin-bottom: 1.5rem;
}
.ro-checkmark {
  width: 64px;
  height: 64px;
}
.ro-check-circle {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  animation: ro-circle-draw .6s ease forwards;
}
.ro-check-tick {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: ro-tick-draw .4s ease forwards .5s;
}
@keyframes ro-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes ro-tick-draw   { to { stroke-dashoffset: 0; } }

.ro-title-found { color: var(--accent-green); }

.ro-driver-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.ro-driver-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ro-driver-info { text-align: left; }
.ro-driver-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ro-driver-rating {
  font-size: .8rem;
  color: var(--text-muted);
}
.ro-driver-rating::before { content: '\2605 '; color: var(--accent-orange); }

.ro-car-details {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: .5rem;
}
.ro-car-sep { color: var(--text-muted); }

.ro-eta-text {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.ro-track-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  background: var(--accent-black);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.ro-track-btn:hover { background: var(--accent-black-light); }
.ro-track-btn:active { transform: scale(.98); }

/* ─── Typography helpers ─────────────────────────────────────────────────── */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .header-nav { display: none; }           /* lang switcher goes into drawer */
  .header-mode-tabs { display: none !important; } /* mode tabs go into drawer */
  .hamburger-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-col, .footer-links, .footer-support { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Header — tighten spacing on mobile */
  .header-inner { padding: 0 .75rem; gap: .4rem; }
  .logo-text { font-size: 1.1rem; }
  .cart-icon-btn { width: 36px; height: 36px; }

  /* Lang dropdown — keep on screen */
  .lang-dropdown { right: 0; min-width: 120px; }

  /* Checkout overlay — bottom sheet on mobile */
  .fl-booking-overlay { align-items: flex-end; padding: 0; }
  .fl-bflow-card {
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }
  .fl-bo-card { max-width: 100%; width: 100%; }
  .fl-bflow-content { padding: 1rem 1rem 1.25rem; }
  .fl-bflow-grid { grid-template-columns: 1fr; }
  .fl-bflow-field-full { grid-column: span 1; }
  .fl-bflow-bar { padding: .75rem 1rem; border-radius: 20px 20px 0 0; }
  .fl-bflow-steps { padding: .85rem 1rem .6rem; }

  /* Bottom nav safe area */
  .bottom-nav {
    padding-bottom: max(env(safe-area-inset-bottom), .25rem);
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }
  .site-main {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 1rem);
  }
}
@media (max-width: 420px) {
  /* Very small phones — hide logo text to save space */
  .logo-text { display: none; }
  .header-inner { gap: .25rem; }
}
@media (min-width: 769px) {
  .site-main { padding-bottom: 2rem; }
}

/* ─── Food Dish Grid ─────────────────────────────────────────────────────── */
.fd-section { padding: 2rem 0 4rem; }
.fd-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.fd-section-header { margin-bottom: 1.5rem; }
.fd-section-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--text-primary); margin-bottom: 1rem;
}
.fd-cuisine-tabs {
  display: flex; flex-wrap: nowrap; gap: .4rem;
  overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: none;
}
.fd-cuisine-tabs::-webkit-scrollbar { display: none; }
.fd-ctab {
  flex-shrink: 0; padding: .35rem .9rem;
  background: var(--bg-elevated); border: 1.5px solid var(--border);
  border-radius: 100px; font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.fd-ctab:hover { background: var(--bg-hover); }
.fd-ctab.fd-ctab-active {
  background: var(--accent-black); border-color: var(--accent-black);
  color: #fff;
}

.fd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.fd-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: default;
}
.fd-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.09); border-color: #C8C8C8; }
.fd-card-popular { border-color: var(--accent-black); }

.fd-card-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.fd-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.fd-card:hover .fd-card-img { transform: scale(1.04); }
/* Emoji fallback when image fails to load */
.fd-card-img-wrap.fd-img-error {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.fd-card-img-wrap.fd-img-error::before {
  content: attr(data-emoji);
  font-size: 3.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.fd-card-badge {
  position: absolute; top: .5rem; left: .5rem;
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; padding: .2rem .55rem; border-radius: 100px;
}
.fd-badge-hot { background: #EF4444; color: #fff; }
.fd-badge-new { background: #16A34A; color: #fff; }
.fd-card-cuisine-tag {
  position: absolute; bottom: .5rem; left: .5rem;
  background: rgba(0,0,0,.52); color: #fff; backdrop-filter: blur(4px);
  font-size: .68rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 100px;
}

.fd-card-body { padding: .85rem .9rem; }
.fd-card-name {
  font-size: .9rem; font-weight: 700; color: var(--text-primary);
  line-height: 1.3; margin-bottom: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fd-card-rest { font-size: .72rem; color: var(--text-muted); margin-bottom: .4rem; }
.fd-card-meta {
  display: flex; align-items: center; gap: .3rem;
  font-size: .72rem; color: var(--text-muted); margin-bottom: .65rem;
}
.fd-card-stars { display: flex; align-items: center; gap: .2rem; color: var(--text-primary); font-weight: 600; }
.fd-card-dot { color: var(--border-accent); }
.fd-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fd-card-price { font-size: .95rem; font-weight: 800; color: var(--text-primary); font-family: var(--font-display); }
.fd-card-btn { flex-shrink: 0; white-space: nowrap; }

.fd-load-more { text-align: center; margin-top: 2rem; }

@media (max-width: 600px) {
  .fd-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .fd-card-body { padding: .65rem .7rem; }
  .fd-card-name { font-size: .82rem; }
}
