/* Taoruna Villa: public site styles */
[hidden] { display: none !important; }
:root {
  --ocean: #1d4c8c;
  --ocean-deep: #12325e;
  --ocean-soft: #e7eef8;
  --sand: #f6f1e8;
  --sand-deep: #ebe2d2;
  --paper: #fffdf9;
  --teak: #9a6237;
  --ink: #22262d;
  --muted: #6b6f78;
  --line: #e2dccf;
  --ok: #2f7a4f;
  --warn: #a5541b;
  --busy: #c9c3b7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(18, 50, 94, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; color: var(--ocean-deep); }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teak); margin-bottom: 1rem; font-weight: 500; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
section { padding: clamp(64px, 10vw, 120px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 0.82rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 28px; border: 1px solid var(--ocean); background: var(--ocean); color: #fff; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background 0.2s, color 0.2s, opacity 0.2s; }
.btn:hover { background: var(--ocean-deep); border-color: var(--ocean-deep); }
.btn.ghost { background: transparent; color: var(--ocean); }
.btn.ghost:hover { background: var(--ocean); color: #fff; }
.btn.light { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); color: #fff; backdrop-filter: blur(4px); }
.btn.light:hover { background: #fff; color: var(--ocean-deep); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, box-shadow 0.3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 44px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s; }
.brand span { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.32em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #fff; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a:hover { opacity: 0.75; }
.site-header.solid { background: rgba(255, 253, 249, 0.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.site-header.solid .brand { color: var(--ocean-deep); }
.site-header.solid .brand img { filter: none; }
.site-header.solid .nav a { color: var(--ink); }
.site-header.solid .nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: #fff; }
.site-header.solid .menu-toggle svg { stroke: var(--ink); }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 0 20px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { color: var(--ink); padding: 14px 24px; width: 100%; text-align: center; }
  .nav .btn { width: auto; margin-top: 8px; }
  .brand span { font-size: 1.15rem; }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding: 0 0 clamp(48px, 10vh, 110px); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s ease-out; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 50, 0.45) 0%, rgba(10, 25, 50, 0.05) 35%, rgba(10, 25, 50, 0.65) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { font-size: 1.15rem; max-width: 46ch; opacity: 0.95; }
.hero .eyebrow { color: #f1dcb8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }

/* intro + highlights */
.intro { background: var(--paper); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img { aspect-ratio: 4/3; } }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.highlights div { background: var(--paper); padding: 28px 22px; }
.highlights strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--ocean); line-height: 1.1; }
.highlights span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 760px) { .highlights { grid-template-columns: repeat(2, 1fr); } }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 10px; margin-top: 40px; }
.gallery-grid button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); background: var(--sand-deep); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall { grid-row: span 2; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 34, 0.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox p { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 0.9rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 16px; line-height: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* videos */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.videos figure { margin: 0; }
.videos video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; border-radius: var(--radius); }
.videos figcaption { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.location-media { display: grid; gap: 14px; justify-items: start; }
.location-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
/* video reel */
.reel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.reel video { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); background: #000; }
@media (max-width: 860px) { .reel { grid-template-columns: 1fr; } }

/* amenities */
.amenities { background: var(--paper); }
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 48px; }
.amenity { display: flex; gap: 16px; }
.amenity svg { flex: 0 0 28px; width: 28px; height: 28px; stroke: var(--teak); fill: none; stroke-width: 1.4; }
.amenity h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2px 0 4px; }
.amenity p { font-size: 0.92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .amenity-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr; } }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.services div { border: 1px solid var(--line); padding: 22px; border-radius: var(--radius); background: var(--sand); }
.services h3 { font-size: 1.25rem; margin-bottom: 6px; }
.services p { font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr 1fr; } }

/* reviews */
.reviews { background: var(--ocean-deep); color: #e9eef6; }
.reviews h2 { color: #fff; }
.reviews .eyebrow { color: #e6c89a; }
.score { display: inline-flex; align-items: center; gap: 16px; margin: 8px 0 32px; }
.score b { font-family: var(--serif); font-size: 3rem; font-weight: 500; color: #fff; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-list figure { margin: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); padding: 26px; border-radius: var(--radius); }
.review-list blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: #fff; }
.review-list figcaption { font-size: 0.82rem; letter-spacing: 0.08em; color: #b9c6da; }
@media (max-width: 860px) { .review-list { grid-template-columns: 1fr; } }

/* booking */
.booking { background: var(--sand); }
.booking-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 32px; align-items: start; margin-top: 40px; }
@media (max-width: 980px) { .booking-grid { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.sticky { position: sticky; top: 96px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head button { background: none; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.cal-head button:disabled { opacity: 0.3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px) { .cal-months { grid-template-columns: 1fr; } .cal-months .month:nth-child(2) { display: none; } }
.month h4 { text-align: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin: 0 0 12px; color: var(--ocean-deep); }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow span { text-align: center; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 6px; }
.day { position: relative; aspect-ratio: 1 / 1.05; border: 0; background: none; padding: 2px 0 0; cursor: pointer; font: 500 0.92rem var(--sans); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 0; }
.day small { font-size: 0.6rem; font-weight: 400; color: var(--muted); margin-top: 1px; }
.day:hover:not(:disabled) { outline: 1px solid var(--ocean); outline-offset: -1px; }
.day:disabled { cursor: default; color: #b9b4aa; }
.day.busy { color: #b9b4aa; text-decoration: line-through; }
.day.busy small, .day:disabled small { visibility: hidden; }
.day.checkout-only { color: var(--ink); text-decoration: none; }
.day.in-range { background: var(--ocean-soft); }
.day.start, .day.end { background: var(--ocean); color: #fff; }
.day.start small, .day.end small { color: #dbe6f6; }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--teak); }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-top: 14px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 6px; border-radius: 2px; }
.cal-hint { min-height: 1.6em; font-size: 0.9rem; color: var(--teak); margin-top: 10px; }

.summary-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.summary-dates div { padding: 12px 14px; }
.summary-dates div + div { border-left: 1px solid var(--line); }
.summary-dates label, .field label { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.summary-dates b { font-weight: 500; }
.price-lines { margin: 18px 0; border-top: 1px solid var(--line); }
.price-lines div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.price-lines .total { font-weight: 600; font-size: 1.08rem; border-bottom: 0; }
.field { margin-bottom: 14px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ocean-soft); border-color: var(--ocean); }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 0.92rem; margin: 12px 0; }
.alert.error { background: #fbeee6; color: var(--warn); }
.alert.ok { background: #e8f3ec; color: var(--ok); }
.hp { position: absolute; left: -9999px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.secure svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.stay-facts { font-size: 0.88rem; color: var(--muted); margin-top: 18px; }
.stay-facts li { margin-bottom: 6px; }

/* location + contact */
.location .split img { aspect-ratio: 16/11; }
.map { width: 100%; aspect-ratio: 16/11; border: 0; border-radius: var(--radius); filter: saturate(0.85); }
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; margin-top: 32px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list a { text-decoration: none; }

/* footer */
.site-footer { background: #0d2341; color: #b7c3d6; padding: 56px 0 32px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #dfe7f2; text-decoration: none; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; font-size: 0.8rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* simple pages */
.page { padding: 140px 0 90px; min-height: 70vh; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page .panel { margin-top: 24px; }
.page h2 { font-size: 1.7rem; margin-top: 1.6em; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 16px 0; }
.kv dt { color: var(--muted); font-size: 0.86rem; }
.kv dd { margin: 0; }
.badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: var(--ocean-soft); color: var(--ocean); }
.badge.ok { background: #e3f1e8; color: var(--ok); }
.badge.off { background: #f1e9df; color: var(--warn); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--ocean); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
