/* ============================================================================
   app.css — TaxiCall "Night Fare" app theme (loaded AFTER taxi.css)
   Dark city-night base · frosted glass · amber roof-light glow.
   Overrides the Copper&Crème tokens so the whole public app goes app-like.
   ============================================================================ */

:root {
  /* Night base (was cream) */
  --cream:      #0a0e1a;
  --cream-dark: #0f1526;
  /* Text on dark (was near-black) */
  --ink:        #eaf0ff;
  --ink-soft:   #c7d0e8;
  --ink-muted:  rgba(234, 240, 255, 0.72);
  --ink-subtle: rgba(255, 255, 255, 0.09);
  --ink-border: rgba(255, 255, 255, 0.14);
  /* Signature amber roof-light (was copper) */
  --copper:       #ff9e2c;
  --copper-dark:  #ff8a00;
  --copper-light: #ffd97a;
  --red-err:      #ff7a6b;

  /* App-specific */
  --amber:      #ffc24b;
  --cyan:       #58e0d6;
  --glass:      rgba(255, 255, 255, 0.055);
  --glass-2:    rgba(255, 255, 255, 0.085);
  --glass-brd:  rgba(255, 255, 255, 0.12);
  --nav-h:      68px;
  --glow-amber: 0 0 24px rgba(255, 158, 44, 0.45);
}

/* Ambient night background with two soft glows (amber + cyan) */
body {
  background:
    radial-gradient(1100px 640px at 78% -8%, rgba(255, 158, 44, 0.16), transparent 60%),
    radial-gradient(900px 620px at 8% 8%, rgba(88, 224, 214, 0.10), transparent 58%),
    linear-gradient(180deg, #0b1020 0%, #080b14 100%);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Give the app room above the floating bottom nav */
.app-has-nav main,
.app-has-nav .wrap { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 1.5rem); }

/* ---- Typography: geometric display for headings/wordmark ---- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif; letter-spacing: -0.02em; }

/* ============================================================
   Glass surfaces
   ============================================================ */
.search-card,
.status-card,
.status-recap,
.adm-kpi,
.booking-form-section,
.req {
  background: var(--glass) !important;
  border: 1px solid var(--glass-brd) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.search-card { border-radius: 20px; }

/* Inputs: frosted, glow on focus */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
input[type="datetime-local"], input:not([type]), select, textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--glass-brd);
  color: var(--ink);
  color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: var(--ink-muted); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 194, 75, 0.7);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(255, 158, 44, 0.16), var(--glow-amber);
}
select option { background: #0f1526; color: var(--ink); }

/* Primary button: amber glow */
.btn-pri, button[type="submit"], button:not([class]) {
  background: linear-gradient(180deg, var(--amber) 0%, var(--copper-dark) 100%);
  color: #1a1205;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(255, 158, 44, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-pri:hover, button[type="submit"]:hover, button:not([class]):hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 30px -6px rgba(255, 158, 44, 0.7);
}
.btn-sec {
  color: var(--copper-light);
  border-color: rgba(255, 194, 75, 0.45);
  background: rgba(255, 194, 75, 0.06);
  backdrop-filter: blur(8px);
}
.btn-sec:hover { background: rgba(255, 194, 75, 0.12); }

/* ============================================================
   App bar (top) — glass, holds the wordmark
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.7rem 1rem;
  padding-top: calc(0.7rem + env(safe-area-inset-top));
  background: rgba(10, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--glass-brd);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 158, 44, 0.55)); }
.brand__word {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.02em; line-height: 1; color: var(--ink);
}
.brand__word b { color: var(--amber); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.site-nav__link { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.lang-switch__select { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 0.35rem 0.6rem; min-height: 0; }
.lang-switch__label { color: var(--ink-muted); }

/* ============================================================
   Bottom tab bar — floating glass, glowing active tab
   ============================================================ */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 2500;
  display: flex; gap: 0.25rem;
  width: min(440px, calc(100% - 1.5rem));
  padding: 0.4rem;
  background: rgba(16, 21, 38, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tabbar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
  padding: 0.5rem 0.25rem; border-radius: 16px;
  color: var(--ink-muted); text-decoration: none; font-size: 0.68rem; font-weight: 600;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item:hover { color: var(--ink-soft); text-decoration: none; }
.tabbar__item.is-active {
  color: var(--amber);
  background: rgba(255, 194, 75, 0.12);
}
.tabbar__item.is-active svg { filter: drop-shadow(0 0 6px rgba(255, 194, 75, 0.7)); }

/* ============================================================
   Install banner (PWA)
   ============================================================ */
.install-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 0.8rem);
  z-index: 2400; width: min(440px, calc(100% - 1.5rem));
  display: none; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border-radius: 16px;
  background: rgba(16, 21, 38, 0.9); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.8);
  color: var(--ink); font-size: 0.85rem;
}
.install-cta.show { display: flex; }
.install-cta__grow { flex: 1; }
.install-cta button { padding: 0.5em 1em; min-height: 0; font-size: 0.85rem; border-radius: 12px; }
.install-cta__x { background: none; box-shadow: none; color: var(--ink-muted); padding: 0.3em 0.5em; }

