/* ==========================================================================
   Sabs Villa — core stylesheet
   Aesthetic: modern warm luxe (warm neutrals, charcoal, brass accent)
   ========================================================================== */

:root {
    --bg:        #f7f4ef;
    --bg-warm:   #efe9e0;
    --card:      #ffffff;
    --ink:       #22201d;
    --ink-soft:  #4a453e;
    --muted:     #6b6459;
    --line:      #e3ddd2;
    --brass:     #b08d57;
    --brass-dk:  #8f6f3f;
    --cream:     #fbf9f5;

    --ok:        #4b7f52;
    --ok-bg:     #e5efe4;
    --pending:   #b8863b;
    --pending-bg:#f6ecd8;
    --booked:    #9c4f45;
    --booked-bg: #f1e0dc;
    --blocked:   #6b6459;
    --blocked-bg:#e7e2d8;
    --maint:     #5566a1;
    --maint-bg:  #e2e6f2;
    --danger:    #a23b34;

    --radius:    14px;
    --radius-sm: 9px;
    --shadow:    0 18px 40px -24px rgba(34, 32, 29, .45);
    --shadow-sm: 0 6px 18px -10px rgba(34, 32, 29, .35);
    --serif:     "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    --sans:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wrap:      1160px;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-dk); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.4rem; }

/* Accessibility: visible focus + skip link ------------------------------- */
:focus-visible { outline: 2px solid var(--brass-dk); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff;
    padding: .7em 1.2em; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; color: #fff; }
p  { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section { position: relative; }

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.6em; border-radius: 100px; font-weight: 600; font-size: .98rem;
    letter-spacing: .2px; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    text-align: center; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--brass); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brass-dk); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: .55em 1em; font-size: .85rem; }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

/* Header / nav ------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 244, 239, .88);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: .3px; }
.brand__mark { color: var(--brass-dk); }
.brand--footer { color: var(--cream); font-size: 1.5rem; }
.brand--footer .brand__mark { color: var(--brass); }
.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.4rem); }
.site-nav > a { color: var(--ink-soft); font-size: .96rem; font-weight: 500; padding: .35em 0; position: relative; }
.site-nav > a:hover, .site-nav > a.is-active { color: var(--ink); }
.site-nav > a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brass); }
.nav-cta { border: 1.5px solid var(--ink); border-radius: 100px; padding: .5em 1.1em !important; color: var(--ink) !important; font-weight: 600; }
.nav-cta:hover { background: var(--ink); color: var(--cream) !important; }
.nav-cta--solid { background: var(--brass); border-color: var(--brass); color: #fff !important; }
.nav-cta--solid:hover { background: var(--brass-dk); border-color: var(--brass-dk); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* Hero -------------------------------------------------------------------- */
.hero {
    position: relative; color: var(--cream);
    min-height: 88vh; display: flex; align-items: center;
    background: linear-gradient(180deg, rgba(20,18,16,.28), rgba(20,18,16,.62)),
                var(--hero-img, linear-gradient(135deg, #6b6459, #3a352f)) center/cover no-repeat;
}
.hero__inner { padding-bottom: clamp(3rem, 8vh, 5rem); padding-top: 7rem; max-width: 820px;
    margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 1rem;
    text-transform: uppercase; letter-spacing: 4px; font-size: .78rem; color: var(--brass);
    font-weight: 600; margin-bottom: 1.2rem; }
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 44px; height: 1px;
    background: rgba(255, 255, 255, .45); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 54ch; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; justify-content: center; }
.hero__rating { justify-content: center; }
.hero-book { text-align: left; }
@media (max-width: 440px) {
    .hero__eyebrow::before, .hero__eyebrow::after { display: none; }
}
.hero { overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.15), rgba(20,18,16,.72)); }
.hero__inner { position: relative; }
.hero__rating { display: inline-flex; align-items: center; gap: .4em; margin-top: .6rem;
    color: var(--brass); font-weight: 600; letter-spacing: .5px; }
.rating-badge { color: var(--brass-dk); font-weight: 600; }

