/* ════════════════════════════════════════════════════════════════
   LOVE ROUTE — a pastel navigation-app wedding invitation
   ════════════════════════════════════════════════════════════════ */
:root {
    --land: #f7efe4;
    --ink: #3a2c36;
    --ink-2: #5c4a56;
    --muted: #8e7d88;
    --line: #f0e4dc;
    --card: #ffffff;
    --soft: #fbf6f1;
    --rose: #e97a98;
    --rose-d: #cf5b7c;
    --rose-l: #fde7ee;
    --gold: #d79e6b;
    --gold-l: #f8e7d6;
    --mint: #7fc6a0;
    --mint-l: #dff3e7;
    --sky: #9db3e8;
    --grad: linear-gradient(120deg, #f08aa6 0%, #e98f97 55%, #dba06c 100%);
    --shadow: 0 10px 30px rgba(122, 61, 82, .14), 0 2px 6px rgba(122, 61, 82, .08);
    --f-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --f-disp: 'Fraunces', Georgia, serif;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    font: 400 15px/1.55 var(--f-ui);
    color: var(--ink);
    background: var(--land);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex-shrink: 0; }

/* ══════════ MAP ══════════ */
.map { position: fixed; inset: 0; z-index: 0; overflow: hidden; touch-action: none; }
.map-svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; cursor: grab; }
.map-svg.dragging { cursor: grabbing; }

