/* ============================================================
   style.css — Wizarding Edinburgh
   www.magicaledinburgh.com
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --midnight:    #0D0A0F;
  --dungeon:     #13101A;
  --obsidian:    #1E1825;
  --veil:        #2A2035;
  --gold:        #C9A84C;
  --gold-dim:    rgba(201,168,76,0.14);
  --gold-line:   rgba(201,168,76,0.25);
  --enchant:     #9B7EC8;
  --mist:        #8AABBD;
  --parchment:   #E8DFC8;
  --parchment-dim: #9B8E7A;
  --stone:       #5A5250;
  --ember:       #C47A5A;
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; color-scheme: dark; }

body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--parchment);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 3px; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--gold); color: var(--midnight);
  font-family: var(--font-heading); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 2px; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(13,10,15,0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gold-line);
  transition: padding 0.35s ease;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400;
  color: var(--gold); letter-spacing: 0.04em;
}

nav ul { display: flex; list-style: none; gap: 2.5rem; }

nav ul li a {
  font-family: var(--font-heading);
  font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--parchment-dim);
  transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active { color: var(--gold); }

.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--midnight); background: var(--gold);
  padding: 0.58rem 1.4rem; border-radius: 3px;
  transition: opacity 0.2s, transform 0.15s;
}

.nav-cta:hover { opacity: 0.86; transform: translateY(-1px); }

/* Mobile burger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}

.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--midnight); background: var(--gold);
  padding: 0.88rem 2.2rem; border-radius: 3px;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.86; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold); background: transparent;
  padding: 0.88rem 2.2rem; border-radius: 3px;
  border: 1px solid var(--gold-line); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════ */
section { padding: 6rem 4rem; }

.section-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.9rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; color: var(--parchment);
  line-height: 1.18; letter-spacing: 0.02em;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem; font-style: italic;
  color: var(--parchment-dim); line-height: 1.85;
  margin-top: 0.8rem;
}

.section-header        { margin-bottom: 3.5rem; }
.section-header-center { text-align: center; margin-bottom: 3.5rem; }

.gold-rule {
  display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem;
}
.gold-rule-center { justify-content: center; }
.gold-rule-line   { height: 1px; width: 60px; background: var(--gold-line); }
.gold-rule-line.right { background: linear-gradient(to left, transparent, var(--gold-line)); }
.gold-rule-diamond {
  width: 5px; height: 5px;
  background: var(--gold); transform: rotate(45deg); opacity: 0.65;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}

.hero-bg svg { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }

.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 25%, var(--midnight) 78%);
}

.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--midnight));
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.65rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem;
}

.hero-rune { display: inline-block; margin: 0 0.6rem; opacity: 0.55; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400; color: var(--parchment);
  line-height: 1.12; letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.hero-subtitle-gold {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  color: var(--gold); display: block; margin-bottom: 1.8rem;
}

.hero-ornament {
  display: flex; align-items: center;
  justify-content: center; gap: 1rem; margin-bottom: 1.8rem;
}

.ornament-line       { flex: 1; max-width: 130px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-line)); }
.ornament-line.right { background: linear-gradient(to left, transparent, var(--gold-line)); }
.ornament-diamond    { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); opacity: 0.65; }

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-style: italic; color: var(--parchment-dim);
  line-height: 1.9; max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex; gap: 1rem;
  align-items: center; justify-content: center; flex-wrap: wrap;
}

.hero-stats {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid var(--veil);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem; color: var(--gold);
  display: block; margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.88rem; font-style: italic; color: var(--stone);
}

/* ══════════════════════════════════════════
   TOURS
══════════════════════════════════════════ */
#tours { background: var(--dungeon); }

.tours-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: end; margin-bottom: 3.5rem;
}

.tours-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

.tour-card {
  background: var(--midnight);
  border: 1px solid var(--veil); border-radius: 4px;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.32s ease, border-color 0.32s ease;
}

.tour-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
  opacity: 0; transition: opacity 0.32s;
}

.tour-card:hover { transform: translateY(-5px); border-color: var(--gold-line); }
.tour-card:hover::before { opacity: 1; }