/* Generic section spacing ------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--warm { background: var(--bg-warm); }
.section__head { max-width: 640px; margin-bottom: 2.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem; color: var(--brass-dk); font-weight: 700; display: block; margin-bottom: .8rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* Cards / grids ----------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: clamp(1.6rem, 3vw, 2.6rem); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-warm); color: var(--brass-dk);
    display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature-split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* Amenity list ------------------------------------------------------------ */
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.4rem; }
.amenity-list li { display: flex; gap: .6rem; align-items: baseline; color: var(--ink-soft); }
.amenity-list li::before { content: "✦"; color: var(--brass); font-size: .8rem; }

/* Gallery ----------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--bg-warm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem; font-size: .85rem;
    color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.gallery-grid figure:hover figcaption { opacity: 1; }
.gallery-grid [data-lightbox] { cursor: zoom-in; }
.gallery-grid video { width: 100%; height: 100%; object-fit: cover; }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(20,18,16,.55); color: #fff; font-size: 1.2rem; padding-left: 4px;
    pointer-events: none; }

/* Lightbox ----------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,.92);
    display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; text-align: center; }
.lightbox__media img, .lightbox__media video { max-width: min(1100px, 92vw); max-height: 80vh;
    border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox__caption { color: rgba(255,255,255,.85); margin-top: .8rem; font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 0; color: rgba(255,255,255,.85);
    cursor: pointer; font-size: 2.4rem; line-height: 1; padding: .4em; z-index: 1; }
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; }
.lightbox__close { top: 12px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* Scroll-reveal (JS adds .reveal; content is fully visible without JS) ----- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.is-visible { opacity: 1; transform: none; }
    .btn, .card { transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease; }
    .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}

/* Hero booking widget ------------------------------------------------------- */
.hero-book { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin-top: 1.6rem;
    background: rgba(251, 249, 245, .96); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.hero-book__field { display: grid; gap: .25rem; }
.hero-book__field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.hero-book__field input { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .6em .7em;
    font: inherit; color: var(--ink); background: #fff; min-width: 150px; }
.hero-book__field--sm input { min-width: 84px; }
.hero-book__field input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.hero-book .btn { margin-left: auto; }
.hero-book__cal { flex-basis: 100%; font-size: .84rem; color: var(--brass-dk); }
@media (max-width: 720px) {
    .hero-book { padding: .9rem; gap: .6rem; }
    .hero-book__field { flex: 1 1 46%; }
    .hero-book__field input { min-width: 0; width: 100%; }
    .hero-book .btn { flex-basis: 100%; margin-left: 0; }
}

/* Floating WhatsApp bubble (desktop; phones get it in the book bar) --------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px;
    border-radius: 50%; background: #1fa855; color: #fff; display: none; place-items: center;
    font-size: 1.7rem; box-shadow: var(--shadow); }
.wa-float:hover { background: #178c45; color: #fff; transform: translateY(-2px); }
@media (min-width: 901px) { .wa-float { display: grid; } }

/* Sticky mobile booking bar ------------------------------------------------ */
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
    gap: .6rem; padding: .65rem max(.9rem, env(safe-area-inset-left)) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(28, 26, 23, .96); backdrop-filter: blur(8px); }
.book-bar .btn { flex: 1; }
.book-bar .btn--wa { background: #1fa855; color: #fff; }
.book-bar .btn--wa:hover { background: #178c45; color: #fff; }
@media (max-width: 900px) {
    .book-bar { display: flex; }
    body.is-public { padding-bottom: 74px; }   /* keep footer clear of the bar */
}

/* FAQ (native details/summary — zero JS) ----------------------------------- */
.faq { display: grid; gap: .7rem; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 1.05rem 1.2rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
    color: var(--brass-dk); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* Trust / book-direct band -------------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust { text-align: center; padding: 1.2rem .8rem; }
.trust .ico { font-size: 1.6rem; margin-bottom: .5rem; }
.trust h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.trust p { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* Inline tour player (portrait video) ---------------------------------------- */
.tour-media { max-width: 380px; margin: 0 auto; width: 100%; }
.tour-media video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000;
    border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Packages ------------------------------------------------------------------ */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); align-items: stretch; }
.pkg-card { position: relative; display: flex; flex-direction: column; background: var(--card);
    border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-sm); }
.pkg-card--featured { border: 2px solid var(--brass); box-shadow: var(--shadow); }
.pkg-card__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brass); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: .35em 1.1em; border-radius: 100px; white-space: nowrap; }
.pkg-card__icon { font-size: 2rem; margin-bottom: .6rem; }
.pkg-card__name { font-size: 1.45rem; margin-bottom: .2rem; }
.pkg-card__price { font-family: var(--serif); font-size: 2rem; color: var(--brass-dk); margin-bottom: .3rem; }
.pkg-card__price span { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.pkg-card__meta { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .4rem; }
.pkg-card__list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .55rem; flex: 1; }
.pkg-card__list li { display: flex; gap: .6rem; align-items: baseline; color: var(--ink-soft); }
.pkg-card__list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pkg-card__list--tiers li { justify-content: space-between; }
.pkg-card__list--tiers li::before { content: none; }
.pkg-card__list--tiers li span { color: var(--muted); }
.pkg-card__note { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .pkg-card--featured { order: -1; } }

