:root {
  --sand: #f7f1e8;
  --sand-2: #efe6d8;
  --ink: #1c2a33;
  --ink-2: #4b5a63;
  --muted: #7a8790;
  --ocean: #0f6e7a;
  --ocean-dark: #0a525b;
  --coral: #e8705a;
  --line: #e2d8c8;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 42, 51, 0.10);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.lead-sm { font-size: 1.05rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--ocean); margin-bottom: .6em; }
.eyebrow.light { color: #fff; opacity: .9; }

/* Buttons */
.btn { display: inline-block; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #d95e48; }
.btn-primary:disabled { background: #d9cfc2; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-small { padding: .45em 1em; font-size: .875rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 650; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--coral); }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--ocean); }
.nav .nav-cta { background: var(--ocean); color: #fff; padding: .5em 1.1em; border-radius: 999px; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; gap: 1rem; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: min(78vh, 720px); }
.hero-grid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero-grid > * { min-height: 0; }
.hero-main { grid-row: span 2; }
.hero-text { position: absolute; inset: auto 0 0 0; padding: 120px 0 48px; background: linear-gradient(to top, rgba(10,30,40,.78), rgba(10,30,40,0)); color: #fff; }
.hero-text h1 { color: #fff; margin-bottom: .2em; }
.hero-sub { font-size: 1.15rem; max-width: 640px; opacity: .95; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.2rem; }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 78vh; }
  .hero-side { display: none; }
  .hero-main { grid-row: auto; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--sand); }

/* Stay cards */
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.stay-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; position: relative; }
.stay-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,42,51,.16); }
.stay-card-img { position: relative; aspect-ratio: 4/3.4; overflow: hidden; display: grid; grid-template-rows: minmax(0, 3fr) minmax(0, 1fr); gap: 3px; }
.stay-card-img img { min-height: 0; }
.stay-card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.stay-card:hover .stay-card-img > img { transform: scale(1.04); }
.stay-card-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.stay-card-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stay-card-body { padding: 20px 22px 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1; }
.stay-card-body h3 { font-size: 1.7rem; margin: 0; }
.stay-card-body p { margin: 0; color: var(--ink-2); }
.facts { font-size: .9rem; color: var(--muted) !important; }
.facts.big { font-size: 1rem; }
.price-tag span { color: var(--muted); font-size: .9rem; }
.price-tag b { font-size: 1.35rem; }
.stay-card-cta { padding: 0 22px 20px; color: var(--ocean); font-weight: 600; }
.stay-card-wide { grid-column: 1 / -1; flex-direction: row; }
.stay-card-wide .stay-card-img { flex: 1.4; aspect-ratio: auto; min-height: 340px; grid-template-rows: minmax(0, 1fr); }
.stay-card-wide .stay-card-body { flex: 1; padding: 32px; justify-content: center; }
.stay-card-wide .stay-card-cta { position: absolute; right: 32px; bottom: 28px; padding: 0; }
@media (max-width: 960px) { .stay-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .stay-grid { grid-template-columns: 1fr; }
  .stay-card-wide { flex-direction: column; }
  .stay-card-wide .stay-card-img { min-height: 240px; }
  .stay-card-wide .stay-card-cta { position: static; padding: 0 32px 24px; }
}

/* Direct booking comparison */
.direct-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.compare-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.compare-title { font-weight: 600; margin-bottom: 1rem; }
.compare-row { display: flex; justify-content: space-between; font-size: 1.15rem; padding-top: 10px; }
.compare-row.direct b { color: var(--ocean); }
.compare-save { background: #e6f3f1; color: var(--ocean-dark); font-weight: 600; border-radius: 10px; padding: 12px 14px; margin: 14px 0 10px; }
@media (max-width: 820px) { .direct-in { grid-template-columns: 1fr; } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6em; height: .6em; border-radius: 50%; background: var(--coral); }

/* Property mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 8px; margin: 2rem 0; }
.mosaic-item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: 12px; cursor: zoom-in; background: var(--sand-2); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.m0 { grid-column: span 2; grid-row: span 2; }
.m5 { grid-column: span 2; }
@media (max-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .m5 { grid-column: span 2; } }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.features p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.pull { font-family: var(--serif); font-size: 1.35rem; margin: 2.5rem auto 0; max-width: 820px; text-align: center; color: var(--ink-2); }
.pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* Host */
.host-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.host-photo img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.host h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 1.5rem 0; }
.stats div { background: var(--sand); border-radius: 12px; padding: 14px; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 1.5rem; }
.stats span { font-size: .8rem; color: var(--muted); }
@media (max-width: 820px) { .host-in { grid-template-columns: 1fr; } .host-photo { max-width: 360px; } .stats { grid-template-columns: 1fr 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 1.5rem 0; }
.review { background: #fff; border-radius: var(--radius); padding: 22px; margin: 0; box-shadow: 0 2px 10px rgba(0,0,0,.04); border: 1px solid var(--line); }
.stars { color: var(--coral); letter-spacing: 2px; }
.review blockquote { margin: .5rem 0 1rem; color: var(--ink-2); }
.review figcaption { font-size: .9rem; }
.tag { display: inline-block; background: var(--sand); color: var(--ink-2); border-radius: 999px; padding: 1px 10px; font-size: .78rem; margin-left: 4px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--ocean); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: .8rem 0 0; color: var(--ink-2); }

/* Footer */
.footer { background: var(--ink); color: #cfd8dc; padding: 48px 0; }
.footer a { color: #fff; }
.footer .brand { color: #fff; margin-bottom: .5rem; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Stay page */
.stay-head { padding-top: 28px; }
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 500; }
.h1-sub { font-family: var(--sans); font-weight: 400; font-size: .45em; color: var(--ink-2); letter-spacing: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 8px; position: relative; margin-bottom: 40px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button { min-height: 0; }
.gallery button:hover img { transform: scale(1.04); }
.g-main { grid-row: span 2; border-radius: var(--radius) 0 0 var(--radius); }
.g-thumb:nth-of-type(3) { border-radius: 0 var(--radius) 0 0; }
.g-thumb:nth-of-type(5) { border-radius: 0 0 var(--radius) 0; }
.gallery .g-all { position: absolute; right: 16px; bottom: 16px; cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; }
  .g-main { grid-column: span 2; grid-row: auto; border-radius: var(--radius) var(--radius) 0 0; }
  .g-thumb:nth-of-type(4), .g-thumb:nth-of-type(5) { display: none; }
  .g-thumb:nth-of-type(2) { border-radius: 0 0 0 var(--radius); }
  .g-thumb:nth-of-type(3) { border-radius: 0 0 var(--radius) 0; }
}
.stay-cols { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; padding-bottom: 80px; }
@media (min-height: 1150px) { .stay-side { position: sticky; top: 84px; } }
@media (max-width: 960px) { .stay-cols { grid-template-columns: 1fr; } .stay-side { position: static; } }
.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 0; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 1.5rem; }
.keyfacts div { background: var(--sand); border-radius: 12px; padding: 14px; }
.keyfacts b { display: block; }
.keyfacts span { font-size: .85rem; color: var(--muted); }
@media (max-width: 620px) { .keyfacts { grid-template-columns: 1fr 1fr; } }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.room { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.room b { display: block; margin-bottom: 4px; }
.room span { color: var(--ink-2); font-size: .95rem; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin: 0; }
.amenities dt { font-weight: 600; }
.amenities dd { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 620px) { .amenities { grid-template-columns: 1fr; } }

/* Booking card + calendar */
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.book-price b { font-size: 1.6rem; font-family: var(--serif); }
.book-price { margin-bottom: 14px; }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-weight: 600; }
.cal-head button { background: none; border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: .72rem; color: var(--muted); padding: 4px 0; }
.cal-day { border: 0; background: none; padding: 0; height: 40px; border-radius: 8px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); position: relative; }
.cal-day:hover:not(:disabled) { outline: 1.5px solid var(--ink); }
.cal-day:disabled { color: #c5ccd0; cursor: default; }
.cal-day.taken { color: #b9c0c4; text-decoration: line-through; background: repeating-linear-gradient(135deg, #f4f1ec, #f4f1ec 3px, #fff 3px, #fff 6px); }
.cal-day.taken.co-ok { text-decoration: none; color: var(--ink); cursor: pointer; }
.cal-day.in-range { background: #d9eeec; border-radius: 0; }
.cal-day.sel { background: var(--ocean); color: #fff; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.lg-busy { background: repeating-linear-gradient(135deg, #e6e1d9, #e6e1d9 3px, #fff 3px, #fff 6px); border: 1px solid var(--line); }
.lg-sel { background: var(--ocean); margin-left: 10px; }
.sel-dates { font-weight: 600; margin: 8px 0 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
label { display: block; font-weight: 500; font-size: .92rem; }
input, select, textarea { font: inherit; width: 100%; padding: .65em .8em; border: 1px solid #cdc3b4; border-radius: 10px; background: #fff; margin-top: 4px; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ocean); outline-offset: 0; border-color: transparent; }
.check { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check .small { flex-basis: 100%; padding-left: 24px; }
.check input { width: auto; margin-top: 4px; }
.quote { margin: 12px 0; }
.qt { width: 100%; border-collapse: collapse; font-size: .93rem; }
.qt td { padding: 6px 0; }
.qt td:last-child { text-align: right; white-space: nowrap; }
.qt .refund td { color: var(--ocean-dark); }
.qt .total td { border-top: 1px solid var(--line); font-weight: 700; padding-top: 10px; font-size: 1.05rem; }
.save-note, .q-save { background: #e6f3f1; color: var(--ocean-dark); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-top: 10px; }
.q-error { color: #b4442f; font-size: .92rem; }

/* Booking page */
.book-wrap { padding: 28px 0 80px; }
.book-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.book-form label { margin-bottom: 14px; }
.radio { border: 0; padding: 0; margin: 0 0 14px; }
.radio legend { font-weight: 500; font-size: .92rem; margin-bottom: 4px; }
.radio label { display: inline-flex; gap: 6px; align-items: center; margin-right: 18px; font-weight: 400; }
.radio input { width: auto; margin: 0; }
.policy-box { background: var(--sand); border-radius: 12px; padding: 16px 18px 6px; margin: 10px 0; font-size: .93rem; }
.policy-box h3 { font-size: 1rem; font-family: var(--sans); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 84px; }
.summary-img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 14px; }
.alert { background: #fdecea; color: #8c2f1d; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.notice { background: #e6f3f1; color: var(--ocean-dark); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
@media (max-width: 860px) { .book-cols { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }

.page-head { padding: 48px 0 8px; }
.msg { padding: 80px 0; min-height: 50vh; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,18,24,.94); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
[data-lb-close] { top: 18px; right: 18px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-cap { position: absolute; bottom: 16px; color: #fff; margin: 0; }

/* Admin */
.admin { padding: 32px 0 80px; }
.admin-nav { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; align-items: end; }
.admin-table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 10px 0 16px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.admin-table input, .admin-table select { margin: 0; padding: .4em .5em; }
.admin-table .direct { font-weight: 600; color: var(--ocean); white-space: nowrap; }
.admin-table code { font-size: .8rem; word-break: break-all; }
.table-scroll { overflow-x: auto; }
.w-num { width: 100px; } .w-sm { width: 80px; }
.admin-grid .w-num, .admin-grid .w-sm { display: inline-block; }
.st-cancelled { opacity: .5; }
