:root {
  --ivory: #faf6ef;
  --paper: #fffdf9;
  --sand: #f1e9dc;
  --ink: #2e2a27;
  --muted: #6b625b;
  --green: #2f4a3f;
  --green-deep: #22362e;
  --gold: #b8924a;
  --gold-light: #d9bf8c;
  /* Indian accents, used sparingly */
  --marigold: #e0a03a;
  --rose: #b4495b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --line: rgba(184, 146, 74, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
}

main { flex: 1; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--green); }

a { color: var(--green); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--rose); }

.ornament { width: 44px; height: 44px; color: var(--gold); }

/* Thin gold rule with a marigold bead in the middle */
.divider {
  width: 200px;
  height: 10px;
  margin: 1.5rem auto;
  background:
    radial-gradient(circle, var(--marigold) 3px, transparent 3.5px) center / 10px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / 88px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 88px 1px no-repeat;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--green);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--green); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--green); border-bottom-color: var(--marigold); }

.nav-links .nav-cta {
  border: 1px solid var(--green);
  padding: 0.45rem 1.1rem;
  color: var(--green);
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] { background: var(--green); color: var(--ivory); border-color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 6px 0;
  background: var(--green);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.5rem 1.5rem 5rem;
}

/* Faint mandala watermarks in the corners */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: url("/assets/mandala-watermark.svg") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}
.hero::before { top: -140px; left: -140px; }
.hero::after { bottom: -160px; right: -140px; }

/* Mughal-style arch framing the names */
.arch {
  position: relative;
  width: min(100%, 440px);
  min-height: 560px;
  margin: 0 auto;
  padding: 7.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold);
  overflow: visible;
}
.arch-frame path { vector-effect: non-scaling-stroke; }

.arch-content { position: relative; }

.arch .ornament {
  position: absolute;
  top: 2.6rem;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 5rem);
  line-height: 1.05;
  color: var(--green);
}
.names span { display: block; }
.names .amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.45em;
  color: var(--gold);
  margin: 0.15em 0;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.hero-date {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0;
  color: var(--ink);
}
.hero-place {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}
.countdown div {
  min-width: 86px;
  padding: 0.8rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.countdown span {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--green);
}
.countdown small {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 4rem); margin-top: 0.5rem; }
.page-hero .lede { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--green);
  border: 1px solid var(--green);
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { color: var(--ivory); background: var(--green-deep); border-color: var(--green-deep); }

.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.container { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }

.lede {
  max-width: 620px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--paper);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
}
.card h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.card p { margin: 0 0 0.75rem; }
.card p:last-child { margin-bottom: 0; }

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
a.card h3::after { content: " →"; color: var(--gold); font-family: var(--sans); font-weight: 300; }

.list { margin: 0; padding-left: 1.1rem; }
.list li { margin-bottom: 0.6rem; }
.list li::marker { color: var(--gold); }

.note { font-size: 0.95rem; font-style: italic; color: var(--muted); }

/* ---------- Venue + map ---------- */
.venue {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.venue h3 { font-size: 1.9rem; }
.venue address { font-style: normal; color: var(--muted); }

.map-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.map {
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--sand);
}
.map-fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.map-static { flex: 1; min-height: 0; }
.map-static img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-fallback p { margin: 0; padding: 0.9rem; }

.airports { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; align-content: start; }

.airport {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-light);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.airport:hover, .airport[aria-pressed="true"] { border-color: var(--gold); border-left-color: var(--marigold); }
.airport strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--green); }
.airport .code { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.15em; color: var(--gold); }
.airport .drive { display: block; font-size: 0.95rem; color: var(--muted); }

.airport-recommended {
  background: #fdf5e6;
  border-color: var(--marigold);
  border-left: 5px solid var(--marigold);
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
}
.airport-recommended strong { font-size: 1.5rem; }

.badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--marigold);
}

/* ---------- Hotels ---------- */
.map-layout-reverse { grid-template-columns: 1fr 1.3fr; align-items: start; }