.tour-card-img { height: 185px; position: relative; overflow: hidden; }
.tour-card-img svg { width: 100%; height: 100%; display: block; position: absolute; top: 0; left: 0; }
.tour-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* SVG illustration fallback (used until real photos are added) */
.tour-card-img svg { width: 100%; height: 100%; }

.tour-badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-family: var(--font-heading); font-size: 0.55rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.26rem 0.72rem; border-radius: 2px; border: 1px solid;
}

.badge-gold    { color: var(--gold);    border-color: rgba(201,168,76,0.4);  background: rgba(13,10,15,0.85); }
.badge-purple  { color: var(--enchant); border-color: rgba(155,126,200,0.4); background: rgba(13,10,15,0.85); }
.badge-mist    { color: var(--mist);    border-color: rgba(138,171,189,0.4); background: rgba(13,10,15,0.85); }
.badge-ember   { color: var(--ember);   border-color: rgba(196,122,90,0.4);  background: rgba(13,10,15,0.85); }

.tour-body { padding: 1.6rem; }

.tour-meta { display: flex; gap: 1.2rem; margin-bottom: 0.8rem; flex-wrap: wrap; }

.tour-meta-item {
  font-family: var(--font-heading);
  font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone);
}

.tour-meta-item span { color: var(--parchment-dim); }

.tour-name {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 600;
  color: var(--parchment); letter-spacing: 0.04em;
  line-height: 1.35; margin-bottom: 0.6rem;
}

.tour-desc {
  font-family: var(--font-body);
  font-size: 0.95rem; font-style: italic;
  color: var(--parchment-dim); line-height: 1.72; margin-bottom: 1.3rem;
}

.tour-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; border-top: 1px solid var(--veil);
}

.tour-price       { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.04em; }
.tour-price-label { font-family: var(--font-body); font-size: 0.75rem; font-style: italic; color: var(--stone); display: block; }

.tour-btn {
  font-family: var(--font-heading); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  padding: 0.52rem 1.15rem; border-radius: 2px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}

.tour-btn:hover { background: var(--gold); color: var(--midnight); }

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
#gallery {
  background: var(--midnight); position: relative;
}

#gallery::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 265px 210px;
  gap: 10px;
}

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--veil);
  cursor: pointer;
}
.gallery-item svg { width: 100%; height: 100%; display: block; position: absolute; top: 0; left: 0; }

.gallery-item:first-child { grid-row: span 2; }

.gallery-item img,
.gallery-item svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,10,15,0.88) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.35s;
  display: flex; align-items: flex-end; padding: 1.2rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-family: var(--font-heading); font-size: 0.63rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--parchment);
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
#testimonials { background: var(--dungeon); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.testimonial-card {
  background: var(--midnight); border: 1px solid var(--veil);
  border-radius: 4px; padding: 2rem; position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display); font-size: 4.5rem;
  color: var(--gold); opacity: 0.12;
  position: absolute; top: 0.4rem; left: 1.2rem; line-height: 1;
}

.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }

.star {
  width: 10px; height: 10px; background: var(--gold);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

.testimonial-text {
  font-family: var(--font-body); font-size: 1rem; font-style: italic;
  color: var(--parchment-dim); line-height: 1.82; margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-heading); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}

.testimonial-from {
  font-family: var(--font-body); font-size: 0.88rem;
  font-style: italic; color: var(--stone); margin-top: 0.2rem;
}

/* ══════════════════════════════════════════
   BOOKING
══════════════════════════════════════════ */
#booking { background: var(--midnight); position: relative; }

#booking::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.booking-layout {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 5rem; align-items: start;
  max-width: 1100px; margin: 0 auto;
}

.booking-perks { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.booking-perk {
  display: flex; align-items: flex-start; gap: 0.9rem;
  font-family: var(--font-body); font-size: 1rem;
  font-style: italic; color: var(--parchment-dim); line-height: 1.6;
}

.perk-rune {
  font-family: var(--font-heading); font-size: 0.58rem;
  color: var(--gold); margin-top: 0.32rem; flex-shrink: 0;
}

.booking-form-wrap {
  background: var(--dungeon); border: 1px solid var(--veil);
  border-radius: 4px; padding: 2.5rem; position: relative;
}

.booking-form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.form-title {
  font-family: var(--font-heading); font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem; text-align: center;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block; font-family: var(--font-heading);
  font-size: 0.57rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.78rem 1rem;
  background: var(--midnight); border: 1px solid var(--veil);
  border-radius: 3px; color: var(--parchment);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--stone); font-style: italic; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold-line); }

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--ember); }