.river { fill: none; stroke: #c4e2f3; stroke-width: 70; stroke-linecap: round; }
.river-hi { fill: none; stroke: #d9edf8; stroke-width: 22; stroke-linecap: round; stroke-dasharray: 60 90; opacity: .8; }
.roads-case path { fill: none; stroke: #ead9c8; stroke-width: 40; stroke-linecap: round; }
.roads path { fill: none; stroke: #fff; stroke-width: 32; stroke-linecap: round; }
.roads-mid path { fill: none; stroke: #f1e6dc; stroke-width: 2; stroke-dasharray: 14 16; }
.street-names text { font: 600 12px var(--f-ui); fill: #b8a594; letter-spacing: .06em; paint-order: stroke; stroke: #fff; stroke-width: 3px; }

.route-preview { fill: none; stroke: #e9a3b4; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .1 17; opacity: .9; }
.route-glow { fill: none; stroke: #f5a3b8; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.route-casing { fill: none; stroke: none; }
.route-prog { fill: none; stroke: url(#routeGrad); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }

.lm .flag { animation: flagWave 2.4s ease-in-out infinite; transform-origin: 0 -83px; transform-box: view-box; }
@keyframes flagWave { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-8deg); } }

.gps-ring { fill: rgba(233, 122, 152, .22); stroke: rgba(233, 122, 152, .5); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: gps 2.6s ease-out infinite; }
.gps-ring.r2 { animation-delay: 1.3s; }
@keyframes gps { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

/* pins */
.pin { cursor: pointer; }
.pin-drop { fill: #fff; stroke: var(--rose); stroke-width: 3; }
.pin-face { fill: var(--rose-l); }
.pin-ico { color: var(--rose-d); }
.pin-base { fill: rgba(122, 61, 82, .22); }
.pin-label { font: 700 14px var(--f-ui); fill: var(--ink-2); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; letter-spacing: .01em; }
.pin-check, .pin-check-i { opacity: 0; transition: opacity .3s; }
.pin-check { fill: var(--mint); stroke: #fff; stroke-width: 3; }
.pin-check-i { color: #fff; }
.pin-pulse { fill: rgba(233, 122, 152, .3); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin-body { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.pin.visited .pin-drop { fill: var(--rose); stroke: #fff; }
.pin.visited .pin-face { fill: #fff; }
.pin.visited .pin-check, .pin.visited .pin-check-i { opacity: 1; }
.pin.current .pin-drop { fill: var(--rose-d); stroke: #fff; stroke-width: 3.5; }
.pin.current .pin-face { fill: #fff; }
.pin.current .pin-body { transform: scale(1.22); }
.pin.current .pin-label { fill: var(--rose-d); font-size: 16px; }
.pin.current .pin-pulse { animation: gps 2s ease-out infinite; }
.pin[data-key="finish"] .pin-drop { stroke: var(--gold); }
.pin[data-key="finish"] .pin-face { fill: var(--gold-l); }
.pin[data-key="finish"] .pin-ico { color: #c4834f; }

/* the couple marker */
.marker { pointer-events: none; }
.mk-body { filter: drop-shadow(0 6px 8px rgba(122, 61, 82, .28)); }
.mk-init { font: 800 19px var(--f-ui); fill: #fff; text-anchor: middle; }
.mk-heart { color: var(--rose); }
.mk-halo { fill: rgba(233, 122, 152, .18); transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(.85); opacity: .9; } 50% { transform: scale(1.25); opacity: .35; } }
body.moving .mk-body { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }

/* ══════════ COVER ══════════ */
.intro {
    position: fixed; inset: 0; z-index: 100;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 14px 14px calc(16px + var(--safe-b));
    background: linear-gradient(180deg, rgba(247, 239, 228, .55) 0%, rgba(247, 239, 228, 0) 22%, rgba(247, 239, 228, 0) 46%, rgba(247, 239, 228, .9) 74%);
    transition: opacity .7s ease, transform .7s ease;
}
.intro.closing { opacity: 0; pointer-events: none; }
.intro.closing .preview-card { transform: translateY(40px) scale(.98); }
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; animation: fadeDown .8s .1s both; }
.brand, .gps-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(122, 61, 82, .1);
    font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.brand .ico { color: var(--rose); font-size: 15px; }
.brand b { color: var(--rose-d); font-weight: 800; }
.gps-chip { font-size: 12px; font-weight: 600; color: var(--muted); }
.gps-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(127, 198, 160, .6); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(127, 198, 160, .6); } 100% { box-shadow: 0 0 0 9px rgba(127, 198, 160, 0); } }

.preview-card {
    width: 100%; max-width: 440px; margin: 0 auto;
    background: var(--card); border-radius: 28px; padding: 22px 20px 18px;
    box-shadow: 0 24px 60px rgba(122, 61, 82, .2), 0 2px 8px rgba(122, 61, 82, .06);
    animation: rise .9s .25s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform .7s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.pc-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.pc-names { margin: 6px 0 14px; font: 500 31px/1.08 var(--f-disp); letter-spacing: -.01em; color: var(--ink); }
.pc-names span { display: block; }
.pc-names em { font-style: italic; font-weight: 400; color: var(--gold); margin-right: .25em; }
.pc-route { list-style: none; margin: 0 0 14px; padding: 12px 14px; background: var(--soft); border-radius: 18px; position: relative; }
.pc-route::before { content: ''; position: absolute; left: 25px; top: 30px; bottom: 30px; border-left: 2px dotted #e2b7c3; }
.pc-route li { display: flex; align-items: center; gap: 12px; padding: 6px 0; position: relative; }
.pc-route li + li { border-top: 1px solid var(--line); margin-left: 34px; padding-left: 0; }
.pc-route li + li .dot { margin-left: -34px; }
.pc-route .dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.pc-route .from .dot { background: #fff; box-shadow: inset 0 0 0 6px #6f8fe0, 0 0 0 4px rgba(111, 143, 224, .18); }
.pc-route .to .dot { background: var(--rose); color: #fff; font-size: 13px; box-shadow: 0 0 0 4px rgba(233, 122, 152, .2); }
.pc-route small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.pc-route b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--mint-l); color: #3f8a64; font-size: 12px; font-weight: 700; }
.chip.eta { background: var(--rose-l); color: var(--rose-d); }
.btn-start {
    width: 100%; border: 0; border-radius: 18px; padding: 16px 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--grad); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 12px 26px rgba(233, 122, 152, .38);
    position: relative; overflow: hidden;
}
.btn-start::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s 1.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.btn-start .ico { font-size: 18px; }
.btn-start:active { transform: scale(.98); }
.pc-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ══════════ NAV CHROME ══════════ */
.topui, .fab-col, .sheet, .navbar { opacity: 0; pointer-events: none; transition: opacity .5s ease .35s; }
body.opened .topui, body.opened .fab-col, body.opened .sheet, body.opened .navbar { opacity: 1; pointer-events: auto; }

.topui { position: fixed; top: 10px; left: 10px; right: 10px; z-index: 20; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.turn {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 20px;
    background: linear-gradient(120deg, #cf5b7c, #e37f8e 60%, #d6956a);
    color: #fff; box-shadow: 0 10px 26px rgba(207, 91, 124, .35);
}
.turn-ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.turn-txt { min-width: 0; }
.turn-txt b { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.turn-txt span { display: block; font-size: 13px; font-weight: 500; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.moving .turn-ico .ico { animation: navPulse .8s ease-in-out infinite alternate; }
@keyframes navPulse { from { transform: translateY(1px); } to { transform: translateY(-2px); } }

.dest-pill {
    align-self: flex-start; max-width: calc(100% - 56px);
    display: flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 12px; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(122, 61, 82, .12); font-size: 12.5px; color: var(--muted); text-align: left;
}
.dest-pill .dp-heart { color: var(--rose); font-size: 14px; }
.dp-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dp-txt b { color: var(--ink); font-weight: 700; }
.dp-eta { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--mint-l); color: #3f8a64; font-weight: 800; font-size: 11.5px; }

.fab-col { position: fixed; right: 10px; top: 140px; z-index: 21; display: flex; flex-direction: column; gap: 10px; }
.fab {
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    display: grid; place-items: center; font-size: 19px;
    background: rgba(255, 255, 255, .92); color: var(--ink-2);
    box-shadow: 0 4px 14px rgba(122, 61, 82, .16);
    transition: transform .2s, background .2s, color .2s;
}
.fab:active { transform: scale(.92); }
.fab .ico { width: 20px; height: 20px; }
.music-toggle-btn.playing { color: var(--rose-d); }
.music-toggle-btn.playing #musicIconPause { animation: none; }
#recenterBtn { color: #6f8fe0; }
body.panned #recenterBtn { background: #6f8fe0; color: #fff; animation: popIn .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popIn { from { transform: scale(.6); } to { transform: scale(1); } }

/* ── Bottom sheet ── */
.sheet {
    position: fixed; left: 0; right: 0; bottom: 64px; z-index: 30;
    height: 70vh; display: flex; flex-direction: column;
    background: var(--card); border-radius: 26px 26px 0 0;
    box-shadow: 0 -10px 34px rgba(122, 61, 82, .16);
    transition: transform .5s cubic-bezier(.2, .85, .25, 1), opacity .5s ease .35s;
    will-change: transform;
}
.sheet-grab { flex-shrink: 0; padding: 8px 18px 12px; touch-action: none; cursor: grab; border-bottom: 1px solid var(--line); }
.handle { display: block; width: 42px; height: 5px; border-radius: 3px; background: #e9dcd6; margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sh-ico { width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center; font-size: 23px; color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(233, 122, 152, .3); }
.sh-txt { min-width: 0; }
.sh-kicker { display: block; font-size: 11.5px; font-weight: 700; color: var(--rose); letter-spacing: .02em; }
.sh-title { margin: 1px 0 0; font: 600 22px/1.15 var(--f-disp); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 18px 28px; }

.wp { display: none; }
.wp.active { display: block; }
.wp.in > * { animation: wpIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.wp.in > *:nth-child(2) { animation-delay: .06s; }
.wp.in > *:nth-child(3) { animation-delay: .12s; }
.wp.in > *:nth-child(4) { animation-delay: .18s; }
.wp.in > *:nth-child(5) { animation-delay: .24s; }
.wp.in > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes wpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Navbar ── */
.navbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 12px calc(9px + var(--safe-b));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
}
.nb-prog { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; }
.nb-prog i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 0 3px 3px 0; transition: width .8s ease; }
.nb-btn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 0; border-radius: 14px; padding: 11px 14px;
    background: var(--soft); color: var(--ink-2); font-size: 14px; font-weight: 700;
}
.nb-btn .ico { font-size: 17px; }
.nb-btn.next { background: var(--grad); color: #fff; padding: 11px 16px 11px 20px; box-shadow: 0 6px 16px rgba(233, 122, 152, .32); }
.nb-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.nb-btn:not(:disabled):active { transform: scale(.96); }
.nb-step { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }

/* ══════════ PANEL CONTENT ══════════ */
.lead { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 13px; }
.salam { margin: 0 0 10px; font: italic 500 19px/1.35 var(--f-disp); color: var(--rose-d); text-align: center; }
.tip { margin: 16px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-size: 12.5px; color: var(--muted); }
.tip .ico { color: var(--rose); margin-right: 4px; }

.guest-card { text-align: center; padding: 14px; border-radius: 18px; background: var(--rose-l); margin-bottom: 16px; border: 1px dashed #f3b8c8; }
.gc-l, .gc-r { display: block; font-size: 12px; color: var(--muted); }
.gc-name { display: block; margin: 3px 0; font: 600 22px/1.2 var(--f-disp); color: var(--ink); }

.ayat { margin: 6px 0 0; padding: 18px 16px 14px; border-radius: 20px; background: linear-gradient(160deg, #fff8f1, #fdeef1); text-align: center; position: relative; }
.ayat::before { content: '“'; position: absolute; top: -6px; left: 14px; font: 600 64px/1 var(--f-disp); color: rgba(233, 122, 152, .25); }
.ayat .ar { margin: 0 0 10px; font: 22px/1.9 'Amiri', serif; color: var(--ink); }
.ayat blockquote { margin: 0; font: italic 400 14.5px/1.6 var(--f-disp); color: var(--ink-2); }
.ayat figcaption { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }

/* person card */
.person { text-align: center; border-radius: 22px; overflow: hidden; background: var(--soft); padding-bottom: 16px; }
.ps-cover { height: 92px; position: relative; overflow: hidden; background: linear-gradient(130deg, #c8d4f6, #e8ecfb); }
.bride .ps-cover { background: linear-gradient(130deg, #fbc8d5, #fde9ee); }
.ps-cover span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.ps-cover span:nth-child(1) { width: 120px; height: 120px; left: -30px; top: -50px; }
.ps-cover span:nth-child(2) { width: 70px; height: 70px; right: 20px; top: 10px; }
.ps-cover span:nth-child(3) { width: 30px; height: 30px; right: 110px; top: 50px; }
.ps-avatar { width: 108px; height: 108px; margin: -56px auto 10px; border-radius: 50%; overflow: hidden; position: relative; border: 5px solid #fff; box-shadow: var(--shadow); display: grid; place-items: center; background: linear-gradient(140deg, #9db3e8, #7f94dc); }
.bride .ps-avatar { background: linear-gradient(140deg, #ffc3d1, #ec7f9c); }
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ps-avatar b { font: 500 46px/1 var(--f-disp); color: #fff; }
.ps-role { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.groom .ps-role { color: #6f8fe0; }
.ps-name { margin: 4px 16px 4px; font: 600 27px/1.15 var(--f-disp); }
.ps-rating { margin: 0 0 12px; color: #f2b24f; font-size: 13px; }
.ps-rating span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.ps-info { margin: 0 14px; text-align: left; background: #fff; border-radius: 16px; padding: 4px 14px; }
.ps-info div { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ps-info dt { color: var(--rose); font-size: 19px; }
.ps-info dd { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.ps-info small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* story */
.story { list-style: none; margin: 0; padding: 0; }
.story li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.story li::before { content: ''; position: absolute; left: 19px; top: 42px; bottom: 2px; border-left: 3px dotted #efc0cc; }
.story li.last::before { display: none; }
.st-dot { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--rose-l); color: var(--rose-d); font-size: 18px; box-shadow: 0 0 0 4px #fff; }
.story li.last .st-dot { background: var(--grad); color: #fff; }
.story small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.story h4 { margin: 1px 0 3px; font: 600 18px/1.25 var(--f-disp); }
.story p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* countdown */
.eta-card { padding: 18px 16px 16px; border-radius: 22px; background: linear-gradient(150deg, #fff6ef, #fdebf0); text-align: center; margin-bottom: 14px; }
.eta-l { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 16px; }
.cd div { background: #fff; border-radius: 16px; padding: 12px 4px 9px; box-shadow: 0 4px 12px rgba(122, 61, 82, .08); }
.cd b { display: block; font: 600 30px/1 var(--f-disp); color: var(--ink); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.eta-track { --p: .1; position: relative; height: 10px; border-radius: 6px; background: #fff; margin: 0 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.eta-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: 6px; background: var(--grad); transition: width 1s ease; }
.eta-track .car { position: absolute; top: 50%; left: calc(var(--p) * 100%); transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--rose); display: grid; place-items: center; font-size: 14px; box-shadow: 0 3px 10px rgba(122, 61, 82, .2); transition: left 1s ease; }
.eta-date { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.eta-date .ico { color: var(--rose); }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 18px; border-radius: 16px; border: 0; text-decoration: none;
    font-size: 14.5px; font-weight: 700;
}
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(233, 122, 152, .3); }
.btn.ghost { background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn.wide, .wp > .btn { width: 100%; }
.btn:active { transform: scale(.98); }
.btn-row { display: grid; gap: 10px; }
.btn.sent { background: linear-gradient(120deg, #6fbf91, #8fd0a8); }

/* place card */
.place { margin: 0; }
.pl-hero { height: 136px; border-radius: 20px; position: relative; overflow: hidden; margin-bottom: 14px; background: linear-gradient(130deg, #cdeedb, #e8f6ee 60%, #fbe9e4); }
.pl-hero.resepsi { background: linear-gradient(130deg, #fbd5df, #fdeef1 55%, #f8e7d6); }
.pl-hero::before, .pl-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.pl-hero::before { width: 160px; height: 160px; right: -40px; top: -70px; }
.pl-hero::after { width: 80px; height: 80px; left: 30px; bottom: -40px; }
.pl-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pl-badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 26px; color: var(--rose-d); box-shadow: var(--shadow); }
.pl-name { margin: 0; font: 600 25px/1.15 var(--f-disp); }
.pl-sub { margin: 2px 0 4px; color: var(--muted); font-size: 13px; }
.pl-open { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: #3f8a64; display: flex; align-items: center; gap: 7px; }
.pl-open i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pl-actions { display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--rose-d); }
.act span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--rose-l); }
.act:first-child span { background: var(--grad); color: #fff; }
.pl-rows { margin: 0; }
.pl-rows div { display: flex; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.pl-rows div:last-child { border-bottom: 0; }
.pl-rows dt { color: var(--rose); font-size: 19px; padding-top: 1px; }
.pl-rows dd { margin: 0; font-size: 14.5px; font-weight: 600; }
.pl-rows dd b { display: block; font-weight: 700; }
.pl-rows dd small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }

/* location */
.loc-map { height: 210px; border-radius: 20px; overflow: hidden; position: relative; margin-bottom: 14px; background: #eef4ee; box-shadow: inset 0 0 0 1px var(--line); }
.leaflet-map { width: 100%; height: 100%; }
.lr-marker span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--grad); box-shadow: 0 6px 14px rgba(207, 91, 124, .4); border: 3px solid #fff; }
.lr-marker svg { width: 18px; height: 18px; color: #fff; transform: rotate(45deg); }
.mini-map { position: absolute; inset: 0; display: block; background: #f7efe4; }
.mm-road { position: absolute; background: #fff; box-shadow: 0 0 0 3px #ead9c8; }
.mm-road.h { left: -10px; right: -10px; top: 58%; height: 20px; }
.mm-road.h2 { left: -10px; right: -10px; top: 18%; height: 14px; }
.mm-road.v { top: -10px; bottom: -10px; left: 36%; width: 20px; }
.mm-park { position: absolute; left: 50%; top: 24%; width: 34%; height: 28%; border-radius: 16px; background: #cdeedb; }
.mm-water { position: absolute; left: 6%; top: 70%; width: 24%; height: 22%; border-radius: 40%; background: #c4e2f3; }
.mm-pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -48px 0 0 -23px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--grad); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 8px 16px rgba(207, 91, 124, .4); animation: pinDrop 1.6s ease-in-out infinite; }
.mm-pin .ico { transform: rotate(45deg); color: #fff; font-size: 18px; }
@keyframes pinDrop { 0%, 100% { margin-top: -48px; } 50% { margin-top: -56px; } }
.loc-info { margin-bottom: 14px; }
.loc-k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.loc-info h3 { margin: 4px 0 4px; font: 600 23px/1.2 var(--f-disp); }
.loc-info p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* gallery */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: center; border: 0; padding: 0; border-radius: 22px; overflow: hidden; position: relative; background: var(--soft); box-shadow: 0 8px 20px rgba(122, 61, 82, .12); }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; color: var(--ink-2); backdrop-filter: blur(6px); }
.sl-tag .ico { color: var(--rose); }
.slide.ph { display: grid; place-items: center; }
.slide.ph.p0 { background: linear-gradient(150deg, #fbd5df, #fdf0f2); }
.slide.ph.p1 { background: linear-gradient(150deg, #cdeedb, #f1faf4); }
.slide.ph.p2 { background: linear-gradient(150deg, #f8e7d6, #fdf6ef); }
.ph-ico { width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .75); display: grid; place-items: center; font-size: 32px; color: var(--rose); }
.car-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 14px; }
.car-dots i { width: 7px; height: 7px; border-radius: 4px; background: #ecdcd6; transition: width .3s, background .3s; }
.car-dots i.on { width: 20px; background: var(--rose); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs button { border: 0; padding: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel.empty + .muted { margin-top: 12px; }

/* gift partial */
.gift-wrap #gift-section { background: transparent !important; padding: 4px 0 8px !important; font-family: var(--f-ui) !important; margin: 0 -18px; }
.gift-wrap .gs-heading h2 { font-family: var(--f-disp) !important; font-weight: 600 !important; color: var(--ink) !important; }
.gift-wrap .gs-heading h2::after { background: var(--rose) !important; }
.gift-wrap .gs-heading p, .gift-wrap .gs-sub-label { font-family: var(--f-ui) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border-radius: 18px !important; }
.gift-wrap .gs-btn { border-radius: 12px !important; background: var(--grad) !important; color: #fff !important; border: 0 !important; }
.gift-wrap .gs-btn-done { background: #eee !important; color: #999 !important; }
.gift-wrap .gs-bank-copy { border-radius: 10px !important; }

/* rsvp */
.rsvp-form { display: block; }
.f-l { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.f-l:first-of-type { margin-top: 0; }
.f-in { width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 15px var(--f-ui); color: var(--ink); outline: none; resize: vertical; transition: box-shadow .2s, background .2s; }
.f-in:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--rose); }
.routes { display: grid; gap: 8px; }
.ropt { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s; position: relative; }
.ropt input { position: absolute; opacity: 0; pointer-events: none; }
.ro-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--muted); font-size: 17px; flex-shrink: 0; }
.ro-txt { flex: 1; min-width: 0; }
.ro-txt b { display: block; font-size: 14.5px; }
.ro-txt small { display: block; font-size: 12px; color: var(--muted); }
.ro-tag { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: #fff; color: var(--muted); }
.ro-tag.best { background: var(--mint-l); color: #3f8a64; }
.ropt:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--rose), 0 6px 16px rgba(233, 122, 152, .16); }
.ropt:has(input:checked) .ro-ico { background: var(--grad); color: #fff; }
.ropt:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 16px; }

/* wishes as place reviews */
.rev-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--soft); margin-bottom: 12px; }
.rev-score { font: 600 34px/1 var(--f-disp); color: var(--ink); }
.rev-head > div { flex: 1; }
.rev-stars { color: #f2b24f; font-size: 15px; display: block; }
.rev-head small { color: var(--muted); font-size: 12px; font-weight: 600; }
.wishes-list { display: flex; flex-direction: column; }
.wish-item { --av: var(--rose); display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wish-item:last-child { border-bottom: 0; }
.wish-item.new { animation: wpIn .5s ease both; }
.wish-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--av); color: #fff; font-weight: 800; font-size: 16px; text-transform: uppercase; }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-name { font-weight: 800; font-size: 14.5px; }
.wish-badge { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.wish-badge.hadir { background: var(--mint-l); color: #3f8a64; }
.wish-badge.tidak { background: #fde4e4; color: #c45656; }
.wish-badge.ragu { background: #fdf0d9; color: #b98330; }
.wish-stars { display: block; margin: 2px 0 4px; color: #f2b24f; font-size: 11.5px; }
.wish-time { color: var(--muted); font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.wish-message { margin: 0; color: var(--ink-2); font-size: 14px; word-wrap: break-word; }
.wish-empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.wish-empty .ico { font-size: 34px; color: var(--rose); opacity: .6; }
.wish-empty p { margin: 8px 0 0; font-size: 13.5px; }

/* finish */
.finish { text-align: center; }
.fin-badge { width: 78px; height: 78px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 34px; box-shadow: 0 0 0 10px var(--rose-l), 0 12px 26px rgba(233, 122, 152, .35); }
.wp.in .fin-badge { animation: popIn .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.fin-title { margin: 0; font: 600 28px/1.15 var(--f-disp); }
.fin-sub { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.fin-names { margin: 6px 0 14px; font: 500 32px/1.1 var(--f-disp); }
.fin-names em { color: var(--gold); font-weight: 400; }
.fin-fams { display: grid; gap: 8px; margin-bottom: 16px; }
.fin-fams p { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-weight: 700; font-size: 14px; }
.fin-fams small { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); }
.finish .btn { margin-top: 6px; }
.credit { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* ── Route list overlay ── */
.route-list { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(58, 44, 54, 0); pointer-events: none; transition: background .3s; }
.route-list.open { background: rgba(58, 44, 54, .35); pointer-events: auto; }
.route-list:not(.open) .rl-card { opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.2, .85, .25, 1), opacity .3s, visibility 0s .4s; }
.rl-card { width: 100%; max-width: 480px; max-height: 82vh; display: flex; flex-direction: column; background: #fff; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .4s cubic-bezier(.2, .85, .25, 1); padding-bottom: var(--safe-b); }
.route-list.open .rl-card { transform: none; }
.rl-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.rl-head small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.rl-head b { font: 600 21px var(--f-disp); }
.rl-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; font-size: 17px; }
.rl-items { list-style: none; margin: 0; padding: 8px 12px 16px; overflow-y: auto; position: relative; }
.rl-items li { position: relative; }
.rl-items li:not(:last-child)::after { content: ''; position: absolute; left: 30px; top: 46px; height: 16px; border-left: 2px dotted #efc0cc; }
.rl-items button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; background: none; text-align: left; border-radius: 14px; }
.rl-items button:hover { background: var(--soft); }
.rl-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-size: 18px; flex-shrink: 0; }
.rl-items li.done .rl-ico { background: var(--rose-l); color: var(--rose-d); }
.rl-items li.now .rl-ico { background: var(--grad); color: #fff; }
.rl-items li.now button { background: var(--rose-l); }
.rl-txt { flex: 1; min-width: 0; }
.rl-txt b { display: block; font-size: 14.5px; }
.rl-txt small { display: block; font-size: 12px; color: var(--muted); }
.rl-d { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ── FX: confetti & toast ── */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 3s cubic-bezier(.3, .6, .5, 1) forwards; }
.confetti.heart { width: 12px; height: 12px; border-radius: 50% 50% 0 50%; transform: rotate(45deg); }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); opacity: .9; } }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 9600; align-items: center; justify-content: center; background: rgba(40, 28, 36, .92); opacity: 0; transition: opacity .3s; }
.lb-img-wrap { max-width: 92vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 18px; display: block; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; }
.lb-close { top: 18px; right: 18px; font-size: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; }

/* ── QR fab: keep it on the map, clear of the sheet & navbar ── */
body.has-qr #qr-fab { top: 140px; bottom: auto; left: 10px; right: auto; padding: 10px 14px 10px 12px; font-size: 12px; }
body.has-qr .toast { bottom: 84px; }

/* ══════════ SMALL PHONES ══════════ */
@media (max-width: 360px) {
    .pc-names { font-size: 29px; }
    .turn-txt b { font-size: 18px; }
    .nb-btn span { display: none; }
    .nb-btn.next span { display: inline; }
    .cd b { font-size: 25px; }
}
@media (max-height: 680px) {
    .preview-card { padding: 16px 16px 14px; }
    .pc-names { font-size: 28px; margin-bottom: 10px; }
    .pc-hint { display: none; }
}

/* ══════════ DESKTOP: side panel over a full-screen map ══════════ */
@media (min-width: 900px) {
    .intro { align-items: flex-start; justify-content: center; padding: 32px 40px; background: linear-gradient(90deg, rgba(247, 239, 228, .92) 0%, rgba(247, 239, 228, .6) 34%, rgba(247, 239, 228, 0) 52%); }
    .intro-top { position: absolute; top: 24px; left: 40px; right: 40px; }
    .preview-card { margin: 0; max-width: 420px; }
    .sheet { left: 24px; right: auto; top: 24px; bottom: 96px; width: 420px; height: auto !important; transform: none !important; border-radius: 26px; box-shadow: var(--shadow); }
    .sheet-grab { cursor: default; }
    .handle { display: none; }
    .navbar { left: 24px; right: auto; bottom: 24px; width: 420px; border-radius: 20px; border: 0; box-shadow: var(--shadow); padding: 9px 12px; overflow: hidden; }
    .topui { left: 468px; right: auto; width: min(520px, calc(100vw - 560px)); top: 24px; }
    .fab-col { top: 24px; right: 24px; }
    .toast { left: calc(468px + (100vw - 468px) / 2); bottom: 32px; }
    body.has-qr #qr-fab { top: auto; bottom: 24px; left: auto; right: 24px; }
    .rl-card { border-radius: 26px; margin-bottom: 24px; }
    .route-list { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