/* ---- Misc dark-theme corrections for shared components ---- */
.hero__eyebrow { color: var(--amber); }
.hero__title { color: var(--ink); }
.open-badge--closed { color: var(--ink-muted); background: rgba(255,255,255,0.08); }
.ac-menu { background: #10152a; border-color: var(--glass-brd); box-shadow: 0 18px 44px rgba(0,0,0,0.7); }
.ac-item { color: var(--ink-soft); }
.ac-item:hover, .ac-item--active { background: rgba(255, 194, 75, 0.12); color: var(--ink); }
.dist-estimate { background: rgba(255, 194, 75, 0.1); border-color: rgba(255, 194, 75, 0.3); color: var(--ink); }
.notice-ok { background: rgba(88, 224, 214, 0.12); border-color: rgba(88, 224, 214, 0.35); color: var(--cyan); }
.report-toggle { color: var(--ink-muted); }
.site-footer { background: transparent; border-top: 1px solid var(--glass-brd); color: var(--ink-muted); }
.site-footer__link { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---- Fix remaining light (#fff) surfaces from taxi.css for the dark theme ---- */
.search-card__input.search-card__input {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: var(--glass-brd);
}
.search-card__input.search-card__input::placeholder { color: var(--ink-muted); }
.search-card__input.search-card__input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 194, 75, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 158, 44, 0.16);
}
.company-card,
.company-list li:not(.company-card) a,
.card {
  background: var(--glass) !important;
  border: 1px solid var(--glass-brd) !important;
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.company-card:hover,
.company-list li:not(.company-card) a:hover { background: var(--glass-2) !important; }
.search-card__around { color: var(--copper-light); }

/* Clean fieldset/legend on the app forms (no border cutting through the legend) */
.booking-form fieldset, .report-form fieldset { border: none; padding: 0; margin: 0 0 1.25rem; }
.booking-form legend, form > fieldset > legend {
  padding: 0; margin-bottom: 0.6rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem;
  color: var(--copper-light);
}

/* Open/closed badge must not stretch inside flex columns */
.open-badge { align-self: flex-start; }
/* Update-available banner (same look as install banner) */
.update-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top) + 0.6rem);
  z-index: 2450; width: min(440px, calc(100% - 1.5rem));
  display: none; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border-radius: 16px;
  background: rgba(16, 21, 38, 0.94); border: 1px solid rgba(255,194,75,0.4);
  backdrop-filter: blur(18px); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.8), var(--glow-amber);
  color: var(--ink); font-size: 0.85rem;
}
.update-cta.show { display: flex; }
.update-cta__grow { flex: 1; }
.update-cta button { padding: 0.5em 1em; min-height: 0; font-size: 0.85rem; border-radius: 12px; }

