/* ============================================================
   STAYLIO V3 — "Maison"
   Luxury travel house: Italiana display, champagne on ivory,
   cinematic video hero, hairline rules. PK-school restraint.
   ============================================================ */

:root {
  --ink: #15171e;
  --ink-2: #1d2027;
  --ivory: #f4efe6;
  --ivory-2: #ebe4d6;
  --paper: #faf7f1;
  --champagne: #c2a15f;
  --champagne-deep: #a9884a;
  --champagne-soft: #dcc494;
  --muted: #8b8574;
  --ink-soft: #4c4f58;
  --line: rgba(21, 23, 30, 0.14);
  --line-soft: rgba(21, 23, 30, 0.08);
  --line-dark: rgba(244, 239, 230, 0.16);
  --radius: 16px;
  --shadow: 0 2px 8px rgba(21, 23, 30, 0.05), 0 18px 50px rgba(21, 23, 30, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Italiana', serif; font-weight: 400; }
.serif-i { font-family: 'Cormorant Garamond', serif; font-style: italic; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--champagne); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.eyebrow {
  font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--champagne); font-weight: 400;
}
.rule-gold { height: 1px; background: linear-gradient(to right, transparent, var(--champagne), transparent); border: 0; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 23, 30, 0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194, 161, 95, 0.28);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.wordmark {
  font-family: 'Italiana', serif; font-size: 23px; color: var(--ivory);
  letter-spacing: 0.32em; text-transform: uppercase;
}
.wordmark b { color: var(--champagne); font-weight: 400; }
.verticals { display: flex; gap: 4px; align-items: center; }
.vert {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 15px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244, 239, 230, 0.62); border-bottom: 1px solid transparent;
}
.vert:hover { color: var(--ivory); }
.vert.on { color: var(--ivory); border-bottom-color: var(--champagne); }
.vert .soon {
  font-size: 8.5px; letter-spacing: 0.14em; color: var(--champagne);
  border: 1px solid rgba(194, 161, 95, 0.45); border-radius: 999px; padding: 2px 7px;
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,230,.7); }
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  background: transparent; color: var(--ivory); border: 1px solid rgba(244,239,230,.4);
  padding: 9px 20px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: all .3s ease;
}
.nav-cta:hover { background: var(--ivory); color: var(--ink); }

/* ---- hero (video) ---- */
.hero {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  background: var(--ink); text-align: center; padding: 90px 20px 70px;
}
.hero video, .hero .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,23,30,.62), rgba(21,23,30,.18) 45%, rgba(21,23,30,.7));
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { color: var(--champagne-soft); }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 92px); color: var(--ivory);
  margin: 18px 0 10px; line-height: 1.02; letter-spacing: 0.01em;
}
.hero .sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  color: rgba(244, 239, 230, 0.85); font-size: clamp(17px, 2vw, 22px); margin: 0 0 44px;
}

/* ---- search card ---- */
.prompt {
  position: relative;
  max-width: 900px; margin: 0 auto;
  background: rgba(244, 239, 230, 0.94); backdrop-filter: blur(16px);
  border: 1px solid rgba(194, 161, 95, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.prompt-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.9fr auto; align-items: stretch; }
.pfield { padding: 15px 20px 13px; text-align: left; position: relative; }
.pfield + .pfield { border-left: 1px solid var(--line-soft); }
.pfield label {
  display: block; font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--champagne-deep); margin-bottom: 3px; font-weight: 400;
}
.pfield input, .pfield select {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 15px; color: var(--ink);
  padding: 0; color-scheme: light;
}
.pfield input::placeholder { color: var(--muted); }
.prompt-go {
  border: 0; background: var(--ink); color: var(--ivory);
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 0 34px; transition: background .3s ease, color .3s ease;
}
.prompt-go:hover { background: var(--champagne); color: var(--ink); }
.ac-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 340px; z-index: 60;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: none; text-align: left;
}
.ac-panel.open { display: block; }
.ac-item { display: flex; gap: 12px; align-items: center; padding: 13px 18px; cursor: pointer; }
.ac-item:hover, .ac-item.sel { background: var(--ivory); }
.ac-item .pin { width: 32px; height: 32px; border: 1px solid rgba(194,161,95,.4); color: var(--champagne-deep); display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; }
.ac-item b { display: block; font-size: 14px; font-weight: 400; font-family: 'Jost'; }
.ac-item span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.suggests { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.suggests button {
  background: none; border: 0; padding: 2px 0;
  color: rgba(244, 239, 230, 0.72); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.suggests button:hover { color: var(--champagne-soft); border-bottom-color: var(--champagne); }

/* ---- sections ---- */
.sect { padding: 84px 0 10px; }
.sect-head { text-align: center; margin-bottom: 44px; }
.sect-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 6px; letter-spacing: 0.02em; }
.sect-head .lede { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--muted); font-size: 17px; margin: 0; }

