:root {
  --jungle: #1f3a2b; --jungle-2: #2d5640; --leaf: #3f7d4f;
  --wood: #a8683a; --wood-soft: #f1e3d3;
  --cream: #faf6ef; --paper: #ffffff; --ink: #1d221f; --muted: #66706a; --line: #e4ddd1;
  --hibiscus: #d2453b; --save: #2f7a3e;
  --radius: 16px; --shadow: 0 10px 30px rgba(31, 58, 43, .12);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--jungle-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--jungle); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 64px 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.save { color: var(--save); font-weight: 600; }
.error { color: var(--hibiscus); font-weight: 500; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--jungle); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 22px; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--jungle-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--jungle); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--wood-soft); }
.linkbtn { background: none; border: 0; color: var(--jungle-2); text-decoration: underline; cursor: pointer; font: inherit; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
  background: rgba(250, 246, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--jungle); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.logo small { font-family: var(--sans); font-weight: 500; font-size: .75rem; color: var(--wood); text-transform: uppercase; letter-spacing: .12em; margin-left: 2px; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.site-header .lang { border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: .8rem !important; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16, 32, 23, .82) 0%, rgba(16, 32, 23, .55) 50%, rgba(16, 32, 23, .15) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; width: 100%; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; opacity: .9; margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 14ch; margin-bottom: 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; opacity: .95; margin: 0 0 10px; }
.hero-proof { font-size: .95rem; opacity: .95; margin: 0 0 26px; }
.search { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); max-width: 760px; }
.lengths { display: flex; flex-wrap: wrap; gap: 14px 8px; margin-bottom: 14px; padding-top: 8px; }
.lengths button { position: relative; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 15px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.lengths button em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); white-space: nowrap; line-height: 1.3; pointer-events: none; background: var(--hibiscus); color: #fff; font-style: normal; font-size: .62rem; padding: 2px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.lengths button.on { background: var(--jungle); border-color: var(--jungle); color: #fff; }
.search-row > * { min-width: 0; }
.search-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.search-row:has(.s-out:not([hidden])) { grid-template-columns: 1fr 1fr auto auto; }
.search label span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.search input, .search select { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font: 500 1rem var(--sans); background: var(--cream); color: var(--ink); }
.s-guests select { width: 80px; }
.search-note { margin: 8px 0 0; font-size: .85rem; color: var(--hibiscus); min-height: 0; }
.search-note:empty { display: none; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; font-size: .95rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(0, 0, 0, .04); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.mini { text-decoration: none; color: inherit; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); color: var(--jungle); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title h3 { margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.rating { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.rating small { color: var(--muted); font-weight: 400; }
.card-price b, .q-total b { font-size: 1.35rem; font-family: var(--serif); color: var(--jungle); }
.card-price span { color: var(--muted); font-size: .9rem; }
.card-quote .ok { color: var(--save); font-weight: 600; font-size: .85rem; }
.card-quote .no { color: var(--hibiscus); font-weight: 600; font-size: .85rem; }
.card.unavailable .card-img img { filter: grayscale(.6); opacity: .8; }
.card-actions { margin-top: auto; padding-top: 8px; }

/* Prices table */
.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prices th, .prices td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--cream); }
.prices tr:last-child td { border-bottom: 0; }
.prices .hl { background: #eef5ee; }
.prices th.hl { color: var(--jungle); }
.prices td a { font-weight: 600; color: var(--jungle); text-decoration: none; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 20px; }
.why.compact { grid-template-columns: repeat(2, 1fr); }
.why-item { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.why-icon { font-size: 1.8rem; margin-bottom: 8px; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.gallery-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 10px; scroll-snap-type: x mandatory; }
.gallery-strip img { height: 260px; width: auto; border-radius: 12px; scroll-snap-align: start; flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checks { list-style: none; padding: 0; columns: 2; gap: 20px; }
.checks li { padding: 6px 0 6px 26px; position: relative; break-inside: avoid; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--save); font-weight: 700; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin: 8px 0; }
.faq { background: var(--cream); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--jungle); color: #dfe9e2; padding: 40px 0 90px; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 20px; }
.site-footer .muted { color: #a9bdb0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; text-decoration: none; box-shadow: var(--shadow); z-index: 60; }

/* Cabin page */
.cabin-top { padding-top: 24px; }
.cabin-top h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 4px; }
.back { text-decoration: none; font-weight: 500; font-size: .9rem; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; margin-top: 18px; border-radius: var(--radius); overflow: hidden; padding: 0; }
.g-item { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.03); }
.g-main { grid-row: span 2; }
.g-all { position: absolute; right: 14px; bottom: 14px; background: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.lightbox { border: 0; padding: 0; background: rgba(10, 16, 12, .95); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-count { position: absolute; bottom: 18px; color: #fff; font-size: .9rem; }
.cabin-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; padding-top: 32px; padding-bottom: 40px; align-items: start; }
.lead { font-size: 1.15rem; }
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--wood-soft); color: #6e4422; border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 500; }
.price-box { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0 32px; }
.price-box > div { padding: 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.price-box > div:last-child { border-right: 0; }
.price-box b { font-family: var(--serif); font-size: 1.4rem; color: var(--jungle); }
.price-box .hl { background: #eef5ee; }
.booker { position: sticky; top: 76px; }
.booker-card { background: var(--paper); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.booker-head { margin-bottom: 14px; }
.booker-head b { font-family: var(--serif); font-size: 1.6rem; color: var(--jungle); }
.small-lengths button { padding: 6px 12px; font-size: .82rem; }
.cal { margin: 4px 0 12px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; }
.cal-nav button { background: none; border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.cal-nav button:disabled { opacity: .3; }
.cal-months { display: grid; gap: 14px; }
.cal-title { text-align: center; font-weight: 700; margin: 10px 0 6px; }
.cal-title::first-letter { text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .dow { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-grid .d { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font: 500 .88rem var(--sans); cursor: pointer; color: var(--ink); }
.cal-grid .d:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--jungle); }
.cal-grid .d:disabled { color: #c3c7c4; cursor: default; }
.cal-grid .d.busy:not(.past) { text-decoration: line-through; color: #c9a5a1; }
.cal-grid .d.inrange { background: #e3efe5; border-radius: 0; }
.cal-grid .d.sel { background: var(--jungle); color: #fff; }
.quote { border-top: 1px solid var(--line); padding-top: 12px; }
.q-dates { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 8px; }
.q-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: .95rem; }
.q-line.q-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.q-line.q-dep { font-weight: 600; color: var(--jungle); }
.hint { background: #fff6e8; border: 1px dashed #e6c48e; color: #7a5212; border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin: 10px 0 0; }
#bk-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: grid; gap: 10px; }
#bk-form h3 { margin: 0; }
#bk-form label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
#bk-form input, #bk-form select, #bk-form textarea { padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: 400 .98rem var(--sans); background: var(--cream); color: var(--ink); }
.methods { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.methods legend { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.method { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 10px !important; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.method:has(input:checked) { border-color: var(--jungle); background: #f1f7f2; }
.method span { display: grid; color: var(--ink); font-weight: 400; }
.method b { font-size: .95rem; }
.method small { color: var(--muted); font-size: .8rem; }
.mobile-cta { display: none; }

/* Booking result */
.rs-card { background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 220px 1fr; }
.rs-img { width: 100%; height: 100%; object-fit: cover; }
.rs-body { padding: 22px; }
.rs-body h1 { font-size: 1.6rem; margin-bottom: 2px; }
.status { display: inline-block; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 10px; background: #fff3dc; color: #8a5a0c; }
.status-confirmed { background: #e3f2e6; color: var(--save); }
.status-expired, .status-cancelled { background: #fbe4e2; color: var(--hibiscus); }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.notice.ok { background: #eef7ef; border-color: #cfe5d3; }
.notice.warn { background: #fdf0ee; border-color: #f2cfca; }
.notice p:first-child { margin-top: 0; }
#paypal-buttons { max-width: 420px; }

/* Admin */
body.admin { background: #f4f2ee; }
.admin-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .88rem; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--cream); font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.admin-table .actions form { display: inline-block; margin: 0 4px 4px 0; }
.row-expired, .row-cancelled { opacity: .5; }
.row-pending { background: #fffaf0; }
.admin-cabins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 14px; }
.admin-cabin { background: #fff; border-radius: 14px; padding: 16px; display: grid; gap: 8px; border: 1px solid var(--line); }
.admin-cabin h3 { margin: 0; }
.admin-cabin label, .admin-block label { display: grid; gap: 3px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.admin-cabin label.inline { display: flex; align-items: center; gap: 6px; }
.admin-cabin input[type=number], .admin-cabin input[type=url], .admin-cabin textarea, .admin-block input, .admin-block select, .admin-login input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.admin-block { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.admin-login { display: flex; gap: 10px; }
code { background: var(--cream); padding: 2px 6px; border-radius: 6px; font-size: .82rem; word-break: break-all; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .cabin-layout { grid-template-columns: 1fr; }
  .booker { position: static; }
  .admin-cabins { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hide-sm, .logo small { display: none; }
  body { overflow-x: clip; }
  .site-header nav { gap: 10px; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 36px; }
  .search-row, .search-row:has(.s-out:not([hidden])) { grid-template-columns: 1fr 1fr; }
  .search-row .btn { grid-column: 1 / -1; }
  .s-guests select { width: 100%; }
  .search input[type=date] { min-width: 0; font-size: .95rem; padding: 12px 8px; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .why, .why.compact { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .checks { columns: 1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery .g-main { grid-column: span 2; grid-row: auto; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .price-box { grid-template-columns: 1fr; }
  .price-box > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .rs-card { grid-template-columns: 1fr; }
  .rs-img { height: 180px; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
  .mobile-cta b { font-family: var(--serif); font-size: 1.2rem; color: var(--jungle); margin-right: 4px; }
}
