/* =========================================================
    Coastal portal — v3 white / navy / yellow theme
    ========================================================= */
:root {
    --navy:        #0a3d62;
    --navy-2:      #07294a;
    --navy-soft:   #eaf2fb;
    --navy-line:   #d9e6f4;
    --yellow:      #ffc107;
    --yellow-h:    #e8ad00;
    --yellow-soft: #fff7d6;
    --green:       #1a8a4a;
    --red:         #d92d20;
    --orange:      #c2410c;

    --ink:         #14213d;
    --ink-2:       #475569;
    --muted:       #6b7280;
    --line:        #e5e7eb;
    --line-2:      #eef2f7;

    --bg:          #ffffff;
    --bg-soft:     #f7f9fc;
    --card:        #ffffff;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow:    0 4px 14px rgba(15, 23, 42, .08);
    --shadow-lg: 0 14px 40px rgba(15, 23, 42, .14);
    --radius:    12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; padding-bottom: 64px; }
body > footer.site-footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy-2); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 .5rem; font-weight: 800; }
h2 { font-size: 1.4rem; margin: 0 0 .8rem; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* SVG icons inline */
.icon { width: 1em; height: 1em; vertical-align: -.125em; flex: none; stroke-width: 2; }
.icon-lg { width: 1.25rem; height: 1.25rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 90;
    box-shadow: var(--shadow-sm);
}
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 24px; flex-wrap: wrap;
}
.brand {
    color: var(--navy); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
    display: inline-flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; color: var(--navy-2); }
.brand-logo {
    display: block;
    width: auto;
    height: 52px;
}
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--yellow); display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(10, 61, 98, .25);
}
.brand-mark svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
    .brand-logo { height: 42px; }
}

