/* ============================================================================
   Cocoritties Guest House: light, warm, mobile-first. Light theme only.
   ============================================================================ */
:root {
    --bg: #fbf7f0;
    --surface: #ffffff;
    --surface-2: #f4ede1;
    --ink: #1f2328;
    --ink-2: #4b5260;
    --ink-3: #7b8190;
    --brand: #0f5c4a;
    --brand-2: #0b4739;
    --brand-soft: #e3f0eb;
    --accent: #c2683a;
    --accent-soft: #fbe6da;
    --border: #e7ddcc;
    --ok: #1f7a4d;
    --ok-soft: #e2f3ea;
    --warn: #8a5a00;
    --warn-soft: #fff1d6;
    --err: #b23b3b;
    --err-soft: #fdeceb;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --shadow: 0 6px 20px rgba(31, 35, 40, .07);
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .9rem; color: var(--ink-2); }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
/* Vertical only: .section is combined with .container, whose side padding must survive. */
.section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
/* Keep in-page anchors (#rooms, #contact) clear of the sticky header. */
[id] { scroll-margin-top: 80px; }
.muted { color: var(--ink-3); }
.fine { font-size: .82rem; color: var(--ink-3); margin: .6rem 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }
.plain { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.plain li { margin-bottom: .45rem; }

/* ---- Header / footer ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--brand); text-decoration: none; }
.brand span { color: var(--accent); font-weight: 500; }
.nav { display: flex; gap: 1.1rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--brand); margin-bottom: .4rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.site-footer p { margin: 0 0 .3rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.2rem 16px; margin-top: 1.5rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--ink-3); }

/* ---- Buttons ---- */
.cta, .btn {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: .75rem 1.3rem;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, transform .15s ease;
}
.cta { background: var(--brand); color: #fff; }
.cta:hover { background: var(--brand-2); color: #fff; }
.cta:disabled { background: var(--ink-3); cursor: not-allowed; }
.cta-block { display: block; width: 100%; }
.btn { background: var(--brand-soft); color: var(--brand); padding: .55rem 1.1rem; }
.btn:hover { background: var(--brand); color: #fff; }

/* ---- Forms ---- */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .75rem; }
input, select, textarea {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .65rem .75rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
input:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface-2) 60%, var(--accent-soft) 100%); padding: 3rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.hero-price { font-size: 1.05rem; color: var(--ink); }
.search-card { background: var(--surface); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.search-card h2 { font-size: 1.3rem; }
.search-card .cta { width: 100%; }

/* ---- Rooms ---- */
.section-head { margin-bottom: 1.25rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.room-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.room-photo {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, hsl(var(--hue, 160) 35% 38%), hsl(calc(var(--hue, 160) + 30) 40% 62%));
    color: rgba(255, 255, 255, .9);
    font-family: var(--font-display);
    font-size: 3.5rem;
    text-decoration: none;
    overflow: hidden;
}
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.room-photo-lg { border-radius: var(--r-lg); aspect-ratio: 16 / 9; font-size: 5rem; }
.room-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.room-body h3 { margin: 0; }
.room-body h3 a { color: var(--ink); text-decoration: none; }
.room-meta { font-size: .9rem; color: var(--ink-3); margin: 0; }
.room-price { margin: .2rem 0; color: var(--ink); }
.room-price strong { font-size: 1.25rem; }
.room-price span { color: var(--ink-3); font-size: .9rem; }
.room-body .btn { margin-top: auto; align-self: flex-start; }

.badge { display: inline-block; font-size: .82rem; font-weight: 600; padding: .3rem .65rem; border-radius: var(--r-sm); margin: .2rem 0 .4rem; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-full { background: var(--err-soft); color: var(--err); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.feature-card { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow); flex-wrap: wrap; }
.feature-card > div:first-child { max-width: 60ch; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; }
.phone { font-weight: 600; font-size: 1.05rem; }

/* ---- Room detail ---- */
.crumbs { margin-bottom: 1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.gallery { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.gallery img { border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1.25rem 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: .8rem 1rem; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }
.book-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow); position: sticky; top: 80px; }
.book-card h2 { font-size: 1.35rem; }
.quote { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .25rem; }
.quote-line { margin: 0; color: var(--ink-2); }
.quote-total { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); margin: .2rem 0; }
.quote-dates { font-size: .9rem; color: var(--ink-3); }

/* ---- Alerts ---- */
.alert { border-radius: var(--r-md); padding: .85rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }

/* ---- Small screens ---- */
@media (max-width: 860px) {
    .hero-grid, .detail-grid { grid-template-columns: 1fr; }
    .book-card { position: static; }
    .hero { padding: 2rem 0; }
}
@media (max-width: 420px) {
    .date-pair { grid-template-columns: 1fr; }
    .nav { gap: .8rem; font-size: .92rem; }
}
