/* Layout: a jharokha-arch hero with the couple's illustration and monogram, then the resort plan (north up) beside the guest panel; a sindoor-red bar pins the current selection like a ticket counter. One deliberate look: ivory paper, sindoor red, antique gold. */
:root{
  color-scheme:light;
  --paper:#f7f0e3; --ivory:#fffaf0; --ivory-2:#fbf4e7; --ink:#3b1416; --muted:#6e5749; --line:#e6d4b0;
  --sindoor:#a3141f; --sindoor-deep:#7d0f18; --blush:#f7dcd6; --gold:#b38b4d; --gold-deep:#7a5a26; --gold-soft:#f1e4c6;
  --lawn:#e8e9d3; --lawn-ink:#cfd3ad; --water:#e3ece7; --building:#f2e8d5; --path:#ede2cc; --tree:#d7ddb9; --petal:#c9303c;
  --display:"Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --caps:"Cinzel", "Trajan Pro", Georgia, serif;
  --body:"Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --bg:var(--paper); --surface:var(--ivory); --surface-2:var(--ivory-2);
  --pine:var(--sindoor); --pine-soft:var(--blush); --on-pine:var(--ivory);
  --marigold:var(--sindoor); --marigold-soft:var(--blush); --full:var(--sindoor); --full-bg:var(--sindoor);
  --held:var(--gold-deep); --held-soft:var(--gold-soft); --danger:#b3261e; --danger-soft:#f6dad5;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{background-color:var(--paper);color:var(--ink);font-family:var(--body);font-size:14px;line-height:1.5;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.33 0 0 0 0 0.2 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.wrap{max-width:1440px;margin:0 auto;padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px));padding-block:24px 130px;display:flex;flex-direction:column;gap:20px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
::selection{background:var(--blush)}

/* hero */
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:20px 32px;padding:22px 28px;background:var(--ivory);border:1px solid var(--gold);outline:1px solid var(--line);outline-offset:-7px;border-radius:4px}
.hero .corner{position:absolute;width:26px;height:26px;color:var(--gold)}
.hero .corner.tl{top:4px;left:4px}.hero .corner.tr{top:4px;right:4px;transform:scaleX(-1)}.hero .corner.bl{bottom:4px;left:4px;transform:scaleY(-1)}.hero .corner.br{bottom:4px;right:4px;transform:scale(-1,-1)}
.arch{width:min(300px,100%);display:block;margin:0 auto}
.hero-c{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.names{font-family:var(--caps);color:var(--sindoor);font-size:clamp(15px,1.7vw,19px);letter-spacing:.32em;font-weight:500;margin:6px 0 0;padding-left:.32em}
.mono{width:104px;height:auto;display:block}
.hero-l{display:flex;flex-direction:column;gap:6px;min-width:0}
.eyebrow{font-family:var(--caps);font-size:11px;letter-spacing:.28em;color:var(--gold-deep);text-transform:uppercase}
h1{font-family:var(--display);font-weight:500;font-style:italic;font-size:clamp(30px,3.6vw,46px);line-height:1.02;margin:0;color:var(--sindoor-deep);text-wrap:balance}
.sub{font-family:var(--display);font-size:19px;color:var(--muted);font-style:italic}
.divider{display:flex;align-items:center;gap:10px;color:var(--gold);margin:4px 0}
.divider::before,.divider::after{content:"";height:1px;width:56px;background:linear-gradient(90deg,transparent,var(--gold))}
.divider::after{background:linear-gradient(90deg,var(--gold),transparent)}
.hero-r{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:0}
.mode{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;letter-spacing:.02em}
.mode i{width:7px;height:7px;border-radius:50%;background:var(--line);display:inline-block}
.mode.shared i{background:#4f8a4b;box-shadow:0 0 0 3px #4f8a4b22} .mode.local i{background:var(--gold)}
.exports{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:980px){
  .hero{grid-template-columns:minmax(0,1fr);text-align:center;padding:22px 18px}
  .hero-l,.hero-r{align-items:center}
  .hero-c{order:-1}
  .exports{justify-content:center}
}

/* stats */
.stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:var(--ivory);border:1px solid var(--line);border-radius:4px}
.stat{padding:14px 18px;position:relative;min-width:0;text-align:center}
.stat+.stat::before{content:"";position:absolute;left:0;top:22%;bottom:22%;width:1px;background:linear-gradient(transparent,var(--gold),transparent)}
.stat b{display:block;font-family:var(--display);font-size:34px;font-weight:600;font-variant-numeric:lining-nums tabular-nums;line-height:1;color:var(--sindoor-deep)}
.stat b small{font-size:17px!important;color:var(--muted)!important;font-weight:500}
.stat span{display:block;margin-top:6px;font-family:var(--caps);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep)}
.stat .bar{height:3px;background:var(--gold-soft);border-radius:2px;margin:8px auto 0;max-width:120px;overflow:hidden}
.stat .bar i{display:block;height:100%;background:var(--sindoor)}
@media (max-width:760px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat:nth-child(4)::before{display:none}.stat:nth-child(-n+3){border-bottom:1px solid var(--line)}}

