/* === RESET & VARIABLES (shared with main site) === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #9d2420;
  --red-dark: #7a1c19;
  --orange: #ef7e19;
  --orange-light: #f5a623;
  --dark: #181818;
  --dark-soft: #2a2a2a;
  --cream: #faf6f1;
  --warm-gray: #f0ebe4;
  --white: #ffffff;
  --text: #181818;
  --text-light: #6b6560;
  --font-display: 'Balladeer Light', 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--font-body); }

/* === NAV (static, dark, no scroll-fade needed on detail pages) === */
nav {
  position: relative; width: 100%; z-index: 1000;
  padding: 0.4rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark);
}
.nav-logo img { height: 100px; width: auto; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--orange); color: var(--dark); padding: 0.6rem 1.5rem;
  border-radius: 50px; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--white); transform: translateY(-2px); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* === BREADCRUMB === */
.breadcrumb {
  max-width: 1000px; margin: 2rem auto 0; padding: 0 3rem;
  font-size: 0.8rem; color: var(--text-light);
}
.breadcrumb a { color: var(--red); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* === DETAIL HERO === */
.detail-hero {
  position: relative; height: 56vh; min-height: 420px;
  margin: 1.5rem 3rem 0; border-radius: 24px; overflow: hidden;
}
.detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,24,24,0.85) 0%, rgba(24,24,24,0.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem 3rem;
}
.detail-duration {
  display: inline-block; align-self: flex-start;
  background: rgba(24,24,24,0.85); backdrop-filter: blur(8px);
  color: var(--white); padding: 0.45rem 1.1rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.detail-location {
  font-size: 0.78rem; font-weight: 600; color: var(--orange);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.detail-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400; color: var(--white); line-height: 1.1;
}

/* === DETAIL BODY === */
.detail-wrap {
  max-width: 1000px; margin: 0 auto; padding: 3.5rem 3rem 5rem;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem;
}
.detail-main h2 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
  color: var(--dark); margin: 2.2rem 0 1rem;
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-light); margin-bottom: 1rem;
}
.itinerary-day {
  display: flex; gap: 1.2rem; padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.itinerary-day:last-child { border-bottom: none; }
.itinerary-day-num {
  flex: 0 0 auto; font-family: var(--font-display); font-size: 1.3rem;
  color: var(--red); font-weight: 400; min-width: 64px;
}
.itinerary-day-content h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 0.3rem;
}
.itinerary-day-content p {
  font-size: 0.86rem; color: var(--text-light); line-height: 1.6; margin: 0;
}
.tag-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag-pill {
  background: var(--warm-gray); color: var(--text); font-size: 0.76rem;
  padding: 0.4rem 0.9rem; border-radius: 50px; font-weight: 500;
}
/* === CITY SHOWCASE === */
.city-showcase {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.city-card {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 180px; min-height: 180px; max-height: 180px;
  width: 100%; flex-shrink: 0;
  cursor: pointer;
  background: #2a2a2a;
}
.city-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.city-card:hover img { transform: scale(1.04); }
.city-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(24,24,24,0.75) 0%, rgba(24,24,24,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2rem;
}
.city-card-name {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--white); margin-bottom: 0.3rem;
}
.city-card-tagline {
  font-size: 0.85rem; color: rgba(255,255,255,0.75); max-width: 320px; line-height: 1.4;
}
.city-modal-backdrop {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 3rem;
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.city-modal-backdrop.active { display: flex; opacity: 1; }
.city-modal {
  background: var(--cream); border-radius: 24px; overflow: hidden;
  max-width: 920px; width: 100%; max-height: 85vh;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: scale(0.95); transition: transform 0.3s var(--ease-out);
}
.city-modal-backdrop.active .city-modal { transform: scale(1); }
.city-modal-img { height: 100%; min-height: 320px; }
.city-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.city-modal-body { padding: 2.5rem; overflow-y: auto; }
.city-modal-body h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--dark); margin-bottom: 0.5rem; }
.city-modal-tagline { font-size: 0.85rem; color: var(--orange); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.city-modal-body p { font-size: 0.92rem; line-height: 1.75; color: var(--text-light); margin-bottom: 1rem; }
.city-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: background 0.3s;
}
.city-modal-close:hover { background: var(--orange); color: var(--dark); }
@media (max-width: 700px) {
  .city-modal { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .city-modal-img { min-height: 200px; }
}
/* === SIDEBAR / UNLOCK GATE === */
.detail-sidebar { position: relative; padding-left: 1.5rem; }
.gate-card {
  background: var(--dark); border-radius: 20px; padding: 2.2rem;
  color: var(--white); position: sticky; top: 1.5rem;
}
.gate-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 400;
  margin-bottom: 0.6rem;
}
.gate-card p {
  font-size: 0.84rem; color: rgba(255,255,255,0.65); line-height: 1.6;
  margin-bottom: 1.5rem;
}
.gate-card .form-group { margin-bottom: 1rem; }
.gate-card label {
  display: block; font-size: 0.68rem; font-weight: 600;
  color: rgba(255,255,255,0.5); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.45rem;
}
.gate-card input {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; color: var(--white); font-family: var(--font-body);
  font-size: 0.86rem; outline: none;
}
.gate-card input::placeholder { color: rgba(255,255,255,0.3); }
.gate-card input:focus { border-color: var(--orange); }
.btn-verify {
  width: 100%; padding: 0.9rem;
  background: var(--orange); color: var(--dark);
  border-radius: 10px; font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.04em; margin-top: 0.4rem;
  transition: all 0.3s var(--ease-out);
}
.btn-verify:hover { background: var(--white); }
.gate-note {
  font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 1rem;
  line-height: 1.5;
}
.gate-badge {
  display: inline-block; background: rgba(239,126,25,0.15);
  border: 1px solid rgba(239,126,25,0.35); color: var(--orange-light);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 50px;
  margin-bottom: 1rem;
}

