/* ============================================================
   ZyroTrip — design system
   Brand: blue primary, white surfaces, charcoal text, rounded cards
   ============================================================ */

:root {
  --zt-blue: #1d4ed8;
  --zt-blue-dark: #1e40af;
  --zt-blue-soft: #eff6ff;
  --zt-ink: #1f2937;
  --zt-muted: #6b7280;
  --zt-line: #e5e7eb;
  --zt-surface: #f7f8fa;
  --zt-radius: 14px;
  --zt-shadow: 0 8px 24px rgba(31, 41, 55, .07);
  --zt-star: #f59e0b;
  /* Semantic surface tokens — light values; dark overrides below. */
  --zt-bg: #ffffff;
  --zt-card: #ffffff;
  --zt-header: #ffffff;
  --zt-panel: #ffffff;
  --zt-shadow-color: 31, 41, 55;
  --zt-marker-bg: #ffffff;
  --zt-marker-ink: #1f2937;
}

/* ============================================================
   Dark mode — [data-zt-theme="dark"] is set pre-paint by an inline
   script (no flash) and toggled by the header moon/sun button.
   ============================================================ */
[data-zt-theme="dark"] {
  --zt-blue-soft: #1e2a4a;
  --zt-ink: #e5e7eb;
  --zt-muted: #9ca3af;
  --zt-line: #2b3648;
  --zt-surface: #111827;
  --zt-bg: #0b1220;
  --zt-card: #151d2e;
  --zt-header: #101827;
  --zt-panel: #151d2e;
  --zt-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --zt-shadow-color: 0, 0, 0;
  --zt-marker-bg: #1f2937;
  --zt-marker-ink: #e5e7eb;
}

body {
  color: var(--zt-ink);
  background: var(--zt-bg);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.text-primary { color: var(--zt-blue) !important; }
.btn-primary {
  --bs-btn-bg: var(--zt-blue);
  --bs-btn-border-color: var(--zt-blue);
  --bs-btn-hover-bg: var(--zt-blue-dark);
  --bs-btn-hover-border-color: var(--zt-blue-dark);
  --bs-btn-active-bg: var(--zt-blue-dark);
  --bs-btn-active-border-color: var(--zt-blue-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--zt-blue);
  --bs-btn-border-color: var(--zt-blue);
  --bs-btn-hover-bg: var(--zt-blue);
  --bs-btn-hover-border-color: var(--zt-blue);
  --bs-btn-active-bg: var(--zt-blue);
  --bs-btn-active-border-color: var(--zt-blue);
}

/* ------------------------------------------------------ brand / header ---- */
.brand-mark {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--zt-blue), #3b82f6);
  border-radius: 12px;
}
.brand-name { font-weight: 800; letter-spacing: -.02em; color: var(--zt-ink); }

.site-header { background: var(--zt-header); border-bottom: 1px solid var(--zt-line); }
.site-header .nav-link { color: var(--zt-ink); font-weight: 500; }
.site-header .nav-link:hover { color: var(--zt-blue); }
.btn-icon-only { border: 1px solid var(--zt-line); }
.badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
}

/* ------------------------------------------------------------- hero ------- */
.hero {
  position: relative;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 15% -12%, rgba(56, 189, 248, .32), transparent 60%),
    radial-gradient(900px 460px at 88% -6%, rgba(129, 140, 248, .26), transparent 55%),
    linear-gradient(180deg, rgba(9, 22, 58, .90), rgba(9, 22, 58, .70)),
    url('../img/hero-fallback.svg.php') center/cover no-repeat;
  color: #fff;
  padding: 108px 0 96px;
}
/* fine blueprint texture, fading downward */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; letter-spacing: -.025em; font-size: clamp(2.05rem, 4.6vw, 3.35rem); line-height: 1.12; }
.hero .text-gradient {
  background: linear-gradient(92deg, #7dd3fc, #38bdf8 45%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 600; letter-spacing: .10em; text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.55);
  animation: zt-pulse 2.4s infinite;
}
@keyframes zt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 44px; margin-top: 40px;
}
.hero-stats > div { text-align: center; position: relative; padding: 0 6px; }
.hero-stats > div + div::before {
  content: ''; position: absolute; left: -22px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; background: rgba(255,255,255,.25);
}
.hero-stats strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: .8rem; opacity: .72; }