.main{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:20px;align-items:start}
@media (max-width:1020px){.main{grid-template-columns:minmax(0,1fr)}}

.card{background:var(--ivory);border:1px solid var(--line);border-radius:4px;min-width:0;box-shadow:0 1px 0 #fff inset,0 10px 30px -18px #7d0f1833}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 14px;border-bottom:1px solid var(--line)}
.seg{display:inline-flex;border:1px solid var(--gold);border-radius:999px;overflow:hidden;flex:none}
.seg button{border:0;background:transparent;padding:6px 14px;font-weight:500;font-size:13px;color:var(--gold-deep);letter-spacing:.02em}
.seg button[aria-pressed="true"]{background:var(--sindoor);color:var(--ivory)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--line);background:transparent;border-radius:999px;padding:4px 12px;font-size:12.5px;color:var(--muted)}
.chip:hover{border-color:var(--gold)}
.chip[aria-pressed="true"]{border-color:var(--sindoor);color:var(--sindoor);background:var(--blush)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted);margin-left:auto}
.legend span{display:inline-flex;align-items:center;gap:6px}
.sw{width:15px;height:12px;border-radius:2px;border:1.4px solid var(--gold);background:var(--ivory);display:inline-block}
.sw.p{background:var(--blush);border-color:var(--sindoor)}
.sw.f{background:var(--sindoor);border-color:var(--sindoor)}
.sw.h{background:var(--gold-soft);border-color:var(--gold-deep);border-style:dashed}