/* ── Native date / time pickers ──
   The blanket appearance:none above hides the calendar button on Safari
   and makes the indicator near-invisible on the dark theme in Chrome.
   Restore the native picker UI on these inputs only, and repaint the
   calendar-picker indicator in gold so it stands out on --midnight. */
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="datetime-local"] {
  appearance: auto;
  -webkit-appearance: auto;
  color-scheme: dark;
  cursor: pointer;
  min-height: 2.85rem; /* match other inputs since native UI ignores our padding */
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  /* Recolour the default dark icon to gold (--gold #C9A84C) */
  filter: invert(74%) sepia(31%) saturate(545%) hue-rotate(5deg) brightness(92%) contrast(84%);
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.field-error {
  display: none; font-family: var(--font-body);
  font-size: 0.8rem; font-style: italic;
  color: var(--ember); margin-top: 0.3rem;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A5250' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}

.form-group select option { background: var(--dungeon); color: var(--parchment); }
.form-group textarea { height: 100px; resize: none; }

.char-count {
  font-family: var(--font-heading); font-size: 0.55rem;
  letter-spacing: 0.1em; color: var(--stone);
  text-align: right; margin-top: 0.3rem;
}

.submit-btn {
  width: 100%; font-family: var(--font-heading);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--midnight); background: var(--gold);
  border: none; padding: 1rem; border-radius: 3px;
  cursor: pointer; margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.15s;
}

.submit-btn:hover:not(:disabled) { opacity: 0.86; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* #form-success removed — see .form-success */

.success-icon {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--gold); margin-bottom: 1rem; display: block;
}

.success-title {
  font-family: var(--font-heading); font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 0.6rem;
}

.success-text {
  font-family: var(--font-body); font-size: 1rem;
  font-style: italic; color: var(--parchment-dim); line-height: 1.7;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--dungeon); border-top: 1px solid var(--veil);
  padding: 4rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
}

.footer-logo {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--gold); display: block; margin-bottom: 0.9rem;
}

.footer-tagline {
  font-family: var(--font-body); font-size: 0.95rem;
  font-style: italic; color: var(--stone); line-height: 1.75;
}

