/* Property View Page Styles */

/* Simple header placeholder */
.uhf-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.uhf-header .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Property Header - Full Width Section */
.property-header-full {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #dee2e6;
}

.property-header-full .header-content {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prop-title-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #212529;
}

.prop-address-large {
    font-size: 1rem;
    color: #6c757d;
}

.prop-price-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Main Container */
.property-view-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 1.5rem 40px;
}
    color: #28a745;
}

.action-bar-btn {
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-bar-btn i {
    font-size: 0.8rem;
}

.action-bar-btn:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* Gallery */
.property-gallery {
    background: var(--uhf-card);
    border-radius: 18px;
    padding: 14px 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.property-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.property-badge {
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.property-badge.verified {
    background: rgba(25, 135, 84, 0.08);
    color: #198754;
}

.property-badge.featured {
    background: rgba(255, 193, 7, 0.15);
    color: #b07900;
}

.property-badge.mortgage {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.property-badge.virtual {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.gallery-main {
    position: relative;
    margin-bottom: 10px;
}

.gallery-main img {
    width: 100%;
    border-radius: 16px;
    height: 440px;
    object-fit: cover;
    display: block;
}

.gallery-video-trigger {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    min-height: 58px;
    padding: 0.45rem 0.6rem 0.45rem 0.48rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 3;
}

.gallery-video-trigger__icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    font-size: 1rem;
    flex: 0 0 auto;
}

.gallery-video-trigger__label {
    max-width: 120px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.gallery-video-trigger:hover,
.gallery-video-trigger:focus-visible {
    transform: translateY(-50%) scale(1.02);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.3);
}

@media (max-width: 992px) {
    .gallery-main img {
        height: 260px;
    }

    .gallery-video-trigger {
        right: 0.85rem;
        min-height: 48px;
        padding: 0.38rem 0.42rem;
    }

    .gallery-video-trigger__icon {
        width: 40px;
        height: 40px;
        font-size: .95rem;
    }

    .gallery-video-trigger__label {
        display: none;
    }
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px;
    pointer-events: none;
}

.gallery-count,
.gallery-tour {
    background: rgba(15, 23, 42, 0.68);
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-tour {
    border: 0;
    cursor: pointer;
}

.gallery-overlay button {
    pointer-events: auto;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gallery-thumbnail {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumbnail img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    filter: brightness(0.92);
    transition: all 0.25s ease;
}

.thumbnail-label {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
}

.gallery-thumbnail:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}

.gallery-thumbnail.active {
    border-color: #0d6efd;
}

.gallery-thumbnail-video {
    background: linear-gradient(180deg, #0f172a, #1e293b);
}

.gallery-thumbnail-video img {
    filter: brightness(0.66);
}

.gallery-thumbnail-video .thumbnail-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-btn {
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    padding: 7px 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-btn:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* Header & meta */
.property-header {
    background: var(--uhf-card);
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.property-header-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.property-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.property-price-section {
    text-align: right;
}

.property-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d6efd;
}

.price-details span {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.price-estimate {
    color: #198754;
}

.property-address {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #495057;
}

.property-address i {
    color: #dc3545;
    margin-right: 5px;
}

.view-map-link {
    margin-left: 10px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #0d6efd;
}

.view-map-link:hover {
    text-decoration: underline;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 992px) {
    .property-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.meta-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #f8f9fa;
}

.meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e9f2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d6efd;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.property-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background: #0d6efd;
    color: #ffffff;
}

.primary-btn:hover {
    background: #0b5ed7;
}

.secondary-btn {
    background: #ffffff;
    border-color: #dee2e6;
    color: #212529;
}

.secondary-btn:hover {
    background: #f1f3f5;
}

.mortgage-btn {
    background: #e8f3ff;
    color: #0d6efd;
    border-color: #bdd7ff;
}

.mortgage-btn:hover {
    background: #d2e6ff;
}

/* Mortgage quick view */
.mortgage-quickview {
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.mortgage-quickview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mortgage-quickview-header h3 {
    font-size: 1rem;
    margin: 0;
}

.mortgage-quickview-header a {
    font-size: 0.8rem;
}

.mortgage-quickview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 992px) {
    .mortgage-quickview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mortgage-quick-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
}

.mortgage-quick-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.mortgage-quick-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.mortgage-quick-value.highlight {
    color: #0d6efd;
}

/* Tabs */
.property-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.property-tab {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.property-tab i {
    font-size: 0.85rem;
}

.property-tab.active {
    background: #0d6efd;
    color: #ffffff;
    border: none;
}

.property-tab:hover {
    background: rgba(13, 110, 253, 0.08);
}

/* Mortgage detailed tab */

.tab-content {
    display: none;
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.property-description p {
    font-size: 0.9rem;
    color: #4a4f57;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #f8f9fa;
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e9f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.feature-item h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.feature-item p {
    font-size: 0.8rem;
    margin: 0;
    color: #6c757d;
}

/* Mortgage detailed tab */
.mortgage-options {
    margin-bottom: 20px;
}

.mortgage-option-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 992px) {
    .mortgage-option-cards {
        grid-template-columns: 1fr;
    }
}

.mortgage-option-card {
    border-radius: 14px;
    background: #f8f9fa;
    padding: 12px 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.mortgage-option-card.active {
    border-color: #0d6efd;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

.mortgage-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mortgage-option-header i {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e9f2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d6efd;
}

.mortgage-option-header h4 {
    font-size: 0.95rem;
    margin: 0;
}

.mortgage-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.mortgage-apply-btn {
    margin-top: 8px;
    border-radius: 999px;
    border: none;
    background: #0d6efd;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 8px 12px;
    cursor: pointer;
}

.mortgage-apply-btn:hover {
    background: #0b5ed7;
}

.mortgage-calculator-detailed {
    margin-bottom: 20px;
}

.calculator-detailed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 14px;
}

@media (max-width: 992px) {
    .calculator-detailed-grid {
        grid-template-columns: 1fr;
    }
}

.calculator-inputs .form-group {
    margin-bottom: 10px;
}

.calculator-inputs label {
    font-size: 0.8rem;
    margin-bottom: 3px;
    display: block;
}

.calculator-inputs input,
.calculator-inputs select {
    font-size: 0.85rem;
}

.range-value {
    font-size: 0.8rem;
    color: #0d6efd;
    margin-left: 4px;
}

.calculate-btn {
    border-radius: 999px;
    border: none;
    background: #0d6efd;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 14px;
}

.calculator-results-detailed {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.85rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.result-row.total {
    border-top: 1px dashed #ced4da;
    padding-top: 6px;
    margin-top: 6px;
    font-weight: 600;
}

.mortgage-lenders .lenders-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 992px) {
    .mortgage-lenders .lenders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lender-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
}

.lender-card img {
    border-radius: 8px;
}

.lender-info h5 {
    font-size: 0.85rem;
    margin: 0;
}

.lender-info p {
    font-size: 0.78rem;
    margin: 0;
    color: #6c757d;
}

/* Market tab */
.market-analysis {
    font-size: 0.9rem;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .market-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.market-stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.market-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #e9f2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d6efd;
}

.market-stat-value {
    font-weight: 600;
}

.market-stat-change {
    font-size: 0.75rem;
}

.market-stat-change.positive {
    color: #198754;
}

.market-stat-change.negative {
    color: #dc3545;
}

.price-history-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

/* Carousel */
.scroll-smooth {
    scroll-behavior: smooth;
    -ms-overflow-style: none;

    /* Utilities */
    .opacity-10 {
        opacity: 0.1 !important;
    }

    .hover-shadow:hover {
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
        transform: translateY(-2px);
    }

    .transition {
        transition: all 0.3s ease;
    }

    .border-end-md {
        border-right: 1px solid #dee2e6;
    }

    @media (max-width: 768px) {
        .border-end-md {
            border-right: none;
            border-bottom: 1px solid #dee2e6;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
        }
    }

    /* Firefox */
}

.scroll-smooth::-webkit-scrollbar {
    display: none;
}

/* Heart Icon Animation */
.fa-heart.fas {
    color: #dc3545;
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Premium Sidebar */
.property-widget {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}


.price-history-table thead {
    background: #f8f9fa;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.comparison-price {
    font-weight: 600;
    color: #0d6efd;
}

.comparison-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

/* Investment Analysis */
.investment-analysis {
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 992px) {
    .investment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .investment-grid {
        grid-template-columns: 1fr;
    }
}

.investment-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.investment-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #e9f2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d6efd;
}

.investment-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.investment-value.positive {
    color: #198754;
}

.investment-content p {
    font-size: 0.78rem;
    margin: 0;
    color: #6c757d;
}

/* Sidebar */
@media (min-width: 992px) {
    .property-sidebar {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

.quick-actions {
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action-btn {
    border-radius: 999px;
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.quick-action-btn.primary {
    background: #0d6efd;
    color: #ffffff;
}

.quick-action-btn.secondary {
    background: #e8f3ff;
    color: #0d6efd;
}

.quick-action-btn.outline {
    background: #ffffff;
    border: 1px solid #dee2e6;
}

.contact-card {
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.agent-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.agent-avatar {
    position: relative;
}

.agent-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    object-fit: cover;
}

.agent-online {
    position: absolute;
    bottom: -4px;
    left: 0;
    font-size: 0.65rem;
    background: #198754;
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.agent-online i {
    font-size: 0.4rem;
}

.agent-info h3 {
    font-size: 1rem;
    margin: 0;
}

.agent-title {
    font-size: 0.75rem;
    color: #6c757d;
}

.agent-rating i {
    color: #ffc107;
    font-size: 0.8rem;
}

.agent-rating .rating-count {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 4px;
}

.agent-company {
    font-size: 0.78rem;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.agent-company img {
    border-radius: 999px;
}

.agent-stats {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.agent-stat {
    text-align: center;
}

.agent-stat .stat-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.agent-stat .stat-label {
    font-size: 0.7rem;
    color: #6c757d;
}

.contact-form .form-group {
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    font-size: 0.85rem;
}

.contact-form textarea {
    height: 70px;
    resize: vertical;
}

.checkbox-label {
    font-size: 0.78rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-submit {
    width: 100%;
    border-radius: 999px;
    border: none;
    background: #0d6efd;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.contact-divider {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 0.75rem;
    color: #6c757d;
}

.contact-divider::before,
.contact-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.contact-divider span {
    padding: 0 6px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    border-radius: 10px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
    background: #f8f9fa;
}

.contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e9f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    margin-right: 8px;
}

.contact-details h4 {
    font-size: 0.85rem;
    margin: 0;
}

.contact-details p {
    font-size: 0.75rem;
    margin: 0;
    color: #6c757d;
}

.eligibility-checker {
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.checker-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.eligibility-form .form-group {
    margin-bottom: 8px;
}

.eligibility-btn {
    width: 100%;
    border-radius: 999px;
    border: none;
    background: #198754;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 7px 0;
}

.eligibility-result {
    margin-top: 8px;
    font-size: 0.8rem;
}

.eligibility-result.success {
    color: #198754;
}

.eligibility-result.error {
    color: #dc3545;
}

.property-timeline {
    background: var(--uhf-card);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.timeline-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.timeline {
    border-left: 2px solid #e9ecef;
    margin-left: 8px;
    padding-left: 10px;
}

.timeline-item {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 2px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #0d6efd;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.timeline-content h4 {
    font-size: 0.85rem;
    margin: 0;
}

.timeline-content p {
    font-size: 0.75rem;
    margin: 0;
    color: #6c757d;
}

/* Footer tools */
.property-footer {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 12px 40px;
}

@media (max-width: 992px) {
    .property-footer {
        grid-template-columns: 1fr;
    }
}

.footer-section {
    background: var(--uhf-card);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    font-size: 0.85rem;
}

.footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-section a {
    display: block;
    text-decoration: none;
    font-size: 0.8rem;
    color: #495057;
    margin-bottom: 4px;
}

.footer-section a i {
    width: 16px;
}

.similar-card {
    transition: all .3s ease;
    background: #fff;
}

.similar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
}

.property-img {
    height: 220px;
    object-fit: cover;
}

.sim-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-weight: 500;
}

.sim-badge.verified {
    background: #198754;
}

.sim-badge.featured {
    background: #ffc107;
    color: #222;
}

.save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffffd6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.save-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.similar-properties-wide {
    width: 95vw;
    margin: 0 auto;
}

.scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.sim-card {
    min-width: 200px;
    background: #fff;
    transition: .25s;
}

.sim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.sim-img {
    height: 140px;
    object-fit: cover;
    width: 100%;
}

.sim-save {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffffcf;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-save:hover {
    background: #0d6efd;
    color: #fff;
}

.sim-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: .65rem;
    border-radius: 999px;
    display: flex;
    gap: 4px;
    align-items: center;
    color: white;
}

.sim-badge.verified {
    background: #198754;
}

.sim-badge.featured {
    background: #ffc107;
    color: #222;
}

.sim-badge.new {
    background: #0d6efd;
}

.sim-badge.deal {
    background: #dc3545;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.filter-panel {
    display: none;
}

/* ----- ICON TOOLBAR FIX ----- */

.action-toolbar {
    display: flex;
    gap: 8px;
}

/* Button Base */
.icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: all .25s ease;
}

/* Icon default color (visible everywhere) */
.icon-btn i {
    font-size: 1.05rem;
    color: #333;
}

/* Hover and Active states */
.icon-btn:hover {
    background: #0d6efd;
    transform: translateY(-2px);
}

.icon-btn:hover i {
    color: #fff !important;
}

/* When Filter is Active */
.icon-btn.active {
    background: #0d6efd;
}

.icon-btn.active i {
    color: white;
}

/* Mobile Responsiveness */
@media(max-width: 480px) {
    .icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .icon-btn i {
        font-size: .95rem;
    }
}

/* ========================= FINAL LAYOUT FIXES ========================= */

/* Matches luxury width of main page */
.similar-properties-wide {
    max-width: 1450px;
    margin: 0 auto;
    padding-inline: 20px;
}

/* Header alignment stays centered and responsive */
.similar-properties-wide h4 {
    font-size: 1.25rem;
}

/* Ensure toolbar stays aligned on all screens */
.action-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Fix icon visibility */
.icon-btn i {
    color: #2b2b2b !important;
}

/* Center filter panel width */
.filter-panel {
    max-width: 98%;
    margin: 0 auto;
    border: 1px solid #edf0f3;
}

/* Scroll row clean spacing */
.scroll-row {
    display: flex;
    gap: 14px;
    padding: 5px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.scroll-row::-webkit-scrollbar {
    display: none;
}

/* Card size consistency */
.sim-card {
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 auto;
    border: 1px solid #f0f0f0;
}

/* Typography refinement */
.sim-card div:first-child+div>.fw-semibold {
    font-size: 0.78rem;
}

.sim-card .fw-bold {
    font-size: 0.85rem;
}

/* Clean Header Full Width */
.property-header-full {
    background: #ffffff;
    border-bottom: 1px solid #edf0f3;
    padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.property-view-container {
    padding-bottom: 80px;
    /* Prevent footer crash */
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.prop-title-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.prop-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}

.prop-address-large {
    font-size: 1.05rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prop-price-large {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prop-price-large .badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    background: #e8f3ff;
    color: #0d6efd;
    border-radius: 99px;
    border: 1px solid transparent;
}

/* Video Container */
.video-tour-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.video-tour-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Clean Agent Card */
.agent-card-clean {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.agent-clean-head {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-clean-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 520px) {
    .similar-properties-wide {
        padding-inline: 10px;
    }

    .scroll-row {
        gap: 10px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .sim-card {
        min-width: 175px;
        max-width: 175px;
    }

    .sim-img {
        height: 120px;
    }
}

/* Public detail refinement */
.property-header-full .header-content,
.property-view-container,
.similar-properties-wide {
    max-width: 1430px;
}

.property-header-full {
    padding: 22px 0 20px;
    margin-bottom: 12px;
}

.property-view-container {
    padding: 0 1rem 72px;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.property-meta .meta-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    padding: 14px;
    min-height: 0;
}

.property-content-section .d-flex.gap-2 {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.property-content-section .d-flex.gap-2::-webkit-scrollbar {
    display: none;
}

.property-content-section .btn {
    white-space: nowrap;
    min-height: 42px;
}

.similar-carousel {
    overflow-x: auto !important;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.similar-carousel::-webkit-scrollbar {
    height: 8px;
}

.similar-carousel > .card {
    scroll-snap-align: start;
}

@media (max-width: 991.98px) {
    .property-header-full {
        padding: 10px 0 12px;
        margin-bottom: 10px;
    }

    .prop-title-large {
        font-size: 1.55rem;
    }

    .prop-price-large {
        font-size: 1.65rem;
        justify-content: flex-start !important;
    }

    .property-view-container {
        padding: 0 .85rem 88px;
    }

    .property-view-container .row.g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .property-gallery {
        padding: 10px 10px 14px;
        margin-bottom: 16px !important;
    }

    .gallery-main img {
        height: 240px;
    }

    .gallery-overlay {
        padding: 10px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gallery-count,
    .gallery-tour {
        font-size: 0.7rem;
    }

    .property-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 18px !important;
    }

    .property-meta .meta-item {
        padding: 12px;
    }

    #tab-content-wrapper {
        padding: 1rem !important;
    }

    .property-widget {
        padding: 1rem !important;
    }

    #property-map {
        height: 300px !important;
    }

    .similar-carousel > .card {
        width: 250px !important;
    }
}

@media (max-width: 575.98px) {
    .property-header-full .header-content,
    .property-view-container {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .property-header-full {
        padding: 8px 0 10px;
        margin-bottom: 8px;
    }

    .prop-title-large {
        font-size: 1.35rem;
    }

    .prop-address-large {
        font-size: 0.88rem;
        line-height: 1.5;
        align-items: flex-start;
    }

    .prop-price-large {
        font-size: 1.35rem;
        gap: 10px;
        flex-wrap: wrap;
    }

    .property-meta .meta-item {
        border-radius: 16px;
        padding: 10px;
    }

    .meta-icon {
        width: 40px;
        height: 40px;
    }

    .meta-label {
        font-size: 0.72rem;
    }

    .meta-value {
        font-size: 0.92rem;
    }

    .property-content-section .btn {
        padding-inline: .95rem;
        min-height: 38px;
        font-size: 0.85rem;
    }

    .tour-trigger-btn,
    .tour-secondary-btn {
        min-height: 46px;
        font-size: 0.94rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gallery-thumbnail img {
        height: 58px;
    }

    .similar-carousel > .card {
        width: 220px !important;
    }
}

.property-header-full {
    margin-bottom: 0 !important;
    padding-bottom: 14px !important;
}

.property-view-container {
    padding-top: .25rem !important;
}

.gallery-main {
    position: relative;
    touch-action: pan-y;
    cursor: zoom-in;
}

.gallery-main img {
    cursor: grab;
}

.gallery-main img:active {
    cursor: grabbing;
}

.gallery-image-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .48rem .78rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

.active-compare-action {
    background: linear-gradient(135deg, #0f172a, #1d4f91) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.property-compare-dock {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1060;
    width: min(360px, calc(100vw - 1.5rem));
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top right, rgba(214, 168, 79, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
}

.property-compare-dock.is-hidden {
    display: none;
}

.property-compare-dock__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .85rem;
}

.property-compare-dock__eyebrow {
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}

.property-compare-dock__header h6 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.property-compare-dock__items {
    display: grid;
    gap: .7rem;
}

.property-compare-dock__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .9rem;
}

.property-compare-action {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    font-size: .83rem;
    font-weight: 800;
    transition: all .2s ease;
}

.property-compare-action.muted {
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
}

.property-compare-action.primary {
    background: linear-gradient(135deg, #2563eb, #1d4f91);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.property-compare-action:hover,
.property-compare-action:focus-visible {
    transform: translateY(-1px);
}

.property-compare-mini {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 36px;
    gap: .7rem;
    align-items: center;
    padding: .55rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.property-compare-mini__thumb {
    display: block;
    width: 64px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
}

.property-compare-mini__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-compare-mini__body {
    min-width: 0;
}

.property-compare-mini__title {
    display: block;
    color: #0f172a;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-compare-mini__meta {
    margin-top: .2rem;
    color: #64748b;
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-compare-mini__remove {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4f91;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compare-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.compare-modal-overlay.active {
    display: flex;
}

.compare-modal-card {
    width: min(1200px, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.28);
    padding: 1.6rem 1.7rem 1.4rem;
}

.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.compare-modal-header h3 {
    margin: 0;
    color: #121c2f;
    font-size: 1.15rem;
    font-weight: 900;
}

.compare-modal-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.compare-modal-save {
    min-height: 48px;
    padding: .7rem 1rem;
    border-radius: 16px;
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #121c2f;
    font-weight: 800;
}

.compare-modal-close {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    font-size: 1.15rem;
}

.compare-modal-body {
    overflow-x: auto;
}

.property-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.property-compare-table th,
.property-compare-table td {
    padding: 1.05rem 1rem;
    border-bottom: 1px solid #e8eef5;
    vertical-align: top;
}

.property-compare-table th {
    width: 160px;
    background: #f7f9fd;
    color: #64748b;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.property-compare-table td img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    margin-bottom: .9rem;
}

.property-compare-table__title {
    color: #121c2f;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.property-compare-table__price {
    margin-top: .55rem;
    color: #2a5ce5;
    font-size: 1rem;
    font-weight: 900;
}

.property-compare-table__actions {
    display: grid;
    gap: .65rem;
}

.property-compare-table__btn {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #121c2f;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: .7rem 1rem;
}

.property-compare-table__btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 14px 30px rgba(59, 91, 219, 0.2);
}

.gallery-modal-dialog {
    max-width: min(1180px, calc(100vw - 2rem));
}

.gallery-modal-shell {
    border: 0;
    overflow: hidden;
    border-radius: 32px;
    background: #081120;
    color: #fff;
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.34);
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.gallery-modal-stage {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.5rem 1rem;
}

.gallery-modal-stage img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 24px;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-modal-nav-prev {
    left: 1rem;
}

.gallery-modal-nav-next {
    right: 1rem;
}

.gallery-modal-footer {
    padding: 0 1.5rem 1.4rem;
}

.gallery-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-image-label.is-static {
    position: static;
}

.gallery-modal-counter {
    color: rgba(255,255,255,0.75);
    font-size: .82rem;
}

.gallery-modal-thumbs {
    display: flex;
    gap: .7rem;
    overflow-x: auto;
    padding-bottom: .2rem;
    -webkit-overflow-scrolling: touch;
}

.gallery-modal-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-modal-thumb {
    min-width: 112px;
    max-width: 112px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: .38rem;
    color: rgba(255,255,255,0.74);
    text-align: left;
}

.gallery-modal-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-bottom: .4rem;
}

.gallery-modal-thumb span {
    display: block;
    font-size: .68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-modal-thumb.active {
    border-color: rgba(214, 168, 79, 0.8);
    background: rgba(214, 168, 79, 0.14);
    color: #fff;
}

.related-home-carousel {
    position: relative;
    padding: 0 1.2rem;
}

.related-home-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.related-home-viewport::-webkit-scrollbar {
    display: none;
}

.related-home-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    min-width: 100%;
}

.related-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    border: 1px solid rgba(187, 205, 232, 0.8);
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    min-width: min(360px, calc((100vw - 220px) / 3));
    max-width: min(360px, calc((100vw - 220px) / 3));
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.related-home-image-wrap {
    position: relative;
    padding: .95rem .95rem 0;
}

.related-home-image-wrap img {
    width: 100%;
    aspect-ratio: 4 / 2.55;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    background: linear-gradient(90deg, #dbe4f4 25%, #eef4ff 50%, #dbe4f4 75%);
    background-size: 200% 100%;
}

.related-home-badge {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    box-shadow: 0 12px 30px rgba(59, 91, 219, 0.28);
    z-index: 2;
}

.related-home-badge.sold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.related-home-badge.active {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.related-home-save {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(206, 216, 230, 0.95);
    border-radius: 999px;
    background: rgba(255,255,255,0.97);
    color: #344256;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

.related-home-save:hover,
.related-home-save:focus-visible {
    color: #1d4f91;
}

.related-home-save.is-saved,
.related-home-save[aria-pressed="true"],
.is-saved-property {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.related-home-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .7rem 1rem .2rem;
}

.related-home-thumb {
    width: 78px;
    height: 56px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(216, 226, 240, 0.95);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    background: #fff;
    cursor: pointer;
}

.related-home-thumb.is-active {
    border-color: rgba(37, 99, 235, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.related-home-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-home-body {
    padding: .9rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .58rem;
}

.related-home-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #121c2f;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
}

.related-home-price {
    color: #2a5ce5;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -.01em;
}

.related-home-address {
    color: #6d7b92;
    font-size: .86rem;
    display: flex;
    align-items: center;
    gap: .42rem;
    line-height: 1.45;
}

.related-home-address i {
    color: #ef4444;
    flex: 0 0 auto;
}

.related-home-address span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-home-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .15rem;
}

.related-home-feature {
    font-size: .82rem;
    color: #425168;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    white-space: nowrap;
}

.related-home-feature i {
    flex: 0 0 auto;
}

.related-home-feature span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-home-feature.bed i {
    color: #1d4f91;
}

.related-home-feature.bath i {
    color: #06b6d4;
}

.related-home-feature.garage i {
    color: #f59e0b;
}

.related-home-feature.size i {
    color: #7c3aed;
}

.related-home-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: .8rem;
}

.related-home-action {
    min-height: 56px;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    background: #fff;
    color: #344256;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.related-home-action.compare,
.related-home-action.active-compare-action {
    background: linear-gradient(135deg, #1d4f91, #113562);
    border-color: transparent;
    color: #fff;
}

.related-home-action:hover,
.related-home-action:focus-visible,
.related-home-save:hover,
.related-home-save:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.related-home-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #182337;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.related-home-carousel-btn.left {
    left: 0;
}

.related-home-carousel-btn.right {
    right: 0;
}

.related-home-carousel-btn:hover,
.related-home-carousel-btn:focus-visible {
    color: #1d4f91;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.gallery-thumbnail {
    border: 0;
    padding: 0;
    background: transparent;
}

.gallery-thumbnail img {
    filter: brightness(0.95);
}

.gallery-thumbnail.active img {
    filter: brightness(1);
}

.tour-modal-card {
    max-height: none;
}

.tour-modal-card .row {
    min-height: 100%;
}

.tour-modal-form-pane {
    max-height: none;
    overflow: visible;
}

.lg-gallery-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.similar-standard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.similar-standard-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.similar-standard-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.similar-standard-body {
    padding: 1rem;
}

.similar-standard-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.similar-standard-price {
    margin-top: .55rem;
    color: #1d4f91;
    font-size: 1.05rem;
    font-weight: 800;
}

.similar-standard-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .75rem;
    font-size: .72rem;
    color: #526072;
}

@media (max-width: 991.98px) {
    .similar-standard-grid {
        display: flex;
        gap: .85rem;
        overflow-x: auto;
        padding-bottom: .35rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .similar-standard-grid::-webkit-scrollbar {
        display: none;
    }

    .similar-standard-card {
        min-width: 260px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 767.98px) {
    #tourModal .modal-dialog {
        margin: 1rem auto 3rem;
    }

    .property-compare-dock {
        left: .75rem;
        right: .75rem;
        width: auto;
        bottom: .75rem;
        padding: .85rem;
        border-radius: 22px;
    }

    .property-compare-mini {
        grid-template-columns: 54px minmax(0, 1fr) 34px;
    }

    .property-compare-dock__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compare-modal-card {
        width: 100%;
        max-height: calc(100vh - 1.4rem);
        padding: 1rem;
        border-radius: 24px;
    }

    .compare-modal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-modal-header-actions {
        justify-content: space-between;
    }

    .compare-modal-save {
        flex: 1;
    }

    .property-compare-table th,
    .property-compare-table td {
        padding: .85rem .75rem;
    }

    .property-compare-table th {
        width: 110px;
        font-size: .66rem;
    }

    .property-compare-table td img {
        height: 110px;
        border-radius: 14px;
    }

    .gallery-image-label {
        left: .8rem;
        top: .8rem;
        font-size: .64rem;
        padding: .38rem .65rem;
    }

    .gallery-nav-button {
        width: 36px;
        height: 36px;
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .gallery-nav-prev {
        left: .8rem;
    }

    .gallery-nav-next {
        right: .8rem;
    }

    .tour-modal-card {
        border-radius: 24px;
        overflow: visible;
    }

    .tour-modal-form-pane {
        padding: 1rem !important;
        overflow: visible;
    }

    .gallery-modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: .5rem auto;
    }

    .gallery-modal-shell {
        border-radius: 24px;
    }

    .gallery-modal-stage {
        min-height: 52vh;
        padding: 4rem .8rem .7rem;
    }

    .gallery-modal-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-modal-nav-prev {
        left: .5rem;
    }

    .gallery-modal-nav-next {
        right: .5rem;
    }

    .gallery-modal-footer {
        padding: 0 .85rem 1rem;
    }

    .gallery-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: .45rem;
    }

    .related-home-carousel {
        padding: 0;
    }

    .related-home-carousel-btn {
        display: none;
    }

    .related-home-track {
        display: flex;
        gap: .85rem;
        padding-bottom: .35rem;
        -webkit-overflow-scrolling: touch;
    }

    .related-home-card {
        min-width: calc(50vw - .85rem);
        max-width: calc(50vw - .85rem);
        flex: 0 0 auto;
        scroll-snap-align: start;
        border-radius: 20px;
    }

    .related-home-save,
    .related-home-action {
        width: 40px;
        height: 40px;
    }

    .related-home-actions {
        gap: .6rem;
    }

    .related-home-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .45rem .7rem;
    }
}

@media (max-width: 575.98px) {
    .property-header-full {
        padding-top: 4px !important;
        padding-bottom: 10px !important;
    }

    .property-view-container {
        padding-top: 0 !important;
    }

    .related-home-card {
        min-width: calc(50vw - .7rem);
        max-width: calc(50vw - .7rem);
    }

    .related-home-image-wrap {
        padding: .7rem .7rem 0;
    }

    .related-home-save {
        top: .9rem;
        right: .9rem;
        width: 48px;
        height: 48px;
    }

    .related-home-body {
        padding: .82rem .78rem .82rem;
    }

    .related-home-badge {
        top: .95rem;
        left: .95rem;
        font-size: .68rem;
        padding: .34rem .72rem;
    }

    .related-home-thumbs {
        gap: .42rem;
        padding: .58rem .75rem .15rem;
    }

    .related-home-thumb {
        width: 52px;
        height: 40px;
        border-radius: 12px;
    }

    .related-home-price {
        font-size: .98rem;
    }

    .related-home-features {
        gap: .35rem .55rem;
    }

    .related-home-feature {
        font-size: .7rem;
    }

    .related-home-action {
        min-height: 44px;
        border-radius: 15px;
    }

    .property-compare-dock__actions {
        gap: .45rem;
    }

    .property-compare-action {
        min-height: 40px;
        font-size: .76rem;
        border-radius: 12px;
    }

    .compare-modal-overlay {
        padding: .45rem;
    }
}