/* Why-choose feature grid ----------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.why-item { display: flex; gap: .9rem; align-items: flex-start; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.why-item__icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--bg-warm);
    display: grid; place-items: center; font-size: 1.1rem; }
.why-item h3 { font-family: var(--sans); font-size: .98rem; font-weight: 700; margin-bottom: .15rem; }
.why-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Good-to-know box ------------------------------------------------------------ */
.know-box { max-width: 640px; margin: 0 auto; background: var(--bg-warm); border: 1px solid var(--line);
    border-left: 4px solid var(--brass); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.know-box h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.know-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.know-box li { display: flex; gap: .6rem; align-items: baseline; color: var(--ink-soft); }
.know-box li::before { content: "•"; color: var(--brass-dk); font-weight: 700; }

.contact-tile { text-align: center; }
.contact-tile .card__icon { margin: 0 auto 1rem; }
.contact-tile p { color: var(--brass-dk); font-weight: 600; }

/* Location strip ------------------------------------------------------------ */
.location-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.6rem; }
.location-strip .addr { display: flex; align-items: center; gap: .7rem; color: var(--ink-soft); font-size: 1.02rem; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--cream); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }

/* Reviews ----------------------------------------------------------------- */
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.stars { color: var(--brass); letter-spacing: 2px; font-size: 1rem; }
.review-card blockquote { margin: .6rem 0 1rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.4; }
.review-card cite { font-style: normal; color: var(--muted); font-size: .9rem; }

/* Stats strip ------------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-strip .num { font-family: var(--serif); font-size: 2.4rem; color: var(--brass-dk); }
.stat-strip .lbl { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* Calendar ---------------------------------------------------------------- */
.calendar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.calendar__title { font-family: var(--serif); font-size: 1.6rem; }
.calendar__nav { display: flex; gap: .5rem; }
.calendar__nav a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--ink); font-size: 1.1rem; }
.calendar__nav a:hover { background: var(--bg-warm); }
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: .5rem 0; font-weight: 600; }
.calendar td { padding: 3px; }
.cal-day { aspect-ratio: 1/1; border-radius: 10px; display: flex; align-items: flex-start; justify-content: flex-end;
    padding: .4rem .5rem; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--ok-bg); border: 1px solid transparent; }
