:root {
    --ink: #172033;
    --muted: #667085;
    --line: #d9e2f2;
    --surface: #ffffff;
    --soft: #f4f7fb;
    --navy: #163b73;
    --blue: #2e6eea;
    --cyan: #27c5d8;
    --gold: #c89f35;
    --green: #20a66a;
    --red: #d14545;
    --shadow: 0 18px 45px rgba(24, 42, 78, .12);
}

* {
    letter-spacing: 0;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-nav {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(217, 226, 242, .9);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    color: var(--navy);
    font-weight: 800;
}

.brand-mark {
    align-items: center;
    background: var(--navy);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.nav-link {
    border-radius: 8px;
    color: #41506a;
    font-weight: 700;
    margin: 0 2px;
    padding: .55rem .75rem !important;
}

.nav-link.active,
.nav-link:hover {
    background: #edf4ff;
    color: var(--blue);
}

.hero-band {
    background:
        linear-gradient(90deg, rgba(15, 35, 69, .92), rgba(17, 72, 105, .74)),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
    min-height: 620px;
    overflow: hidden;
    padding: 72px 0 42px;
    position: relative;
}

.hero-band h1 {
    font-size: clamp(3.25rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: .92;
    margin-bottom: 1.25rem;
}

.hero-copy {
    color: rgba(255, 255, 255, .84);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 820px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2rem;
}

.status-chip,
.mini-badge {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    gap: .45rem;
    padding: .45rem .75rem;
}

.quick-search,
.tool-panel,
.data-panel,
.module-card,
.kpi-card,
.stay-card,
.result-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.quick-search {
    color: var(--ink);
    padding: 1.25rem;
}

.quick-search h2 {
    font-size: 1.1rem;
    font-weight: 850;
    margin: 0;
}

.quick-search .mini-badge {
    background: #e9f8fb;
    border-color: #bdebf1;
    color: #106070;
}

.btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    gap: .45rem;
    justify-content: center;
}

.btn-accent {
    background: var(--gold);
    border-color: var(--gold);
    color: #1b2234;
}

.btn-accent:hover {
    background: #d9b656;
    border-color: #d9b656;
    color: #111827;
}

.btn-glass {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
}

.content-band,
.page-shell {
    padding: 38px 1rem;
}

.page-shell {
    margin: 0 auto;
    max-width: 1500px;
}

.page-shell.narrow {
    max-width: 720px;
}

.section-head {
    margin-bottom: 1.25rem;
}

.section-head span {
    color: var(--blue);
    display: block;
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: .3rem;
    text-transform: uppercase;
}

.section-head h1,
.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin: 0;
}

.module-grid,
.kpi-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-card,
.kpi-card,
.data-panel,
.tool-panel {
    padding: 1.15rem;
}

.module-card i {
    color: var(--blue);
    font-size: 1.8rem;
}

.module-card h3 {
    font-size: 1rem;
    font-weight: 900;
    margin: .8rem 0 .35rem;
}

.module-card p,
.stay-body p,
.data-panel p {
    color: var(--muted);
    margin-bottom: 0;
}

.stay-card {
    overflow: hidden;
}

.stay-card img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.stay-body {
    padding: 1rem;
}

.stay-body h2 {
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0 0 .2rem;
}

.specs,
.price-row,
.quote-line,
.residence-score,
.payment-strip {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.specs {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    color: #40516f;
    gap: .75rem;
    margin: .9rem 0;
    padding: .65rem 0;
}

.amenities {
    min-height: 48px;
}

.price-row {
    margin: 1rem 0;
}

.price-row strong {
    color: var(--navy);
    font-size: 1.12rem;
}

.price-row small {
    color: var(--muted);
}

.status-pill,
.loyalty {
    background: #edf2fb;
    border-radius: 999px;
    color: #31415f;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 850;
    padding: .35rem .6rem;
    white-space: nowrap;
}

.status-pill.available {
    background: #e8f8ef;
    color: #11734c;
}

.status-pill.maintenance {
    background: #eef0f4;
    color: #667085;
}

.kpi-card span,
.panel-title span {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.kpi-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 950;
    margin: .25rem 0;
}

.kpi-card.danger strong {
    color: var(--red);
}

.progress {
    background: #e8edf6;
    height: 9px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.panel-title {
    align-items: start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-title h2 {
    font-size: 1.08rem;
    font-weight: 900;
    margin: 0;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: #52627d;
    font-size: .78rem;
    text-transform: uppercase;
}

.residence-score {
    gap: 1rem;
}

.residence-score strong,
.residence-score small {
    display: block;
}

.residence-score span {
    color: var(--blue);
    font-weight: 900;
}

.info-list {
    display: grid;
    gap: .55rem;
    margin: 1rem 0;
}

.info-list span {
    color: #40516f;
}

.tag-row,
.payment-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.tag-row span,
.payment-strip span {
    background: #edf4ff;
    border-radius: 999px;
    color: #244979;
    font-weight: 800;
    padding: .45rem .7rem;
}

.payment-strip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

.empty-state,
.result-panel {
    color: var(--muted);
    padding: 2rem;
    text-align: center;
}

.result-panel i {
    color: var(--green);
    font-size: 3.5rem;
}

.result-panel.error i {
    color: var(--red);
}

.result-panel h1 {
    color: var(--ink);
    font-weight: 900;
}

.reference {
    background: #edf4ff;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 900;
    margin: 1rem auto;
    max-width: 360px;
    padding: .8rem;
}

.quote-line {
    background: #f4f7fb;
    border-radius: 8px;
    margin-bottom: .5rem;
    padding: .8rem;
}

@media (max-width: 767px) {
    .hero-band {
        min-height: auto;
        padding-top: 44px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .panel-title,
    .payment-strip {
        display: block;
    }

    .payment-strip span {
        display: inline-flex;
        margin-bottom: .4rem;
    }
}