.search-panel {
  background: var(--zt-panel);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(2, 8, 30, .45), 0 4px 16px rgba(2, 8, 30, .10);
  border: 1px solid var(--zt-line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.search-panel:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -18px rgba(2, 8, 30, .5), 0 6px 20px rgba(2, 8, 30, .12);
}
.search-panel .form-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--zt-muted);
  margin-bottom: 2px;
  font-weight: 700;
}
.search-panel .form-control, .search-panel .form-select {
  border: 0; padding-left: 0; box-shadow: none !important;
  font-weight: 600; color: var(--zt-ink);
  background: transparent;
}
.search-panel .field {
  padding: 14px 20px;
  border-right: 1px solid var(--zt-line);
  transition: background-color .2s ease;
}
.search-panel .field:hover { background: rgba(59, 130, 246, .04); }
.search-panel .field:last-of-type { border-right: 0; }
.search-panel .btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border: 0;
  box-shadow: 0 10px 24px -8px rgba(29, 78, 216, .55);
}
.search-panel .btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.search-panel .btn-primary:hover::after { left: 130%; }
.search-panel .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(29, 78, 216, .65); }

/* --------------------------------------------------------- cards ---------- */
.card {
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-radius);
}
.card:hover { box-shadow: var(--zt-shadow); }
.zt-card-img {
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--zt-radius) - 1px) calc(var(--zt-radius) - 1px) 0 0;
}
.zt-card-img-lg {
  height: 260px;
  object-fit: cover;
}
.rating-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--zt-card); border: 1px solid var(--zt-line);
  color: var(--zt-ink);
  padding: 2px 8px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.rating-chip .bi-star-fill { color: var(--zt-star); font-size: .75rem; }
.price-tag { font-weight: 800; }
.price-tag small { color: var(--zt-muted); font-weight: 500; }

.hotel-card { transition: transform .15s ease, box-shadow .15s ease; }
.hotel-card:hover { transform: translateY(-2px); }

.fav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--zt-line);
  color: var(--zt-ink);
}
[data-zt-theme="dark"] .fav-btn { background: rgba(21, 29, 46, .92); }
.fav-btn.is-active { color: #ef4444; border-color: #fecaca; }

/* ---------------------------------------------------- search layout ------- */
.filter-bar {
  position: sticky; top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.filter-section { border-bottom: 1px solid var(--zt-line); padding: 14px 0; }
.filter-section:last-child { border-bottom: 0; }
.chip-option { display: inline-block; }
.chip-option input { display: none; }
.chip-option span {
  display: inline-block;
  border: 1px solid var(--zt-line);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  background: var(--zt-card);
  color: var(--zt-ink);
}
.chip-option input:checked + span {
  background: var(--zt-ink);
  border-color: var(--zt-ink);
  color: #fff;
}

.results-layout { display: flex; gap: 24px; align-items: flex-start; }
.results-main { flex: 1 1 auto; min-width: 0; }
.map-pane {
  position: sticky; top: 84px;
  width: 44%;
  max-width: 560px;
  height: calc(100vh - 100px);
  border-radius: var(--zt-radius);
  overflow: hidden;
  border: 1px solid var(--zt-line);
}
#hotelMap, #placeMap, #routeMap, #heroMap { width: 100%; height: 100%; }

/* Price markers like the reference design */
.price-marker {
  background: var(--zt-marker-bg);
  color: var(--zt-marker-ink);
  border: 1px solid var(--zt-line);
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  padding: 3px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  white-space: nowrap;
}
.price-marker.active {
  background: var(--zt-ink);
  color: #fff;
  border-color: var(--zt-ink);
}
/* OpenStreetMap-discovered lodging pins — teal, visually distinct from
   the white bookable price bubbles. */
.osm-marker {
  background: #0f766e;
  color: #fff;
  border: 1px solid #0d5f58;
  border-radius: 999px;
  font-weight: 700;
  font-size: .72rem;
  padding: 3px 9px;
  box-shadow: 0 3px 10px rgba(15,118,110,.4);
  white-space: nowrap;
}
.user-marker { color: var(--zt-blue); }

@media (max-width: 991.98px) {
  .results-layout { flex-direction: column; }
  .map-pane {
    position: static;
    width: 100%;
    max-width: none;
    height: 60vh;
  }
  .map-pane.d-mobile-none { display: none; }
  body.map-open .map-pane.d-mobile-none { display: block; }
  body.map-open { overflow: hidden; }
}

/* ------------------------------------------------------- explore ---------- */
.category-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--zt-line);
  border-radius: 999px;
  color: var(--zt-ink);
  background: var(--zt-card);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(2, 8, 30, .04);
}
.category-pill i { color: var(--zt-blue); font-size: 1.05rem; transition: transform .18s ease; }
.category-pill.active, .category-pill:hover {
  background: var(--zt-blue);
  border-color: var(--zt-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .55);
}
.category-pill:hover i { color: #fff; transform: scale(1.12) rotate(-6deg); }
.category-scroller {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.category-scroller::-webkit-scrollbar { display: none; }

.section-title { font-weight: 800; letter-spacing: -.022em; }
.section-title::after {
  content: '';
  display: block;
  width: 44px; height: 4px; margin-top: 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--zt-blue), #60a5fa);
  opacity: .9;
}
.section-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--zt-blue); margin-bottom: 6px; display: block;
}