/* Signup: base-location map with draggable pin */
.signup-map { height: 220px; border-radius: 14px; overflow: hidden; margin-top: 0.5rem; border: 1px solid var(--glass-brd); }
.signup-map[hidden], .signup-map__hint[hidden] { display: none; }
.signup-map__hint { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.4rem; }
.signup-map .leaflet-container { background: #0f1526; }

/* Admin impersonation banner */
.banner--admin { background: rgba(88,224,214,0.12); border: 1px solid rgba(88,224,214,0.4); color: var(--cyan); }
.banner--admin a { color: var(--amber); font-weight: 700; }

/* Call hint on the company page */
.call-hint { font-size: 0.85rem; color: var(--copper-light); margin-top: 0.6rem; }

/* Unregistered listings + claim */
.unclaimed-tag { display:inline-block; font-size:.6rem; font-weight:700; padding:.1rem .45rem; border-radius:999px; background:rgba(88,224,214,.16); color:var(--cyan); vertical-align:middle; }
.contact-btn--claim { background:rgba(255,194,75,.14); border:1px solid rgba(255,194,75,.4); color:var(--amber); }
.claim-why { margin:1.25rem 0; }
.claim-benefits { list-style:none; padding:0; margin:.5rem 0 0; display:flex; flex-direction:column; gap:.65rem; }
.claim-benefits li { display:flex; gap:.6rem; align-items:flex-start; color:var(--ink-soft); }
.claim-benefits__i { flex:none; }
.unclaimed-notice { color:var(--ink-soft); margin-bottom:.9rem; }
.claim-listing { margin-top:.5rem; }

/* Stats page */
.stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.7rem; margin-bottom:1.25rem; }
.stat-tile { background:var(--glass); border:1px solid var(--glass-brd); border-radius:16px; padding:.9rem .6rem; text-align:center; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.stat-tile__num { font-family:'Space Grotesk',sans-serif; font-size:1.45rem; font-weight:800; color:var(--amber); line-height:1; }
.stat-tile__lbl { font-size:.7rem; color:var(--ink-muted); margin-top:.35rem; }
.stat-card { background:var(--glass); border:1px solid var(--glass-brd); border-radius:16px; padding:1rem; margin-bottom:1.25rem; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.stat-card h2 { font-size:1rem; margin-bottom:.75rem; }
@media (min-width:520px){ .stat-grid{ grid-template-columns:repeat(6,1fr); } }

/* Documents upload */
.doc-actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.75rem; }
.doc-list { list-style:none; padding:0; margin:.5rem 0 0; display:flex; flex-direction:column; gap:.6rem; }
.doc-item { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; background:var(--glass); border:1px solid var(--glass-brd); border-radius:12px; padding:.6rem .8rem; }
.doc-item a { color:var(--copper-light); font-weight:600; }

/* Footer city links (SEO) */
.footer-cities { display:flex; flex-wrap:wrap; gap:.5rem .9rem; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--glass-brd); font-size:.82rem; align-items:baseline; }
.footer-cities__label { color:var(--ink-muted); }
.footer-cities a { color:var(--ink-soft); }

/* Help page */
.help-block { margin: 1.25rem 0; }
.help-steps { list-style:none; padding:0; margin:.5rem 0 1rem; display:flex; flex-direction:column; gap:.7rem; }
.help-steps li { display:flex; gap:.7rem; align-items:center; color:var(--ink-soft); }
.help-steps__n { flex:none; width:1.9rem; height:1.9rem; border-radius:50%; background:rgba(255,194,75,.15); color:var(--amber); font-weight:800; display:inline-flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; }