/* destination tiles — arch tops, gentle tilt */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 20px; }
.dest {
  position: relative; overflow: hidden; aspect-ratio: 3/4.1;
  border-radius: 999px 999px 14px 14px;
  cursor: pointer; border: 0; padding: 0; background: var(--ivory-2);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  transform-style: preserve-3d; will-change: transform;
}
.dest:hover { box-shadow: 0 26px 60px rgba(21,23,30,.22); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.dest:hover img { transform: scale(1.05); }
.dest::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(21,23,30,.68)); }
.dest b {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; color: var(--ivory);
  font-family: 'Italiana', serif; font-weight: 400; font-size: 19px; letter-spacing: .14em;
  text-transform: uppercase; text-align: center;
}

/* ---- ink reveal ---- */
.reveal-sect { padding: 90px 0; }
.ink-reveal {
  position: relative; height: 430px; overflow: hidden; border-radius: var(--radius);
  background-size: cover; background-position: center; cursor: crosshair;
}
.ink-cover {
  position: absolute; inset: 0; background: var(--ink);
  -webkit-mask-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), transparent 0 110px, black 210px);
  mask-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), transparent 0 110px, black 210px);
  transition: -webkit-mask-position .05s linear;
}
.ink-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; pointer-events: none; z-index: 2;
  padding: 20px;
}
.ink-text h2 {
  color: var(--ivory); font-size: clamp(32px, 4.6vw, 56px); margin: 12px 0 10px;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.ink-text .serif-i { color: var(--champagne-soft); font-size: 17px; text-shadow: 0 1px 16px rgba(0,0,0,.6); }

/* ---- editorial link previews ---- */
.editorial {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(21px, 2.8vw, 30px); line-height: 1.65; color: var(--ink-soft);
  max-width: 820px; margin: 10px auto 0;
}
.lp {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
  border-bottom: 1px solid var(--champagne); cursor: pointer;
  transition: color .3s ease;
}
.lp:hover { color: var(--champagne-deep); }
.lp-preview {
  position: fixed; z-index: 80; width: 210px; height: 140px; pointer-events: none;
  transform: translate(-50%, -100%) rotate(-2deg) scale(.9); opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 20px 50px rgba(21,23,30,.35); border: 4px solid var(--paper);
}
.lp-preview.show { opacity: 1; transform: translate(-50%, -100%) rotate(-2deg) scale(1); }
.lp-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---- standard (props) ---- */
.standard { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding: 20px 0 90px; }
.std { text-align: left; }
.std .no { font-family: 'Italiana', serif; font-size: 15px; color: var(--champagne); letter-spacing: .3em; }
.std hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0 16px; }
.std h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: .02em; }
.std p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ---- results ---- */
.results-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 34px 0 8px; flex-wrap: wrap; }
.results-bar h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.results-meta { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .14em; text-transform: uppercase; }
.sortsel {
  border: 1px solid var(--line); padding: 10px 16px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper); color: var(--ink-soft); outline: none; font-family: 'Jost';
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; margin: 30px 0 90px; }
.card {
  overflow: hidden; background: var(--paper); border: 1px solid var(--line-soft);
  transition: box-shadow .4s ease, transform .4s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card .ph { position: relative; aspect-ratio: 4/3; background: var(--ivory-2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .ph img { transform: scale(1.04); }
.badge-rate {
  position: absolute; top: 12px; left: 12px;
  background: rgba(250, 247, 241, 0.94); border: 1px solid rgba(194,161,95,.3);
  padding: 5px 12px; font-size: 11px; letter-spacing: .08em; color: var(--ink);
  display: flex; gap: 7px; align-items: center;
}
.badge-rate .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card .stars { color: var(--champagne); font-size: 11px; letter-spacing: 3px; }
.card h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: normal; font-weight: 600; font-size: 20px; line-height: 1.25; font-variant-numeric: lining-nums; }
.card .price, .room .rprice b, .room .rname, .hotel-head h1 { font-variant-numeric: lining-nums; }
.card .addr { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .03em; }
.card .price-row { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--line-soft); }
.card .price { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 23px; letter-spacing: .01em; }
.card .per { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

/* skeletons */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.sk { overflow: hidden; border: 1px solid var(--line-soft); background: var(--paper); }
.sk .b {
  background: linear-gradient(90deg, #efe9dd 25%, #e6dfd0 37%, #efe9dd 63%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
}
.sk .ph { aspect-ratio: 4/3; }
.sk .l1 { height: 15px; margin: 16px 20px 9px; }
.sk .l2 { height: 11px; margin: 0 20px 18px; width: 60%; }

/* ---- luxury load mark (glinting monogram over skeletons) ---- */
.cards { position: relative; }
.gallery { position: relative; }
@keyframes glint { 0% { background-position: 220% 0; } 100% { background-position: -120% 0; } }
@keyframes lm-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.load-mark {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: min(150px, 24vh); gap: 14px;
  background: radial-gradient(ellipse 46% 300px at 50% min(190px, 30vh), rgba(244,239,230,.97) 30%, rgba(244,239,230,0) 75%);
}
.load-mark .lm-word {
  font-family: 'Italiana', serif; font-size: clamp(42px, 6vw, 68px); letter-spacing: .3em;
  padding-left: .3em; /* optically center the tracked text */
  background: linear-gradient(100deg, rgba(21,23,30,.42) 38%, var(--champagne) 50%, rgba(21,23,30,.42) 62%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glint 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
.load-mark .lm-sub {
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--champagne-deep);
  animation: lm-breathe 2.4s ease-in-out infinite;
}
.gallery .load-mark .lm-word { font-size: clamp(30px, 4vw, 46px); }

.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state h3 { font-size: 26px; margin: 0 0 8px; color: var(--ink); }

/* ---- hotel page ---- */
.crumbs { font-size: 11px; color: var(--muted); padding: 22px 0 6px; letter-spacing: .18em; text-transform: uppercase; }
.crumbs a:hover { color: var(--champagne-deep); }
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px;
  gap: 8px; overflow: hidden; margin: 14px 0 28px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g0 { grid-row: span 2; }
.hotel-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.hotel-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; }
.hotel-head .sub { font-size: 13px; color: var(--ink-soft); letter-spacing: .05em; }
.hotel-head .stars { color: var(--champagne); letter-spacing: 3px; }
.score-chip { background: var(--ink); color: var(--ivory); padding: 12px 18px; text-align: center; min-width: 70px; }
.score-chip b { display: block; font-size: 21px; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--champagne-soft); }
.score-chip span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.fac-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.fac-chips span {
  border: 1px solid var(--line); padding: 7px 15px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper);
}
.prose { color: var(--ink-soft); font-size: 15px; line-height: 1.85; max-width: 740px; white-space: pre-line; }
.rooms { margin: 44px 0 90px; }
.rooms h2 { font-size: 30px; margin: 0 0 20px; }
.room {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  border: 1px solid var(--line-soft); background: var(--paper);
  padding: 20px 24px; margin-bottom: 10px; flex-wrap: wrap;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.room:hover { border-color: rgba(194,161,95,.5); box-shadow: var(--shadow); }
.room .rname { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 19px; margin-bottom: 5px; }
.room .rmeta { display: flex; gap: 8px; flex-wrap: wrap; }
.room .tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; background: var(--ivory); color: var(--ink-soft); border: 1px solid var(--line-soft); }
.room .tag.ok { color: var(--champagne-deep); border-color: rgba(194,161,95,.45); background: rgba(194,161,95,.08); }
.room .rprice { text-align: right; }
.room .rprice b { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; display: block; }
.room .rprice span { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
/* Shiny book button — still at rest (subtle gradient), shimmer only on hover */
@keyframes book-sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 58% 50%; }
  100% { background-position: 0% 50%; }
}
.book-btn {
  color: var(--ivory); border: 0; cursor: pointer;
  padding: 13px 30px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(325deg,
    var(--ink) 0%, var(--ink) 32%,
    #6d5a35 46%, var(--champagne) 55%, #6d5a35 64%,
    var(--ink) 78%, var(--ink) 100%);
  background-size: 300% auto; background-position: 8% 50%;
  box-shadow:
    0 0 14px rgba(194, 161, 95, 0.25),
    0 5px 6px -2px rgba(8, 10, 18, 0.5),
    inset 3px 3px 7px rgba(244, 239, 230, 0.1),
    inset -3px -3px 7px rgba(0, 0, 0, 0.45);
  transition: box-shadow .35s ease;
}
.book-btn:hover {
  animation: book-sweep 1.9s ease-in-out infinite;
  box-shadow:
    0 0 28px rgba(194, 161, 95, 0.55),
    0 5px 10px -2px rgba(8, 10, 18, 0.5),
    inset 3px 3px 7px rgba(255, 250, 240, 0.28),
    inset -3px -3px 7px rgba(120, 90, 40, 0.4);
}