.footer-col-title {
  font-family: var(--font-heading); font-size: 0.58rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: block;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links li a {
  font-family: var(--font-body); font-size: 0.95rem;
  font-style: italic; color: var(--stone);
  transition: color 0.2s;
}

.footer-links li a:hover { color: var(--parchment-dim); }

.footer-bottom {
  background: var(--midnight); border-top: 1px solid var(--veil);
  padding: 1.2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-heading); font-size: 0.56rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  section { padding: 5rem 2.5rem; }
  nav { padding: 1rem 2rem; }
  .tours-intro { gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }

  nav { padding: 1rem 1.5rem; }
  nav ul, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  nav ul.open {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(13,10,15,0.98);
    padding: 2rem 1.5rem; gap: 1.5rem;
    border-bottom: 1px solid var(--gold-line);
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .tours-intro   { grid-template-columns: 1fr; gap: 1.5rem; }
  .tours-grid    { grid-template-columns: 1fr; }

  .gallery-grid  {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-item:first-child { grid-column: span 2; grid-row: auto; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .booking-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row       { grid-template-columns: 1fr; }

  footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; padding: 1rem 1.5rem; text-align: center; }
}

/* ══════════════════════════════════════════
   LANGUAGE TOGGLE
══════════════════════════════════════════ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.22rem 0.3rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.18rem 0.28rem;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, opacity 0.2s;
  line-height: 0;
  opacity: 0.55;
}

.lang-btn .flag {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  overflow: hidden;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}

.lang-btn:focus-visible {
  border-color: var(--gold);
}

.lang-btn.active {
  opacity: 1;
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
}

.lang-btn.active .flag {
  box-shadow: 0 0 0 1px var(--gold), 0 2px 6px rgba(0,0,0,0.45);
}

.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;
}

/* Legacy divider from the text toggle — keep hidden in case it lingers in a cached copy */
.lang-divider { display: none; }

/* Hide nav-cta on very small screens, keep lang toggle */
@media (max-width: 768px) {
  .nav-right { gap: 0.8rem; }
  .nav-cta   { display: none; }
}

@media (max-width: 480px) {
  .lang-toggle { padding: 0.18rem 0.25rem; gap: 0.25rem; }
  .lang-btn    { padding: 0.15rem 0.22rem; }
  .lang-btn .flag { width: 22px; height: 14px; }
}

/* ══════════════════════════════════════════
   TOURS — TABS (Public / Private)
══════════════════════════════════════════ */
.tours-tabs {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-bottom: 2.5rem;
}

.tours-tab-btn {
  font-family: var(--font-heading); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); background: transparent;
  border: 1px solid var(--veil); border-radius: 3px;
  padding: 0.65rem 1.8rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tours-tab-btn:hover { color: var(--gold); border-color: var(--gold-line); }
.tours-tab-btn.active { background: var(--gold); color: var(--midnight); border-color: var(--gold); }

.tours-panel { display: none; }
.tours-panel.active { display: block; }

.private-note {
  font-family: var(--font-body); font-size: 1rem; font-style: italic;
  color: var(--parchment-dim); text-align: center;
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7;
}

/* ── Tour grids ── */
.tours-grid-4 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

.tours-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* ── Tour card internals ── */
.tour-schedule {
  font-family: var(--font-heading); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}

.tour-meta-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem;
}

.tour-meta-pill {
  font-family: var(--font-heading); font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); background: var(--obsidian);
  border: 1px solid var(--veil); border-radius: 2px;
  padding: 0.25rem 0.65rem;
}

.tour-note, .tour-extras {
  font-family: var(--font-body); font-size: 0.85rem; font-style: italic;
  color: var(--enchant); margin-bottom: 0.8rem; line-height: 1.5;
}

.tour-extras { color: var(--mist); }

/* ── Pricing block ── */
.tour-pricing { margin-bottom: 1.2rem; }

.price-main {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  font-family: var(--font-heading); font-size: 1.2rem;
  color: var(--gold); margin-bottom: 0.3rem;
}

.price-free { color: var(--mist); }

.price-label {
  font-family: var(--font-body); font-size: 0.8rem;
  font-style: italic; color: var(--stone);
}

.price-was {
  font-family: var(--font-heading); font-size: 0.75rem;
  color: var(--stone); text-decoration: line-through;
  letter-spacing: 0.05em;
}

.price-conc {
  font-family: var(--font-body); font-size: 0.82rem;
  font-style: italic; color: var(--parchment-dim);
}

.price-kids {
  font-family: var(--font-body); font-size: 0.82rem;
  font-style: italic; color: var(--enchant);
}

.price-note {
  font-family: var(--font-body); font-size: 0.8rem;
  font-style: italic; color: var(--stone); margin-top: 0.3rem;
}

/* ── Featured / Private card variants ── */
.tour-card-featured { border-color: rgba(201,168,76,0.3); }
.tour-card-featured::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(201,168,76,0.2);
}

.tour-card-private { border-color: rgba(155,126,200,0.25); }