/* --------------------------------------------------------- portals -------- */
.portal { background: var(--zt-surface); min-height: 100vh; }
.portal-sidebar {
  width: 250px;
  min-height: 100vh;
  background: #101828;
  color: #cbd5e1;
  position: sticky; top: 0;
  flex-shrink: 0;
}
.portal-sidebar .brand { color: #fff; }
.portal-sidebar .nav-link {
  color: #cbd5e1;
  padding: .55rem 1rem;
  border-radius: 8px;
  font-size: .92rem;
}
.portal-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.portal-sidebar .nav-link.active { background: var(--zt-blue); color: #fff; }
.portal-sidebar .section-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: #64748b;
  padding: .75rem 1rem .25rem;
  margin: 0;
}
.portal-main { flex: 1 1 auto; min-width: 0; padding: 24px; }
.portal-topbar {
  background: var(--zt-header);
  border-bottom: 1px solid var(--zt-line);
  padding: 12px 24px;
}

/* --------------------------------------------------------- footer -------
   (.site-footer had no styling at all before — long-overdue baseline.) */
.site-footer {
  background: var(--zt-header);
  border-top: 1px solid var(--zt-line);
  color: var(--zt-muted);
}
.site-footer .brand-name { color: var(--zt-ink); }
.site-footer a { color: var(--zt-muted); text-decoration: none; }
.site-footer a:hover { color: var(--zt-blue); }
[data-zt-theme="dark"] .site-footer a:hover { color: #7ea6ff; }
.site-footer h6 { color: var(--zt-ink); font-weight: 700; }
.stat-card { border-radius: var(--zt-radius); }
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.table-portal > :not(caption) > * { padding: .8rem .75rem; }

@media (max-width: 991.98px) {
  .portal-sidebar {
    position: fixed; z-index: 1045;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { padding: 16px; }
}

/* ------------------------------------------------------------ misc -------- */
.section-pad { padding: 56px 0; }
.hero-img-cover { width: 100%; height: 100%; object-fit: cover; }
.mini-map {
  height: 320px;
  border-radius: var(--zt-radius);
  border: 1px solid var(--zt-line);
  overflow: hidden;
}
.avatar-sm {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--zt-blue-soft); color: var(--zt-blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.gallery-thumb {
  width: 100%; height: 84px; object-fit: cover;
  border-radius: 10px; cursor: pointer;
  border: 2px solid transparent;
}
.gallery-thumb.active { border-color: var(--zt-blue); }
.info-list li { margin-bottom: .5rem; }
.wiki-note { font-size: .8rem; color: var(--zt-muted); }
.zt-filterbar { background: var(--zt-header); }

/* ============================================================
   ZyroTrip — smooth / clean / interesting UI layer
   ============================================================ */

/* --- Cards: deeper rest, springier hover --- */
.card { transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, border-color .25s ease; }
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(29, 78, 216, .13);
  border-color: rgba(29, 78, 216, .25);
}

/* --- Card images: lazy-ready + gentle Ken Burns on hover --- */
.zt-card-img {
  transition: transform .6s cubic-bezier(.2, .8, .3, 1), filter .4s ease;
  background: linear-gradient(120deg, var(--zt-blue-soft), #f1f5f9);
}
.hotel-card:hover .zt-card-img { transform: scale(1.05); }

/* --- Photo fade-in when the Wikipedia photo replaces a placeholder --- */
img[data-needs-photo] { opacity: 1; }
img[data-needs-photo]:not([data-zt-photo-done]) { animation: zt-shimmer 1.6s linear infinite; }
[data-zt-theme="dark"] img[data-needs-photo]:not([data-zt-photo-done]) { animation: zt-shimmer-dark 1.6s linear infinite; }
img.zt-photo-in { animation: zt-fadein .55s ease both; }
@keyframes zt-shimmer {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.07); }
  100% { filter: brightness(1); }
}
@keyframes zt-shimmer-dark {
  0%   { filter: brightness(.85); }
  50%  { filter: brightness(1); }
  100% { filter: brightness(.85); }
}
@keyframes zt-fadein {
  from { opacity: .25; transform: scale(1.03); }
  to   { opacity: 1;   transform: scale(1); }
}

/* --- Scroll reveal: cards & sections ease up as they enter --- */
.zt-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .3, 1); }
.zt-reveal.zt-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .zt-reveal { opacity: 1; transform: none; transition: none; }
  .hotel-card:hover { transform: none; }
  .hotel-card:hover .zt-card-img { transform: none; }
  img.zt-photo-in { animation: none; }
}

