@font-face {
    font-family: "Inter";
    src: url("/static/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-orange: #fa6915;
    --brand-orange-hover: #e55a00;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container-narrow {
    max-width: 1040px;
}

.main-content {
    padding-top: 2rem;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar a {
    color: #000 !important;
    text-decoration: none !important;
}

.navbar a.nav-link {
    font-size: 1.05rem;
    font-weight: 400;
}

.navbar a.nav-link:hover,
.navbar a.nav-link.active {
    color: var(--brand-orange) !important;
    text-decoration: underline !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: var(--brand-orange);
    font-size: 1.75rem;
}

.media-tabs .nav-link {
    color: #212529;
}

.media-tabs .nav-link.active {
    background-color: var(--brand-orange);
    color: #fff;
}

.listing-card {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.listing-card:hover {
    transform: scale(1.007);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.listing-card-media {
    position: relative;
    display: block;
    flex: 0 0 260px;
    min-height: 140px;
    background-color: #f1f3f5;
}

.listing-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pager .page-link {
    color: var(--brand-orange);
}

.pager .page-link:hover {
    color: var(--brand-orange-hover);
    text-decoration: underline;
}

.pager .pager-nav .page-link {
    color: #212529;
}

.pager .pager-nav .page-link:hover {
    color: #212529;
}

.pager .pager-nav .page-link:hover .bi {
    border-bottom: 1px solid currentColor;
}

.pager .page-item.active .page-link {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.pager .page-item.disabled .page-link {
    color: #adb5bd;
}

.system-progress {
    width: 120px;
    height: 8px;
    flex-shrink: 0;
}

.system-progress .progress-bar {
    background-color: var(--brand-orange);
}

.house-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.house-gallery-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.house-description {
    white-space: pre-line;
    line-height: 1.65;
    color: #495057;
}

.text-pre-line {
    white-space: pre-line;
}

@media (max-width: 991.98px) {
    .house-hero-img {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .listing-card-media {
        flex-basis: 40%;
    }
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.88);
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    margin: 0;
}

.photo-lightbox-figure img {
    max-width: 100%;
    max-height: calc(90vh - 2rem);
    border-radius: 0.5rem;
    object-fit: contain;
}

.photo-lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.photo-lightbox-nav,
.photo-lightbox-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.photo-lightbox-nav:hover,
.photo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-lightbox-prev {
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

.photo-lightbox-next {
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.photo-lightbox-close {
    top: 1rem;
    right: 1rem;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .photo-lightbox {
        padding: 0.75rem;
    }

    .photo-lightbox-nav,
    .photo-lightbox-close {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }

    .photo-lightbox-prev {
        left: 0.5rem;
    }

    .photo-lightbox-next {
        right: 0.5rem;
    }

    .photo-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}