/* compact search on results */
.mini-search { padding: 22px 0 0; }
.mini-search .prompt { max-width: 100%; box-shadow: none; border-color: var(--line); }

/* ---- coming soon ---- */
.soon-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.soon-icon {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 32px;
  display: grid; place-items: center; color: var(--champagne-deep);
  border: 1px solid rgba(194, 161, 95, 0.5);
}
.soon-icon svg { width: 36px; height: 36px; }
.soon-wrap h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 0 0 16px; }
.soon-wrap .serif-i { color: var(--muted); max-width: 480px; margin: 0 auto 40px; line-height: 1.7; font-size: 18px; display: block; }
.waitlist { display: flex; gap: 0; max-width: 440px; margin: 0 auto; border: 1px solid var(--line); background: var(--paper); }
.waitlist input {
  flex: 1; background: transparent; border: 0;
  padding: 14px 18px; color: var(--ink); font-family: 'Jost'; font-weight: 300; font-size: 14px; outline: none; min-width: 0;
}
.waitlist .prompt-go { padding: 0 26px; }
.soon-note { margin-top: 18px; font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.soon-ok { color: var(--champagne-deep); font-size: 15px; font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* ---- hero pill ---- */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(194, 161, 95, 0.5); background: rgba(21, 23, 30, 0.5);
  backdrop-filter: blur(10px); padding: 7px 7px 7px 16px; margin-bottom: 26px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,239,230,.85);
  transition: border-color .3s ease;
}
.hero-pill:hover { border-color: var(--champagne); }
.hero-pill .tag {
  background: var(--champagne); color: var(--ink); padding: 4px 10px;
  font-size: 9.5px; letter-spacing: 0.14em;
}