/* Calendar agenda */
.cal-day { font-size:1rem; margin:1.25rem 0 .6rem; color:var(--copper-light); text-transform:capitalize; }
.cal-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.6rem; }
.cal-item { display:flex; gap:.8rem; align-items:center; flex-wrap:wrap; background:var(--glass); border:1px solid var(--glass-brd); border-radius:14px; padding:.7rem .85rem; }
.cal-time { font-family:'Space Grotesk',sans-serif; font-weight:800; color:var(--amber); font-size:1.05rem; flex:none; }
.cal-body { display:flex; flex-direction:column; gap:.15rem; flex:1; min-width:140px; }
.cal-actions { display:flex; gap:.4rem; flex-wrap:wrap; }
/* Kreward cross-sell */
.kreward-card { display:flex; gap:.9rem; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-top:1.5rem; padding:1rem 1.1rem; border-radius:16px; background:linear-gradient(135deg, rgba(180,95,55,.16), rgba(88,224,214,.08)); border:1px solid var(--glass-brd); text-decoration:none; color:var(--ink); }
.kreward-card:hover { text-decoration:none; border-color:rgba(255,194,75,.4); }
.kreward-card__body { display:flex; flex-direction:column; gap:.2rem; }
.kreward-card__cta { color:var(--amber); font-weight:700; white-space:nowrap; }

/* FAQ (help page) */
.faq { display:flex; flex-direction:column; gap:.6rem; margin-top:.5rem; }
.faq-item { background:var(--glass); border:1px solid var(--glass-brd); border-radius:12px; padding:.75rem .9rem; }
.faq-item summary { cursor:pointer; font-weight:600; color:var(--ink); list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item p { margin-top:.5rem; color:var(--ink-soft); font-size:.92rem; }

/* Home SEO section + city links */
.home-seo { margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--glass-brd); }
.home-seo h2 { font-size:1.15rem; margin-bottom:.6rem; }
.home-seo p { color:var(--ink-soft); font-size:.92rem; margin-bottom:.7rem; line-height:1.6; }
.cities-inline { display:flex; flex-wrap:wrap; gap:.4rem .8rem; margin-top:.8rem; font-size:.85rem; align-items:baseline; }
.cities-inline a { color:var(--ink-soft); }
.cities-inline__all { color:var(--amber) !important; font-weight:700; }
.cities-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:.3rem .8rem; margin-top:1rem; }
.cities-grid a { color:var(--ink-soft); font-size:.9rem; padding:.35rem 0; }
.cities-grid a:hover { color:var(--amber); }

/* Dashboard nav — full width, responsive, contrasted */
.dash-head { margin-bottom: 1.25rem; }
.dash-head h1 { margin-bottom: .85rem; }
.dash-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; width: 100%; }
.dash-nav__logout { display: contents; }
.dash-nav .dash-nav__item {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; padding: .75em .6em; min-height: 48px; box-sizing: border-box;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-brd); border-radius: 12px;
  color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  text-decoration: none; cursor: pointer; text-align: center; box-shadow: none;
}
.dash-nav .dash-nav__item:hover { background: rgba(255,194,75,.16); border-color: rgba(255,194,75,.5); color: var(--amber); filter: none; box-shadow: none; }
.dash-nav .dash-nav__item--logout { background: rgba(255,122,107,.14); border-color: rgba(255,122,107,.4); color: #ffb3a8; }
.dash-nav .dash-nav__item--logout:hover { background: rgba(255,122,107,.24); color: #ffd6cf; border-color: rgba(255,122,107,.6); }

/* Opening hours editor */
.hours-table { display: flex; flex-direction: column; gap: .5rem; }
.hours-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 12px; padding: .6rem .8rem; }
.hours-day { font-weight: 700; color: var(--copper-light); min-width: 3.5em; font-size: .92rem; }
.hours-times { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 190px; }
.hours-times input[type="time"] { flex: 1; min-height: 42px; min-width: 88px; padding: .35em .5em; }
.hours-sep { color: var(--ink-muted); }
.hours-closed { flex-direction: row !important; align-items: center; gap: .35rem; margin: 0; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.hours-closed input { width: auto; min-height: 0; }
.hours-row.is-closed .hours-times { opacity: .35; }