.mapbox{overflow-x:auto;-webkit-overflow-scrolling:touch;background:radial-gradient(ellipse at 50% 40%,#fffdf7 0%,var(--ivory) 60%)}
.mapbox svg{display:block;width:100%;min-width:860px;height:auto}
.mapnote{font-family:var(--display);font-style:italic;font-size:15px;color:var(--muted);padding:10px 16px;border-top:1px solid var(--line)}

/* site plan */
.m-lawn{fill:var(--lawn);stroke:var(--lawn-ink);stroke-width:1}
.m-bld{fill:var(--building);stroke:var(--line);stroke-width:1}
.m-water{fill:var(--water);stroke:#c9d8cf}
.m-path{fill:var(--path)}
.m-tree{fill:var(--tree);opacity:.9}
.m-petal{fill:var(--petal);opacity:.55}
.m-label{fill:var(--gold-deep);font-family:var(--caps);font-size:10.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase}
.m-small{fill:var(--muted);font-family:var(--body);font-size:8.5px;letter-spacing:.12em}
.m-line{stroke:var(--gold);stroke-width:1;fill:none;stroke-dasharray:3 3;opacity:.8}

.room{cursor:pointer}
.room rect.box{fill:var(--ivory);stroke:var(--gold);stroke-width:1.4;transition:fill .18s,stroke .18s,opacity .18s}
.room text.no{font-family:var(--caps);font-size:10px;font-weight:600;fill:var(--ink);pointer-events:none;letter-spacing:.02em}
.room circle{fill:transparent;stroke:var(--gold);stroke-width:1;pointer-events:none}
.room circle.on{fill:var(--gold-deep);stroke:var(--gold-deep)}
.room.s-partial rect.box{fill:var(--blush);stroke:var(--sindoor)}
.room.s-partial circle{stroke:var(--sindoor)} .room.s-partial circle.on{fill:var(--sindoor)}
.room.s-full rect.box{fill:var(--sindoor);stroke:var(--sindoor-deep)}
.room.s-full text.no{fill:var(--ivory)}
.room.s-full circle{stroke:var(--ivory)} .room.s-full circle.on{fill:var(--ivory)}
.room.s-over circle.on{fill:#f4c45a;stroke:#f4c45a}
.room.s-held rect.box{fill:var(--gold-soft);stroke:var(--gold-deep);stroke-dasharray:3 2}
.room.s-held circle{stroke:var(--gold-deep)} .room.s-held circle.on{fill:var(--gold-deep)}
.room:hover rect.box,.room:focus-visible rect.box{stroke-width:2.4}
.room:focus{outline:none}
.room.dim{opacity:.25}
.room.fits{filter:drop-shadow(0 0 4px #d9a84f)}
.room.fits rect.box{stroke:var(--gold-deep);stroke-width:2.4}
.room.active rect.box{fill:var(--ink);stroke:var(--ink)}
.room.active text.no{fill:var(--gold-soft)}
.room.active circle{stroke:var(--gold-soft)} .room.active circle.on{fill:var(--gold-soft)}
.room.found rect.box{stroke:#e0a22c;stroke-width:3.2}

/* list view */
.listview{padding:16px;display:flex;flex-direction:column;gap:22px}
.listview h3{margin:0 0 10px;font-family:var(--display);font-size:22px;font-weight:600;color:var(--sindoor-deep)}
.listview h3 small{display:block;font-family:var(--body);font-size:12px;font-weight:400;color:var(--muted);letter-spacing:.02em}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.rc{border:1.4px solid var(--gold);border-radius:4px;padding:9px 11px;background:var(--ivory);text-align:left;display:flex;flex-direction:column;gap:4px;min-width:0}
.rc .t{display:flex;justify-content:space-between;align-items:center;gap:6px}
.rc .t b{font-family:var(--caps);font-size:15px;font-weight:600}
.rc .who{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc.s-partial{border-color:var(--sindoor);background:var(--blush)}
.rc.s-full{border-color:var(--sindoor-deep);background:var(--sindoor);color:var(--ivory)}
.rc.s-full .who{color:#f6d9d3}
.rc.s-full .beds i{color:var(--ivory)}
.rc.s-held{border-color:var(--gold-deep);background:var(--gold-soft);border-style:dashed}
.rc.active{outline:2px solid var(--ink);outline-offset:2px}
.rc.dim{opacity:.3}
.beds{display:inline-flex;gap:3px}
.beds i{width:8px;height:8px;border-radius:50%;border:1.3px solid currentColor;display:inline-block;color:var(--gold-deep)}
.beds i.on{background:currentColor}
.beds.p i{color:var(--sindoor)} .beds.f i{color:var(--sindoor)} .beds.h i{color:var(--gold-deep)} .beds i.x{color:#d9901a;background:#d9901a}

/* side panel */
.side{position:sticky;top:calc(env(safe-area-inset-top, 0px) + 12px);display:flex;flex-direction:column;max-height:calc(100vh - 150px)}
@media (max-width:1020px){.side{position:static;max-height:none}}
.tabs{display:flex;border-bottom:1px solid var(--line)}
.tabs button{flex:1;border:0;background:transparent;padding:13px 8px;font-family:var(--caps);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button[aria-selected="true"]{color:var(--sindoor);border-bottom-color:var(--sindoor)}
.tabs .n{font-family:var(--body);letter-spacing:0;font-size:11px;background:var(--blush);color:var(--sindoor);border-radius:999px;padding:1px 7px;margin-left:6px}
.pane{overflow:auto;padding:14px;display:flex;flex-direction:column;gap:12px;min-height:0}

.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field label{font-family:var(--caps);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep)}
input[type=file]{width:100%;font-size:13px}
input[type=text],input[type=search],input[type=tel],select,textarea{width:100%;border:1px solid var(--line);background:#fffdf8;border-radius:4px;padding:8px 10px;min-width:0}
input:focus,select:focus,textarea:focus{border-color:var(--gold);outline:none;box-shadow:0 0 0 3px var(--gold-soft)}
textarea{resize:vertical;min-height:72px}
.row{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.row>.field{flex:1 1 120px}
.btn{border:1px solid var(--gold);background:transparent;border-radius:999px;padding:7px 15px;font-weight:500;font-size:13px;color:var(--gold-deep);letter-spacing:.02em}
.btn:hover{background:var(--gold-soft)}
.btn.primary{background:var(--sindoor);border-color:var(--sindoor);color:var(--ivory)}
.btn.primary:hover{background:var(--sindoor-deep)}
.btn.warn{background:#e2a43a;border-color:#e2a43a;color:#2b1405}
.btn.danger{color:var(--danger);border-color:var(--danger)}
.btn.ghost{border-color:transparent;background:transparent;color:var(--muted);padding:3px 8px}
.btn.ghost:hover{color:var(--sindoor);background:transparent}
.btn:disabled{opacity:.45;cursor:not-allowed}
details.add{border:1px solid var(--gold);border-radius:4px;background:linear-gradient(var(--ivory-2),var(--ivory))}
details.add summary{padding:10px 14px;font-family:var(--display);font-size:18px;font-weight:600;color:var(--sindoor-deep);cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
details.add summary::-webkit-details-marker{display:none}
details.add summary::after{content:"+";font-family:var(--body);font-weight:300;font-size:20px;color:var(--gold-deep)}
details.add[open] summary::after{content:"–"}
details.add form{padding:0 14px 14px;display:flex;flex-direction:column;gap:10px}
.hint{font-size:12px;color:var(--muted)}

.fam{border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#fffdf8}
.fam-h{display:flex;align-items:center;gap:8px;padding:8px 10px;background:var(--ivory-2);border-bottom:1px solid var(--line)}
.fam-h b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--display);font-size:17px;font-weight:600}
.side-tag{font-family:var(--caps);font-size:9px;letter-spacing:.14em;text-transform:uppercase;border-radius:999px;padding:2px 8px;border:1px solid var(--line);color:var(--muted)}
.side-tag.Bride{color:#9e2452;border-color:#c93a6d;background:#fbdbe6}
.side-tag.Groom{color:#6e4600;border-color:#c98306;background:#fbe8bf}
.g{display:flex;align-items:center;gap:8px;padding:6px 10px;border-top:1px solid #f0e5cf;min-width:0}
.fam-h+.g{border-top:0}
.g .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g .ph{font-size:11px;color:var(--muted)}
.g.sel{background:var(--blush)}
.rm{font-family:var(--caps);font-size:11px;font-weight:600;border:1px solid var(--sindoor);color:var(--sindoor);border-radius:3px;padding:0 6px;background:transparent}
.rm.none{border-color:var(--line);color:var(--muted);font-family:var(--body);font-weight:400;font-style:italic}
input[type=checkbox]{width:16px;height:16px;accent-color:var(--sindoor);flex:none}
.edit{display:flex;flex-direction:column;gap:6px;padding:10px;border-top:1px solid var(--line);background:var(--ivory-2)}
.empty{border:1px dashed var(--gold);border-radius:4px;padding:22px 18px;text-align:center;color:var(--muted);background:#fffdf8}
.empty b{display:block;font-family:var(--display);font-size:20px;font-weight:600;color:var(--sindoor-deep);margin-bottom:4px}

.rhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.rhead h2{font-family:var(--caps);font-weight:500;font-size:34px;margin:0;line-height:1;color:var(--sindoor-deep);letter-spacing:.04em}
.rhead .cat{font-family:var(--display);font-size:19px;font-weight:600;margin-top:6px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13px}
.kv dt{color:var(--gold-deep);font-family:var(--caps);font-size:10px;letter-spacing:.16em;padding-top:2px}
.kv dd{margin:0;font-family:var(--display);font-style:italic;font-size:16px}
.occ{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#fffdf8}
.occ .g:first-child{border-top:0}
.notice{border-radius:4px;padding:9px 12px;font-size:13px;background:#fbefd9;border:1px solid #e2a43a}
.notice.held{background:var(--gold-soft);border-color:var(--gold-deep)}

.blessing{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:6px;text-align:center}
.lattice{width:100%;height:30px;border-block:1px solid var(--gold);opacity:.85;
  background:var(--ivory) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path d='M14 2 L26 14 L14 26 L2 14 Z' fill='none' stroke='%23c9a66b' stroke-width='1'/><circle cx='14' cy='14' r='2.2' fill='%23c4313c' opacity='.7'/></svg>") center/28px 28px repeat-x}
.blessing p{margin:0;font-family:var(--display);font-style:italic;font-size:22px;color:var(--sindoor-deep);line-height:1.3;text-wrap:balance}
.blessing small{font-family:var(--caps);font-size:10px;letter-spacing:.3em;color:var(--gold-deep)}

.selbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:linear-gradient(180deg,var(--sindoor),var(--sindoor-deep));color:var(--ivory);border-top:2px solid var(--gold);padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px));padding-top:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px));box-shadow:0 -10px 30px -10px #3b141666}
.selbar .in{max-width:1440px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.selbar .what{flex:1 1 240px;min-width:0}
.selbar .what b{font-family:var(--display);font-size:22px;font-weight:600}
.selbar .what div{font-size:12px;opacity:.82;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selbar .btn{border-color:transparent}
.selbar .btn.primary{background:var(--gold-soft);color:var(--sindoor-deep);border-color:var(--gold)}
.selbar .btn.primary:hover{background:#fff4dc}
.selbar .btn.ghost{color:var(--ivory);opacity:.85}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + env(safe-area-inset-bottom, 0px));background:var(--ink);color:var(--gold-soft);padding:10px 18px;border-radius:999px;border:1px solid var(--gold);font-weight:500;z-index:30;box-shadow:0 8px 24px #3b141640;max-width:calc(100vw - 32px)}
.toast.err{background:var(--danger);color:#fff;border-color:var(--danger)}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}

/* site plan v2: wooded hillside, one connected path network */
.mapbox{background:#e7e8d1}
.m-ground{fill:#e4e6cc}
.m-lawn{fill:#e9efcf;stroke:#d3ddb0;stroke-width:1}
.m-shade{fill:#7f9663;opacity:.18}
.m-canopy{opacity:.82}
.m-bloom{fill:#d0485a;opacity:.75}
.m-pear{fill:#fffaf0;opacity:.9}
.m-petal{fill:var(--petal);opacity:.5}
.m-stream{fill:none;stroke:#c7dcd8;stroke-width:6;stroke-linecap:round}
.m-path-edge{fill:none;stroke:#d8c9a9;stroke-linecap:round;stroke-linejoin:round}
.m-path{fill:#efe5cf;stroke:#efe5cf;stroke-linecap:round;stroke-linejoin:round}
path.m-path{fill:none}
.m-path.road{stroke:#e9dcc0}
circle.m-path{fill:#e9dcc0;stroke:#d8c9a9;stroke-width:1.5}
.m-island{fill:#c3d3a1;stroke:#a3bb82}
.m-steps{fill:none;stroke:#d8c9a9;stroke-dasharray:1.5 4;stroke-linecap:butt}
.m-centre{fill:none;stroke:#fffaf0;stroke-width:1.2;stroke-dasharray:8 7}
.m-bridge{fill:#d9c49c;stroke:#b38b4d;stroke-width:1}
.m-rail{stroke:#8e6a32;stroke-width:1.4;fill:none}
.m-bld{fill:#f4ead6;stroke:#d9c7a3;stroke-width:1}
.m-deck{fill:#efe4cd;stroke:#d9c7a3;stroke-width:1;stroke-dasharray:4 3}
.m-court{fill:#d6e2bf;stroke:#fffaf0;stroke-width:2}
.m-courtline{stroke:#fffaf0;stroke-width:1.5;fill:none}
.m-park{fill:#ece3cf;stroke:#d8c9a9}
.m-stall{stroke:#fffaf0;stroke-width:1.2}
.m-lobby{fill:#e8dcc2}
.m-water{fill:#d7e8e4;stroke:#b9d2cc;stroke-width:1}
.m-fount{fill:#fffaf0}
.m-north{fill:var(--gold-deep)}
.m-label,.m-small{paint-order:stroke;stroke:#fbf6ea;stroke-width:3px;stroke-linejoin:round}
.room circle.b18.b18{fill:var(--gold-deep);stroke:#fffaf0;stroke-width:1}
.room.closed{opacity:.32}
.room.closed rect.box{stroke-dasharray:2 2}
.rc.closed{opacity:.35}
.dot18{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--gold-deep);border:1.5px solid #fffaf0;box-shadow:0 0 0 1px var(--gold-deep);vertical-align:middle}

/* wedding functions */
.events{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:900px){.events{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.events{grid-template-columns:minmax(0,1fr)}}
.ev{display:flex;gap:14px;align-items:center;text-align:left;background:var(--ivory);border:1px solid var(--line);border-radius:4px;padding:12px 14px;min-width:0;transition:border-color .15s,background .15s}
.ev:hover{border-color:var(--gold)}
.ev[aria-pressed="true"]{border-color:var(--sindoor);background:#fdf1ec;box-shadow:0 0 0 1px var(--sindoor) inset}
.ev-d{font-family:var(--display);font-size:38px;font-weight:600;line-height:1;color:var(--sindoor-deep);flex:none;padding-right:14px;border-right:1px solid var(--gold)}
.ev-d sup{font-size:13px;font-family:var(--caps);letter-spacing:.06em;margin-left:1px}
.ev-b{display:flex;flex-direction:column;min-width:0;gap:1px}
.ev-n{font-family:var(--display);font-style:italic;font-size:22px;font-weight:600;color:var(--sindoor);line-height:1.1}
.ev-t{font-size:12px;color:var(--ink)}
.ev-v{font-family:var(--caps);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep);margin-top:3px}
.m-venue{fill:#f3c9b8;opacity:.32;stroke:var(--sindoor);stroke-width:1.2;stroke-dasharray:5 4;transition:opacity .2s}
.m-venue.hl{opacity:.75;stroke-width:2.4}
.pin{cursor:pointer}
.pin-drop{fill:var(--sindoor);stroke:#fffaf0;stroke-width:1.5}
.pin-dot{fill:#f1e4c6}
.pin-name{font-family:var(--display);font-style:italic;font-weight:600;font-size:15px;fill:var(--sindoor-deep);paint-order:stroke;stroke:#fffaf0;stroke-width:4px;stroke-linejoin:round}
.pin-when{font-family:var(--caps);font-size:8.5px;letter-spacing:.12em;fill:var(--gold-deep);paint-order:stroke;stroke:#fffaf0;stroke-width:3px;stroke-linejoin:round}
.pin.hl .pin-drop{fill:var(--sindoor-deep);transform:scale(1.25);transform-box:fill-box;transform-origin:50% 100%}

/* friends' groups */
.grp{border-top:1px solid #f0e5cf;background:linear-gradient(90deg,var(--gold-soft) 0 3px,transparent 3px)}
.grp-h{display:flex;align-items:center;gap:8px;padding:7px 10px 3px}
.grp-n{font-family:var(--display);font-style:italic;font-weight:600;font-size:16px;color:var(--gold-deep)}
.grp-h .hint{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grp .g{border-top:0;padding-left:22px}
.grp-hit{border-color:var(--gold);background:var(--gold-soft)}
.grp-hit .fn{font-style:italic;font-family:var(--display);font-size:16px;font-weight:600}
.grpform{display:flex;gap:8px;align-items:center;flex:1 1 320px;min-width:0}
.grpform input{flex:1;min-width:0;background:#fffaf0;color:var(--ink)}
.selbar .btn:not(.primary):not(.ghost){color:var(--ivory);border-color:var(--gold);background:transparent}

/* party rows */
.g .fn{font-weight:500}
.g .hc{color:var(--muted);font-size:12px;margin-left:2px}
.g .ph{display:block;font-size:11px;color:var(--muted)}
.day{font-family:var(--caps);font-size:9px;letter-spacing:.12em;border-radius:999px;padding:2px 7px;border:1px solid var(--line);color:var(--muted);flex:none}
.day.d18{color:var(--sindoor);border-color:#e7b0aa;background:#fbeae6}
.day.d19{color:var(--gold-deep);border-color:var(--gold);background:var(--gold-soft)}
.tag{font-size:10.5px;color:var(--muted);border:1px dashed var(--line);border-radius:3px;padding:0 5px;flex:none}
.finder{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--gold);border-radius:4px;background:linear-gradient(var(--ivory-2),var(--ivory))}
.res{display:flex;flex-direction:column;gap:4px;max-height:340px;overflow:auto}
.hit{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:1px solid var(--line);background:#fffdf8;border-radius:4px;padding:7px 10px;min-width:0}
.hit:hover,.hit:focus-visible{border-color:var(--sindoor);background:var(--blush)}
.hit .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hit .go{font-size:12px;font-weight:500;color:var(--sindoor);flex:none}
.hit.tight .go{color:#b0700f}
.toggles{display:flex;flex-direction:column;gap:8px;font-size:13px}
.toggles label{display:flex;gap:8px;align-items:center}
/* site plan v3: raised, lit from the north-west */
.mapbox{background:#dfe3c4;box-shadow:inset 0 0 40px #7a8a5a33}
.mapbox svg{min-width:980px}
.m-contour{fill:none;stroke:#c9d1a6;stroke-width:1.2;stroke-dasharray:2 5;opacity:.8}
.m-stream{fill:none;stroke:#9fcfd3;stroke-width:7;stroke-linecap:round}
.m-stream-hi{fill:none;stroke:#e3f4f2;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:6 9}
.m-lawn-edge{fill:#b9c98f;opacity:.55}
.m-lawn{fill:url(#mow);stroke:#c8d79f;stroke-width:1}
.m-venue{fill:var(--evc);fill-opacity:.12;stroke:var(--evc);stroke-width:1.6;stroke-dasharray:6 5;opacity:1;transition:fill-opacity .2s,stroke-width .2s}
.m-venue.hl{fill-opacity:.3;stroke-width:3;stroke-dasharray:none}
.m-shade{fill:#4f6236;opacity:.2}
.m-pear{fill:#fffaf0;opacity:.95}
.m-path-edge{fill:none;stroke:#cdbd99;stroke-linecap:round;stroke-linejoin:round}
path.m-path{fill:none;stroke:#f1e8d3;stroke-linecap:round;stroke-linejoin:round}
path.m-path.road{stroke:#e8dcc1}
.m-steps{fill:none;stroke:#cdbd99;stroke-dasharray:1.5 3.5}
.m-centre{fill:none;stroke:#fffaf0;stroke-width:1.3;stroke-dasharray:9 8}
.m-round{fill:#e8dcc1;stroke:#cdbd99;stroke-width:2}
.m-island{fill:#cfe0a3;stroke:#a3bb82}
.m-bridge{fill:#c8a874;stroke:#8e6a32;stroke-width:1}
.m-rail{stroke:#6e4f22;stroke-width:1.8;fill:none}
.m-cast{fill:#3e3220;opacity:.28}
.m-slab{stroke:#d5c39d;stroke-width:.8}
.m-deck{fill:#f6efe0;stroke:#dccaa6;stroke-width:1}
.m-poolrim{fill:#fbf6ea;stroke:#d9c7a3;stroke-width:1}
.m-lane{stroke:#e8f7f6;stroke-width:1;opacity:.7}
.m-glint{fill:none;stroke:#ffffff;stroke-width:1.5;opacity:.6;stroke-linecap:round}
.m-lobby{fill:#e6d8bb}
.m-courtline{fill:none;stroke:#fffaf0;stroke-width:1.4}
.m-stall{stroke:#fffaf0;stroke-width:1.2}
.m-car{stroke:#00000026;stroke-width:.6}
.m-carglass{fill:#ffffff;opacity:.45}
.m-ridge{stroke:#f0a283;stroke-width:1.3;opacity:.9}
.m-fount{fill:#ffffff}
.m-marigold{fill:#f0a81c;opacity:.75}
.m-stage{fill:#4a2a63;stroke:#d9b55c;stroke-width:1}
.m-bulb{fill:#ffd36b}
.m-mandap{fill:#a3141f;stroke:#d9b55c;stroke-width:1.6}
.m-mandap-in{fill:#c92a35;stroke:#f1d48a;stroke-width:.8}
.m-post{fill:#d9b55c;stroke:#8e6a32;stroke-width:.8}
.m-agni{fill:#ffb347}
.m-aisle{stroke:#d0485a;stroke-width:5;stroke-linecap:round;stroke-dasharray:1 7;opacity:.8}
.m-glow{fill:#ffb347;opacity:.35}
.m-log{stroke:#6b4423;stroke-width:3;stroke-linecap:round}
.m-flame{fill:#f36f21;stroke:#ffd36b;stroke-width:1}
.m-rl{fill:#fff4e6;font-family:var(--caps);font-size:10px;letter-spacing:.14em;text-transform:uppercase;paint-order:stroke;stroke:#8a3b29;stroke-width:2px}
.m-compass{fill:#fffaf0;stroke:var(--gold);stroke-width:1}
.room{transition:transform .15s}
.room:hover{transform:translateY(-2px)}
.room rect.sh{fill:#3e3220;opacity:.22}
.room rect.wall{fill:#c7a96f}
.room.s-partial rect.wall{fill:#c45a53}
.room.s-full rect.wall{fill:#5e0a12}
.room.s-held rect.wall{fill:#9d7a3d}
.room.active rect.wall{fill:#1d0a0b}
.room.closed rect.wall,.room.closed rect.sh{opacity:.5}
.pin-shadow{fill:#2a2216;opacity:.3}
.pin-drop{fill:var(--evc);stroke:#fffaf0;stroke-width:1.6}
.pin-name{fill:var(--evc)}
.pin.hl .pin-drop{transform:scale(1.25);transform-box:fill-box;transform-origin:50% 100%}
.ev{border-left:4px solid var(--evc)}
.ev-d{color:var(--evc);border-right-color:var(--evc)}
.ev-n{color:var(--evc)}
.ev[aria-pressed="true"]{border-color:var(--evc);box-shadow:0 0 0 1px var(--evc) inset;background:#fffaf0}

/* zoom */
.mapwrap{position:relative}
.mapbox,.mapbox.zoomed{overflow:hidden;aspect-ratio:1270/850;max-width:100%}
.mapbox.zoomed{overflow:auto;cursor:grab;overscroll-behavior:contain;touch-action:pan-x pan-y}
.mapbox.dragging{cursor:grabbing;user-select:none}
.mapbox svg,.mapbox.zoomed svg{min-width:0!important;width:calc(100% * var(--z,1));max-width:none}
.zoom{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;background:var(--ivory);border:1px solid var(--gold);border-radius:6px;overflow:hidden;box-shadow:0 6px 18px -8px #3b141655}
.zoom button{border:0;background:transparent;width:38px;height:34px;font-family:var(--body);font-size:20px;line-height:1;color:var(--sindoor-deep)}
.zoom button+button{border-top:1px solid var(--line)}
.zoom #zFit{font-size:11px;letter-spacing:.06em;font-family:var(--caps)}
.zoom button:hover:not(:disabled){background:var(--gold-soft)}
.zoom button:disabled{color:var(--line);cursor:default}
.zhint{position:absolute;left:12px;bottom:10px;font-size:11px;background:#fffaf0e0;border:1px solid var(--line);border-radius:999px;padding:3px 10px;color:var(--muted);pointer-events:none}

.events{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1180px){.events{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* phone */
.sheet-bar{display:none}
.ztap{display:none}
@media (max-width:760px){
  .wrap{gap:14px;padding-block:14px 120px}
  .hero{padding:18px 14px;gap:12px}
  .hero .corner{display:none}
  .arch{width:min(230px,70vw)}
  .mono{width:78px}
  h1{font-size:28px}
  .sub{font-size:16px}
  .exports .btn{padding:9px 14px}
  .stat{padding:10px 6px}
  .stat b{font-size:26px}
  .stat span{font-size:9px;letter-spacing:.12em}
  .events{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;margin-inline:calc(-1 * max(16px, env(safe-area-inset-left, 0px)));padding-inline:max(16px, env(safe-area-inset-left, 0px));scrollbar-width:none}
  .events::-webkit-scrollbar{display:none}
  .ev{flex:0 0 74%;scroll-snap-align:start;padding:10px 12px}
  .ev-d{font-size:30px}
  .toolbar{gap:8px;padding:10px}
  .toolbar .seg{flex:1 1 auto}
  .toolbar .seg button{flex:1;padding:8px 10px}
  .chips{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:none;padding:6px 12px}
  .legend{margin-left:0;gap:4px 10px;font-size:11px}
  .mapnote{font-size:14px}
  .ztap{display:block}
  .ztap[hidden]{display:none!important}
  .zoom button{width:44px;height:42px}
  .room:hover{transform:none}
  input[type=text],input[type=search],input[type=tel],select,textarea{font-size:16px;padding:10px 12px}
  .btn{padding:9px 14px}
  .btn.ghost{padding:8px 10px}
  .g{padding:9px 10px}
  .hit{padding:11px 12px}
  .selbar .what b{font-size:18px}
  .selbar .in{gap:8px}
  .selbar .btn.primary{flex:1 1 100%;padding:12px}
  .grpform{flex:1 1 100%}
  /* room details open as a bottom sheet */
  body.sheet{overflow:hidden}
  body.sheet .side{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:40;max-height:86vh;border-radius:16px 16px 0 0;border-bottom:0;box-shadow:0 -14px 40px -10px #3b141680;padding-bottom:env(safe-area-inset-bottom, 0px);animation:sheetUp .22s ease-out}
  body.sheet .side .pane{flex:1 1 auto}
  body.sheet .sheet-bar{display:flex;align-items:center;justify-content:center;position:relative;padding:8px 12px 2px}
  .sheet-bar .grab{width:42px;height:5px;border-radius:3px;background:var(--line)}
  .sheet-bar .btn{position:absolute;right:10px;top:6px;padding:5px 14px}
  body.sheet .selbar{display:none}
  body.sheet::after{content:"";position:fixed;inset:0;background:#3b141633;z-index:35}
}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion: reduce){body.sheet .side{animation:none}}
.toast{z-index:60}
@media (max-width:760px){.zoom{flex-direction:row;top:8px;right:8px}.zoom button{width:40px;height:38px}.zoom button+button{border-top:0;border-left:1px solid var(--line)}}
