/* =============================================================================
   Divine Homes Apartments - public site styles (mobile-first)
   ============================================================================= */

:root {
    --navy: #12263a;
    --navy-light: #1d3a56;
    --navy-soft: #2b4a6e;
    --gold: #c8a24b;
    --gold-dark: #a9853a;
    --gold-soft: #f3e5c8;
    --ink: #22303c;
    --muted: #68767f;
    --bg: #f6f4ef;
    --card: #ffffff;
    --line: #e7e2d8;
    --ok: #1e7d46;
    --err: #c0392b;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(18, 38, 58, .06);
    --shadow: 0 6px 24px rgba(18, 38, 58, .08);
    --shadow-lg: 0 18px 40px rgba(18, 38, 58, .16);
    --grad-gold: linear-gradient(135deg, #d9b45e 0%, var(--gold) 45%, var(--gold-dark) 100%);
    --grad-navy: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: #1d5aa8; text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
code { background: #eef1f4; padding: 1px 6px; border-radius: 6px; font-size: .9em; }

::selection { background: rgba(200, 162, 75, .35); color: var(--navy); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #cdd4d8; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #aab6bd; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease, background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-gold {
    background: var(--grad-gold);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(169, 133, 58, .32);
}
.btn-gold:hover { background: var(--grad-gold); box-shadow: 0 12px 24px rgba(169, 133, 58, .4); filter: brightness(1.03); }
.btn-navy {
    background: var(--grad-navy);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(18, 38, 58, .28);
}
.btn-navy:hover { background: var(--grad-navy); box-shadow: 0 12px 24px rgba(18, 38, 58, .34); filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); box-shadow: none; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.hero .btn-outline { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .9); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }
.btn-block { display: flex; width: 100%; }

/* --- Top bar ---------------------------------------------------------------- */
.topbar { background: linear-gradient(180deg, var(--navy) 0%, #0e1d2c 100%); color: #b8c6d3; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #b8c6d3; transition: color .15s; }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact svg { vertical-align: -2px; }
.topbar-login { font-weight: 600; }

/* --- Header / nav ------------------------------------------------------------ */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 12px rgba(18, 38, 58, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--grad-gold);
    color: #fff; font-weight: 800; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(169, 133, 58, .35);
}
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: .2px; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-list a {
    color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 0;
    border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.nav-list a:hover { color: var(--navy); text-decoration: none; border-bottom-color: rgba(200, 162, 75, .45); }
.nav-list a.active { color: var(--navy); border-bottom-color: var(--gold); }
.nav-cta { padding: 9px 20px; }

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

/* --- Alerts ------------------------------------------------------------------- */
.alert { padding: 13px 16px; border-radius: 10px; margin: 16px 20px 0; font-size: 14px; border-left: 4px solid transparent; }
.alert-error { background: #fdecea; border-color: #f5c6c0; color: #a51d2d; border-left-color: var(--err); }
.alert-success { background: #e7f7ef; border-color: #bfe8d2; color: #147d3c; border-left-color: var(--ok); }
.alert-info { background: #e8f0fe; border-color: #bcd2f7; color: #1d5aa8; border-left-color: #2255cc; }

/* --- Hero ---------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(1200px 480px at 50% -10%, rgba(200, 162, 75, .28), transparent 60%),
        linear-gradient(rgba(13, 28, 44, .72), rgba(13, 28, 44, .82)),
        url("../images/hero.svg") center/cover no-repeat, var(--navy);
    padding: 110px 0 120px;
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.hero h1 {
    color: #fff; font-size: clamp(32px, 5.2vw, 54px); font-weight: 800;
    margin-bottom: 14px; letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.hero .hero-tagline { font-size: clamp(16px, 2vw, 20px); color: #e9e4d8; max-width: 660px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

.page-hero {
    background:
        radial-gradient(900px 300px at 50% -30%, rgba(200, 162, 75, .22), transparent 60%),
        linear-gradient(rgba(13, 28, 44, .84), rgba(13, 28, 44, .88)),
        url("../images/hero.svg") center/cover no-repeat, var(--navy);
    color: #fff;
    padding: 58px 0;
    position: relative;
    overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 6px; }
.page-hero p { color: #e9e4d8; margin: 0; max-width: 640px; }

/* --- Sections ------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-alt-alt { background: #f1eee7; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--gold-dark); font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
.section-head .kicker::before, .section-head .kicker::after {
    content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold);
}
.section-head h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* --- Feature tiles / value props --------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcd3bf; }
.feature .feature-icon {
    width: 50px; height: 50px; border-radius: 13px;
    background: var(--grad-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px; color: #fff;
    box-shadow: 0 6px 14px rgba(169, 133, 58, .3);
}
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* --- Apartment cards ---------------------------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #eef1f4; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--grad-gold); color: #fff;
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 18px; margin-bottom: 4px; }
.card-body h3 a { color: var(--navy); transition: color .15s; }
.card-body h3 a:hover { text-decoration: none; color: var(--gold-dark); }
.card-loc { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card-desc { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.card-price { font-weight: 800; color: var(--navy); font-size: 17px; }
.card-price small { color: var(--muted); font-weight: 400; font-size: 13px; }

/* --- Filter bar ------------------------------------------------------------------------ */
.filter-bar {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.filter-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.filter-form label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.filter-form select, .filter-form input {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.filter-form select:focus, .filter-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 75, .15); }
.results-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* --- Pagination --------------------------------------------------------------------------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a {
    min-width: 40px; padding: 8px 12px; text-align: center;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px;
    box-shadow: var(--shadow-sm); transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.pagination a:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-1px); }
.pagination a.active { background: var(--grad-navy); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(18, 38, 58, .22); }
.pagination .page-arrow { min-width: 44px; }
.pagination .page-arrow.disabled { color: var(--line); border-color: var(--line); background: transparent; box-shadow: none; transform: none; }
.pagination .pagination-gap { padding: 8px 4px; color: var(--muted); user-select: none; }

/* --- Detail page ----------------------------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #eef1f4; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .7; border: 2px solid transparent; transition: opacity .15s, border-color .15s; }
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--gold); }

.amenities-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.amenities-list li { background: #f4f2ec; border-radius: 10px; padding: 9px 13px; font-size: 14px; border: 1px solid var(--line); }
.amenities-list li::before { content: "✓ "; color: var(--gold-dark); font-weight: 800; }

.book-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); position: sticky; top: 96px;
}
.book-panel .price { font-size: 30px; font-weight: 800; color: var(--navy); }
.book-panel .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.book-summary { font-size: 14px; color: var(--muted); margin: 10px 0 0; min-height: 22px; }
.book-cta { margin-top: 16px; }

/* --- Calendar --------------------------------------------------------------------------------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav a { color: var(--navy); font-weight: 700; font-size: 14px; }
.cal-nav a:hover { color: var(--gold-dark); text-decoration: none; }
.cal-title { font-weight: 800; color: var(--navy); }
.cal { width: 100%; border-collapse: collapse; font-size: 13px; }
.cal th { color: var(--muted); font-size: 11px; text-transform: uppercase; padding: 6px 0; }
.cal td { text-align: center; padding: 7px 0; border-radius: 8px; cursor: pointer; transition: background .12s, color .12s; }
.cal-empty { cursor: default !important; }
.cal-past { color: #c4cbd2; cursor: not-allowed !important; }
.cal-booked { background: #f6e9e7; color: #b05a4d; text-decoration: line-through; cursor: not-allowed !important; }
.cal-free:hover { background: var(--gold-soft); }
.cal-free.selected { background: var(--grad-navy); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(18, 38, 58, .25); }
.cal-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }

/* --- Testimonials -------------------------------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); position: relative;
    transition: transform .18s ease, box-shadow .2s ease;
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.testi blockquote { margin: 0 0 12px; font-size: 15px; color: var(--ink); position: relative; padding-left: 18px; }
.testi blockquote::before { content: "“"; position: absolute; left: 0; top: -6px; font-size: 30px; color: var(--gold); font-family: Georgia, serif; }
.testi figcaption { font-size: 14px; color: var(--muted); }
.testi figcaption strong { color: var(--navy); }

/* --- Forms / contact -------------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #3e4c59; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 15px; background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 75, .18); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 15px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 40px; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* --- Policy / static pages ---------------------------------------------------------------------------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.prose h2 { font-size: 21px; margin-top: 28px; }
.prose h3 { font-size: 17px; }
.prose p, .prose li { font-size: 15px; }
.prose ul { padding-left: 20px; }
.updated { color: var(--muted); font-size: 13px; }

.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .2s;
}
.faq-item:hover { border-color: #dcd3bf; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.faq-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.faq-category { margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); font-size: 19px; }
.faq-answer { margin-top: 8px; }
.faq-answer p { color: var(--ink); font-size: 14px; line-height: 1.6; }
.faq-answer ul { padding-left: 20px; }
.faq-answer li { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.faq-home-teaser .faq-item { box-shadow: none; }

/* --- Footer --------------------------------------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, #0e1d2c 0%, var(--navy) 60%, #101f31 100%); color: #b8c6d3; margin-top: 0; position: relative; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--grad-gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; padding: 58px 20px 36px; }
.footer-brand { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: .2px; }
.footer-col h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 9px; font-size: 14px; }
.footer-links a { color: #b8c6d3; transition: color .15s, padding-left .15s; }
.footer-links a:hover { color: var(--gold); text-decoration: none; padding-left: 4px; }
.fc-label { color: #93a7b8; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
    background: rgba(255, 255, 255, .09); color: #fff; padding: 7px 14px; border-radius: 20px; font-size: 13px;
    transition: background .15s, transform .15s;
}
.social-links a:hover { background: var(--gold); text-decoration: none; transform: translateY(-1px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #93a7b8; }

/* --- Empty states ----------------------------------------------------------------------------------------- */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }

/* --- Payment review (Phase 4) ------------------------------------------------------------------------------------- */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.review-card h2 { font-size: 21px; margin-bottom: 4px; }
.review-card h3 { font-size: 16px; margin-top: 24px; }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.review-table th, .review-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table th { width: 38%; color: var(--muted); font-weight: 600; }
.ta-r { text-align: right !important; }
.review-total td { border-top: 2px solid var(--navy); border-bottom: none; font-size: 16px; color: var(--navy); }
.trust-band { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 13px 15px; background: #f4f2ec; border-radius: 10px; font-size: 12px; color: var(--muted); }
.support-block { margin-top: 22px; padding: 16px; background: #f7f5f1; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.support-block h3 { font-size: 14px; margin: 0 0 6px; }
.support-block p { margin: 0; }

/* --- Agent booking (Phase 6) ------------------------------------------------------------------------------------- */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.secret-box { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.secret-box code { font-size: 13px; background: #f0f3f6; padding: 6px 10px; border-radius: 8px; flex: 1; }
.client-results { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.client-result { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.client-result:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); text-decoration: none; }
.client-result span { color: var(--muted); font-size: 13px; }
.book-status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.book-status.paid, .book-status.confirmed, .book-status.completed { background: #e7f7ef; color: #147d3c; }
.book-status.pending_payment, .book-status.pending, .book-status.unpaid { background: #fdf3e3; color: #b26b00; }
.book-status.cancelled, .book-status.failed, .book-status.refunded { background: #fdecea; color: #a51d2d; }
.book-status.default { background: #eef1f4; color: #616e7c; }

/* --- Booking (Phase 3) ---------------------------------------------------------------------------------------- */
.booking-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.booking-rooms h2, .booking-form-wrap h2 { font-size: 20px; margin-bottom: 16px; }
.booking-rooms-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.booking-room-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; gap: 14px; padding: 12px; transition: border-color .15s, box-shadow .2s, background .15s; }
.booking-room-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.booking-room-card.selected { border-color: var(--gold); background: #fdf8ec; box-shadow: 0 6px 18px rgba(200, 162, 75, .22); }
.booking-room-image { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #eef1f4; }
.booking-room-placeholder { width: 140px; height: 100px; border-radius: 10px; background: #eef1f4; flex-shrink: 0; }
.booking-room-body { flex: 1; min-width: 0; }
.booking-room-body h3 { font-size: 16px; margin: 0 0 4px; }
.booking-room-type { display: inline-block; background: #eef1f4; color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 20px; margin-bottom: 6px; }
.booking-room-desc { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.booking-room-footer { display: flex; justify-content: space-between; align-items: center; }
.booking-room-price { font-weight: 800; color: var(--navy); font-size: 15px; }
.booking-room-price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.booking-room-check { font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.booking-room-card.selected .booking-room-check { color: var(--ok); }
.booking-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.booking-summary { background: #f7f5f1; border: 1px solid var(--line); border-radius: 10px; padding: 15px; margin: 12px 0; font-size: 14px; }
.booking-summary h4 { font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

/* --- Responsive -------------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
    .book-panel { position: static; }
    .booking-layout { grid-template-columns: 1fr; }
    .booking-form-wrap { position: static; }
}
@media (max-width: 720px) {
    .topbar { display: none; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 74px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 20px 18px; display: none;
        box-shadow: 0 18px 30px rgba(18, 38, 58, .12);
    }
    .site-nav.open { display: flex; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .nav-list a.active { border-bottom-color: var(--gold); }
    .nav-cta { margin-top: 14px; text-align: center; }
    .hero { padding: 72px 0 84px; }
    .section { padding: 50px 0; }
    .prose { padding: 24px; }
    .cal td { min-width: 40px; min-height: 40px; padding: 11px 2px; font-size: 14px; }
    .btn { padding: 12px 20px; }
}

/* --- UI/UX standards (Phase 9) ---------------------------------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(200, 162, 75, .65); outline-offset: 2px; border-radius: 4px; }

.breadcrumbs { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); padding: 10px 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); text-decoration: none; }
.breadcrumbs .sep { margin: 0 7px; color: #c4cbd2; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Inline form validation (Phase 9) */
.field-error { display: block; color: var(--err); font-size: 12px; margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.field.has-error .field-error { display: block; }

/* Confirmation-friendly destructive buttons */
.btn-danger { background: linear-gradient(135deg, #d14a38, var(--err)); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(192, 57, 43, .28); }
.btn-danger:hover { filter: brightness(1.06); box-shadow: 0 9px 18px rgba(192, 57, 43, .34); }