/* --- Buttons & pills: micro-interactions --- */
.btn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:not(.btn-sm):active { transform: scale(.97); }
.btn-primary { box-shadow: 0 4px 14px rgba(29, 78, 216, .25); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(29, 78, 216, .35); }
.category-pill { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.category-pill:hover { transform: translateY(-1px); }
.category-pill:active { transform: scale(.96); }

/* --- Focus visibility (keyboard users) --- */
a:focus-visible, button:focus-visible, .form-control:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* --- Header shadow on scroll --- */
.site-header { transition: box-shadow .3s ease; }
.site-header.zt-scrolled { box-shadow: 0 4px 18px rgba(var(--zt-shadow-color), .18); }

/* ------------------------------------------------------- dark components -- */
[data-zt-theme="dark"] .card,
[data-zt-theme="dark"] .search-panel,
[data-zt-theme="dark"] .chip-option span,
[data-zt-theme="dark"] .category-pill,
[data-zt-theme="dark"] .rating-chip,
[data-zt-theme="dark"] .price-marker {
  background: var(--zt-card);
  color: var(--zt-ink);
}
[data-zt-theme="dark"] .card { --bs-card-bg: var(--zt-card); }
[data-zt-theme="dark"] .price-marker.active { background: var(--zt-blue); border-color: var(--zt-blue); color: #fff; }
[data-zt-theme="dark"] .chip-option input:checked + span { background: var(--zt-blue); border-color: var(--zt-blue); }
[data-zt-theme="dark"] .fav-btn { background: rgba(21, 29, 46, .9); color: var(--zt-ink); }
[data-zt-theme="dark"] .fav-btn.is-active { border-color: #7f1d1d; }
[data-zt-theme="dark"] .zt-card-img { background: linear-gradient(120deg, #16213a, #1b2438); }
[data-zt-theme="dark"] .hotel-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  border-color: rgba(96, 140, 255, .35);
}
[data-zt-theme="dark"] .btn-primary { --bs-btn-bg: var(--zt-blue); }
[data-zt-theme="dark"] .btn-light {
  --bs-btn-bg: #1c2536;
  --bs-btn-border-color: var(--zt-line);
  --bs-btn-color: var(--zt-ink);
  --bs-btn-hover-bg: #24304a;
  --bs-btn-hover-border-color: #3b4a66;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #24304a;
  --bs-btn-active-color: #fff;
}
[data-zt-theme="dark"] .form-control,
[data-zt-theme="dark"] .form-select {
  background-color: #101827;
  border-color: #2b3648;
  color: var(--zt-ink);
}
[data-zt-theme="dark"] .form-control::placeholder { color: #64748b; }
[data-zt-theme="dark"] .form-control:focus,
[data-zt-theme="dark"] .form-select:focus {
  background-color: #101827;
  border-color: var(--zt-blue);
  color: var(--zt-ink);
  box-shadow: 0 0 0 .2rem rgba(29, 78, 216, .3);
}
[data-zt-theme="dark"] .hero {
  background:
    radial-gradient(1100px 500px at 15% -12%, rgba(56, 189, 248, .18), transparent 60%),
    radial-gradient(900px 460px at 88% -6%, rgba(129, 140, 248, .14), transparent 55%),
    linear-gradient(180deg, rgba(2, 6, 18, .94), rgba(4, 10, 26, .86)),
    url('../img/hero-fallback.svg.php') center/cover no-repeat;
}
[data-zt-theme="dark"] .text-primary { color: #7ea6ff !important; }
[data-zt-theme="dark"] .btn-outline-primary {
  --bs-btn-color: #7ea6ff;
  --bs-btn-border-color: #3b5aa0;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1d4ed8;
  --bs-btn-active-color: #fff;
}
[data-zt-theme="dark"] .rating-chip .bi-star-fill { color: var(--zt-star); }
[data-zt-theme="dark"] .osm-marker { box-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
[data-zt-theme="dark"] .portal { background: var(--zt-surface); }
[data-zt-theme="dark"] .portal-topbar { background: var(--zt-panel); border-color: var(--zt-line); }
[data-zt-theme="dark"] .table { --bs-table-bg: transparent; color: var(--zt-ink); }
[data-zt-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: rgba(255,255,255,.03); color: var(--zt-ink); }
[data-zt-theme="dark"] .dropdown-menu { background-color: var(--zt-card); border-color: var(--zt-line); }
[data-zt-theme="dark"] .dropdown-item { color: var(--zt-ink); }
[data-zt-theme="dark"] .dropdown-item:hover,
[data-zt-theme="dark"] .dropdown-item:focus { background: #1c2536; color: #fff; }
[data-zt-theme="dark"] .offcanvas { background-color: var(--zt-card); color: var(--zt-ink); }
[data-zt-theme="dark"] .badge.text-bg-light,
[data-zt-theme="dark"] .badge.bg-light { background-color: #1c2536 !important; color: var(--zt-ink) !important; border-color: var(--zt-line) !important; }
[data-zt-theme="dark"] .alert-warning { background-color: #33270e; border-color: #59431a; color: #fbbf24; }
[data-zt-theme="dark"] .alert-danger { background-color: #3b1216; border-color: #6b1f27; color: #fca5a5; }
[data-zt-theme="dark"] .alert-success { background-color: #0e3325; border-color: #1a5c42; color: #6ee7b7; }
[data-zt-theme="dark"] .modal-content { background-color: var(--zt-card); color: var(--zt-ink); border-color: var(--zt-line); }
[data-zt-theme="dark"] .breadcrumb-item a { color: #7ea6ff; }
[data-zt-theme="dark"] .zt-ac-box { background-color: var(--zt-card) !important; border: 1px solid var(--zt-line); }
[data-zt-theme="dark"] .zt-ac-box .list-group-item { background-color: transparent; color: var(--zt-ink); border-color: var(--zt-line); }
[data-zt-theme="dark"] .zt-ac-box .list-group-item:hover,
[data-zt-theme="dark"] .zt-ac-box .list-group-item.active { background-color: #1c2536; color: #fff; }

/* --- Leaflet in the dark: dark popups/controls; tiles come from the CARTO
   dark basemap (swapped natively in map.js), so no CSS filter needed. --- */
/* OSM-tile fallback when no CARTO key is set: map.js adds .zt-osm-dark-tiles
   to the map container so the standard (light) tiles get tinted dark here.
   Scoped to the tile pane only — markers, popups and controls are unaffected
   (they already have dark styles below). */
[data-zt-theme="dark"] .zt-osm-dark-tiles .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.88) saturate(.55);
}
[data-zt-theme="dark"] .leaflet-container { background: #0b1220; }
[data-zt-theme="dark"] .leaflet-popup-content-wrapper,
[data-zt-theme="dark"] .leaflet-popup-tip { background: var(--zt-card); color: var(--zt-ink); }
[data-zt-theme="dark"] .leaflet-popup-content a { color: #7ea6ff; }
[data-zt-theme="dark"] .leaflet-control-attribution { background: rgba(11, 18, 32, .8) !important; color: #94a3b8; }
[data-zt-theme="dark"] .leaflet-control-attribution a { color: #7ea6ff; }
[data-zt-theme="dark"] .leaflet-bar a {
  background: var(--zt-card);
  color: var(--zt-ink);
  border-bottom-color: var(--zt-line);
}
[data-zt-theme="dark"] .leaflet-bar a:hover { background: #24304a; color: #fff; }

/* --- Page enter: content rises in once --- */
body > .container, body > section, body > main { animation: zt-page-in .45s ease both; }
@keyframes zt-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Reviews — star picker, list, average display
   ============================================================ */
.zt-reviews .rating-chip { display: inline-flex; align-items: center; gap: .3rem; }
.zt-star-average { color: #f5a623; font-size: 1.05rem; }
.zt-star-sm { color: #f5a623; font-size: .78rem; }
.zt-star-picker { display: inline-flex; align-items: center; }
.zt-star-btn {
  background: none; border: 0; padding: 0 .12rem; margin: 0;
  font-size: 1.55rem; line-height: 1; color: var(--zt-muted, #6c757d);
  cursor: pointer; transition: transform .12s ease, color .12s ease;
}
.zt-star-btn:hover { transform: scale(1.18); color: #f5a623; }
.zt-star-btn:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; border-radius: 4px; }
.zt-star-btn .bi-star-fill { color: #f5a623; }
.zt-review-list .border-top { border-color: var(--zt-line, rgba(0,0,0,.08)) !important; }

/* ============================================================
   Homepage professional redesign — premium cards, trust grid,
   CTA, link micro-interactions (light + dark).
   ============================================================ */

/* --- Card kicker + title link --- */
.zt-card-kicker {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--zt-muted);
}
.zt-title-link { transition: color .2s ease; }
.zt-title-link:hover { color: var(--zt-blue); }

/* --- Arrow buttons & links --- */
.zt-btn-arrow i { transition: transform .2s ease; }
.zt-btn-arrow:hover i { transform: translateX(3px); }
.zt-link-arrow {
  color: var(--zt-blue); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center;
}
.zt-link-arrow i { transition: transform .2s ease; }
.zt-link-arrow:hover { color: var(--zt-blue); text-decoration: underline; }
.zt-link-arrow:hover i { transform: translateX(3px); }

/* --- Trust cards --- */
.zt-trust-card { border: 0; box-shadow: none; background: transparent; }
.zt-trust-card:hover { transform: none; box-shadow: none; }
.zt-trust-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(29, 78, 216, .12), rgba(56, 189, 248, .14));
  color: var(--zt-blue);
  margin-bottom: 1rem;
  transition: transform .25s ease;
}
.zt-trust-card:hover .zt-trust-icon { transform: translateY(-3px) scale(1.05); }

/* --- CTA banner --- */
.zt-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 12% -20%, rgba(125, 211, 252, .35), transparent 60%),
    radial-gradient(600px 280px at 90% 120%, rgba(165, 180, 252, .30), transparent 55%),
    linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 24px 60px -20px rgba(29, 78, 216, .55);
}

/* ============================================================
   Homepage redesign — calmer, friendlier, easier to scan
   ============================================================ */

/* Hero: a touch shorter and softer than the default, so the search
   panel lands comfortably in the first viewport. */
.zt-hero { padding: 84px 0 72px; }
@media (min-width: 992px) { .zt-hero { padding: 104px 0 92px; } }

/* Popular destination shortcuts under the search panel. */
.zt-hero-popular {
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}
.zt-hero-popular a {
  display: inline-block;
  margin: 2px 4px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
}
.zt-hero-popular a:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  transform: translateY(-1px);
}

/* Quick-link chips: one-tap access to the five core actions. */
.zt-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.zt-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.zt-quick-link i { font-size: 1.05rem; }
.zt-quick-link:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  transform: translateY(-1px);
}

/* Alternating section bands give the page a calm visual rhythm. */
.zt-band { padding: 56px 0; }
.zt-band-soft { background: var(--zt-surface); }

/* Category tile grid — replaces the cramped pill scroller on home:
   everything visible at once, bigger tap targets, live counts. */
.zt-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.zt-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 10px 14px;
  border: 1px solid var(--zt-line);
  border-radius: 16px;
  background: var(--zt-card);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.zt-cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, .35);
  box-shadow: 0 12px 26px -10px rgba(29, 78, 216, .25);
  text-decoration: none;
}
.zt-cat-tile:active { transform: scale(.97); }
.zt-cat-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--zt-blue);
  background: linear-gradient(135deg, rgba(29, 78, 216, .10), rgba(56, 189, 248, .12));
  transition: transform .2s ease;
}
.zt-cat-tile:hover .zt-cat-icon { transform: scale(1.08); }
.zt-cat-name { font-weight: 700; color: var(--zt-ink); font-size: .95rem; }
.zt-cat-count { font-size: .78rem; color: var(--zt-muted); }

/* Attraction list beside the homepage map — card-style rows that feel
   tappable instead of dense list-group items. */
.zt-attraction-list { padding: 6px 0; }
.zt-attraction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--zt-ink);
  border-bottom: 1px solid var(--zt-line);
  transition: background-color .15s ease;
}
.zt-attraction-item:last-child { border-bottom: 0; }
.zt-attraction-item:hover { background: var(--zt-blue-soft); text-decoration: none; }
.zt-attraction-dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--zt-blue);
  background: linear-gradient(135deg, rgba(29, 78, 216, .10), rgba(56, 189, 248, .12));
}
.zt-attraction-dot i { font-size: 1.05rem; }

/* Homepage map gets a gentle height and rounded frame. */
.zt-home-map { height: 100%; min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--zt-line); }

[data-zt-theme="dark"] .zt-cat-tile:hover { border-color: rgba(125, 211, 252, .4); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55); }
[data-zt-theme="dark"] .zt-attraction-item:hover { background: rgba(125, 211, 252, .08); }
.zt-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(600px 300px at 50% 0%, rgba(0,0,0,.7), transparent 75%);
  mask-image: radial-gradient(600px 300px at 50% 0%, rgba(0,0,0,.7), transparent 75%);
  pointer-events: none;
}
.zt-cta > * { position: relative; z-index: 1; }

/* --- Hero stats on small screens: no separators crowding --- */
@media (max-width: 575.98px) {
  .hero-stats { gap: 0 22px; }
  .hero-stats > div + div::before { display: none; }
  .hero-stats strong { font-size: 1.15rem; }
}

[data-zt-theme="dark"] .zt-trust-icon {
  background: linear-gradient(135deg, rgba(96, 140, 255, .16), rgba(56, 189, 248, .12));
  color: #7ea6ff;
}
[data-zt-theme="dark"] .zt-card-kicker { color: var(--zt-muted); }
[data-zt-theme="dark"] .zt-cta {
  background:
    radial-gradient(700px 300px at 12% -20%, rgba(125, 211, 252, .22), transparent 60%),
    radial-gradient(600px 280px at 90% 120%, rgba(165, 180, 252, .18), transparent 55%),
    linear-gradient(135deg, #1e40af, #2563eb);
}

/* --- Premium card finish: softer radius, layered rest shadow --- */
.zt-card-premium { border-radius: 18px; }
.zt-card-premium .zt-card-img { border-radius: 17px 17px 0 0; }
.zt-card-premium:not(:hover) { box-shadow: 0 1px 2px rgba(2, 8, 30, .05), 0 10px 28px -18px rgba(2, 8, 30, .18); }
[data-zt-theme="dark"] .zt-card-premium:not(:hover) { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -18px rgba(0,0,0,.55); }
