/* Westside Beach Resort & Hotel — website styles (shared by every page and the blog) */
:root {
  --sand: #fbf7ef;
  --sand2: #f3ecdf;
  --ink: #0b2e35;
  --teal: #0b3b44;
  --teal2: #0f5361;
  --sea: #1565c0;
  --palm: #1f7a3a;
  --gold: #c9a24b;
  --gold2: #e6c879;
  --muted: #5b6b70;
  --line: #e4dccd;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 46, 53, .10);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--teal); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
section { padding: clamp(56px, 9vw, 104px) 0; }
.alt { background: var(--sand2); }
.dark { background: var(--teal); color: #e9f3f2; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: #b9d2d0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--teal);
  font: 700 .95rem/1 var(--sans); color: var(--teal); background: transparent; text-decoration: none; cursor: pointer; transition: transform .08s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.btn.gold:hover { background: var(--gold2); }
.btn.light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn.wa { background: #1fae5b; border-color: #1fae5b; color: #fff; }
.btn.sm { padding: 9px 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 74px; }
.top.solid, .top.always { background: rgba(251, 247, 239, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand b { font: 600 1.15rem/1 var(--serif); letter-spacing: .02em; display: block; }
.brand small { font: 700 .62rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.top.solid .brand, .top.always .brand { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .94rem; }
.top.solid .nav a, .top.always .nav a { color: var(--ink); }
.nav a.btn { color: #1d1606; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.7rem; color: #fff; cursor: pointer; padding: 6px; }
.top.solid .menu-btn, .top.always .menu-btn { color: var(--teal); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--sand); padding: 8px 16px 18px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { color: var(--ink); padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding: 120px 0 40px; overflow: hidden; background: var(--teal); }
.hero .slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.08); }
.hero .slide.on { opacity: 1; animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 25, 30, .45) 0%, rgba(5, 25, 30, .15) 40%, rgba(5, 25, 30, .78) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero .eyebrow { color: var(--gold2); }
.hero .lead { color: #e6f0ef; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 28px; }
.dots { display: flex; gap: 8px; margin-top: 18px; }
.dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.dots button.on { background: var(--gold2); }
.page-hero { position: relative; color: #fff; padding: 150px 0 70px; background: var(--teal) center/cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 25, 30, .55), rgba(5, 25, 30, .75)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .page-hero .lead { color: #fff; }
.page-hero .eyebrow { color: var(--gold2); }

/* booking bar */
.bookbar { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; background: #fff; color: var(--ink); padding: 12px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); max-width: 860px; }
.bookbar label { display: flex; flex-direction: column; gap: 4px; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; }
.bookbar input, .bookbar select { border: 0; font: 600 1rem var(--sans); color: var(--ink); background: transparent; padding: 4px 0; width: 100%; outline: none; }
.bookbar .btn { height: 100%; min-height: 54px; border-radius: 14px; }
@media (max-width: 720px) { .bookbar { grid-template-columns: 1fr 1fr; } .bookbar .btn { grid-column: 1 / -1; } }

/* cards & grids */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; gap: clamp(24px, 5vw, 64px); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 3; background: var(--sand2) center/cover; position: relative; }
.card .ph .tag { position: absolute; left: 14px; top: 14px; background: rgba(11, 59, 68, .88); color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body p { color: var(--muted); margin: 0; }
.price { font: 700 1.35rem/1 var(--serif); color: var(--teal); }
.price small { font: 600 .82rem var(--sans); color: var(--muted); }
.card .actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; font-weight: 600; background: var(--sand2); color: var(--teal); padding: 5px 10px; border-radius: 999px; }
.split-img { border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 28px 0; }
.feature:nth-child(even) .f-img { order: 2; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .f-img { order: 0; } }
.f-img img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

/* day visit prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
.prices div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 18px; }
.prices b { font: 600 1.6rem/1 var(--serif); color: var(--gold2); display: block; margin: 6px 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 200px; gap: 10px; }
.gallery a { border-radius: 14px; overflow: hidden; background: var(--sand2) center/cover; display: block; }
.gallery a.wide { grid-column: span 2; }
.gallery a.tall { grid-row: span 2; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .gallery a.wide { grid-column: span 2; } }
.lightbox { position: fixed; inset: 0; background: rgba(3, 15, 18, .92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 18px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* faq */
.faq details { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(11, 46, 53, .05); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .ans { padding: 0 20px 18px; color: var(--muted); white-space: pre-line; }
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.faq-tabs button { border: 1.5px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font: 600 .88rem var(--sans); color: var(--ink); cursor: pointer; }
.faq-tabs button.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--teal); }
.form input, .form select, .form textarea { font: 500 1rem var(--sans); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.msg { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a1c13; font-weight: 600; display: none; }
.msg.show { display: block; }
.ok-box { background: #e9f7ee; color: #14532d; border-radius: var(--radius); padding: 26px; }

/* booking page */
.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.steps span { font: 700 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-radius: 999px; background: var(--sand2); }
.steps span.on { background: var(--teal); color: #fff; }
.room-row { display: grid; grid-template-columns: 300px 1fr auto; gap: 22px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; align-items: stretch; }
.room-row .ph { background: var(--sand2) center/cover; min-height: 210px; }
.room-row .mid { padding: 20px 0; }
.room-row .end { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px; text-align: right; min-width: 200px; }
.room-row.full { opacity: .55; }
.left-tag { font-size: .8rem; font-weight: 700; color: #b45309; }
@media (max-width: 820px) { .room-row { grid-template-columns: 1fr; } .room-row .mid { padding: 0 20px; } .room-row .end { align-items: stretch; text-align: left; padding-top: 0; } }
.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary .total { font: 700 1.4rem var(--serif); color: var(--teal); border: 0; padding-top: 12px; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* menu (dining) */
.menu-tabs { position: sticky; top: 74px; z-index: 5; background: var(--sand); padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; }
.menu-group h3 { margin-top: 34px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.menu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 34px; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu-item b { font-weight: 700; }
.menu-item .pr { font-weight: 800; color: var(--teal); white-space: nowrap; }
.menu-item small { display: block; color: var(--muted); }

/* contact & footer */
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot { background: #072a31; color: #a9c4c2; padding: 56px 0 28px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { color: #fff; font: 600 1.05rem var(--serif); margin: 0 0 10px; }
.foot a { color: #d9ebe9; text-decoration: none; display: block; padding: 3px 0; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1fae5b; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); text-decoration: none; font-size: 1.7rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero .slide.on { animation: none; } html { scroll-behavior: auto; } }

/* blog (server-rendered by the worker) */
.blog-main { padding-top: 110px; min-height: 70vh; }
.blog-hero { text-align: center; padding: 30px 16px; }
.blog-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; width: min(1180px, 100% - 32px); margin: 0 auto 60px; }
@media (max-width: 900px) { .blog-wrap { grid-template-columns: 1fr; } }
.post-grid-pub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card a { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); height: 100%; }
.pc-img { aspect-ratio: 16 / 10; background: var(--sand2); } .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.pc-body { padding: 16px 18px; } .pc-body h2 { font-size: 1.2rem; } .pc-body p { color: var(--muted); font-size: .95rem; }
.pc-cat { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.blog-side .side-box { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.blog-side .side-box a { display: flex; justify-content: space-between; padding: 4px 0; text-decoration: none; }
.blog-search input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); margin-bottom: 16px; font: inherit; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; } .tag-cloud a { display: inline-block !important; background: var(--sand2); padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.post { width: min(760px, 100% - 32px); margin: 0 auto 60px; }
.post-cover { border-radius: var(--radius); margin: 18px 0; width: 100%; }
.post-content { font-size: 1.08rem; } .post-content img { border-radius: 12px; margin: 14px 0; }
.post-meta, .post-tags { color: var(--muted); }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.share a, .share button { background: var(--sand2); border: 0; padding: 8px 14px; border-radius: 999px; text-decoration: none; font: 600 .88rem var(--sans); color: var(--teal); cursor: pointer; }
.post-cta { background: var(--teal); color: #fff; padding: 20px; border-radius: var(--radius); margin: 24px 0; }
.comment { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.video { position: relative; aspect-ratio: 16 / 9; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.bookbar > * { min-width: 0; }
.bookbar input[type="date"] { min-width: 0; max-width: 100%; }
.room-row.want { outline: 3px solid var(--gold); }