/* ---- location tag ---- */
.loc-tag {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(194, 161, 95, 0.45); background: rgba(194, 161, 95, 0.07);
  color: var(--champagne-deep); padding: 6px 14px;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
}
.loc-tag svg { width: 12px; height: 12px; }

/* ---- gallery lightbox ---- */
.gallery { cursor: zoom-in; }
.gallery .more-tile { position: relative; }
.gallery .more-tile::after {
  content: attr(data-more); position: absolute; inset: 0;
  display: grid; place-items: center; background: rgba(21, 23, 30, 0.55);
  color: var(--ivory); font-family: 'Jost'; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(14, 15, 20, 0.96);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 48px 20px 22px;
}
.lightbox[hidden] { display: none; }
.lb-stage { max-width: min(1100px, 94vw); max-height: 76vh; display: grid; place-items: center; }
.lb-stage img, .lb-stage video {
  max-width: min(1100px, 94vw); max-height: 76vh; object-fit: contain;
  border: 6px solid var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lb-count {
  color: rgba(244,239,230,.6); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  padding-top: 16px; font-family: 'Jost';
}
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244,239,230,.3);
  background: transparent; color: var(--ivory); font-size: 20px;
  display: grid; place-items: center; transition: all .25s ease; z-index: 102;
}
.lb-btn:hover { border-color: var(--champagne); color: var(--champagne-soft); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-close { top: 26px; right: 26px; transform: none; width: 44px; height: 44px; font-size: 15px; }

/* ---- map ---- */
.map-styles { display: flex; gap: 6px; }
.map-styles button {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 8px 16px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  font-family: 'Jost'; transition: all .25s ease;
}
.map-styles button.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.map-styles button:hover:not(.on) { border-color: var(--champagne); color: var(--champagne-deep); }
.maplibregl-popup-content {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 15px;
  color: #15171e; border-radius: 0; box-shadow: 0 10px 30px rgba(21,23,30,.25);
}

/* ---- toasts ---- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  z-index: 120; background: var(--ink); color: var(--ivory);
  border-top: 2px solid var(--champagne);
  padding: 15px 26px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16.5px;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease;
  max-width: min(480px, 90vw); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-top-color: #b4544e; }

/* ---- footer (Maison — centered, floating logo chip) ---- */
.footer {
  border-top: 1px solid rgba(194,161,95,.3); background: var(--ink);
  margin-top: 40px; overflow: hidden; position: relative;
  min-height: 560px; display: flex; flex-direction: column;
  padding: 74px 0 0;
}
.f2-top { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; padding: 0 20px; }
.f2-top .wordmark { font-size: 27px; }
.f2-desc {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: rgba(244,239,230,.6); font-size: 16.5px; line-height: 1.7; max-width: 420px; margin: 14px 0 22px;
}
.f2-social { display: flex; gap: 18px; margin-bottom: 26px; }
.f2-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(244,239,230,.22); color: rgba(244,239,230,.65);
  transition: all .3s ease;
}
.f2-social a:hover { border-color: var(--champagne); color: var(--champagne-soft); transform: translateY(-2px); }
.f2-social svg { width: 16px; height: 16px; }
.f2-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.f2-nav a {
  color: rgba(244,239,230,.6); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: all .3s ease;
}
.f2-nav a:hover { color: var(--ivory); border-bottom-color: var(--champagne); }

