/* style.css — Interactive Tour of Israel */
/* ===================================================== */

:root {
  --bg: #0d0c0a;
  --bg-card: #1a1814;
  --bg-card-hover: #221f1a;
  --text: #f5f0e8;
  --text-muted: #a89f90;
  --accent: #d4a574;
  --accent-glow: rgba(212, 165, 116, 0.3);
  --border: rgba(212, 165, 116, 0.12);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --current-accent: #d4a574;
}

[data-theme="light"] {
  --bg: #f5f1ea;
  --bg-card: #ffffff;
  --bg-card-hover: #faf7f2;
  --text: #2a2620;
  --text-muted: #6b6357;
  --accent: #b8860b;
  --accent-glow: rgba(184, 134, 11, 0.2);
  --border: rgba(184, 134, 11, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app { min-height: 100vh; }

/* ===== Views ===== */
.view { display: none; min-height: 100vh; }
.view.active { display: block; animation: viewIn 0.4s ease; }

@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1814, #2a2520, #1a1814);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 1s ease;
}
.hero-bg.loaded { opacity: 0.45; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(13,12,10,0.6) 70%, var(--bg) 100%);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(245,241,234,0.6) 70%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; }

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-title {
  font-family: 'Marcellus', Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.progress-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.progress-bar {
  width: min(280px, 80vw);
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
[data-theme="light"] .progress-bar { background: rgba(0,0,0,0.1); }

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f0c98a);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

.progress-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ===== Fact Banner ===== */
.fact-banner {
  max-width: 900px;
  margin: -1.5rem auto 2rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.fact-label {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.fact-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  transition: opacity 0.4s ease;
}

/* ===== Grid ===== */
.grid-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 2rem; }

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

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
}

@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.location-card:hover, .location-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--accent);
  border-color: transparent;
  outline: none;
}

[data-theme="light"] .location-card:hover, [data-theme="light"] .location-card:focus-visible {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px var(--accent);
}

.card-img-wrap { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-card); }

.card-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Marcellus', serif;
  font-size: 3rem; color: var(--accent);
  opacity: 1; transition: opacity 0.5s ease;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
}

.card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.5s ease;
}

.location-card:hover .card-img { transform: scale(1.06); }

.card-visited-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px;
  background: var(--accent);
  color: #1a1814;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 20px;
  z-index: 2;
  animation: badgeIn 0.4s ease;
}

@keyframes badgeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

.card-body { padding: 1rem 1.25rem 1.25rem; }