.map-sticky { position: sticky; top: 5.5rem; }
.map-sticky .map { height: min(640px, calc(100vh - 7rem)); min-height: 0; }

.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: place;
}

.place {
  counter-increment: place;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.4rem;
}
.place h3 {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 1.35rem;
}
.place h3::before {
  content: counter(place);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--cat, var(--gold));
  transform: translateY(-2px);
}
.place address { font-style: normal; font-size: 0.92rem; color: var(--muted); margin: 0.3rem 0 0 2.3rem; }
.place p { margin: 0.6rem 0 0 2.3rem; font-size: 0.95rem; }
.place .drive { color: var(--green); font-weight: 400; }
.place .drive:empty { display: none; }

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.75rem 0 0 2.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-btn {
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--green);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--rose); }

/* ---------- Things to Do ---------- */
.cat-beaches { --cat: #3f7f86; }
.cat-village { --cat: #b4495b; }
.cat-family { --cat: #c8871e; }
.cat-outdoors { --cat: #2f4a3f; }
.cat-lajolla { --cat: #6d4c7d; }
.cat-sandiego { --cat: #b8924a; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cat, var(--gold-light));
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { color: var(--ivory); background: var(--green); border-color: var(--green); }

/* Numbering continues across category lists */
.activities { counter-reset: place; display: grid; gap: 2.5rem; }
.activities .places { counter-reset: none; }

.activity-group h2 {
  font-size: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--cat);
  display: inline-block;
}
.group-intro { margin: 0.6rem 0 1.25rem; color: var(--muted); }

.marker-place {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  color: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(46, 42, 39, 0.3);
  cursor: pointer;
}

.marker-venue,
.marker-airport {
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 42, 39, 0.3);
}
.marker-venue {
  width: 44px;
  height: 44px;
  background: var(--green);
  border: 2px solid var(--gold-light);
  color: var(--gold-light);
}
.marker-venue svg { width: 30px; height: 30px; }
.marker-airport {
  width: 30px;
  height: 30px;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  color: var(--green);
  font-size: 15px;
}
.marker-airport.recommended {
  width: 42px;
  height: 42px;
  background: var(--marigold);
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
  font-size: 20px;
}
.marker-hotel {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(46, 42, 39, 0.3);
  cursor: pointer;
}

.mapboxgl-popup-content { font-family: var(--sans); font-size: 0.9rem; padding: 0.6rem 0.9rem; }
.mapboxgl-popup-content strong { font-family: var(--serif); font-size: 1.1rem; color: var(--green); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--green-deep);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer p { margin: 0.25rem 0; }
.footer .ornament { width: 36px; height: 36px; color: var(--gold); margin-bottom: 0.25rem; }
.footer-names {
  font-family: var(--script);
  font-size: 2.2rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .map-layout,
  .map-layout-reverse { grid-template-columns: 1fr; }
  .map { min-height: 420px; }
  .map-layout-reverse .map-sticky { position: static; order: -1; }
  .map-sticky .map { height: 420px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: inline-block; padding: 0.85rem; }
  .nav-links .nav-cta { margin-top: 0.5rem; padding: 0.6rem 1.5rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 3.5rem 1.25rem; }
  .arch { min-height: 520px; padding: 6.5rem 1.75rem 2.5rem; }
  .countdown { gap: 0.6rem; }
  .countdown div { min-width: 74px; }
}

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

/* ---------- Password page ---------- */
.login-page main { display: grid; place-items: center; }
.login-page .hero { padding-top: 4rem; }

.login-form {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.login-form label {
  max-width: 18rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--muted);
}
.login-form input[type="password"] {
  width: 100%;
  max-width: 16rem;
  padding: 0.7rem 1rem;
  font: inherit;
  text-align: center;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}
.login-form input[type="password"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 160, 58, 0.25); }
.login-error { margin: 0; font-size: 0.95rem; color: var(--rose); }