/* Badge variants */
.badge-free   { color: var(--mist);    border-color: rgba(138,171,189,0.4); background: rgba(13,10,15,0.85); }
.badge-amber  { color: #EF9F27;        border-color: rgba(239,159,39,0.4);  background: rgba(13,10,15,0.85); }
.badge-private{ color: var(--enchant); border-color: rgba(155,126,200,0.4); background: rgba(13,10,15,0.85); }

/* ══════════════════════════════════════════
   CANCELLATION POLICY
══════════════════════════════════════════ */
#policy { background: var(--dungeon); }

.policy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.policy-card {
  background: var(--midnight); border: 1px solid var(--veil);
  border-radius: 4px; padding: 2rem; position: relative;
}

.policy-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.policy-icon {
  font-family: var(--font-heading); font-size: 0.8rem;
  color: var(--gold); opacity: 0.4; margin-bottom: 1rem; display: block;
}

.policy-title {
  font-family: var(--font-heading); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 1.2rem;
}

.policy-block { margin-bottom: 1.2rem; }
.policy-block:last-child { margin-bottom: 0; }

.policy-who {
  font-family: var(--font-heading); font-size: 0.55rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem;
}

.policy-block p {
  font-family: var(--font-body); font-size: 0.9rem;
  font-style: italic; color: var(--parchment-dim); line-height: 1.7;
}

/* ══════════════════════════════════════════
   BOOKING — THREE TABS
══════════════════════════════════════════ */
.book-tabs {
  display: flex; border-bottom: 1px solid var(--veil);
  margin-bottom: 1.8rem; gap: 0;
}

.book-tab-btn {
  font-family: var(--font-heading); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); background: transparent;
  border: none; border-bottom: 2px solid transparent;
  padding: 0.7rem 1rem; cursor: pointer; flex: 1;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.book-tab-btn:hover { color: var(--parchment-dim); }
.book-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.booking-form-panel { display: none; }
.booking-form-panel.active { display: block; }

/* Checkbox group for private form */
.checkbox-group {
  display: flex; flex-direction: column; gap: 0.6rem;
}

.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-family: var(--font-body); font-size: 0.95rem;
  font-style: italic; color: var(--parchment-dim); cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px; margin-top: 3px;
  accent-color: var(--gold); cursor: pointer; flex-shrink: 0;
}

.form-note {
  font-family: var(--font-body); font-size: 0.88rem; font-style: italic;
  color: var(--mist); background: rgba(138,171,189,0.07);
  border: 1px solid rgba(138,171,189,0.15); border-radius: 3px;
  padding: 0.65rem 0.9rem; margin-bottom: 1.2rem; line-height: 1.6;
}

.deposit-note { color: var(--gold); background: var(--gold-dim); border-color: var(--gold-line); }

/* Success message */
.form-success {
  display: none; text-align: center; padding: 2.5rem 1rem;
}

.success-icon {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--gold); margin-bottom: 1rem; display: block;
}

.success-title {
  font-family: var(--font-heading); font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 0.6rem;
}

.success-text {
  font-family: var(--font-body); font-size: 1rem;
  font-style: italic; color: var(--parchment-dim); line-height: 1.7;
}

/* ══════════════════════════════════════════
   RESPONSIVE — new sections
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tours-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tours-grid-4 { grid-template-columns: 1fr; }
  .tours-grid-3 { grid-template-columns: 1fr; }
  .policy-grid  { grid-template-columns: 1fr; }
  .tours-tabs   { flex-direction: column; align-items: center; }
  .tours-tab-btn { width: 100%; max-width: 320px; text-align: center; }
  .book-tabs    { flex-direction: column; }
  .book-tab-btn { border-bottom: none; border-left: 2px solid transparent; text-align: left; padding: 0.6rem 1rem; }
  .book-tab-btn.active { border-left-color: var(--gold); border-bottom-color: transparent; }
}

/* ══════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════ */
#about {
  background: var(--dungeon);
  position: relative;
}

#about::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

/* ── Photo + bio row ── */
.about-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-photo-wrap {
  /* Not sticky — photo is small, doesn't need to follow scroll */
}

.about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--gold-line);
  filter: grayscale(10%) sepia(8%);
  transition: filter 0.4s, border-color 0.4s;
}

.about-photo:hover {
  filter: none;
  border-color: var(--gold);
}

.about-photo-caption {
  margin-top: 0.9rem;
  text-align: center;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--parchment);
  display: block;
  margin-bottom: 0.25rem;
  text-align: center;
}

.about-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gold);
  display: block;
  text-align: center;
}

/* ── Quote ── */
.about-quote {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.7;
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  margin: 0 0 2rem;
}

/* ── Bio paragraphs ── */
.about-bio p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--parchment-dim);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about-bio p:last-child { margin-bottom: 0; }