.card-title {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.card-subtitle { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* ===== Site Footer ===== */
.site-footer { text-align: center; padding: 2rem 1.5rem 3rem; color: var(--text-muted); font-size: 0.8rem; }

/* ===== Detail View ===== */
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(13, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .detail-topbar { background: rgba(245, 241, 234, 0.92); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--bg-card); border-color: var(--accent); color: var(--accent); outline: none; }

.detail-nav { display: flex; gap: 0.5rem; }
.detail-nav .icon-btn { padding: 0.55rem; }

.detail-scroll { overflow-y: auto; }

/* ===== Hero Carousel (detail hero) ===== */
.detail-hero {
  position: relative;
  height: clamp(300px, 50vh, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-card);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 2%, rgba(13,12,10,0.3) 50%, transparent 100%);
}
[data-theme="light"] .detail-hero-overlay {
  background: linear-gradient(to top, var(--bg) 2%, rgba(245,241,234,0.3) 50%, transparent 100%);
}

.detail-hero-text { position: relative; z-index: 3; padding: 0 2rem 2.5rem; max-width: 900px; pointer-events: none; }

.detail-title {
  font-family: 'Marcellus', Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.detail-subtitle {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.detail-body { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.detail-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  padding-left: 1rem;
  border-left: 3px solid var(--current-accent);
  margin-bottom: 3rem;
  font-weight: 300;
}

.section-heading {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.section-heading::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--current-accent);
}

/* Photo full-screen hint */
.photo-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

/* Fun facts */
.fun-facts-grid { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }

.fact-card {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
  transition: transform 0.25s ease;
}
.fact-card:hover { transform: translateX(4px); }

.fact-number {
  font-family: 'Marcellus', serif;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.15rem;
  min-width: 2rem;
}

.fact-card p { font-size: 0.95rem; line-height: 1.6; color: var(--text); font-weight: 300; }

/* ===== Carousel (shared) ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  border-radius: inherit;
}

.hero-carousel .carousel {
  position: absolute;
  inset: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left { left: 14px; }
.carousel-arrow-right { right: 14px; }

.carousel-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 7px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.carousel-dot:hover { background: rgba(255, 255, 255, 0.7); }

.carousel-dot.active {
  background: #fff;
  width: 26px;
  border-radius: 4px;
}

.carousel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-family: 'Marcellus', Georgia, serif;
  font-size: 3rem;
  color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
}

/* ===== Place card carousel ===== */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.place-card {
  /* Plain card container — NOT a link. Tapping photos here must open the
     full-screen viewer, never navigate away. A separate .wiki-link handles
     the outbound Wikipedia article. */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.place-card:hover { transform: translateY(-4px); border-color: var(--current-accent); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
[data-theme="light"] .place-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.place-carousel-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-card);
}

.place-carousel-wrap .carousel {
  position: absolute;
  inset: 0;
}

.place-carousel-wrap .carousel-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s;
}

.place-carousel-wrap .carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.place-card:hover .place-carousel-wrap .carousel-arrow,
.place-card:focus-within .place-carousel-wrap .carousel-arrow {
  opacity: 1;
}

.place-carousel-wrap .carousel-arrow-left { left: 8px; }
.place-carousel-wrap .carousel-arrow-right { right: 8px; }

.place-carousel-wrap .carousel-counter {
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  padding: 3px 8px;
}

.place-carousel-wrap .carousel-dots {
  bottom: 8px;
  gap: 5px;
}

.place-carousel-wrap .carousel-dot {
  width: 6px;
  height: 6px;
}

.place-carousel-wrap .carousel-dot.active {
  width: 18px;
}

.place-carousel-wrap .carousel-empty {
  font-size: 2.5rem;
}

/* Touch devices: always show arrows */
@media (hover: none) {
  .place-carousel-wrap .carousel-arrow {
    opacity: 0.8;
  }
}

.place-body { padding: 0.9rem 1rem 1rem; }

.place-body h4 {
  font-family: 'Marcellus', serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.place-extract { font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); font-weight: 300; }

/* Dedicated Wikipedia link on place cards — the ONLY way out to Wikipedia */
.wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0.5rem 1rem;
  min-height: 38px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--current-accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wiki-link:hover, .wiki-link:focus-visible {
  border-color: var(--current-accent);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}
[data-theme="light"] .wiki-link:hover,
[data-theme="light"] .wiki-link:focus-visible {
  background: rgba(0, 0, 0, 0.045);
}
.wiki-link svg { flex-shrink: 0; }

/* Dots (location navigation) */
.detail-dots {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.detail-dots.show { display: flex; }

.dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.dot:hover { border-color: var(--accent); }
.dot.visited { background: var(--text-muted); border-color: var(--text-muted); }
.dot.active { background: var(--current-accent); border-color: var(--current-accent); transform: scale(1.3); }

/* ===================================================== */
/* Full-screen photo lightbox                            */
/* Always dark regardless of theme — photos pop best     */
/* ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 7, 6, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox::after {
  content: 'Tap anywhere outside the photo to close · swipe down to dismiss';
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.lightbox.open-settled::after { opacity: 0; }

.lb-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.lb-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.08); }
.lb-btn:active { transform: scale(0.94); }

/* Fullscreen state icon swap */
.lb-fs-expand { display: block; }
.lb-fs-compress { display: none; }
.lightbox.fs-on .lb-fs-expand { display: none; }
.lightbox.fs-on .lb-fs-compress { display: block; }

.lb-img {
  max-width: 94vw;
  max-height: calc(100vh - 136px);
  max-height: calc(100dvh - 136px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 70px rgba(0, 0, 0, 0.85);
  transition: opacity 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  z-index: 10;
}
.lb-img.loading { opacity: 0.12; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lb-arrow:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-50%) scale(1.08); }
.lb-arrow:active { transform: translateY(-50%) scale(0.94); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 26px 56px 18px;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  pointer-events: none;
}

.lb-desc {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 3px;
}

.lb-counter {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loader {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { min-height: 340px; padding: 1.5rem 1rem 2rem; }
  .fact-banner { margin: -1rem 1rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .grid-wrap { padding: 0 1rem 2rem; }
  .detail-hero-text { padding: 0 1.25rem 1.5rem; }
  .detail-body { padding: 2rem 1.25rem 3rem; }
  .places-grid { grid-template-columns: 1fr; gap: 1rem; }
  .detail-description { font-size: 0.98rem; }
  .fact-card { padding: 0.9rem 1rem; }
  .back-btn span { display: none; }
  .carousel-arrow { width: 38px; height: 38px; min-width: 38px; }
  .place-carousel-wrap .carousel-arrow { opacity: 0.8; }

  /* Lightbox on phones */
  .lb-img { max-width: 98vw; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
  .lb-arrow { width: 44px; height: 44px; min-width: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-caption { padding: 22px 20px 16px; }
  .lb-desc { font-size: 0.78rem; }
  .lightbox::after { font-size: 0.66rem; padding: 0 1rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .places-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

