:root {
    --ink: #1f2933;
    --muted: #607083;
    --line: #d8e1ea;
    --soft: #f5f8fb;
    --accent: #1f7a8c;
    --warm: #ba6b24;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(31, 122, 140, .12), transparent 32rem),
        linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
    outline: 3px solid rgba(31, 122, 140, .38);
    outline-offset: 3px;
    box-shadow: none;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: .75rem;
    z-index: 2000;
    transform: translateY(-150%);
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    padding: .6rem .85rem;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    max-width: 1180px;
}

.hero-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .9);
    border-radius: 8px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 20px 70px rgba(35, 53, 73, .08);
}

.eyebrow,
.small-label {
    color: var(--warm);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.route-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
}

.listing-card {
    border-color: var(--line);
    border-radius: 8px;
    scroll-margin-top: 5.5rem;
    box-shadow: 0 16px 48px rgba(35, 53, 73, .07);
}

.listing-header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f6f8 100%);
}

.address-link {
    color: var(--ink);
    text-decoration-thickness: 2px;
    text-underline-offset: .22rem;
}

.address-link:hover {
    color: var(--accent);
}

.rating {
    color: #c77716;
    letter-spacing: .08em;
}

.listing-actions {
    justify-content: flex-end;
}

.listing-description {
    color: #344253;
    line-height: 1.68;
}

.notes-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    padding: 1rem;
}

.listing-content-accordion .notes-box {
    border: 0;
    border-radius: 0;
}

.back-to-route {
    display: inline-block;
    margin-top: 1rem;
}

.fha-calculator {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 1rem;
}

.fha-calculator .form-label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.fha-results {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.fha-calculator .alert ul {
    padding-left: 1.2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem .9rem;
    border-bottom: 1px solid var(--line);
}

.result-row:last-child {
    border-bottom: 0;
}

.result-row span {
    color: var(--muted);
}

.result-row.total {
    background: #eef8fa;
    font-size: 1.03rem;
}

.result-row.rent-credit {
    background: #f7fbf4;
}

.result-row.net-total {
    background: #ecf6ef;
    font-size: 1.08rem;
}

@media (max-width: 767.98px) {
    .route-link {
        grid-template-columns: 1fr;
    }

    .btn-toolbar {
        width: 100%;
    }

    .listing-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .listing-actions .btn {
        min-height: 44px;
        width: 100%;
    }

    .result-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }
}
