/* impt.mv island-stays (B) — hub explorer + decision-first detail pages. Header/menu/footer come from build/chrome.mjs. */
:root { --ink: #04202D; --ink2: #22424f; --mut: #4a6470; --sea: #0a716b; --sea2: #19D3C5; --foam: #eef8f7; --sand: #fbf6ec; --amber: #FFB627; --line: #d7e4e4; --card: #fff; --r: 16px }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 16px/1.6 'DM Sans', system-ui, sans-serif; overflow-x: clip }
img { max-width: 100%; display: block }
a { color: var(--sea) } a:hover { color: var(--ink) }
h1, h2, h3 { overflow-wrap: anywhere; font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em }
h2 { font-size: clamp(24px, 3vw, 32px) } h3 { font-size: 19px }
p { margin: 0 0 1em }
.st-wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px) }
/* hero: solid deep-sea panel (text contrast is measured, never over a photo) */
.st-hero { background: linear-gradient(160deg, #04202D 0%, #073445 70%, #0a4253 100%); color: #fff; padding: 120px 0 44px }
.st-hero h1 { font-size: clamp(32px, 5.4vw, 60px); margin: 0 0 14px; color: #fff }
.st-hero p.lead { font-size: clamp(16px, 1.8vw, 19px); color: #e4f1f1; max-width: 62ch }
.st-crumbs { font-size: 14px; color: #cfe3e3; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px }
.st-crumbs a { color: #fff } .st-crumbs span { color: #9fc4c4 }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none }
.st-chips li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600 }
.st-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-top: 22px }
.st-stat div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 14px }
.st-stat b { display: block; font: 800 26px/1.1 'Bricolage Grotesque', sans-serif; color: #7FF0E6 } .st-stat span { font-size: 14px; color: #e4f1f1 }
section.st-sec { padding: 44px 0 8px }
.st-sec > .st-wrap > p.st-kick, .st-kick { font: 700 12px/1 'DM Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin: 0 0 10px }
/* booking widget (shared shape with the editorial widget: dates + guests popover) */
.st-book { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 18px 40px -30px rgba(4,32,45,.5) }
.st-book h2, .st-book h3 { font-size: 21px; margin-bottom: 4px } .st-book > p { color: var(--mut); font-size: 14px; margin-bottom: 12px }
.bw { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; align-items: end }
.bw label, .gp-label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink2) }
.bw select, .bw input[type=date], .gp-toggle { width: 100%; min-height: 46px; border: 1px solid #b9cfd0; border-radius: 12px; padding: 0 12px; font: 500 15px 'DM Sans', sans-serif; color: var(--ink); background: #fff }
.mv-date { cursor: pointer } .mv-date input { cursor: pointer }
.gp { position: relative; display: grid; gap: 4px }
.gp-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left }
.gp-panel { position: absolute; z-index: 260; top: calc(100% + 6px); left: 0; width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 24px 50px -20px rgba(4,32,45,.45) }
.gp-panel[hidden] { display: none }
.gp-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 }
.gp-ctr { display: flex; align-items: center; gap: 10px } .gp-ctr button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #b9cfd0; background: #fff; font-size: 20px; cursor: pointer; color: var(--ink) }
.gp-ctr button:disabled { opacity: .35; cursor: default } .gp-ctr output { min-width: 18px; text-align: center; font-weight: 700 }
.gp-ages { display: grid; gap: 8px; padding: 6px 0 } .gp-ages label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600 }
.gp-ages select { min-height: 38px; border-radius: 10px; border: 1px solid #b9cfd0; padding: 0 8px }
.gp-done { margin-top: 8px; width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer }
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 800; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap }
.st-btn:hover { color: var(--ink); filter: brightness(1.04) }
.st-btn.ghost { background: transparent; border: 1px solid var(--sea); color: var(--sea) }
.st-fine { font-size: 13px; color: var(--mut); margin: 10px 0 0 }
/* entry points */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px }
.st-tile { display: grid; gap: 6px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink) }
.st-tile:hover { border-color: var(--sea); color: var(--ink) }
.st-tile b { font: 800 19px/1.2 'Bricolage Grotesque', sans-serif } .st-tile span { font-size: 14px; color: var(--mut) } .st-tile em { font-style: normal; font-weight: 700; color: var(--sea); font-size: 14px }
.st-tile .st-tl { font-size: 14px }
/* explorer */
.st-bar { position: sticky; top: 76px; z-index: 40; background: rgba(251,246,236,.97); border-bottom: 1px solid var(--line); padding: 10px 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }
.st-bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.st-bar select { min-height: 40px; max-width: 100%; border: 1px solid #b9cfd0; border-radius: 999px; padding: 0 12px; font: 600 14px 'DM Sans', sans-serif; background: #fff; color: var(--ink) }
.st-bar select.on { border-color: var(--sea); background: var(--foam) }
.st-bar .st-count { margin-left: auto; font-size: 14px; color: var(--mut) } .st-bar .st-count b { color: var(--ink) }
.st-bar button[type=reset], .st-view button { min-height: 40px; border-radius: 999px; border: 1px solid #b9cfd0; background: #fff; padding: 0 14px; font: 600 14px 'DM Sans', sans-serif; cursor: pointer; color: var(--ink) }
.st-view { display: inline-flex; gap: 6px } .st-view button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink) }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; padding: 18px 0 }
.st-card { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0 }
.st-card { position: relative; transition: border-color .2s, box-shadow .2s } .st-card:hover { border-color: var(--sea); box-shadow: 0 14px 30px -24px rgba(4,32,45,.6) }
.st-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1 }
.st-stretch:focus-visible { outline: none } .st-card:focus-within { outline: 2px solid var(--sea); outline-offset: 2px }
.st-acts { position: relative; z-index: 2 }
.st-ph { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #0b5d63, #19a9a0); display: block }
.st-ph img { width: 100%; height: 100%; object-fit: cover }
.st-badge { position: absolute; left: 10px; top: 10px; background: rgba(4,32,45,.86); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px }
.st-cb { display: grid; gap: 6px; padding: 14px; align-content: start; min-width: 0 }
.st-cb h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere } .st-cb h3 a { color: var(--ink); text-decoration: none } .st-cb h3 a:hover { text-decoration: underline }
.st-where { font-size: 13px; color: var(--mut); font-weight: 600 }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px }
.st-meta span { background: var(--foam); border-radius: 999px; padding: 3px 9px; color: var(--ink2); font-weight: 600 }
.st-meta .sc { background: var(--ink); color: #fff }
.st-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px } .st-acts a { min-height: 44px; font-size: 15px; padding: 0 18px; flex: 1 1 auto }
.st-empty { padding: 30px; text-align: center; background: #fff; border-radius: var(--r); border: 1px dashed var(--line) }
.st-more { text-align: center; padding: 6px 0 18px } .st-more[hidden] { display: none }
.st-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 0 24px }
.st-pages a, .st-pages span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; padding: 0 12px }
.st-pages span[aria-current] { background: var(--ink); color: #fff }
.st-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; padding: 18px 0 }
.st-map[hidden] { display: none }
.st-map svg { width: 100%; height: auto; max-height: 760px; background: #0b3d4d; border-radius: var(--r) }
.st-map .lbl { font: 700 11px 'DM Sans', sans-serif; fill: #eaf6f6 }
.st-map .at { fill: rgba(127,240,230,.16); stroke: rgba(127,240,230,.6); cursor: pointer } .st-map .at.on { fill: rgba(255,182,39,.35); stroke: #FFB627 }
.st-map .dot { fill: #FFB627 }
.st-maplist { max-height: 760px; overflow: auto; display: grid; gap: 8px; align-content: start }
.st-maplist a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); font-size: 14px }
/* phones: nine wrapped selects would cover most of the screen as a sticky bar, so it scrolls with the page */
@media (max-width: 760px) { .st-map { grid-template-columns: 1fr } .st-map svg { max-height: 560px } .st-bar { position: static } .st-bar .st-count { margin-left: 0; width: 100% } }
/* atoll sections */
.st-atolls { display: grid; gap: 16px }
.st-atoll { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px }
.st-atoll h3 { font-size: 22px } .st-atoll p { color: var(--ink2) } .st-atoll ul { margin: 0 0 10px; padding-left: 20px }
/* detail */
.st-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 32px } /* top/bottom only: keep .st-wrap's side gutters */
.st-aside { position: sticky; top: 92px; display: grid; gap: 14px; min-width: 0 }
.st-main, .st-main section, .st-heroflex > * { min-width: 0 }
.st-main { container: stmain / inline-size }
.st-cmp td:first-child a { overflow-wrap: anywhere }
.st-main section { padding: 26px 0 6px; border-top: 1px solid var(--line) } .st-main section:first-child { border-top: 0; padding-top: 0 }
.st-main h2 { font-size: clamp(22px, 2.6vw, 28px) }
.st-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); background: #eef1ee; border-radius: 6px; padding: 2px 8px; margin: 0 0 8px }
.st-decide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 14px 0 }
.st-decide div { border-radius: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line) }
.st-decide .yes { border-left: 5px solid #0b7f78 } .st-decide .no { border-left: 5px solid #c2410c }
.st-decide h3 { font-size: 16px; margin-bottom: 6px } .st-decide ul { margin: 0; padding-left: 18px } .st-decide li { margin: 4px 0 }
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); min-width: 0; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none }
.st-facts li { min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px }
.st-facts li b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut) }
.st-avail { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none }
.st-avail li { border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line) }
.st-avail li.y { background: #e3f6f3; border-color: #9ad8cf } .st-avail li.n { background: #f6efe6; border-color: #e6d2b4; color: #5c4630 }
.st-sites { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none }
.st-sites li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px }
.st-sites li b { display: block }
.st-themes { display: grid; gap: 12px }
.st-theme { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px }
.st-theme h3 { font-size: 17px; text-transform: capitalize }
.st-theme blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--sea2); background: var(--foam); border-radius: 0 10px 10px 0; font-size: 15px }
.st-theme cite { display: block; font-style: normal; font-size: 13px; color: var(--mut); margin-top: 4px }
.st-cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 15px }
.st-cmp th, .st-cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.st-cmp thead th { background: var(--ink); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em }
.st-cmp tr.me td { background: var(--foam); font-weight: 700 }
.st-cmp td[data-l="Dates"] a { white-space: nowrap }
@container stmain (max-width: 760px) {
  .st-cmp thead { display: none } .st-cmp, .st-cmp tbody, .st-cmp tr, .st-cmp td { display: block; width: 100% }
  .st-cmp tr { border-bottom: 2px solid var(--line); padding: 6px 0 } .st-cmp td { border: 0; padding: 4px 12px }
  .st-cmp td::before { content: attr(data-l) ": "; font-weight: 700; color: var(--mut) } .st-cmp td:first-child::before { content: "" }
}
.st-fac { columns: 3 200px; padding-left: 18px; font-size: 15px } .st-fac li { break-inside: avoid; margin: 2px 0 }
.st-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; margin: 0 0 12px }
.st-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #cfe3e3 }
.st-heroimg { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #0b5d63; margin: 0 }
.st-heroimg img { width: 100%; height: 100%; object-fit: cover }
.st-heroflex { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center }
@media (max-width: 960px) { .st-detail { grid-template-columns: minmax(0, 1fr) } .st-aside { position: static } .st-heroflex { grid-template-columns: minmax(0, 1fr) } }
.st-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px }
.st-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.st-faq summary::-webkit-details-marker { display: none } .st-faq summary::after { content: "+"; font-size: 20px; line-height: 1 } .st-faq details[open] summary::after { content: "–" }
.st-faq details p { padding: 0 16px 14px; margin: 0 }
.st-note { font-size: 14px; color: var(--mut); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px }
/* mobile booking dock (under 900px); hidden while the guests panel is open so nothing fixed sits over the popover */
.st-dock { display: none }
@media (max-width: 900px) {
  .st-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #04202D; color: #fff; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.5) }
  .st-dock span { font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  body.has-dock { padding-bottom: 76px } body.gp-open .st-dock { display: none }
}

/* detail booking card: one control per row (owner), guests summary on one line */
.st-book.stack .bw { grid-template-columns: minmax(0, 1fr) }
.st-book.stack .bw > * { width: 100% } .st-book.stack .st-btn { width: 100% }
.gp, .gp-toggle { min-width: 0; max-width: 100% } .gp-toggle { gap: 8px }
.st-book.stack .gp-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 14px }
/* photo gallery under the hero: lead + up to 4; phones: lead + swipe strip */
.st-galtop { padding-top: 22px; position: relative }
.st-mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 190px)); gap: 8px; border-radius: var(--r); overflow: hidden }
.st-mosaic.one { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 380px) }
.st-tile-ph { padding: 0; border: 0; margin: 0; cursor: zoom-in; background: #cfe3e3; min-width: 0; min-height: 0; display: block }
.st-tile-ph img { width: 100%; height: 100%; object-fit: cover }
.st-tile-ph.lead { grid-row: 1 / span 2 }
.st-galall { position: absolute; right: calc(clamp(16px, 3vw, 32px) + 12px); bottom: 12px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(4,32,45,.88); color: #fff; font: 700 14px 'DM Sans', sans-serif; cursor: pointer }
@media (max-width: 700px) {
  .st-mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 12px; -webkit-overflow-scrolling: touch }
  .st-tile-ph { flex: 0 0 72%; height: 220px; scroll-snap-align: start; border-radius: 12px; overflow: hidden }
  .st-tile-ph.lead { flex-basis: 100%; height: 260px }
  .st-mosaic.one .st-tile-ph.lead { height: 260px }
}
.st-gm { position: fixed; inset: 0; z-index: 400; background: rgba(2,14,20,.96); display: flex; flex-direction: column }
.st-gm[hidden] { display: none }
.st-gm-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; font-weight: 700 }
.st-gm-x { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 20px; cursor: pointer }
.st-gm-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; outline: none; -webkit-overflow-scrolling: touch }
.st-gm-track figure { flex: 0 0 100%; margin: 0; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; padding: 0 12px 24px }
.st-gm-track img { max-width: 100%; max-height: 100%; object-fit: contain }
.st-gm-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; cursor: pointer }
.st-gm-nav.prev { left: 12px } .st-gm-nav.next { right: 12px }
@media (max-width: 700px) { .st-gm-nav { display: none } }