.lang-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.lang-nav a {
    color: var(--ink-2); padding: 8px 12px; border-radius: 8px;
    font-size: .9rem; font-weight: 600; transition: background .15s, color .15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.lang-nav a:hover { background: var(--navy-soft); color: var(--navy); text-decoration: none; }
.lang-nav a.active { background: var(--navy); color: #fff; }
.lang-nav .divider { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--navy-2); color: rgba(255,255,255,.85);
    padding: 32px 0 28px; margin-top: 80px;
    font-size: .9rem;
}
.site-footer .container {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }

/* =========================================================
   Hero (white, with yellow underline + navy headline)
   ========================================================= */
.hero {
    position: relative;
    padding: 64px 24px 48px;
    background:
        radial-gradient(1100px 380px at 90% -10%, var(--yellow-soft) 0%, transparent 60%),
        radial-gradient(900px 320px at 0% 0%, var(--navy-soft) 0%, transparent 55%),
        #fff;
    border-bottom: 1px solid var(--line);
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin: 0 0 12px;
    max-width: 760px;
}
.hero h1 .accent {
    background: linear-gradient(transparent 60%, var(--yellow-soft) 60%);
    padding: 0 4px; border-radius: 4px;
}
.hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 640px; margin: 0; }
.hero .badges { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .badge {
    background: #fff; border: 1px solid var(--line);
    padding: 8px 14px; border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 600; color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: var(--shadow-sm);
}
.hero .badge .icon { color: var(--navy); }

/* search bar */
.searchbar {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px;
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 24px auto 0; max-width: 1100px;
    box-shadow: var(--shadow);
}
.searchbar > * {
    flex: 1 1 180px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: .95rem; color: var(--ink);
}
.searchbar > *:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.searchbar button { flex: 0 0 auto; }

/* =========================================================
   Cards (apartment grid)
   ========================================================= */
.apartments { padding: 48px 0 24px; }
.apartments h2 { font-size: 1.6rem; margin: 0 0 8px; color: var(--navy); }
.apartments .section-sub { color: var(--muted); margin: 0 0 24px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .18s, transform .18s, border-color .18s;
    display: flex; flex-direction: column;
    position: relative;
}
.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--navy-line);
    transform: translateY(-2px);
}
.card .card-img { position: relative; display: block; overflow: hidden; }
.card .card-img img {
    width: 100%; height: 220px; object-fit: cover;
    transition: transform .35s ease;
    background: var(--navy-soft);
}
.card:hover .card-img img { transform: scale(1.04); }
.card .score-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--navy); color: #fff;
    border-radius: 8px 8px 8px 0;
    padding: 6px 10px; font-weight: 800; font-size: .92rem;
    min-width: 38px; text-align: center;
    box-shadow: 0 4px 10px rgba(10, 61, 98, .25);
}
.card .fav {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.9); border: none;
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--navy); cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.card .pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--navy-soft); color: var(--navy);
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: .78rem; font-weight: 600;
}
.pill .icon { width: .9em; height: .9em; }
.pill-green  { background: #e8f6ee; color: var(--green); }
.pill-yellow { background: var(--yellow-soft); color: #92590a; }
.pill-red    { background: #fee4e2; color: var(--red); }

.card-body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card h3 a { color: var(--navy); }
.card .meta {
    color: var(--muted); font-size: .85rem; margin: 0 0 8px;
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.card .meta .dot { color: var(--line); }
.card .desc { color: var(--ink-2); font-size: .92rem; margin: 0 0 14px; flex: 1; }
.card-footer {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: auto; padding-top: 14px; gap: 12px;
    border-top: 1px solid var(--line-2);
}
.card .price { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.card .price .from { font-size: .75rem; color: var(--muted); }
.card .price strong { font-size: 1.25rem; color: var(--ink); font-weight: 800; }
.card .price small { font-size: .78rem; color: var(--muted); }

/* =========================================================
   Apartment detail
   ========================================================= */
.apt { padding: 28px 0; }
.apt__breadcrumb {
    font-size: .88rem; color: var(--muted); margin: 0 0 16px;
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.apt__breadcrumb a { color: var(--navy); }
.apt__breadcrumb .sep { color: var(--line); }

.apt__title-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.apt__title-row h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); }
.apt__title-row .stars { color: var(--yellow); font-size: 1rem; letter-spacing: 2px; }
.apt__meta {
    color: var(--muted); font-size: .92rem; margin: 0 0 16px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.apt__meta .item { display: inline-flex; align-items: center; gap: 6px; }
.apt__meta .item .icon { color: var(--navy); }
.apt__meta a { color: var(--navy); }

.apt__gallery {
    display: grid; grid-template-columns: 2fr 1fr; gap: 6px;
    margin-bottom: 22px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
}
.apt__gallery-main img { width: 100%; height: 460px; object-fit: cover; }
.apt__gallery-grid { display: grid; grid-template-rows: repeat(2, 1fr); gap: 6px; }
.apt__gallery-grid img { width: 100%; height: 227px; object-fit: cover; }
.apt__gallery-empty {
    grid-column: 1 / -1;
    background: var(--navy-soft); padding: 80px; text-align: center;
    color: var(--muted);
}

.apt__tabs {
    display: flex; gap: 4px; border-bottom: 1px solid var(--line);
    margin-bottom: 22px; overflow-x: auto;
    background: #fff; position: sticky; top: 60px; z-index: 5;
}
.apt__tabs a {
    padding: 14px 18px; color: var(--ink-2); font-weight: 600; font-size: .95rem;
    border-bottom: 3px solid transparent; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.apt__tabs a:hover { color: var(--navy); text-decoration: none; }
.apt__tabs a.active { color: var(--navy); border-bottom-color: var(--yellow); }

.apt__layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 28px;
    align-items: start;
}
.section-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; margin-bottom: 18px;
}
.section-card h2 {
    margin: 0 0 12px; font-size: 1.15rem; color: var(--navy);
    display: inline-flex; align-items: center; gap: 8px;
}
.section-card h2 .icon { color: var(--yellow-h); }
.apt__short { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 18px; }

.apt__plans { display: flex; gap: 12px; flex-wrap: wrap; }
.apt__plans img { max-width: 200px; max-height: 200px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.apt__extras {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.apt__extras li {
    padding: 10px 14px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .92rem; color: var(--ink);
    display: flex; align-items: center; gap: 8px;
}
.apt__extras li:before {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    background: var(--yellow-soft); color: var(--green);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: center; background-repeat: no-repeat; background-size: 12px;
}

@media (max-width: 980px) {
    .apt__layout { grid-template-columns: 1fr; }
    .apt__gallery { grid-template-columns: 1fr; }
    .apt__gallery-main img { height: 280px; }
    .apt__gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
    .apt__gallery-grid img { height: 140px; }
    .apt__tabs { top: 0; }
    .bookcard { position: static; }
}

/* =========================================================
   Booking sidebar
   ========================================================= */
.bookcard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); position: sticky; top: 90px; overflow: hidden;
}
.bookcard__head {
    background: var(--navy); color: #fff; padding: 18px 22px;
}
.bookcard__head h2 { margin: 0; font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.bookcard__head h2 .icon { color: var(--yellow); }
.bookcard__head p { margin: 4px 0 0; font-size: .85rem; color: rgba(255,255,255,.85); }
.bookcard__body { padding: 20px 22px; }
.bookcard__deal {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--yellow); color: #422c00;
    padding: 5px 12px; border-radius: var(--radius-pill);
    font-size: .82rem; font-weight: 700; margin-bottom: 12px;
}

.bookform { display: flex; flex-direction: column; gap: 14px; }
.bookform label {
    display: flex; flex-direction: column; gap: 5px;
    font-size: .78rem; font-weight: 700; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: .5px;
}
.bookform label.inline {
    flex-direction: row; align-items: flex-start; gap: 8px;
    text-transform: none; letter-spacing: 0; font-weight: 500;
    font-size: .88rem; color: var(--ink);
}
.bookform label.inline input[type=checkbox] { margin-top: 3px; accent-color: var(--navy); }
.bookform input, .bookform select, .bookform textarea {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 11px 13px; font-size: .95rem; font-family: inherit;
    color: var(--ink); background: #fff; width: 100%;
}
.bookform input:focus, .bookform select:focus, .bookform textarea:focus {
    outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy);
}
.bookform fieldset {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-soft);
}
.bookform legend {
    font-weight: 700; font-size: .78rem; padding: 0 6px; color: var(--navy);
    text-transform: uppercase; letter-spacing: .5px;
}
.bookform__quote {
    background: var(--navy-soft); border: 1px solid var(--navy-line);
    border-radius: var(--radius-sm); padding: 14px;
    font-size: .92rem; display: flex; flex-direction: column; gap: 6px;
    color: var(--ink);
}
.bookform__quote-row { display: flex; justify-content: space-between; }
.bookform__quote-row.total {
    font-weight: 800; font-size: 1.15rem; color: var(--navy);
    border-top: 1px solid var(--navy-line); padding-top: 10px; margin-top: 6px;
}
.bookform__quote-row.muted { color: var(--muted); font-size: .82rem; }
.bookform__quote .includes { font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
.bookform__deposit-info { font-size: .85rem; color: var(--ink-2); margin: 4px 0; }
.bookform .error { color: var(--red); font-size: .85rem; margin: 4px 0 0; }

.privacy-notice {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 12px; margin: 6px 0; font-size: .8rem; color: var(--muted);
    white-space: pre-line;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2.gap { gap: 12px; }
.grid-7 { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff; color: var(--ink);
    font-size: .92rem; font-weight: 600; cursor: pointer; text-align: center;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
    line-height: 1.2; font-family: inherit; text-decoration: none;
}
.btn:hover {
    border-color: var(--navy); color: var(--navy);
    text-decoration: none; box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--navy); color: #fff; border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.btn-yellow {
    background: var(--yellow); color: #422c00; border-color: var(--yellow-h);
    font-weight: 700;
}
.btn-yellow:hover { background: var(--yellow-h); color: #2d1d00; border-color: var(--yellow-h); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b42318; color: #fff; border-color: #b42318; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-soft); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 5px 11px; font-size: .82rem; }

/* =========================================================
   Flash
   ========================================================= */
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0;
    font-size: .92rem; border: 1px solid; display: flex; align-items: center; gap: 10px;
}
.flash-success { background: #e8f6ee; color: #07592e; border-color: #b2dec1; }
.flash-error   { background: #fee4e2; color: #93180f; border-color: #fbb4ad; }
.flash-warning { background: var(--yellow-soft); color: #6a4400; border-color: #f3d97a; }
.flash-info    { background: var(--navy-soft); color: var(--navy); border-color: var(--navy-line); }

/* =========================================================
   Tables
   ========================================================= */
table.data {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
table.data th, table.data td {
    padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
}
table.data th {
    background: var(--bg-soft); color: var(--ink-2);
    font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px;
}
table.data tbody tr:hover { background: var(--bg-soft); }
table.data tbody tr:last-child td { border-bottom: none; }

/* =========================================================
   Admin layout (sidebar + content)
   ========================================================= */
.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px;
}
body > main > .admin-shell > .admin-side {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky; top: 90px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}
body > main > .admin-shell > .admin-side h2 {
    font-size: .72rem; text-transform: uppercase; color: var(--muted);
    margin: 0 0 12px; letter-spacing: .8px;
}
body > main > .admin-shell > .admin-side nav { display: flex; flex-direction: column; gap: 2px; }
body > main > .admin-shell > .admin-side nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    color: var(--ink-2); font-weight: 600; font-size: .92rem;
    border-left: 3px solid transparent;
}
body > main > .admin-shell > .admin-side nav a:hover {
    background: var(--navy-soft); color: var(--navy); text-decoration: none;
}
body > main > .admin-shell > .admin-side nav a.active {
    background: var(--navy-soft); color: var(--navy);
    border-left-color: var(--yellow);
}
body > main > .admin-shell > .admin-side nav a .icon { color: var(--navy); width: 18px; height: 18px; }

body > main > .admin-shell > .admin-content {
    display: block;
    min-width: 0;
    padding: 0 0 32px;
    min-height: calc(100vh - 240px);
}
body > main > .admin-shell > .admin-content h1 {
    color: var(--navy); margin: 0 0 18px; font-size: 1.8rem;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    body > main > .admin-shell > .admin-side {
        position: static;
        order: 2;
    }
    body > main > .admin-shell > .admin-content {
        order: 1;
        padding: 0 0 24px;
        min-height: 0;
    }
}

.admin-form {
    background: #fff; padding: 24px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 18px; max-width: 1100px;
}
.admin-form fieldset {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-soft);
}
.admin-form fieldset.nested { background: #fff; border-color: var(--navy-line); }
.admin-form legend {
    font-weight: 700; font-size: .85rem; padding: 0 8px; color: var(--navy);
    text-transform: uppercase; letter-spacing: .5px;
}
.admin-form label {
    display: flex; flex-direction: column; gap: 5px;
    font-weight: 600; font-size: .85rem; color: var(--ink-2);
}
.admin-form input, .admin-form select, .admin-form textarea {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: .95rem; font-family: inherit; color: var(--ink);
    background: #fff;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy);
}
.admin-form details {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 14px; background: #fff;
}
.admin-form summary { cursor: pointer; font-weight: 700; color: var(--navy); }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs figure { margin: 0; max-width: 130px; }
.thumbs img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.thumbs figcaption { font-size: .76rem; text-align: center; color: var(--muted); margin-top: 4px; }

.admin-room-rows {
    display: grid;
    gap: 12px;
}
.admin-room-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
.admin-room-row label.inline {
    align-self: end;
    justify-content: flex-start;
}

.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin: 0 0 28px;
}
.stat {
    background: #fff; padding: 22px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px;
}
.stat .stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--navy-soft); color: var(--navy);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat .stat-icon.yellow { background: var(--yellow-soft); color: #92590a; }
.stat .stat-icon.green  { background: #e8f6ee; color: var(--green); }
.stat .stat-body { display: flex; flex-direction: column; }
.stat .stat-body span {
    font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1;
}
.stat .stat-body small { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }

.inline-form {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding: 18px; background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin-top: 14px;
}
.inline-form input, .inline-form select {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 8px 12px; font-size: .9rem;
}
.inline-form h3 { width: 100%; margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.inline-form label.inline {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 500; font-size: .88rem;
}
.inline-form label.inline input[type=checkbox] { accent-color: var(--navy); }

.filter { margin-bottom: 18px; }
.filter select {
    padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: #fff; font-size: .92rem; min-width: 240px;
}

/* Empty-state row */
.empty-state {
    text-align: center; padding: 40px 20px; color: var(--muted);
    background: var(--bg-soft); border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state .icon { width: 32px; height: 32px; color: var(--navy); margin-bottom: 8px; }

/* =========================================================
   Login
   ========================================================= */
.login-card {
    background: #fff; max-width: 420px; margin: 60px auto; padding: 36px 32px;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--yellow);
}
.login-card h1 { margin: 0 0 22px; color: var(--navy); font-size: 1.6rem; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card input {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 1rem; width: 100%;
}
.login-card input:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.login-card label { font-weight: 700; font-size: .82rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* =========================================================
   Forms — refined inputs (v3.1)
   ========================================================= */
.field { display: flex; flex-direction: column; gap: 6px; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.field__label {
    font-size: .78rem; font-weight: 700; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: .5px;
}
.field__hint { font-size: .8rem; color: var(--muted); }
.field__error { font-size: .82rem; color: var(--red); display: inline-flex; align-items: center; gap: 4px; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=search], input[type=url], input[type=date],
input[type=datetime-local], input[type=time], input[type=month], input[type=week],
select, textarea {
    appearance: none; -webkit-appearance: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: .95rem; font-family: inherit; color: var(--ink);
    line-height: 1.3;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%; max-width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #c7cfdb; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(10, 61, 98, .12);
    background: #fff;
}
input::placeholder, textarea::placeholder { color: #9aa4b2; }
input:disabled, select:disabled, textarea:disabled {
    background: var(--bg-soft); color: var(--muted); cursor: not-allowed;
    border-color: var(--line-2);
}
input:invalid:not(:placeholder-shown), select:invalid:not(:placeholder-shown) {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .1);
}
input[type=checkbox], input[type=radio] {
    width: 18px; height: 18px;
    accent-color: var(--navy);
    cursor: pointer;
    margin: 0;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3d62' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}
input[type=file] {
    padding: 8px; background: var(--bg-soft);
    border: 1px dashed var(--line); cursor: pointer;
}
input[type=file]::file-selector-button {
    border: none; background: var(--navy); color: #fff;
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .85rem; margin-right: 12px;
    cursor: pointer; font-family: inherit;
    transition: background .15s;
}
input[type=file]::file-selector-button:hover { background: var(--navy-2); }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; transition: opacity .15s; }
input[type=date]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* form layout helpers */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.form-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .form-grid--2 { grid-template-columns: 1fr; } }
.form-actions {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    padding-top: 8px; border-top: 1px solid var(--line-2); margin-top: 4px;
}
.form-actions--right { justify-content: flex-end; }

/* =========================================================
   Booking calendar
   ========================================================= */
.cal-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.cal-section__head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; margin-bottom: 18px;
}
.cal-section__head h2 {
    margin: 0; color: var(--navy); font-size: 1.15rem;
    display: inline-flex; align-items: center; gap: 8px;
}
.cal-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.cal-controls__window {
    min-width: 180px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-2);
}
.cal-legend {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    font-size: .8rem; color: var(--ink-2);
}
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .swatch {
    width: 22px; height: 22px; border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .7rem;
}

.cal-apt + .cal-apt { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.cal-apt__title {
    font-size: 1rem; color: var(--navy); margin: 0 0 12px;
    display: inline-flex; align-items: center; gap: 8px;
}
.apt-bookings + .apt-bookings { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.apt-bookings .cal-apt__title { margin-bottom: 10px; }
.apt-bookings .muted { color: var(--ink-muted); font-weight: 500; font-size: .85rem; }
.cal-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.cal-month {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.cal-month__title {
    font-weight: 700; color: var(--navy); margin-bottom: 10px;
    text-align: center; font-size: .95rem;
    text-transform: capitalize;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cal-dow {
    text-align: center; font-size: .7rem; font-weight: 700;
    color: var(--muted); padding: 4px 0;
    text-transform: uppercase; letter-spacing: .5px;
}
.cal-day {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
    font-size: .82rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: transform .1s, box-shadow .15s, z-index 0s;
}
.cal-day--blank { background: transparent; border-color: transparent; }
.cal-day--free { color: var(--ink-2); }
.cal-day--free:hover { border-color: var(--navy); color: var(--navy); }
.cal-day--booked {
    background: var(--cell-bg, var(--navy-soft));
    color: var(--cell-fg, var(--navy));
    border-color: transparent;
    cursor: pointer;
}
.cal-day--booked:hover { transform: translateY(-1px); box-shadow: var(--shadow); z-index: 4; text-decoration: none; }
.cal-day--in  { border-radius: 50% 6px 6px 50%; }
.cal-day--out { border-radius: 6px 50% 50% 6px; }
.cal-day--single { border-radius: 50%; }
.cal-day--mid { border-radius: 0; margin-left: -3px; margin-right: -3px; }
.cal-day--today { outline: 2px solid var(--yellow); outline-offset: 1px; z-index: 2; }
.cal-day__num { line-height: 1; }
.cal-day__count {
    position: absolute;
    right: 5px;
    bottom: 4px;
    font-size: .63rem;
    font-weight: 800;
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    border-radius: 999px;
    padding: 2px 5px;
    line-height: 1;
}

.cal-tooltip {
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--navy-2); color: #fff;
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: .78rem; font-weight: 500; line-height: 1.45;
    min-width: 200px; max-width: 240px;
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transition: opacity .15s, transform .15s;
    z-index: 50;
}
.cal-tooltip:before {
    content: ""; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--navy-2);
}
.cal-tooltip strong { color: #fff; font-size: .85rem; font-weight: 700; }
.cal-tooltip .icon { color: var(--yellow); width: .9em; height: .9em; }
.cal-tooltip span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.92); }
.cal-tooltip .badge-status {
    align-self: flex-start; padding: 3px 9px; border-radius: var(--radius-pill);
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
}
.cal-day:hover .cal-tooltip {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* status pill in tables */
.status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3px;
}
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-weight: 700; }

/* Force pure white page */
body, html { background: #ffffff; }
