/* Marinatown Inn — mobile-first. Tokens first, then layout from small to large. */
:root{
  --sea:#0d5c70; --sea-deep:#093f4d; --sea-soft:#e3f1f4;
  --sand:#f7f1e7; --sand-2:#efe5d4; --coral:#f2603f; --coral-deep:#d94a2a;
  --ink:#13242c; --muted:#56666e; --line:#e4ddd1; --white:#fff;
  --radius:18px; --radius-sm:12px;
  --shadow:0 18px 40px -18px rgba(9,63,77,.35), 0 2px 6px rgba(9,63,77,.08);
  --head:"Barlow Condensed", "Arial Narrow", sans-serif;
  --body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap:1120px; --bar-h:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{margin:0; font:16px/1.6 var(--body); color:var(--ink); background:var(--sand); padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom))}
img{max-width:100%; height:auto; display:block}
a{color:var(--sea)}
h1,h2,h3{font-family:var(--head); font-weight:700; line-height:1.05; margin:0; letter-spacing:.2px}
h2{font-size:34px; color:var(--sea-deep)}
h3{font-size:22px}
p{margin:0 0 12px}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 18px}
.eyebrow{font:600 12px/1 var(--body); text-transform:uppercase; letter-spacing:1.6px; color:var(--coral)}
.section{padding:56px 0}
.section-head{margin-bottom:22px}
.section-head p{color:var(--muted); margin-top:10px}
:focus-visible{outline:3px solid var(--coral); outline-offset:2px}
.skip{position:absolute; left:-999px}
.skip:focus{left:12px; top:12px; z-index:99; background:#fff; padding:8px 12px; border-radius:8px}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:0 22px; border-radius:999px; font:600 16px/1 var(--body); text-decoration:none; border:2px solid transparent; cursor:pointer; transition:transform .12s ease, background .15s ease}
.btn:active{transform:scale(.98)}
.btn svg{width:20px; height:20px; flex:none}
.btn-primary{background:var(--coral); color:#fff}
.btn-primary:hover{background:var(--coral-deep)}
.btn-sea{background:var(--sea); color:#fff}
.btn-sea:hover{background:var(--sea-deep)}
.btn-ghost{background:#fff; color:var(--sea-deep); border-color:var(--line)}
.btn-ghost:hover{border-color:var(--sea)}
.btn-block{width:100%}

/* Header */
.site-header{position:sticky; top:0; z-index:40; background:rgba(255,255,255,.94); backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; height:60px}
.brand{text-decoration:none; color:var(--sea-deep); line-height:1}
.brand b{display:block; font:700 24px/1 var(--head); letter-spacing:.3px}
.brand span{font:600 10.5px/1 var(--body); text-transform:uppercase; letter-spacing:1.8px; color:var(--coral)}
.head-actions{display:flex; align-items:center; gap:10px}
.lang{font:600 13px/1 var(--body); color:var(--sea-deep); text-decoration:none; padding:8px 10px; border:1.5px solid var(--line); border-radius:999px}
.head-phone{display:none}
.head-book{min-height:40px; padding:0 16px; font-size:14px}

/* Hero */
.hero{position:relative; color:#fff; min-height:64svh; display:flex; align-items:flex-end; overflow:hidden; background:var(--sea-deep)}
.hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--pos-m, center)}
.hero::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(9,40,50,.10) 0%, rgba(9,40,50,.35) 40%, rgba(6,32,40,.90) 100%)}
.hero .wrap{position:relative; z-index:1; padding-bottom:96px; padding-top:80px}
.hero .eyebrow{color:#ffd9cf}
.hero h1{font-size:44px; margin:10px 0 12px; text-shadow:0 2px 18px rgba(0,0,0,.25)}
.hero p{font-size:clamp(13.5px, 4.3vw, 17px); max-width:560px; opacity:.95; text-wrap:balance}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; padding:0; list-style:none}
.chips li{font:600 13px/1 var(--body); padding:9px 12px; border-radius:999px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35)}