/* ── Bottom: Revelio + creds grid + filmography ── */
.about-bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--veil);
}

/* Revelio Bureau — full-width featured card */
.about-card-revelio {
  margin-bottom: 1.5rem;
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.04);
}

/* Three credential cards in a row */
.about-creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ── Shared card styles ── */
.about-card {
  background: var(--midnight);
  border: 1px solid var(--veil);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.about-card-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.55rem;
}

.about-card-value {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--parchment-dim);
  line-height: 1.65;
  display: block;
}

/* ── Filmography collapsible ── */
.about-filmography { margin-top: 0.5rem; }

.filmography-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--midnight);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.filmography-toggle:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}

.filmography-toggle[aria-expanded="true"] { border-color: var(--gold); }

.filmography-toggle-label { pointer-events: none; }

.filmography-toggle-icon {
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  display: inline-block;
  transition: transform 0.25s ease;
}

.filmography-toggle[aria-expanded="true"] .filmography-toggle-icon {
  transform: rotate(180deg);
}

/* The grid — hidden by default via HTML [hidden] attribute */
/* [hidden] override — Safari ignores [hidden] when display is set by CSS */
.film-grid[hidden] { display: none !important; }

/* Safari fix: explicit [hidden] override prevents display:grid overriding the attribute */
.film-grid[hidden] { display: none !important; }

.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.film-grid:not([hidden]) {
  animation: fadeUp 0.3s ease both;
}

/* Animation fires when grid becomes visible */
.film-grid:not([hidden]) {
  animation: fadeUp 0.3s ease both;
}

.film-item {
  background: var(--midnight);
  border: 1px solid var(--veil);
  border-radius: 3px;
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}

.film-item em {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--parchment);
  display: block;
  margin-bottom: 0.2rem;
}

.film-item span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--stone);
}

/* About section — responsive */
@media (max-width: 900px) {
  .about-hero           { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-wrap     { margin: 0 auto; }
  .about-creds-grid     { grid-template-columns: 1fr; }
  .film-grid            { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .film-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   TOUR CARD — BUTTON ROW
══════════════════════════════════════════ */
.tour-btn-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tour-btn-book { flex: 1; text-align: center; }

.tour-btn-more {
  color: var(--parchment-dim);
  background: transparent;
  border-color: var(--veil);
  flex: 1;
  text-align: center;
}

.tour-btn-more:hover { background: var(--obsidian); color: var(--parchment); border-color: var(--stone); }

/* ══════════════════════════════════════════
   TOUR MODALS
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(7,5,10,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: var(--dungeon);
  border: 1px solid var(--veil);
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 660px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.modal-overlay.open .modal-panel { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--stone);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--gold); }

.modal-content { display: none; }
.modal-content.active { display: block; }

.modal-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
}

.modal-panel h3.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--parchment);
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.modal-meta {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--veil);
}

.modal-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--parchment-dim);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.modal-body p:last-child { margin-bottom: 0; }

.modal-coming-soon {
  margin: 1.8rem 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--veil);
  border-radius: 3px;
}

.modal-coming-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.modal-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--veil);
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
}

.modal-price-free { color: var(--mist); }

.modal-price-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--stone);
}

.modal-conc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--parchment-dim);
  width: 100%;
}

.modal-was {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--stone);
  text-decoration: line-through;
  letter-spacing: 0.05em;
}

.modal-book-btn { width: 100%; text-align: center; }

/* Scroll lock when modal open */
body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .modal-panel { padding: 2rem 1.5rem; max-height: 92vh; }
  .tour-btn-row { flex-direction: column; }
  .tour-btn-book, .tour-btn-more { flex: none; width: 100%; }
}

/* ══════════════════════════════════════════
   MISSING CLASS FIXES (v5 patch)
══════════════════════════════════════════ */

/* Right column of .about-hero — needs min-width to prevent grid overflow */
.about-bio-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Wraps form fields — hidden on success via JS */
.form-fields {
  display: block;
}

/* Hero h1 — referenced in animations.css for staggered entrance */
.hero-title {
  /* Inherits all styles from h1 selector */
}