/* === FOOTER === */
footer {
  background: #0f0f0f; padding: 3rem;
  text-align: center; color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}
.footer-logo { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 1rem; }
.footer-logo img { width: auto; opacity: 0.7; }
.footer-logo img:first-child { height: 100px; }
.footer-logo img:last-child { height: 70px; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); transition: color 0.3s; font-size: 0.8rem; }
.footer-links a:hover { color: var(--orange); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .detail-hero { margin: 1.5rem 1.5rem 0; height: 42vh; }
  .detail-hero-overlay { padding: 1.8rem 1.5rem; }
  .detail-wrap { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 3rem; gap: 2rem; }
  .breadcrumb { padding: 0 1.5rem; }
  .gate-card { position: static; }
}

/* === ARTICLE PREVIEW BLUR (Santorini-style content gate) === */
.article-preview {
  position: relative;
  max-height: 6.8rem; /* ~4 lines of body text */
  overflow: hidden;
}
.article-blur {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.article-gate-cta {
  text-align: center; padding: 1.5rem 0 0.5rem;
}
.article-gate-cta p {
  font-size: 0.84rem; color: var(--text-light); margin-bottom: 1rem;
}
.article-unlock-btn {
  display: inline-block;
  background: var(--dark); color: var(--white);
  padding: 0.75rem 2rem; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-out);
}
.article-unlock-btn:hover { background: var(--orange); color: var(--dark); }

/* === CONTENT GATE OVERLAY === */
.detail-main { position: relative; }

.detail-main.locked > *:not(.content-overlay) {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
  transition: filter 0.7s ease, opacity 0.7s ease;
}

.detail-main:not(.locked) > * {
  filter: none;
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
  transition: filter 0.7s ease, opacity 0.7s ease;
}

.content-overlay {
  position: sticky;
  top: 2rem;
  z-index: 20;
  background: rgba(250,246,241,0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(157,36,32,0.18);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  margin-bottom: 2rem;
  transition: opacity 0.5s ease;
}

.co-lock { font-size: 2rem; margin-bottom: 0.7rem; }

.content-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.45rem;
}