/* Booking card — the most visible block on the page */
.book{position:relative; z-index:5; margin-top:-64px}
.book-card{background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:22px 18px; border-top:6px solid var(--coral)}
.book-card h2{font-size:30px}
.book-sub{color:var(--muted); font-size:15px; margin:6px 0 16px}
.rates{display:grid; gap:10px; margin:0 0 14px; padding:0; list-style:none}
.rate{position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--sand)}
.rate.best{border-color:var(--sea); background:var(--sea-soft)}
.rate-term{font:700 20px/1.1 var(--head); color:var(--sea-deep)}
.rate-price{text-align:right; line-height:1.1}
.rate-price b{font:700 28px/1 var(--head); color:var(--ink)}
.rate-price s{display:block; font-size:13px; color:var(--muted); margin-top:3px}
.badge{position:absolute; top:-10px; left:14px; font:700 11px/1 var(--body); text-transform:uppercase; letter-spacing:1px; background:var(--sea); color:#fff; padding:5px 8px; border-radius:6px}
.rate-note{font-size:13px; color:var(--muted); margin:0 0 16px}
.booking-slot:empty{display:none}
.booking-slot{margin:0 0 14px}
.book-actions{display:grid; gap:10px}
.book-hours{font-size:13px; color:var(--muted); margin:12px 0 0; text-align:center}

/* Benefits */
.benefits{display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0; margin:0; list-style:none}
.benefit{background:#fff; border-radius:var(--radius-sm); padding:16px 14px; border:1px solid var(--line)}
.benefit svg{width:28px; height:28px; color:var(--coral); margin-bottom:8px}
.benefit b{display:block; font:700 19px/1.1 var(--head); color:var(--sea-deep); margin-bottom:4px}
.benefit span{font-size:14px; color:var(--muted); line-height:1.45}

/* Gallery */
.gallery{display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 18px 14px; margin:0 -18px; scrollbar-width:none}
.gallery::-webkit-scrollbar{display:none}
.gallery button{flex:0 0 82%; scroll-snap-align:center; padding:0; border:0; background:none; cursor:zoom-in; border-radius:var(--radius-sm); overflow:hidden}
.gallery img{width:100%; aspect-ratio:3/2; object-fit:cover; object-position:center 62%}
.gallery button.tall img{aspect-ratio:3/2; object-position:center 40%}
.gallery-hint{font-size:13px; color:var(--muted)}
.feature-list{padding:0; margin:18px 0 0; list-style:none; display:grid; gap:10px}
.feature-list li{display:flex; gap:10px; align-items:flex-start}
.feature-list svg{width:22px; height:22px; color:var(--sea); flex:none; margin-top:2px}

/* Lightbox */
dialog.lightbox{border:0; padding:0; background:transparent; max-width:96vw; max-height:92vh}
dialog.lightbox::backdrop{background:rgba(6,20,26,.88)}
dialog.lightbox img{max-width:96vw; max-height:86vh; border-radius:10px}
dialog.lightbox button{position:fixed; top:14px; right:14px; width:44px; height:44px; border-radius:50%; border:0; background:#fff; font-size:22px; cursor:pointer}

/* Amenities */
.amen{display:grid; gap:18px}
.amen img{border-radius:var(--radius); aspect-ratio:4/3; object-fit:cover; width:100%}
.band{background:#fff}

/* Good to know */
.faq{display:grid; gap:10px}
.faq details{background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:0 16px}
.faq summary{list-style:none; cursor:pointer; padding:16px 28px 16px 0; font:700 20px/1.2 var(--head); color:var(--sea-deep); position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; position:absolute; right:0; top:12px; font:400 26px/1 var(--body); color:var(--coral)}
.faq details[open] summary::after{content:"–"}
.faq details p{color:var(--muted); padding-bottom:6px}

/* Location */
.map{border:0; width:100%; height:300px; border-radius:var(--radius); background:var(--sand-2)}
.distances{list-style:none; padding:0; margin:16px 0 0; display:grid; gap:10px}
.distances li{display:flex; justify-content:space-between; gap:12px; padding:12px 14px; background:#fff; border-radius:var(--radius-sm); border:1px solid var(--line)}
.distances b{color:var(--sea-deep)}

/* Contact */
.contact{background:var(--sea-deep); color:#fff}
.contact h2{color:#fff}
.contact .section-head p{color:#cfe3e8}
.contact-grid{display:grid; gap:14px}
.contact-card{background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:var(--radius); padding:18px}
.contact-card h3{margin-bottom:10px}
.hours{width:100%; border-collapse:collapse; font-size:15px}
.hours td{padding:6px 0; border-bottom:1px solid rgba(255,255,255,.12)}
.hours td:last-child{text-align:right}
.contact .btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.35)}
.contact .addr{color:#e6f1f3}

/* Footer */
.site-footer{background:#062c36; color:#9fbac1; font-size:13px; padding:22px 0}
.site-footer .wrap{display:flex; flex-wrap:wrap; gap:8px 18px; justify-content:space-between}
.site-footer a{color:#cfe3e8}

/* Mobile action bar */
.actionbar{position:fixed; left:0; right:0; bottom:0; z-index:50; display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:6px; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.97); border-top:1px solid var(--line); box-shadow:0 -8px 24px -12px rgba(9,63,77,.3)}
.actionbar a{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:48px; border-radius:12px; text-decoration:none; font:600 12px/1 var(--body); color:var(--sea-deep)}
.actionbar a svg{width:22px; height:22px}
.actionbar a.primary{background:var(--coral); color:#fff; flex-direction:row; font-size:15px; gap:8px}

/* ≥ 720px */
@media (min-width:720px){
  h2{font-size:42px}
  .hero{min-height:74vh}
  .hero h1{font-size:64px}
  .hero p{max-width:none; text-wrap:wrap}
  .hero img{object-position:var(--pos-d, center)}
  .hero .wrap{padding-bottom:120px}
  .hero::after{background:linear-gradient(90deg, rgba(6,32,40,.72) 0%, rgba(6,32,40,.35) 55%, rgba(6,32,40,0) 80%), linear-gradient(180deg, rgba(9,40,50,0) 40%, rgba(6,32,40,.75) 100%)}
  .book{margin-top:-84px}
  .book-card{padding:30px 32px}
  .book-card h2{font-size:38px}
  .rates{grid-template-columns:repeat(3,1fr)}
  .rate{flex-direction:column; align-items:flex-start; padding:20px 18px}
  .rate-price{text-align:left}
  .rate-price b{font-size:40px}
  .book-actions{grid-template-columns:1.4fr 1fr 1fr}
  .benefits{grid-template-columns:repeat(3,1fr); gap:16px}
  .gallery{display:grid; grid-template-columns:repeat(4,1fr); overflow:visible; margin:0; padding:0}
  .gallery button{flex:none}
  .gallery button:first-child{grid-column:span 2; grid-row:span 2}
  .gallery button:first-child img{aspect-ratio:auto; height:100%}
  .gallery button:last-child{grid-column:span 2}
  .gallery button:last-child img{aspect-ratio:auto; height:100%}
  .gallery-hint{display:none}
  .amen{grid-template-columns:1.1fr 1fr; align-items:center; gap:36px}
  .faq{grid-template-columns:1fr 1fr; align-items:start}
  .loc{display:grid; grid-template-columns:1.4fr 1fr; gap:28px; align-items:start}
  .map{height:380px}
  .distances{margin:0}
  .contact-grid{grid-template-columns:1.2fr 1fr 1fr}
  .contact-card .book-actions{grid-template-columns:1fr}
}
/* ≥ 1000px: no bottom bar, phone in header */
@media (min-width:1000px){
  body{padding-bottom:0}
  .actionbar{display:none}
  .head-phone{display:inline-flex; font:600 15px/1 var(--body); color:var(--sea-deep); text-decoration:none; gap:6px; align-items:center}
  .head-phone svg{width:18px; height:18px}
  .section{padding:84px 0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} .btn{transition:none}}