.f-word {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 66px;
  font-family: 'Italiana', serif; user-select: none; pointer-events: none; white-space: nowrap;
  font-size: clamp(72px, 13.5vw, 190px); line-height: 0.8; letter-spacing: 0.12em; padding-left: .12em;
  background: linear-gradient(180deg, rgba(244,239,230,.26), rgba(244,239,230,.1) 55%, transparent 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.f2-line {
  position: absolute; left: 0; width: 100%; height: 1px; bottom: 148px;
  background: linear-gradient(to right, transparent, rgba(194,161,95,.6), transparent);
}
.f2-chip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 104px; z-index: 10;
  padding: 9px; border-radius: 24px; border: 1px solid rgba(244,239,230,.2);
  background: rgba(21,23,30,.55); backdrop-filter: blur(10px);
  box-shadow: 0 0 44px rgba(194,161,95,.28);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.f2-chip:hover { border-color: var(--champagne); box-shadow: 0 0 60px rgba(194,161,95,.45); }
.f2-logo {
  width: 82px; height: 82px; border-radius: 17px; display: grid; place-items: center;
  background: #0b0c11; overflow: hidden;
  font-family: 'Italiana', serif; font-size: 40px; color: var(--champagne-soft); line-height: 1;
}
.f2-logo b { color: var(--coral, #c2412e); font-weight: 400; }
.f2-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.f2-shade {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 120px; z-index: 5; pointer-events: none;
  background: linear-gradient(to top, var(--ink) 30%, rgba(21,23,30,.7), transparent);
}
.f2-bottom {
  margin-top: auto; position: relative; z-index: 11;
  text-align: center; padding: 210px 20px 26px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,239,230,.42);
}
@media (max-width: 640px) { .f-word { bottom: 84px; } .f2-bottom { padding-top: 170px; } }

/* ---- Lio, the concierge ---- */
@keyframes lio-spin { to { transform: rotate(360deg); } }
.lio-orb {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden; position: relative; flex-shrink: 0;
  background: url('assets/logo-mark.jpg') center / cover;
  border: 1px solid rgba(194, 161, 95, 0.55);
  box-shadow: 0 0 10px rgba(194, 161, 95, 0.3);
  animation: lio-spin 30s linear infinite;
}
.lio-dock { position: fixed; right: 26px; bottom: 24px; z-index: 95; display: flex; justify-content: flex-end; }
.lio-panel {
  background: rgba(21, 23, 30, 0.92); backdrop-filter: blur(18px);
  border: 1px solid rgba(194, 161, 95, 0.4); border-radius: 999px;
  box-shadow: 0 14px 44px rgba(3, 5, 14, 0.5), 0 0 30px rgba(194,161,95,.14);
  width: max-content; overflow: hidden;
  transition: width .45s cubic-bezier(.3,1,.3,1), height .45s cubic-bezier(.3,1,.3,1), border-radius .45s ease;
  height: 50px;
}
.lio-panel.open { width: min(430px, 92vw); height: 224px; border-radius: 16px; }
.lio-pill {
  display: flex; align-items: center; gap: 11px; height: 50px; padding: 0 22px 0 13px;
  background: transparent; border: 0; color: var(--ivory);
}
.lio-panel.open .lio-pill { display: none; }
.lio-ask { font-size: 13.5px; letter-spacing: .22em; text-transform: uppercase; }
.lio-form { display: none; flex-direction: column; height: 100%; padding: 12px 14px; }
.lio-panel.open .lio-form { display: flex; }
.lio-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.lio-name { color: var(--ivory); font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 19px; }
.lio-name i { font-style: italic; font-weight: 500; color: rgba(244,239,230,.55); font-size: 15px; }
.lio-esc {
  margin-left: auto; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,239,230,.4); border: 1px solid rgba(244,239,230,.2); border-radius: 5px; padding: 3px 7px;
}
.lio-form textarea {
  flex: 1; resize: none; background: rgba(244,239,230,.05); border: 1px solid rgba(244,239,230,.12);
  border-radius: 10px; color: var(--ivory); font-family: 'Jost'; font-weight: 300; font-size: 15.5px;
  padding: 11px 13px; outline: none;
}
.lio-form textarea:focus { border-color: rgba(194,161,95,.55); }
.lio-form textarea::placeholder { color: rgba(244,239,230,.38); }
.lio-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.lio-hint { font-size: 14px; color: rgba(244,239,230,.55); font-family: 'Cormorant Garamond', serif; font-style: italic; }
.lio-go {
  background: var(--champagne); color: var(--ink); border: 0; border-radius: 8px;
  padding: 9px 20px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: background .25s ease;
}
.lio-go:hover { background: var(--champagne-soft); }

@media (max-width: 900px) {
  .verticals { display: none; }
  .prompt-main { grid-template-columns: 1fr 1fr; }
  .pfield + .pfield { border-left: 0; border-top: 1px solid var(--line-soft); }
  .pfield:nth-child(2) { border-left: 1px solid var(--line-soft); border-top: 0; }
  .prompt-go { grid-column: span 2; padding: 15px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 130px; }
  .gallery .g3, .gallery .g4 { display: none; }
  .hero { min-height: 78vh; }
}
