/*
 * Listing page styles, moved out of properties/detail.blade.php (SEO audit Task 13).
 *
 * They were inlined into the <head> of every /property/ page - 72 KB of identical
 * CSS on each of the 85 listings in the sitemap, re-downloaded with every page.
 * As a file the browser fetches it once and caches it. Order is unchanged: the
 * <link> sits exactly where the <style> block was.
 */
/* v2.1.936 (card #403): the two icon-font @imports moved to <link>s in properties/detail.blade.php
   (parallel fetch + preconnect + display=block) — as @imports here they were a serial render-blocking
   chain. The glyph boxes below are fixed at 1em so the font arriving cannot change their width: the
   ligature text ("photo_library") is wider than the icon, and that reflow was CLS 0.13 on every listing. */
/* Material Icons helper classes */
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    overflow: hidden;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    overflow: hidden;
}

:root {
    --primary: #155E97;
    --primary-dark: #0d4a7a;
    --success: #28a745;
    --light-bg: #f6f8fc;
    --border-color: #d4d5d6;
}

/* Essentials from app.min.css/style.css/my.css/owl.theme - inlined so no link CSS needed */
.cms-content-area .container,
.cms-content-area .container-fluid,
.cms-content-area .row,
.cms-content-area .row * { box-sizing: border-box; }
.container { width: 100%; padding-right: 12px; padding-left: 12px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
.container-fluid { width: 100%; padding-right: 12px; padding-left: 12px; margin-right: auto; margin-left: auto; }
.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.row > div:not([class*="col-"]) { flex: 0 0 100%; max-width: 100%; }
.row.g-3 { margin-right: -8px; margin-left: -8px; }
.row.g-3 > * { padding-right: 8px; padding-left: 8px; margin-bottom: 16px; box-sizing: border-box; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding-right: 12px; padding-left: 12px; box-sizing: border-box; }
.col-md-4 { flex: 0 0 100%; max-width: 100%; padding-right: 12px; padding-left: 12px; box-sizing: border-box; }
@media (min-width: 768px) { .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; } }
.col-lg-4 { flex: 0 0 100%; max-width: 100%; padding-right: 12px; padding-left: 12px; box-sizing: border-box; }
@media (min-width: 992px) { .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; } }
.col-lg-8 { flex: 0 0 100%; max-width: 100%; padding-right: 12px; padding-left: 12px; box-sizing: border-box; }
@media (min-width: 992px) { .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; } }
/* Scoped to .cms-content-area so CMS header (.header, .nav, .nav-link, .btn, etc.) is not overridden */
.cms-content-area .nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.cms-content-area .nav-tabs { border-bottom: 1px solid #dee2e6; }
.cms-content-area .nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-bottom: -1px; padding: 0.5rem 1rem; display: block; text-decoration: none; color: #0d6efd; background: 0 0; cursor: pointer; font: inherit; -webkit-appearance: none; appearance: none; }
.cms-content-area .nav-tabs button.nav-link { width: 100%; text-align: left; }
.cms-content-area .nav-tabs .nav-link:hover { border-color: #e9ecef #e9ecef #dee2e6; }
.cms-content-area .nav-tabs .nav-link.active { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff; }
.cms-content-area .alert { padding: 0.75rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; }
.cms-content-area .alert-primary { color: #084298; background-color: #cfe2ff; border-color: #b6d4fe; }
.cms-content-area .tab-content > .tab-pane { display: none; }
.cms-content-area .tab-content > .tab-pane.active { display: block; }
.cms-content-area .tab-pane.fade { transition: opacity 0.15s linear; }
.cms-content-area .tab-pane.fade:not(.show) { opacity: 0; }
.cms-content-area .tab-pane.fade.show { opacity: 1; }
.modal { display: none; position: fixed; top: 0; left: 0; z-index: 1050; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal.show { display: block !important; }
.modal-dialog { position: relative; width: auto; margin: 1.75rem auto; max-width: 500px; pointer-events: none; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: 0.3rem; }
.modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #dee2e6; border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; flex-wrap: wrap; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-backdrop { display: none; position: fixed; top: 0; left: 0; z-index: 1040; width: 100%; height: 100%; background-color: #000; pointer-events: auto; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { display: block !important; opacity: 0.5; }
.modal-fullscreen .modal-dialog { max-width: 100%; width: 100%; margin: 0; height: 100vh; }
.modal-fullscreen .modal-content { height: 100%; border-radius: 0; border: none; }
.modal-fullscreen .modal-body { overflow-y: auto; flex: 1; display: flex; align-items: center; justify-content: center; }
.modal-fullscreen .modal-body img { max-width: 100%; height: auto; }
/* Lightbox main image container - prevent collapse and show image when src is set */
#fslightboxModal .modal-body .position-relative.h-100 { min-height: 50vh; }
#fslightboxImage { display: block; max-height: 85vh; width: auto; object-fit: contain; }
#fslightboxImage:not([src]), #fslightboxImage[src=""] { opacity: 0; min-height: 200px; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
@media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-inline { display: inline !important; } .d-md-flex { display: flex !important; } .d-md-block { display: block !important; } }
@media (max-width: 767px) { .d-md-none { display: none !important; } }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-auto { margin-left: auto !important; }
.p-0 { padding: 0 !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.rounded { border-radius: 0.25rem !important; }
.rounded-3 { border-radius: 0.3rem !important; }
.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }
.w-100 { width: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-50 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.h-100 { height: 100% !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.text-light { color: #f8f9fa !important; }
.opacity-75 { opacity: 0.75 !important; }
.fs-6 { font-size: 1rem !important; }
.justify-content-center { justify-content: center !important; }
.img-fluid { max-width: 100%; height: auto; }
.owl-carousel { display: none; position: relative; width: 100%; }
.owl-carousel.owl-loaded { display: block; }
.owl-carousel .owl-stage-outer { position: relative; overflow: hidden; }
.owl-carousel .owl-stage { position: relative; }
.owl-carousel .owl-item { position: relative; min-height: 1px; float: left; backface-visibility: hidden; }
.owl-carousel .owl-nav .owl-prev, .owl-carousel .owl-nav .owl-next { cursor: pointer; user-select: none; position: absolute; top: 50%; transform: translateY(-50%); }
.owl-carousel .owl-nav .owl-prev { left: 0; }
.owl-carousel .owl-nav .owl-next { right: 0; }
.owl-carousel .owl-dots { text-align: center; margin-top: 1rem; }
.owl-carousel .owl-dots .owl-dot { display: inline-block; zoom: 1; }
.owl-carousel .owl-dots .owl-dot span { width: 10px; height: 10px; margin: 5px 7px; background: #d6d6d6; display: block; border-radius: 30px; transition: opacity 0.2s ease; }
.owl-carousel .owl-dots .owl-dot.active span, .owl-carousel .owl-dots .owl-dot:hover span { background: #869791; }

/* Rent Special Banner */
.rent-special-banner {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.rent-special-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px);
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(50px) translateY(50px);
    }
}

.rent-special-banner .container {
    position: relative;
    z-index: 1;
}

.rent-special-banner .material-icons {
    vertical-align: middle;
    margin-right: 8px;
    margin-left: 8px;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Rent special banner (reference style: full-width, no border-radius) */
.rent-special-banner-ref {
    margin-bottom: 0;
}

/* Main content wrapper: match reference container width on large screens */
@media (min-width: 1200px) {
    .property-detail-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hero Section Styles */
.hero-section {
    background: white;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.photo-gallery {
    position: relative;
    background: #f0f0f0;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-gallery .launch-lightbox.hero-gallery-click {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 0;
}

.photo-gallery .launch-lightbox.hero-gallery-click img {
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.property-info {
    padding: 30px;
}

.status-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge-verified {
    background: #d4edda;
    color: #155724;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-available {
    background: #e3f2fd;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-units {
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-main {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.price-range {
    font-size: 24px;
    color: #666;
    margin-left: 10px;
}

.property-specs {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 16px;
    color: #666;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-item .material-icons {
    color: var(--primary);
    font-size: 20px;
}

/* This is the page's top-level heading (see the markup below). Every
   property in these declarations exists to cancel the browser's default
   heading styling, so the element renders exactly as the plain block it
   replaced — size, weight, family and margins are all stated rather than
   inherited. Changing the look here is a design decision, not part of
   the heading fix.
   Written without the literal tag name in angle brackets on purpose: a
   style block is raw text to the HTML parser, so a tag written inside a
   CSS comment is not an element, but it does show up in naive source
   scans and heading counts. */
.property-address {
    color: #666;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-address .material-icons {
    color: var(--primary);
}

/* Value Proposition Box */
.value-prop {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.value-prop h4 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.value-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
}

.value-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

/* Sidebar Styles */
.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.btn-apply-main {
    background: var(--primary);
    color: white !important;
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(21, 94, 151, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.btn-apply-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 94, 151, 0.4);
    color: white !important;
}

.btn-apply-main .badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
}

.btn-secondary-action {
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-action:hover {
    background: #f8f9fa;
    color: var(--primary) !important;
}

/* Tertiary Links */
.tertiary-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
}

.tertiary-links a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tertiary-links a:hover {
    color: var(--primary);
}

/* Move-in Costs Card */
.move-in-costs-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
}

.move-in-costs-card h5 {
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.move-in-costs-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

.move-in-costs-row:last-child {
    border-bottom: none;
}

.move-in-costs-total {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Unit Card Styles */
.unit-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.unit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(21, 94, 151, 0.1);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.unit-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.unit-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.unit-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    color: #666;
}

.unit-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit-spec-item .material-icons {
    color: var(--primary);
}

.unit-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-soon {
    background: #fff3cd;
    color: #856404;
}

.unit-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.unit-badge-renovation {
    background: #e3f2fd;
    color: var(--primary);
}

.unit-badge-flooring {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Unit Photo Gallery */
.unit-photos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.unit-photo-main {
    position: relative;
    height: 300px;
    cursor: pointer;
    overflow: hidden;
    background: #f0f0f0;
}

.unit-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.unit-photo-main:hover img {
    transform: scale(1.05);
}

.photo-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.unit-photo-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.unit-photo-thumb {
    position: relative;
    height: 145px;
    cursor: pointer;
    overflow: hidden;
    background: #f0f0f0;
}

.unit-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.unit-photo-thumb:hover img {
    transform: scale(1.05);
}

.view-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 94, 151, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.no-photos-state {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.no-photos-state .material-icons {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.no-photos-state h5 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
}

.no-photos-state p {
    color: #adb5bd;
    margin: 0;
}

.unit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-view-photos {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view-photos:hover {
    background: #f8f9fa;
}

.btn-view-photos:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-apply-unit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-apply-unit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Custom Tabs */
.custom-tabs {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-tabs .nav.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
}

.custom-tabs .nav.nav-tabs .nav-link,
.custom-tabs .nav.nav-tabs button.nav-link {
    width: auto;
}

.custom-tabs .nav.nav-tabs .nav-link,
.custom-tabs .nav-link {
    color: #666 !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    font-size: 15px !important;
    text-align: left !important;
}

.custom-tabs .nav.nav-tabs .nav-link:hover,
.custom-tabs .nav-link:hover {
    background: #f8f9fa !important;
    color: #666 !important;
    border-color: transparent !important;
}

.custom-tabs .nav.nav-tabs .nav-link.active,
.custom-tabs .nav-link.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: transparent !important;
}

.custom-tabs .nav.nav-tabs .nav-link.active .material-icons,
.custom-tabs .nav-link.active .material-icons {
    color: white !important;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Application Requirements */
.application-requirement-card {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
}

.application-requirement-card h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.application-requirement-card .material-icons {
    color: var(--primary);
    font-size: 28px;
}

/* Utility Breakdown */
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.utility-included-card {
    background: #f0f7ff;
    border: 1.5px solid #c0d7ff;
    padding: 16px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 60px;
}

.utility-included-card:hover {
    background: #e3f2fd;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(21, 94, 151, 0.15);
    transform: translateY(-2px);
}

.utility-included-card .material-icons,
.utility-included-card i {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.utility-included-card img,
.utility-icon-img {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.utility-text {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.utility-tenant-pays-card {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 15px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    gap: 10px;
}

@media (max-width: 991px) {
    .mobile-sticky-bar {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }

    body {
        padding-bottom: 80px;
    }
}

.mobile-sticky-bar button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-sticky-bar .btn-message {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.mobile-sticky-bar .btn-apply {
    background: var(--primary);
    color: white;
}

.mobile-sticky-bar a.btn-message,
.mobile-sticky-bar a.btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

/* Quick Facts */
.quick-facts {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.quick-facts h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fact-value {
    font-weight: 600;
    color: #333;
}

/* Property Manager Widget (STR-aligned) */
.pm-widget {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--light-bg);
    overflow: hidden;
}

.pm-header {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 20px 16px;
}

.pm-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6c9ce0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.pm-label {
    font-size: 11px; color: #94a3b8; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pm-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px; font-weight: 700; color: #0e2230;
}

.pm-role {
    font-size: 12px; color: var(--primary); font-weight: 500;
}

.pm-stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 0; margin: 0 20px 16px;
    background: #f8fafc; border-radius: 10px;
    overflow: hidden; border: 1px solid #f1f5f9;
}

.pm-stat {
    text-align: center; padding: 12px 8px;
    border-right: 1px solid #f1f5f9;
}

.pm-stat:last-child { border-right: none; }

.pm-stat-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px; font-weight: 700; color: #0e2230;
}

.pm-stat-lbl {
    font-size: 10px; color: #94a3b8; text-transform: uppercase;
    letter-spacing: 0.3px; font-weight: 600; margin-top: 2px;
}

.pm-contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 20px 20px; padding: 10px;
    border-radius: 10px; border: 1.5px solid var(--primary);
    background: transparent; color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}

.pm-contact-btn:hover {
    background: var(--primary); color: #fff;
    text-decoration: none;
}

.pm-contact-btn svg { width: 16px; height: 16px; }

/* PM Contact Modal */
.pm-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9998;
    background: rgba(14, 34, 48, 0.5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}

.pm-modal-overlay.open { display: flex; }

.pm-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(14, 34, 48, 0.2);
    overflow: hidden; animation: pmFadeIn 0.25s ease;
    position: relative;
}

@keyframes pmFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.pm-modal-header {
    display: flex; align-items: center; gap: 14px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.pm-modal-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6c9ce0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0;
}

.pm-modal-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px; font-weight: 700; color: #0e2230;
}

.pm-modal-role {
    font-size: 12px; color: var(--primary); font-weight: 500;
}

.pm-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #94a3b8; font-size: 18px;
    transition: all 0.15s;
}

.pm-modal-close:hover { background: #f8fafc; color: #0e2230; border-color: #cbd5e1; }

.pm-modal-body { padding: 20px 24px 24px; }

.pm-modal-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    background: #f8fafc; border: 1px solid #f1f5f9;
    margin-bottom: 10px; transition: all 0.15s;
}

.pm-modal-row:last-child { margin-bottom: 0; }
.pm-modal-row:hover { border-color: #e2e8f0; background: #fff; }

.pm-modal-row-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.pm-modal-row-icon.email-icon { background: rgba(70, 127, 207, 0.1); }
.pm-modal-row-icon.phone-icon { background: rgba(52, 195, 143, 0.1); }

.pm-modal-row-icon svg { width: 20px; height: 20px; }

.pm-modal-row-label {
    font-size: 11px; font-weight: 600; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.3px;
}

.pm-modal-row-val {
    font-size: 14px; font-weight: 600; color: #0e2230;
    margin-top: 1px;
}

.pm-modal-row-val a {
    color: var(--primary); text-decoration: none;
}

.pm-modal-row-val a:hover { text-decoration: underline; }

.pm-modal-note {
    text-align: center; font-size: 12px; color: #94a3b8;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 991px) {

    /* Rent Special Banner Mobile */
    div[style*="background: linear-gradient(135deg, #ffc107"] {
        padding: 10px 0 !important;
        font-size: 14px !important;
    }

    div[style*="background: linear-gradient(135deg, #ffc107"] .material-icons {
        font-size: 18px !important;
    }

    /* Container adjustments */
    .container-fluid[style*="margin-top"] {
        margin-top: 20px !important;
    }

    /* Sidebar - Remove sticky on mobile */
    .sidebar-sticky {
        position: relative !important;
        top: auto !important;
    }

    /* Hero Section */
    .photo-gallery {
        height: 250px;
    }

    .property-info {
        padding: 20px 15px;
    }

    .price-main {
        font-size: 28px;
    }

    .price-range {
        font-size: 18px;
    }

    .property-specs {
        gap: 15px;
        font-size: 14px;
    }

    .property-address {
        font-size: 16px;
    }

    .value-prop {
        padding: 15px;
    }

    .value-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Tabs */
    .custom-tabs {
        padding: 8px;
        margin-bottom: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-tabs .nav.nav-tabs {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .custom-tabs .nav.nav-tabs .nav-link {
        padding: 10px 16px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    .custom-tabs .nav.nav-tabs .nav-link .material-icons {
        font-size: 16px !important;
    }

    /* Content Cards */
    .content-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .content-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Unit Cards */
    .unit-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .unit-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .unit-number {
        font-size: 20px;
    }

    .unit-price {
        font-size: 20px;
    }

    .unit-specs {
        gap: 15px;
        font-size: 14px;
    }

    .unit-photos {
        grid-template-columns: 1fr;
    }

    .unit-photo-main {
        height: 250px;
    }

    .unit-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
        gap: 8px;
        margin-top: 8px;
    }

    /* Utilities Grid Mobile */
    .utilities-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .utility-included-card,
    .utility-tenant-pays-card {
        padding: 14px 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        min-height: 70px;
    }

    .utility-included-card .material-icons,
    .utility-included-card i,
    .utility-included-card img,
    .utility-icon-img,
    .utility-tenant-pays-card .material-icons,
    .utility-tenant-pays-card i {
        font-size: 22px !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 auto;
    }

    .utility-text {
        font-size: 13px;
        text-align: center;
    }

    .unit-photo-thumb {
        height: 120px;
    }

    .unit-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Overview Grid and inline grids */
    .overview-grid,
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Parking details grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Utility Breakdown */
    .utility-included-card,
    .utility-tenant-pays-card {
        padding: 12px;
        font-size: 14px;
    }

    /* Application Requirements */
    .application-requirement-card {
        padding: 15px;
    }

    .application-requirement-card h4 {
        font-size: 15px;
    }

    /* Parking Details */
    .parking-details-expanded>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Sidebar Cards */
    .sidebar-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .btn-apply-main {
        padding: 16px 20px;
        font-size: 16px;
    }

    .btn-secondary-action {
        padding: 12px 18px;
        font-size: 15px;
    }

    .tertiary-links {
        gap: 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }

    .quick-facts,
    .move-in-costs-card,
    .manager-card {
        padding: 15px;
    }

    .move-in-costs-total {
        padding: 12px;
    }

    .move-in-costs-total span:last-child {
        font-size: 20px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .contact-btn {
        width: 100%;
    }

    /* Property Manager Card */
    .manager-rating {
        font-size: 14px;
    }

    .manager-info-item {
        font-size: 14px;
    }

    /* Status Badges */
    .status-badges {
        gap: 8px;
    }

    .badge-verified,
    .badge-available,
    .badge-units,
    .badge-promotion {
        padding: 6px 12px;
        font-size: 12px;
    }

    .badge-promotion {
        font-size: 11px !important;
    }

    /* Gallery Button */
    .gallery-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .gallery-overlay {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {

    /* Rent Special Banner Small Mobile */
    div[style*="background: linear-gradient(135deg, #ffc107"] {
        padding: 10px 0 !important;
        font-size: 12px !important;
    }

    div[style*="background: linear-gradient(135deg, #ffc107"] .material-icons {
        font-size: 16px !important;
    }

    .container-fluid[style*="margin-top"] {
        margin-top: 10px !important;
    }

    .photo-gallery {
        height: 200px;
    }

    .property-info {
        padding: 15px 10px;
    }

    .price-main {
        font-size: 24px;
    }

    .price-range {
        font-size: 16px;
        margin-left: 5px;
    }

    .property-specs {
        flex-direction: column;
        gap: 10px;
    }

    .custom-tabs .nav.nav-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .content-card {
        padding: 15px 10px;
    }

    .content-card h3 {
        font-size: 18px;
    }

    .unit-card {
        padding: 15px 10px;
    }

    .unit-photo-main {
        height: 200px;
    }

    .unit-photo-thumb {
        height: 100px;
    }

    .sidebar-card {
        padding: 15px 10px;
    }

    .btn-apply-main {
        padding: 14px 18px;
        font-size: 15px;
    }

    .quick-facts h5,
    .move-in-costs-card h5,
    .manager-card h5 {
        font-size: 16px;
    }

    .fact-row {
        padding: 10px 0;
        font-size: 14px;
    }

    /* Walkability Scores */
    .walkscore-item {
        flex-direction: column;
        text-align: center;
    }

    .walkscore-badge {
        min-width: 80px;
        height: 80px;
    }

    .walkscore-number {
        font-size: 28px;
    }

    .walkscore-category {
        font-size: 16px;
    }

    .walkscore-description {
        font-size: 13px;
    }
}

.dot-pill {
    width: 20px;
    height: 8px;
    border-radius: 5px;
    background-color: #666666;
    transition: background-color 0.3s ease;
    opacity: 0.8;
}

.dot-pill.active {
    background-color: #0d1b2a;
    opacity: 1;
}

#prevSlideBtn:hover,
#nextSlideBtn:hover {
    filter: brightness(1.1);
    cursor: pointer;
}

.custom-tab-wrapper .nav-tabs {
    background-color: #f6f9fc;
    border-radius: 12px;
}

/* Override for other nav-tabs (not custom-tabs) - keep this for other tab systems on the page */
.units-main-tabs .nav-item.show .nav-link,
.units-main-tabs .nav-link.active,
.custom-tab-wrapper .nav-link.active {
    background-color: #f6f9fc;
}

.custom-tab-wrapper .nav-link {
    background-color: transparent;
    border: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.custom-tab-wrapper .nav-link i {
    font-size: 20px;
}

.custom-tab-wrapper .nav-link.active {
    color: #155E97;
    border-radius: 8px;
}

.badge-primary {
    background-color: #155E97;
    color: white;
}

.cms-content-area .nav-link img.nav-icon {
    filter: brightness(0) saturate(100%) invert(44%) sepia(0%) saturate(0%) hue-rotate(0deg);
    /* #828383 */
    transition: filter 0.3s ease;
}

.cms-content-area .nav-link.active img.nav-icon {
    filter: brightness(0) saturate(100%) invert(28%) sepia(84%) saturate(2716%) hue-rotate(172deg) brightness(93%) contrast(95%);
    /* #155E97 */
}

.property-info-card {
    background-color: #F6F8FC;
    border: 1px solid #C0D7FF;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.property-info-card:hover {
    box-shadow: 0 4px 12px rgba(21, 94, 151, 0.1);
    transform: translateY(-2px);
}

.property-info-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(28%) sepia(84%) saturate(2716%) hue-rotate(172deg) brightness(93%) contrast(95%);
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item span:first-child {
    min-width: 120px;
}

.cms-content-area .btn {
    padding: 0.5rem 2.2rem !important;
    font-weight: normal !important;
}

.cms-content-area .btn-primary {
    background-color: #155E97;
    border-color: #155E97;
    transition: all 0.3s ease;
}

.cms-content-area .btn-primary:hover {
    background-color: #0d4a7a;
    border-color: #0d4a7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21, 94, 151, 0.2);
}

.cms-content-area .btn-outline-primary {
    color: #155E97 !important;
    border-color: #155E97 !important;
}

/* Email and Phone Hide/Show Styles */
.email-hide,
.phone-hide {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(21, 94, 151, 0.05);
    border: 1px solid rgba(21, 94, 151, 0.1);
}

.email-hide:hover,
.phone-hide:hover {
    background-color: rgba(21, 94, 151, 0.1);
    border-color: rgba(21, 94, 151, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 94, 151, 0.15);
}

.email-show,
.phone-show {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(21, 94, 151, 0.1);
    border: 1px solid rgba(21, 94, 151, 0.2);
    color: #155E97;
    font-weight: 500;
}

.email-hide svg,
.phone-hide svg {
    margin-right: 8px;
}

/* Non-authenticated link styles */
.link-dark.d-flex {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(21, 94, 151, 0.05);
    border: 1px solid rgba(21, 94, 151, 0.1);
    text-decoration: none;
}

.link-dark.d-flex:hover {
    background-color: rgba(21, 94, 151, 0.1);
    border-color: rgba(21, 94, 151, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 94, 151, 0.15);
    text-decoration: none;
    color: #155E97 !important;
}

.cms-content-area .btn-outline-primary:hover {
    background-color: #155E97 !important;
    border-color: #155E97 !important;
    color: white !important;
}

/* Units Tab Styles */
.units-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.units-main-tabs {
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.units-main-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.units-main-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.units-main-tabs .nav-link.active {
    background-color: transparent;
    color: #155E97;
    border-bottom: 0.2rem solid #155E97 !important;
}

.unit-type-section {
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.unit-type-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unit-type-indicator {
    width: 12px;
    height: 12px;
    background-color: #155E97;
    border-radius: 50%;
    flex-shrink: 0;
}

.unit-type-specs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.unit-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.unit-spec i {
    color: #155E97;
    font-size: 16px;
}

.units-list {
    padding: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.units-table {
    width: 100%;
}

.units-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 20px 20px 12px 20px;
    margin-bottom: 0;
}

.unit-header-cell {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.unit-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
}

.unit-table-row:last-child {
    border-bottom: none;
}

.unit-cell {
    color: #212529;
    font-size: 14px;
}

.unit-cell:first-child {
    font-weight: 600;
    color: #155E97;
}

.apply-link {
    color: #155E97;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.apply-link:hover {
    color: #0d4a7a;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .units-table-header,
    .unit-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .unit-header-cell {
        display: none;
    }

    .unit-cell {
        padding: 4px 0;
        border-bottom: 1px solid #f1f3f4;
    }

    .unit-cell:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #495057;
    }

    .unit-type-specs {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.utilities {
    background-color: #f6f8fc;
    border: 0.1rem solid #c0d7ff;
}

/* Walkscore Styles */
.walkscore-container {
    max-width: 600px;
}

.walkscore-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.walkscore-item:last-child {
    border-bottom: none;
}

.walkscore-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 100px;
    height: 100px;
    padding: 16px 12px;
}

/* Walk Score - Speech Bubble Shape */
.walkscore-badge.walk-score {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-radius: 20px 20px 20px 5px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

/* Transit Score - Bus Shape */
.walkscore-badge.transit-score {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-radius: 8px 8px 15px 15px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    position: relative;
}

.walkscore-badge.transit-score::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background-color: #1976d2;
    border-radius: 4px 4px 0 0;
}

/* Bike Score - Gear Shape */
.walkscore-badge.bike-score {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    width: 100px;
    height: 100px;
}

.walkscore-badge.bike-score::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #1976d2;
    border-radius: 50%;
    opacity: 0.3;
}

/* Busy Score - Rounded Rectangle */
.walkscore-badge.busy-score {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

.walkscore-number {
    font-size: 32px;
    font-weight: 700;
    color: #1976d2;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.walkscore-badge.bike-score .walkscore-number {
    font-size: 28px;
}

.walkscore-label {
    font-size: 12px;
    color: #1976d2;
    margin-top: 4px;
    text-align: center;
    font-weight: 500;
}

.walkscore-badge.bike-score .walkscore-label {
    font-size: 10px;
    margin-top: 2px;
}

.walkscore-content {
    flex: 1;
    padding-top: 4px;
}

.walkscore-category {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.walkscore-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .walkscore-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .walkscore-badge {
        min-width: 80px;
        height: 80px;
        padding: 12px 8px;
    }

    .walkscore-badge.bike-score {
        width: 80px;
        height: 80px;
    }

    .walkscore-number {
        font-size: 28px;
    }

    .walkscore-badge.bike-score .walkscore-number {
        font-size: 24px;
    }

    .walkscore-content {
        padding-top: 0;
    }
}

.modal-fullscreen .modal-body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent scrolling */
}

.modal-fullscreen .modal-body img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Custom FSLightbox Styles */
#fslightboxModal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#fslightboxImage {
    max-height: 85vh !important;
    width: auto !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

/* Unit Tab Styling */
.unit-tab {
    transition: all 0.3s ease !important;
}

.unit-tab:hover {
    background: rgba(61, 85, 204, 0.6) !important;
    color: white !important;
    border-color: rgba(61, 85, 204, 0.5) !important;
}

.unit-tab.active {
    background: rgba(61, 85, 204, 0.8) !important;
    color: white !important;
    border-color: rgba(61, 85, 204, 0.6) !important;
}

.unit-tab.active:hover {
    background: rgba(61, 85, 204, 0.9) !important;
    border-color: rgba(61, 85, 204, 0.7) !important;
}

/* Lightbox Modal Enhancements */
#fslightboxModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#fslightboxModal .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
}

#fslightboxModal .btn-outline-light:hover {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Bottom info bar styling */
#fslightboxModal .position-absolute.bottom-0 {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail-item {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    opacity: 0.8;
}

.thumbnail-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.thumbnail-item.active {
    border-color: rgba(61, 85, 204, 0.6);
    opacity: 1;
    box-shadow: 0 0 8px rgba(61, 85, 204, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#thumbnailGallery {
    scrollbar-width: thin;
    scrollbar-color: #666 #333;
}

#thumbnailGallery::-webkit-scrollbar {
    height: 6px;
}

#thumbnailGallery::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

#thumbnailGallery::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

#thumbnailGallery::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Image fade transition */
.image-fade {
    opacity: 0;
    transform: scale(0.95);
}

.image-fade.show {
    opacity: 1;
    transform: scale(1);
}

/* Fullscreen Modal Overrides */
#fslightboxModal {
    z-index: 9999 !important;
}

#fslightboxModal .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

#fslightboxModal .modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
}

#fslightboxModal .modal-body {
    height: calc(100vh - 120px) !important;
    overflow: hidden !important;
}

/* Ensure modal backdrop covers entire screen */
#fslightboxModal .modal-backdrop {
    z-index: 9998 !important;
}

.bg-dark {
    background-color: #212529 !important;
}

/* Related Properties Carousel Styles */
.related_properties>.owl-nav>.owl-prev {
    top: 65%;
}

.related_properties>.owl-nav>.owl-prev~.owl-prev {
    top: unset;
}

.related_properties>.owl-nav>.owl-next {
    top: 65%;
}

.related_properties>.owl-nav>.owl-next~.owl-next {
    top: unset;
}

.related_properties>.owl-nav {
    display: none;
}

.related_properties:hover .owl-nav {
    display: block;
}

.related_properties>.owl-nav~.owl-nav {
    display: none;
}

/* Override primary color for related properties section */
.related_properties .text-primary,
.related_properties .btn-primary,
.related_properties .bg-primary {
    color: #155E97 !important;
    background-color: #155E97 !important;
    border-color: #155E97 !important;
}

.related_properties .btn-outline-primary {
    color: #155E97 !important;
    border-color: #155E97 !important;
}

.related_properties .btn-outline-primary:hover {
    background-color: #155E97 !important;
    color: white !important;
}

.score {
    width: 100px;
    height: 100px;
    background: #e8f0fc;
    color: #004477;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    position: relative;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid #b0c4de;
}

/* Walk Score (pointer shape) */
.walk {
    border-radius: 10px;
}

.walk::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top: 15px solid #e8f0fc;
}

/* Transit Score (bus shape) */
.transit {
    border-radius: 40% 40% 20% 20%;
}

.transit::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #e8f0fc;
    border: 2px solid #b0c4de;
    border-radius: 50%;
}

.transit::before {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #e8f0fc;
    border: 2px solid #b0c4de;
    border-radius: 50%;
}

/* Bike Score (gear shape) */
.bike {
    clip-path: polygon(50% 0%, 60% 15%, 75% 10%, 80% 25%, 95% 30%,
            90% 45%, 100% 50%, 90% 55%, 95% 70%, 80% 75%,
            75% 90%, 60% 85%, 50% 100%, 40% 85%, 25% 90%,
            20% 75%, 5% 70%, 10% 55%, 0% 50%, 10% 45%,
            5% 30%, 20% 25%, 25% 10%, 40% 15%);
}

/* Busy Score (rounded square) */
.busy {
    border-radius: 20px;
}

.label {
    font-size: 12px;
    color: #3b5998;
}

.value {
    font-size: 28px;
    margin-top: 5px;
}

.property-detail-account .property-detail-wrapper {
    margin-top: 0 !important;
}