.cal-day--blank { background: transparent; }
.cal-day--past { background: transparent; color: #c3bcb0; }
.cal-day--available { background: var(--ok-bg); color: var(--ok); }
.cal-day--pending { background: var(--pending-bg); color: var(--pending); }
.cal-day--booked { background: var(--booked-bg); color: var(--booked); }
.cal-day--blocked { background: var(--blocked-bg); color: var(--blocked); }
.cal-day--maintenance { background: var(--maint-bg); color: var(--maint); }

.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.legend .l-available { background: var(--ok-bg); border: 1px solid var(--ok); }
.legend .l-pending { background: var(--pending-bg); border: 1px solid var(--pending); }
.legend .l-booked { background: var(--booked-bg); border: 1px solid var(--booked); }
.legend .l-blocked { background: var(--blocked-bg); border: 1px solid var(--blocked); }
.legend .l-maintenance { background: var(--maint-bg); border: 1px solid var(--maint); }

/* Pills / status ---------------------------------------------------------- */
.pill { display: inline-block; padding: .28em .8em; border-radius: 100px; font-size: .76rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; background: var(--bg-warm); color: var(--ink-soft); }
.pill--pending, .pill--open, .pill--submitted, .pill--in_progress { background: var(--pending-bg); color: var(--pending); }
.pill--approved, .pill--active, .pill--published, .pill--completed, .pill--reviewed { background: var(--ok-bg); color: var(--ok); }
.pill--booked { background: var(--booked-bg); color: var(--booked); }
.pill--blocked, .pill--closed, .pill--hidden, .pill--draft, .pill--disabled { background: var(--blocked-bg); color: var(--blocked); }
.pill--maintenance { background: var(--maint-bg); color: var(--maint); }
.pill--rejected, .pill--cancelled { background: var(--booked-bg); color: var(--danger); }

/* Forms ------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card); font: inherit; color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: var(--danger); font-size: .8rem; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-extra { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Price estimate (booking request) ----------------------------------------- */
.estimate { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.estimate h4 { margin: 0 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.estimate__rows { display: grid; gap: .35rem; }
.estimate__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--ink-soft); }
.estimate__row--total { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .25rem; font-weight: 600; color: var(--ink); }
.estimate__empty { font-size: .9rem; margin: 0; }
.estimate .form-note { margin: .7rem 0 0; }
.calendar__rates { text-align: center; font-size: .9rem; margin-top: 1rem; }

/* Auth card --------------------------------------------------------------- */
.auth-wrap { max-width: 460px; margin: clamp(2rem, 6vw, 4rem) auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; }
.auth-alt { text-align: center; margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }

/* Flash messages ---------------------------------------------------------- */
.flashes { margin: 1.2rem 0; display: grid; gap: .6rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; border: 1px solid transparent; }
.flash--success { background: var(--ok-bg); color: var(--ok); border-color: #cfe2cd; }
.flash--error { background: var(--booked-bg); color: var(--danger); border-color: #e8ccc7; }
.flash--info { background: var(--maint-bg); color: var(--maint); border-color: #cfd6ea; }
.flash--warning { background: var(--pending-bg); color: var(--pending); border-color: #ecd9b6; }

/* Tables (shared) --------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
table.data th { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: var(--cream); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--cream); }

/* Simple page hero (interior pages) --------------------------------------- */
.page-hero { background: var(--bg-warm); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem,5vw,3rem); }
.page-hero h1 { margin-bottom: .3rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }

/* Footer ------------------------------------------------------------------ */
.site-main { min-height: 40vh; }
.site-footer { background: #1c1a17; color: rgba(255,255,255,.72); padding-top: clamp(3rem, 6vw, 4.5rem); margin-top: 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .92rem; }
.site-footer a:hover { color: var(--brass); }
.site-footer__bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0;
    border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }
.site-footer__legal a { color: rgba(255,255,255,.7); }

.linklike { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Utilities --------------------------------------------------------------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hide { display: none !important; }
.tag { display:inline-block; font-size:.75rem; letter-spacing:.5px; text-transform:uppercase; color:var(--brass-dk); font-weight:700; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .feature-split { grid-template-columns: 1fr; }
    .feature-split img { min-height: 240px; order: -1; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Prevent any element from causing horizontal scroll on small screens. */
html, body { overflow-x: hidden; max-width: 100%; }
.table-wrap { -webkit-overflow-scrolling: touch; }

@media (max-width: 720px) {
    body { font-size: 16px; }
    table.data th, table.data td { padding: .6rem .7rem; font-size: .88rem; }
    .calendar { padding: 1rem; }
    .cal-day { font-size: .8rem; padding: .3rem .35rem; }
    .stat-strip .num { font-size: 2rem; }
    .section__head { margin-bottom: 1.6rem; }
    .btn { padding: .82em 1.35em; }               /* comfortable touch targets */
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--bg); padding: 1rem clamp(18px,4vw,40px) 1.6rem; gap: .2rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-140%); transition: transform .25s ease; height: auto;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav > a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
    .nav-cta, .nav-cta--solid { text-align: center; margin-top: .5rem; }
    .form-row { grid-template-columns: 1fr; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .amenity-list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 440px) {
    h1 { font-size: 2rem; }
    .container { padding: 0 16px; }
    .hero { min-height: 68vh; }
    .cal-day { font-size: .72rem; padding: .25rem; border-radius: 7px; }
    .calendar th { font-size: .62rem; }
    .legend { gap: .45rem .9rem; }
    .legend span { font-size: .8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 1.4rem; }
    /* Stack the big hero CTAs full-width; leave inline/table buttons alone. */
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
}
