/* Rumah Luxe Travel — navy & gold, minimal, alive. */
:root {
  --navy: #0F1B2D; --deep: #0B1626; --navy2: #1B2A41; --gold: #C9A961; --gold-soft: #E9D7A8; --gold-text: #8A6A2F;
  --ivory: #F7F5F0; --card: #FFFFFF; --line: #E7E2D8; --line2: #EFEBE3; --ink: #1A1F2B; --muted: #5E6573; --mist: #C9D0DB;
  --red: #8C3B4A; --teal: #2F7D78; --ease: cubic-bezier(.2,.8,.2,1);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--deep); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: transform .18s ease, background-color .3s ease, color .3s ease, border-color .3s ease, opacity .3s; }
button:active:not(:disabled) { transform: scale(.96); }
button:disabled { opacity: .45; cursor: default; }
button svg, a svg, summary svg { width: 18px; height: 18px; flex: none; }
a { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { position: relative; max-width: 520px; margin: 0 auto; min-height: 100%; height: 100dvh; overflow: hidden; background: var(--ivory); }
@media (min-width: 560px) { #app { box-shadow: 0 0 80px rgba(0,0,0,.5); } }

/* ---------- motion ---------- */
@keyframes riseA { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes riseB { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes screenIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes screenBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes fly { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 20px); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes aurora { 0%,100% { transform: translateX(-30px) scaleY(1); opacity: .35; } 50% { transform: translateX(40px) scaleY(1.25); opacity: .6; } }
@keyframes drift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.fx-aurora { animation: aurora 14s ease-in-out infinite; transform-origin: 195px 200px; }
.fx-aurora-w { animation: aurora 16s ease-in-out infinite; transform-origin: 800px 230px; }
.scene-art.wide { display: none; }
@media (min-aspect-ratio: 1/1), (min-width: 700px) { .scene-art.tall { display: none; } .scene-art.wide { display: block; } }
.fx-drift { animation: drift 18s ease-in-out infinite; }
.fx-glow { animation: glow 6s ease-in-out infinite; }
.stagger > * { animation: riseA .7s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .07s; } .stagger > *:nth-child(3) { animation-delay: .14s; } .stagger > *:nth-child(4) { animation-delay: .21s; }
.stagger > *:nth-child(5) { animation-delay: .28s; } .stagger > *:nth-child(6) { animation-delay: .35s; } .stagger > *:nth-child(7) { animation-delay: .42s; } .stagger > *:nth-child(n+8) { animation-delay: .49s; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; animation: screenIn .45s var(--ease) both; }
.screen.back { animation-name: screenBack; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- scene (living background) ---------- */
.scene { position: absolute; inset: 0; overflow: hidden; background: var(--deep); animation: heroIn 1.2s ease both; }
.scene .scene-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .photo { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 30s ease-in-out infinite alternate; }
.scene .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,38,.55) 0%, rgba(11,22,38,.15) 35%, rgba(11,22,38,.35) 65%, rgba(11,22,38,.92) 100%); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; letter-spacing: 3.5px; font-weight: 600; color: var(--gold); text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: .2px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { height: 52px; border-radius: 16px; border: none; padding: 0 20px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: .2px; }
.btn-gold { background: var(--navy); color: var(--gold); }
.btn-light { background: #fff; color: var(--ink); }
.btn-line { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #E8C9CF; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; border-radius: 999px; padding: 0 14px; font-size: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,169,97,.4); background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); flex: none; }
.icon-btn.solid { background: rgba(15,27,45,.55); }
.icon-btn svg { width: 18px; height: 18px; }
.pill-btn { height: 46px; padding: 0 26px; border: 1px solid var(--gold); background: rgba(15,27,45,.55); color: var(--gold); border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(6px); }
.eqbars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eqbars i { width: 3px; height: 12px; border-radius: 2px; background: var(--gold); transform-origin: bottom; transform: scaleY(.35); opacity: .6; }
.music-ico { display: inline-flex; } .eqbars { display: none; } [data-music].on .eqbars { display: inline-flex; } [data-music].on .music-ico { display: none; }
.eqbars.on i { opacity: 1; animation: eq 1s ease-in-out infinite; } .eqbars.on i:nth-child(2) { animation-duration: 1.3s; } .eqbars.on i:nth-child(3) { animation-duration: 1.1s; }

/* ---------- login ---------- */
.login-copy { position: relative; padding: calc(130px + var(--safe-top)) 32px 0; display: flex; flex-direction: column; gap: 10px; }
.login-copy .display { font-size: 60px; color: #fff; }
.login-copy p { margin: 0; color: var(--mist); font-size: 14px; line-height: 1.55; max-width: 280px; }
.login-actions { position: absolute; left: 28px; right: 28px; bottom: calc(100px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.login-note { font-size: 12px; color: var(--mist); text-align: center; line-height: 1.5; }
.login-err { background: rgba(140,59,74,.9); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.45; }
.panel { position: relative; margin: calc(110px + var(--safe-top)) 20px 0; background: rgba(255,255,255,.97); border-radius: 24px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: riseA .7s var(--ease) both; }
.panel h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05; }
.panel p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.codebox { height: 58px; border-radius: 14px; border: 1px solid var(--line); background: #FBFAF7; font-size: 26px; letter-spacing: 10px; text-align: center; font-weight: 700; color: var(--navy); width: 100%; }
.codebox:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,169,97,.2); }
.qr { width: 190px; height: 190px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #F2EFE8; padding: 10px; border-radius: 10px; word-break: break-all; text-align: center; letter-spacing: 1px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.codes span { background: #F2EFE8; border-radius: 8px; padding: 8px; text-align: center; }

/* ---------- home ---------- */
.home-top { position: absolute; left: 24px; right: 20px; top: calc(52px + var(--safe-top)); display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.brand .eyebrow { font-size: 10px; letter-spacing: 3px; }
.brand .display { font-size: 26px; color: #fff; }
.home-center { position: absolute; left: 0; right: 0; top: 24%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 20px; z-index: 1; }
.home-center .local { font-family: var(--serif); font-size: 16px; letter-spacing: 4px; color: var(--gold); }
.home-center h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 11vw, 48px); color: #fff; line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.home-center .dates { font-size: 13px; color: var(--mist); }
.countdown { display: flex; align-items: flex-start; gap: 16px; margin-top: 22px; }
.countdown .unit { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.countdown .n { font-family: var(--serif); font-size: clamp(56px, 18vw, 76px); font-weight: 600; color: #fff; line-height: .9; font-variant-numeric: tabular-nums; }
.countdown .l { font-size: 10px; letter-spacing: 3px; color: var(--gold); font-weight: 600; }
.countdown .dot { font-family: var(--serif); font-size: 52px; color: rgba(201,169,97,.6); line-height: .9; }
.home-status { margin-top: 18px; font-family: var(--serif); font-size: 26px; color: #fff; }
.dock { position: absolute; left: 16px; right: 16px; bottom: calc(26px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; z-index: 2; }
.dock button { height: 84px; border-radius: 20px; border: 1px solid rgba(201,169,97,.35); background: rgba(11,22,38,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; position: relative; color: #fff; font-size: 12px; font-weight: 600; }
.dock svg { width: 22px; height: 22px; color: var(--gold); }
.dock .count { position: absolute; top: 9px; right: 11px; font-size: 10px; font-weight: 700; color: var(--navy); background: var(--gold); min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,169,97,.4); background: rgba(255,255,255,.06) center/cover; color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---------- trip ---------- */
.trip { background: var(--ivory); }
.trip-head { position: relative; z-index: 2; padding: calc(10px + var(--safe-top)) 16px 0; display: flex; flex-direction: column; gap: 12px; transition: background-color .5s ease; }
.trip-head.dark { background: var(--navy); }
.trip-head.clear { background: linear-gradient(180deg, rgba(11,22,38,.75), rgba(11,22,38,.35)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.trip-head .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trip-title { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.trip-title .display { font-size: 25px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.trip-title small { font-size: 12px; color: var(--mist); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.tabs button { height: 44px; border: none; background: transparent; font-size: 13px; font-weight: 500; color: var(--mist); padding: 0; }
.tabs button[aria-selected="true"] { color: var(--gold); font-weight: 700; }
.tabs .bar { position: absolute; bottom: 0; height: 2px; width: 12%; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(201,169,97,.8); transition: left .45s var(--ease); }
.trip-body { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 18px 16px calc(40px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
.trip-body::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.on-scene .section-title { color: #fff; }
.list .section-title, .card .section-title { color: var(--muted) !important; }
.on-scene .lead { color: var(--mist); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card-label { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; color: var(--gold-text); font-weight: 700; text-transform: uppercase; }
.card-label svg { width: 16px; height: 16px; }
.card-label .add { margin-left: auto; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font-size: 11px; color: var(--ink); letter-spacing: .5px; font-weight: 600; text-transform: none; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 0; }
.row-item + .row-item { border-top: 1px solid var(--line2); padding-top: 12px; }
.row-item b { font-size: 14px; font-weight: 600; display: block; }
.row-item small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.4; }
.tag { font-size: 11px; font-weight: 600; color: var(--gold-text); background: #FBF7EE; border: 1px solid #E9DDC2; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.empty { font-size: 13px; color: var(--muted); line-height: 1.5; }
.glass-card { background: rgba(20,35,58,.78); border: 1px solid rgba(201,169,97,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden; }
.glass-card .big { font-family: var(--serif); font-size: 58px; font-weight: 700; line-height: 1; }
.shimmer { margin-top: 8px; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(201,169,97,.15), var(--gold-soft), rgba(201,169,97,.15)); background-size: 200px 2px; animation: shimmer 2.8s linear infinite; }
.flypath { position: relative; height: 20px; }
.flypath::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; border-top: 1.5px dashed #E0D6C2; }
.flypath svg { position: absolute; top: 0; width: 20px; height: 20px; animation: fly 5s ease-in-out infinite; }
.progress { height: 6px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .5s var(--ease); }
.check { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.check span { flex: 1; font-size: 14px; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.x { border: none; background: none; color: #B5AE9F; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #FBFAF7; font-size: 14px; }

/* itinerary */
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; }
.day-pill { flex: none; width: 58px; height: 66px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,.95); color: var(--ink); border: 1px solid var(--line); scroll-snap-align: center; transition: all .35s var(--ease); }
.day-pill span { font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.day-pill strong { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; }
.day-pill[aria-selected="true"] { background: var(--navy); color: var(--gold); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 6px 0 4px; }
.day-head h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; color: #fff; }
.day-head .sub { font-size: 12px; color: var(--mist); margin-top: 4px; }
.day-head .sum { font-size: 12px; font-weight: 600; color: var(--gold-soft); margin-top: 3px; }
.opt-btn { height: 40px; border: 1px solid var(--gold); background: rgba(15,27,45,.7); color: var(--gold); border-radius: 12px; padding: 0 12px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.notice { background: #E6F1F0; border: 1px solid #BFDCD9; color: #1F5A56; border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 500; line-height: 1.45; }
.stop { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px 12px 12px; display: flex; gap: 12px; align-items: flex-start; }
.tile { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.tile svg { width: 24px; height: 24px; }
.tile .num { position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.stop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.stop-name { all: unset; cursor: pointer; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.stop-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 500; }
.drive { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--gold-text); text-decoration: none; padding: 2px 0; }
.drive svg { width: 12px; height: 12px; }
.stop-note { font-size: 12px; color: #3A4150; background: var(--ivory); border-radius: 8px; padding: 6px 8px; line-height: 1.45; white-space: pre-line; }
.reorder { display: flex; flex-direction: column; gap: 4px; }
.reorder button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.reorder svg { width: 14px; height: 14px; }
.leg { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 24px; font-size: 11px; color: #E3E7EE; font-weight: 600; }
.leg svg.line { width: 4px; height: 26px; }
.leg svg.line line { animation: dash 1s linear infinite; }
.leg svg.car { width: 14px; height: 14px; color: var(--gold); }
.transport { background: rgba(27,42,65,.85); border: 1px solid rgba(201,169,97,.35); backdrop-filter: blur(8px); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: #fff; }
.transport b { font-size: 14px; } .transport small { font-size: 12px; color: var(--mist); display: block; }
.add-row { display: flex; gap: 8px; }
.add-row .btn { flex: 1; height: 48px; }

/* map */
.map-wrap { position: relative; height: 56vh; min-height: 340px; border-radius: 20px; overflow: hidden; border: 1px solid #DCE1E6; background: #E4E9EE; }
.map { position: absolute; inset: 0; }
.leaflet-container { font-family: var(--sans); background: #E4E9EE; }
.leaflet-tile-pane { filter: saturate(.55) brightness(1.02) contrast(.95); }
.pin { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15,27,45,.35); transition: transform .2s; }
.pin.sel { transform: scale(1.25); border-color: var(--gold); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; height: 34px; border-radius: 999px; padding: 0 13px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 13px; color: var(--muted); }

/* documents */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.doc-row + .doc-row { border-top: 1px solid var(--line2); }
.doc-ico { width: 40px; height: 40px; border-radius: 10px; background: #F2EFE8; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--muted); flex: none; }
.doc-ico.priv { background: #FBF7EE; color: var(--gold-text); }
.doc-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.doc-main b { font-size: 13px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-main small { font-size: 11px; color: var(--muted); }
.list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list.gold { border-color: #E9DDC2; }
.section-title { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; margin: 4px 2px 8px; text-transform: uppercase; }
.section-title.gold { color: var(--gold-text); }
.section-title svg { width: 13px; height: 13px; }
.lead { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 4px 0; }

/* members */
.member { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line2); }
.mav { width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; background: #F2EFE8; padding: 4px; border-radius: 12px; }
.seg button { height: 38px; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15,27,45,.12); }
.linkbox { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; color: #3A4150; background: #FBFAF7; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* sheets */
.backdrop { position: absolute; inset: 0; background: rgba(11,22,38,.55); z-index: 40; animation: fadeIn .25s ease both; display: flex; align-items: flex-end; }
.sheet { position: relative; width: 100%; max-height: 92%; background: var(--ivory); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: sheetUp .45s var(--ease) both; box-shadow: 0 -20px 60px rgba(0,0,0,.3); }
.sheet.closing { animation: sheetDown .3s ease both; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: #D8D0BF; margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 4px; flex: none; }
.sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 10px 20px calc(26px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sheet.full { height: 100%; max-height: 100%; border-radius: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 15px; color: var(--ink); background: #fff; font-weight: 400; width: 100%; }
.field textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.result { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; width: 100%; }
.result b { font-size: 14px; display: block; } .result small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.35; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.toggle input { width: 44px; height: 26px; accent-color: var(--navy); }

/* place detail */
.hero { height: 320px; position: relative; overflow: hidden; flex: none; background: var(--deep); }
.hero .photo { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroIn 1s ease both, kenburns 24s ease-in-out 1s infinite alternate; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,38,.45), rgba(11,22,38,0) 40%, rgba(11,22,38,.25)); }
.hero .ico { position: absolute; left: 50%; top: 46%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 28px; background: rgba(255,255,255,.1); border: 1px solid rgba(201,169,97,.5); display: flex; align-items: center; justify-content: center; color: var(--gold); animation: floaty 5s ease-in-out infinite; }
.hero .ico svg { width: 48px; height: 48px; }
.hero .back { position: absolute; left: 16px; top: calc(14px + var(--safe-top)); }
.detail-body { flex: 1; overflow-y: auto; margin-top: -26px; background: var(--ivory); border-radius: 26px 26px 0 0; position: relative; padding: 22px 20px calc(30px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; }
.detail-body h1 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.05; }
.near-row { display: flex; align-items: center; gap: 12px; }
.near-thumb { width: 54px; height: 54px; border-radius: 12px; background: #22344F center/cover; flex: none; }
.near-row b { font-size: 13px; display: block; } .near-row small { font-size: 11px; color: var(--muted); }

/* toast & loading */
.toast { position: absolute; left: 50%; bottom: calc(30px + var(--safe-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; border: 1px solid rgba(201,169,97,.4); border-radius: 14px; padding: 12px 16px; font-size: 13px; z-index: 90; max-width: 88%; text-align: center; animation: riseA .4s var(--ease) both; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.toast.err { background: var(--red); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(201,169,97,.25); border-top-color: var(--gold); animation: spin .9s linear infinite; }
.center-fill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }

/* =====================================================================
   iPad & computer
   ===================================================================== */
.side-map { display: none; }
@media (min-width: 760px) {
  #app { max-width: none; box-shadow: none; }
  /* login */
  .login-copy { padding-top: calc(18vh + var(--safe-top)); align-items: center; text-align: center; }
  .login-copy .display { font-size: 84px; }
  .login-copy p { max-width: 360px; font-size: 15px; }
  .login-actions { left: 50%; right: auto; width: 400px; transform: translateX(-50%); bottom: 14vh; }
  .panel { max-width: 440px; margin-left: auto; margin-right: auto; }
  /* home */
  .home-top { left: 40px; right: 36px; }
  .brand .display { font-size: 30px; }
  .home-center { top: 22%; }
  .home-center h1 { font-size: clamp(52px, 7vw, 84px); }
  .home-center .local { font-size: 20px; }
  .home-center .dates { font-size: 15px; }
  .countdown { gap: 28px; }
  .countdown .unit { min-width: 96px; }
  .countdown .n { font-size: clamp(80px, 10vw, 120px); }
  .countdown .dot { font-size: 70px; }
  .dock { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: calc(40px + var(--safe-bottom)); gap: 14px; }
  .dock button { height: 92px; font-size: 13px; }
  /* trip */
  .trip-head { padding-left: 32px; padding-right: 32px; }
  .trip-title .display { font-size: 30px; max-width: 520px; }
  .tabs { width: 100%; max-width: 640px; margin: 0 auto; }
  .tabs button { font-size: 14px; }
  .trip-body { padding: 26px 32px calc(48px + var(--safe-bottom)); }
  .trip-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  .map-wrap { height: calc(100dvh - 300px); min-height: 420px; }
  .day-pill { width: 64px; height: 72px; }
  .day-head h2 { font-size: 40px; }
  /* overview & share: two columns of cards */
  .trip-body > .stack.stagger:not(.single) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; max-width: 1040px; }
  .trip-body > .stack.stagger > .glass-card,
  .trip-body > .stack.stagger > .wide-span { grid-column: 1 / -1; }
  /* sheets become centered windows */
  .backdrop { align-items: center; justify-content: center; padding: 32px; }
  .sheet { width: 560px; max-width: 100%; max-height: 86vh; border-radius: 24px; animation-name: riseA; animation-duration: .4s; }
  .sheet.closing { animation: fadeOut .25s ease both; }
  .sheet-grip { display: none; }
  /* place detail: a panel on the right */
  .backdrop:has(.sheet.full) { justify-content: flex-end; padding: 0; }
  .sheet.full { width: 520px; height: 100%; max-height: 100%; border-radius: 26px 0 0 26px; animation: panelIn .45s var(--ease) both; }
  .sheet.full.closing { animation: panelOut .3s ease both; }
  .hero { height: 360px; }
  .toast { bottom: 40px; }
}
@keyframes fadeOut { to { opacity: 0; transform: translateY(10px); } }
@keyframes panelIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes panelOut { to { transform: translateX(100%); } }
@media (min-width: 1100px) {
  .trip-body > .plan-grid { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); gap: 28px; align-items: start; }
  .side-map { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
  .side-map .map-wrap { height: calc(100dvh - 240px); min-height: 420px; border-color: rgba(201,169,97,.4); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
  .trip-body > .stack.stagger:not(.single) { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1240px; }
}
/* mouse users: gentle hover */
@media (hover: hover) {
  .stop, .result, .card, .dock button, .day-pill { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
  .stop:hover, .result:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,27,45,.12); }
  .dock button:hover { border-color: var(--gold); transform: translateY(-3px); }
  .btn:hover:not(:disabled) { filter: brightness(1.06); }
  .chip:hover, .tabs button:hover { color: var(--gold); }
}
.hero .scene-art { position: absolute; inset: 0; width: 100%; height: 100%; }