.content-overlay p {
  font-size: 0.81rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === SCROLL-TO-VERIFY BUTTON (in content overlay) === */
.btn-scroll-verify {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.65rem 1.6rem;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  font-family: var(--font-body);
}
.btn-scroll-verify:hover { background: var(--dark); transform: translateY(-2px); }

/* === OVERVIEW FREE — exempt from blur even when detail-main is locked === */
.detail-main.locked .overview-free,
.detail-main.locked .overview-free *,
.detail-main.locked .overview-free div,
.detail-main.locked .overview-free h2,
.detail-main.locked .overview-free p {
  filter: none !important;
  opacity: 1 !important;
  user-select: auto !important;
  pointer-events: auto !important;
  blur: none !important;
}

.detail-main:not(.locked) .content-overlay { display: none; }

/* === LOCKED CONTENT BLUR (legacy) === */
.content-locked {
  position: relative;
  filter: blur(4px);
  user-select: none; pointer-events: none;
  opacity: 0.45;
  margin-top: 1rem;
}
/* ── Phone row with country code (gate card) ─────────────────── */
.phone-cc-select {
  flex-shrink: 0;
  padding: 0.65rem 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: var(--white, #fff);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  min-width: 80px;
}
.phone-cc-select:focus {
  border-color: var(--orange, #ef7e19);
  background: rgba(255,255,255,0.13);
}
.phone-cc-select option { background: #1a1410; color: #fff; }
/* ── OTP digit inputs (gate card) ────────────────────────────── */
.otp-digit {
  flex: 1;
  height: 52px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white, #ffffff);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-digit:focus {
  border-color: var(--red, #9d2420);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(157,36,32,0.1);
}

/* === OVERVIEW SCENE (scenic background card) === */
.overview-scene {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  min-height: 300px;
  margin-bottom: 1rem;
}

.overview-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events: none;
}

.overview-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border-left: 4px solid var(--orange);
  padding: 2rem 2.2rem;
  max-width: 540px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

.overview-card h2 {
  font-family: var(--font-display) !important;
  font-size: 1.7rem !important;
  font-weight: 400 !important;
  color: var(--dark) !important;
  margin-top: 0 !important;
  margin-bottom: 0.4rem !important;
}

.overview-card h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin-top: 0.45rem;
  margin-bottom: 1rem;
}

.overview-card p {
  font-size: 0.93rem !important;
  line-height: 1.8 !important;
  color: #3a3a3a !important;
  margin-bottom: 0.9rem !important;
}

.overview-card p:last-child { margin-bottom: 0 !important; }

/* === OVERVIEW CARD FLOAT (styled white card inside overview-free) === */
.overview-card-float {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  border-left: 4px solid var(--orange);
  padding: 2.2rem 2.4rem;
  max-width: 580px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  margin-bottom: 1rem;
}
.overview-card-float h2 {
  font-family: var(--font-display) !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: #181818 !important;
  margin: 0 0 0.3rem 0 !important;
}
.overview-card-float .o-rule {
  width: 40px; height: 2px;
  background: var(--orange);
  margin-bottom: 1.1rem;
}
.overview-card-float p {
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #6b6560 !important;
  margin-bottom: 0.9rem !important;
}
.overview-card-float p:last-child { margin-bottom: 0 !important; }

/* Exempt overview card from content-gate blur */
.detail-main.locked .overview-card-float,
.detail-main.locked .overview-card-float * {
  filter: none !important;
  opacity: 1 !important;
  user-select: auto !important;
  pointer-events: auto !important;
}

/* === PAGE BACKGROUND (set via loadPackagePage from JSON bg_image_url) === */
body.has-page-bg::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 35%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  opacity: 0.50;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* === DEV PREVIEW BANNER === */
.dev-preview-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a1a; color: #ef7e19;
  padding: 0.45rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(239,126,25,0.35);
}
.dev-preview-bar span { opacity: 0.55; font-weight: 400; }
.dev-preview-bar button {
  background: rgba(239,126,25,0.12); border: 1px solid rgba(239,126,25,0.3);
  color: #ef7e19; padding: 0.2rem 0.65rem; font-size: 0.68rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.04em;
}
body.dev-preview-active { padding-top: 34px; }
