/* ==========================================================================
   Sections 01–08 · envelope, passport, letter, couple, journey, date, venue
   ========================================================================== */

/* ---------- 01 · Envelope opening ---------- */
.envelope-screen { display: none; }
.js .envelope-screen {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 26px;
  padding: 80px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  color: var(--cream); text-align: center;
  background: radial-gradient(80% 55% at 50% 42%, rgba(164, 119, 79, .28), transparent 70%), var(--tex-leather), var(--brown-900);
  transition: opacity .6s var(--ease), visibility .6s;
}
.envelope-screen__map { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--map-cream) center 40% / 160% auto no-repeat; opacity: .07; }
.envelope-screen__mark { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; }
.envelope-screen__note { font-size: clamp(1.9rem, 7vw, 2.4rem); color: var(--cream); }

.envelope {
  position: relative; width: min(82vw, 340px); aspect-ratio: 1.42;
  perspective: 1400px; transform: rotate(-4deg); cursor: pointer;
  filter: drop-shadow(0 22px 26px rgba(20, 10, 4, .45));
  animation: envelope-float 5s ease-in-out infinite;
  transition: transform .5s var(--ease);
}
.envelope:hover { animation-play-state: paused; transform: rotate(-2deg) translateY(-6px); }
.envelope > * { position: absolute; }
.envelope__back { inset: 0; border-radius: 6px; background: linear-gradient(160deg, #E4C9A3, #D2B089); box-shadow: inset 0 0 0 1px rgba(118, 80, 47, .12); }
.envelope__letter {
  inset: 5% 6% 8%; z-index: 2; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding-top: 8%;
  color: var(--brown-800);
  background: linear-gradient(180deg, transparent 55%, rgba(118, 80, 47, .14)), var(--tex-paper), var(--paper);
  box-shadow: 0 0 0 1px rgba(118, 80, 47, .15), 0 -2px 8px rgba(75, 42, 19, .12);
}
.envelope__letter::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(195, 160, 107, .55); border-radius: 2px; pointer-events: none; }
.envelope__letter-mark { font-size: .8rem; letter-spacing: .3em; font-weight: 600; }
.envelope__letter-title { font-size: 2rem; }
.envelope__pocket {
  inset: 0; z-index: 3; border-radius: 6px;
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(to bottom right, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(175deg, #F8E8D0 30%, #EDD4B2);
  color: var(--brown-800);
}
.envelope__pocket::before {
  content: ""; 
  /* position: absolute;  */
  inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), rgba(118, 80, 47, .22) 50%, transparent calc(50% + .6px)) left bottom / 50% 42% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .6px), rgba(118, 80, 47, .22) 50%, transparent calc(50% + .6px)) right bottom / 50% 42% no-repeat;
}
/* soft shade cast by the pocket's V-edge, so the letter looks tucked inside */
.envelope__pocket::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(118, 80, 47, .16), transparent 14%);
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 9%, 50% 55%, 0 9%);
}
.envelope__names { position: absolute; left: 0; right: 0; top: 60%; font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
.envelope__names .amp { font-size: .8em; }
.envelope__caption { position: absolute; left: 0; right: 0; top: 79%; font-size: .58rem; letter-spacing: .26em; }
.envelope__date { position: absolute; left: 0; right: 0; top: 87%; font-size: .8rem; letter-spacing: .2em; font-weight: 600; }
.envelope__flap {
  inset: 0; z-index: 4; transform-origin: top center; backface-visibility: visible;
  clip-path: polygon(0 0, 100% 0, 51.5% 46%, 50% 47.2%, 48.5% 46%);
  background: linear-gradient(180deg, #E2C59D, #F2DEC1 72%);
}
.wax-seal {
  z-index: 5; left: 50%; top: 47%; width: 58px; height: 58px; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 47% 53% 50% 50%;
  font-family: var(--font-serif); font-weight: 600; font-size: .95rem; color: #F2C9A8; letter-spacing: .02em;
  background: radial-gradient(circle at 35% 30%, #A8452F, #7A2617 65%, #5E1A0F);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .14), inset 0 0 0 6px rgba(255, 190, 160, .18), 0 3px 6px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
/* glow ring fades via opacity (compositor-only) instead of repainting box-shadow every frame */
.wax-seal::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 9px rgba(245, 223, 194, .16);
  opacity: 0; animation: seal-glow 2.4s ease-in-out infinite;
}
@keyframes envelope-float { 50% { transform: rotate(-4deg) translateY(-6px); } }
@keyframes seal-glow { 50% { opacity: 1; } }

/* Call to action */
.btn--cta {
  position: relative; min-width: 190px; min-height: 52px;
  color: var(--brown-900); font-weight: 600;
  background: linear-gradient(135deg, #FFF3E2, var(--cream) 55%, #E9C99F);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn--cta::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--cream); animation: cta-ring 2.4s var(--ease) infinite; pointer-events: none;
}
.btn--cta:hover { background: linear-gradient(135deg, #FFF8EE, #F9E6CC 55%, #EFD3AC); }
.btn--cta .icon { width: 20px; height: 20px; }
@keyframes cta-ring { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
.envelope-screen__hint { margin: -12px 0 0; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .08em; color: rgba(245, 223, 194, .75); }

/* Opening sequence — one class, choreographed with delays (set by js/envelope.js) */
.envelope-screen.is-opening .envelope { animation: envelope-settle .6s var(--ease) forwards; cursor: default; }
.envelope-screen.is-opening .wax-seal { animation: seal-break .45s ease-in forwards; }
.envelope-screen.is-opening .envelope__flap { animation: flap-open .75s cubic-bezier(.45, .05, .25, 1) .3s both, fade-out .5s ease 1.55s forwards; }
.envelope-screen.is-opening .envelope__letter { animation: letter-rise 1.35s cubic-bezier(.33, 0, .2, 1) .9s both; }
.envelope-screen.is-opening .envelope__back,
.envelope-screen.is-opening .envelope__pocket { animation: fade-out .5s ease 1.55s forwards; }
.envelope-screen.is-opening .envelope-screen__note,
.envelope-screen.is-opening .envelope-screen__hint,
.envelope-screen.is-opening #open-letter { opacity: 0; transition: opacity .4s; }
.envelope-screen.is-done { opacity: 0; visibility: hidden; }

@keyframes envelope-settle { from { transform: rotate(-4deg); } to { transform: rotate(0deg) translateY(8%); } }
@keyframes seal-break {
  35% { transform: scale(1.12) rotate(-6deg); opacity: 1; }
  100% { transform: scale(.7) rotate(-22deg) translateY(40%); opacity: 0; }
}
@keyframes flap-open {
  0% { transform: rotateX(0); z-index: 4; filter: brightness(1); }
  49% { z-index: 4; filter: brightness(.86); }
  51% { z-index: 1; filter: brightness(.86); }
  100% { transform: rotateX(180deg); z-index: 1; filter: brightness(.95); }
}
@keyframes letter-rise {
  0% { transform: translateY(0); z-index: 2; }
  52% { transform: translateY(-70%); z-index: 2; }
  53% { z-index: 7; }
  100% { transform: translateY(-14%) scale(1.16); z-index: 7; }
}
@keyframes fade-out { to { opacity: 0; } }

/* ---------- 02 · Passport hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding-top: 90px; padding-bottom: 40px; text-align: center;
}
.hero__map { position: absolute; inset: 0; z-index: -1; background: var(--map-cream) center 30% / 180% auto no-repeat; opacity: .08; }
.hero__compass { position: absolute; z-index: -1; left: -60px; bottom: 60px; width: 220px; height: 220px; color: var(--gold); opacity: .16; }
.hero.section--leather {
  background:
    radial-gradient(60% 40% at 50% 44%, rgba(255, 240, 220, .55), transparent 72%),
    radial-gradient(120% 70% at 50% 110%, rgba(75, 42, 19, .35), transparent 60%),
    var(--tex-paper),
    linear-gradient(180deg, #BE9670, #A97E57 55%, #94683F);
}
.hero .hero__map { opacity: .14; }
.hero .hero__compass { color: var(--ivory); opacity: .22; }
.hero .passport { box-shadow: 0 34px 50px -20px rgba(45, 22, 8, .75), 0 8px 18px -8px rgba(45, 22, 8, .5), inset 0 0 0 1px rgba(195, 160, 107, .25), inset 6px 0 14px -6px rgba(0, 0, 0, .5); }
.hero__tagline, .hero .scroll-cue { text-shadow: 0 2px 10px rgba(75, 42, 19, .45); }
.passport {
  position: relative; width: min(74vw, 300px); aspect-ratio: .7;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 34px 22px; color: var(--gold);
  border-radius: 8px 18px 18px 8px;
  background: radial-gradient(120% 90% at 70% 20%, rgba(255, 220, 170, .1), transparent 60%), var(--tex-leather), linear-gradient(135deg, #6E3F17, #50290F);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(195, 160, 107, .25), inset 6px 0 14px -6px rgba(0, 0, 0, .5);
  rotate: -3deg;
}
.passport::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(195, 160, 107, .4); border-radius: 4px 12px 12px 4px; pointer-events: none; }
.passport__chip { position: absolute; top: 22px; right: 24px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(195, 160, 107, .55); border-radius: 50%; }
.passport__chip .icon { width: 15px; height: 15px; rotate: -30deg; }
.passport__title {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.9rem, 9vw, 2.4rem); letter-spacing: .16em; line-height: 1;
  text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 225, 180, .18);
}
.passport__subtitle { font-family: var(--font-sans); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; }
.passport__emblem { width: 58%; margin: 6px 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); }
.passport__names { font-size: clamp(2.2rem, 10vw, 2.8rem); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.passport__date { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .3em; }
.hero__tagline { font-size: clamp(1.8rem, 7vw, 2.3rem); color: #FFF6EA; }
.scroll-cue {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 246, 234, .8); border-radius: 50%;
  color: #FFF6EA; background: rgba(75, 42, 19, .12); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- 03 · Invitation letter ---------- */
.letter { display: grid; gap: 34px; }
.letter__text { padding-top: 26px; }
.letter__dear { font-size: 1.3rem; font-style: italic; }
.letter__guest { font-size: clamp(2.7rem, 11vw, 4rem); color: var(--brown-800); margin: 0 0 18px; overflow-wrap: anywhere; }
.letter__photo { position: relative; max-width: 380px; width: 100%; justify-self: center; }
.letter__stamp { position: absolute; right: -8px; bottom: -24px; width: 92px; height: 92px; transform: rotate(-12deg); }
.is-visible .letter__stamp { animation: stamp-in .6s var(--ease) .5s both; }
.letter__trail { top: -46px; right: -6px; }
.signature { text-align: center; display: grid; gap: 2px; margin-top: 10px; }
.signature .script { font-size: clamp(2.4rem, 9vw, 3rem); color: var(--brown-800); }
.signature__date { font-family: var(--font-sans); font-size: .85rem; letter-spacing: .25em; }

.polaroid { padding: 10px 10px 36px; background: #fff; box-shadow: var(--shadow); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid--tilt-left { rotate: -2deg; }
.polaroid--tilt-right { rotate: 2deg; }

/* ---------- 04 · Bride & groom ---------- */
.couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.person { display: grid; gap: 8px; justify-items: center; }
.person__frame {
  position: relative; width: 100%; max-width: 250px; margin-top: 14px;
  padding: 8px 8px 0; background: #fff; border-radius: 3px;
  box-shadow: 0 14px 26px -14px rgba(75, 42, 19, .55), 0 2px 5px rgba(75, 42, 19, .12);
  rotate: -3deg; transition: rotate .5s var(--ease);
}
.person:last-of-type .person__frame { rotate: 3deg; }
.person__frame:hover { rotate: 0deg; }
/* washi tape */
.person__frame::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 64px; height: 22px; translate: -50% 0; rotate: -5deg;
  background: repeating-linear-gradient(90deg, rgba(195, 160, 107, .18) 0 6px, transparent 6px 12px), rgba(245, 223, 194, .82);
  box-shadow: 0 1px 2px rgba(75, 42, 19, .15);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.person:last-of-type .person__frame::before { rotate: 6deg; }
.person__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }
.person__caption { display: block; padding: 6px 0 10px; font-size: clamp(1.25rem, 5vw, 1.7rem); color: var(--brown-800); }
.person .label { color: var(--caramel); margin-top: 6px; }
.person__name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(.95rem, 3.6vw, 1.35rem); letter-spacing: .08em; text-transform: uppercase; color: var(--brown-800); line-height: 1.3; }
.couple__amp { font-size: clamp(2.4rem, 9vw, 3.6rem); color: var(--caramel); }
.families { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.family { padding: 18px 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .6); }
.family .label { color: var(--brown-800); font-weight: 600; margin-bottom: 8px; }
.family p { font-size: 1rem; line-height: 1.6; margin: 0; }
.blank { display: inline-block; min-width: 5.5em; border-bottom: 1px dotted var(--caramel); color: var(--caramel); font-style: italic; font-size: .9em; }

/* ---------- 05 · Journey route ---------- */
.route { position: relative; display: grid; gap: 40px; --p: 0; }
/* Dashed line drawn as a gradient: iOS Safari doesn't paint a 1.5px dashed border on a zero-width box. */
.route::before {
  content: ""; position: absolute; left: 6.25px; top: 8px; bottom: 8px; width: 1.5px;
  background: repeating-linear-gradient(to bottom, var(--caramel) 0 5px, transparent 5px 9px);
}
.route__plane { position: absolute; left: -2px; top: calc(var(--p) * (100% - 24px)); width: 20px; height: 20px; color: var(--brown-800); rotate: 90deg; z-index: 2; transition: top .15s linear; }
.milestone { position: relative; display: grid; grid-template-columns: 1fr 46%; gap: 16px; align-items: center; padding-left: 30px; }
.milestone::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--brown-800); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--caramel);
}
.milestone__year { font-family: var(--font-sans); font-size: .85rem; font-weight: 600; letter-spacing: .12em; color: var(--brown-800); }
.milestone__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; margin: 2px 0 4px; }
.milestone__caption { font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.milestone__place { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--caramel); margin-top: 6px; }
.milestone .polaroid { padding: 6px 6px 22px; }
.milestone .polaroid img { aspect-ratio: 4 / 3.4; }
.route__end { position: relative; display: block; margin: 20px 0 0 auto; }

/* ---------- 06 · Save the date ---------- */
.std { display: grid; justify-items: center; }
.date-card {
  position: relative; width: min(100%, 340px); padding: 34px 26px 26px; text-align: center;
  background: var(--tex-paper), var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.date-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(195, 160, 107, .5); border-radius: 8px; pointer-events: none; }
.date-card__stamp { position: absolute; top: -26px; right: -18px; width: 86px; height: 86px; transform: rotate(14deg); }
.date-card__weekday { font-style: italic; font-size: 1.35rem; }
.date-card__day { font-size: clamp(5rem, 24vw, 6.5rem); font-weight: 500; line-height: .95; color: var(--brown-800); }
.date-card__month { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin-top: 8px; }
.date-card__year { font-size: 1.7rem; letter-spacing: .12em; margin-top: 0; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: .72rem; }
.mini-cal span { display: grid; place-items: center; height: 28px; position: relative; }
.mini-cal .is-head { font-weight: 600; color: var(--caramel); font-size: .62rem; letter-spacing: .08em; }
.mini-cal .is-day { color: var(--cream); font-weight: 600; z-index: 0; }
.mini-cal .is-today { font-weight: 700; color: var(--brown-800); text-decoration: underline 1.5px var(--caramel); text-underline-offset: 4px; }
.mini-cal .is-day::before { content: ""; position: absolute; inset: 0 3px; z-index: -1; border-radius: 50%; background: var(--brown-800); }
.std .heart-trail { margin-top: 18px; }
.countdown { text-align: center; margin-top: 8px; }
.countdown .label { color: var(--brown-700); font-size: .66rem; }
.countdown__grid { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.countdown dd.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { 0% { opacity: .3; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
.countdown__grid div { display: flex; flex-direction: column-reverse; align-items: center; }
.countdown dd { min-width: 1.5em; text-align: center; font-size: 1.9rem; font-weight: 500; line-height: 1.1; color: var(--brown-800); font-variant-numeric: tabular-nums; }
.countdown dt { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 07 · Schedule & venue ---------- */
.info { display: grid; gap: 52px; }
.schedule { position: relative; display: grid; gap: 26px; }
.schedule::before { /* gradient, not a border: WebKit skips thin vertical dotted borders on empty boxes */
  content: ""; position: absolute; left: 66.5px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--caramel) 0 2px, transparent 2px 6px);
}
.event { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 38px; align-items: start; }
.event__icon { width: 44px; height: 44px; color: var(--brown-800); }
.event::after { content: ""; position: absolute; left: 63px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--brown-800); box-shadow: 0 0 0 3px var(--ivory); }
.event__time { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; letter-spacing: .08em; color: var(--brown-800); }
.event__title { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.event__note { font-style: italic; font-size: 1rem; color: var(--ink-soft); line-height: 1.4; }
.venue__head { display: flex; gap: 14px; align-items: flex-start; }
.venue__pin { width: 30px; height: 30px; color: var(--brown-800); margin-top: 2px; }
.venue__name { font-weight: 600; font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brown-800); line-height: 1.3; }
.venue__address { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.5; margin-top: 4px; }
.venue__art {
  width: 100%; margin-top: 26px; padding: 18px 16px 12px; border-radius: var(--radius);
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(164, 119, 79, .12)), var(--tex-paper), var(--ivory);
}

/* ---------- 08 · Map & directions ---------- */
.map-card {
  position: relative; max-width: 560px; margin-inline: auto; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #F8EFDF 0%, #F3E4CD 100%);
  border: 1px solid rgba(118, 80, 47, .18);
  box-shadow: 0 18px 40px rgba(75, 42, 19, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.map-card__inner { position: relative; aspect-ratio: 4 / 3; }
.map-card__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-bg { fill: #F7EDDC; }
.map-blocks rect { fill: rgba(211, 190, 158, .2); }
.map-roads path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-roads--minor path { stroke: rgba(182, 151, 111, .26); stroke-width: 7; }
.map-roads--main path { stroke: #FFF8EE; stroke-width: 18; filter: drop-shadow(0 1px 1px rgba(118, 80, 47, .14)); }
.map-card__route path {
  fill: none; stroke: #8B4B1F; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .55));
  transition: stroke-dashoffset 1.8s cubic-bezier(.22, .61, .36, 1) .25s;
}
.map-card.is-visible .map-card__route path { stroke-dashoffset: 0; }
.route-start circle:first-child { fill: #FFFAF2; stroke: #8B4B1F; stroke-width: 3; }
.route-start circle:last-child { fill: #8B4B1F; }
.map-pin path { fill: #B55B34; stroke: #FFFAF2; stroke-width: 3; filter: drop-shadow(0 8px 16px rgba(93, 48, 24, .18)); }
.map-pin circle { fill: #FFFAF2; }
.map-destination-label rect { fill: rgba(255, 250, 242, .92); stroke: rgba(118, 80, 47, .18); stroke-width: 1.2; }
.dest-title { font: 600 13px/1.2 var(--font-serif); fill: #6C4120; }
.dest-sub { font: 500 10px/1.2 var(--font-sans); fill: #8A6446; }
.road-name { fill: #8F6B4D; opacity: .95; }
.road-name--main { font: 600 10.5px/1 var(--font-sans); letter-spacing: .02em; }
.road-pill rect { fill: rgba(255, 250, 242, .96); stroke: rgba(118, 80, 47, .22); stroke-width: 1; }
.dest-leader { fill: none; stroke: rgba(139, 75, 31, .45); stroke-width: 1.2; stroke-dasharray: 2 3; stroke-linecap: round; }
.road-name--side { font: 500 9.5px/1 var(--font-sans); opacity: .8; }
.area-name { font: italic 500 13px/1 var(--font-serif); fill: #A28061; }
/* pin + label appear once the route has been drawn */
.map-pin, .map-destination-label { opacity: 0; transition: opacity .5s ease 1.8s; }
.map-card.is-visible .map-pin, .map-card.is-visible .map-destination-label { opacity: 1; }
