.property-detail-page {
/*    padding: 1.5rem !important;
    border-radius: 34px;
    background: linear-gradient(180deg, #f4f8fd 0%, #edf3f9 100%); */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.property-detail-page .breadcrumb {
    margin-bottom: 1.4rem !important;
}

.property-detail-page .carousel-inner.rounded {
    border-radius: 28px !important;
    box-shadow: 0 24px 48px rgba(14, 31, 57, 0.12);
}

.property-detail-media-card .card-body {
    padding: 1rem;
}

.property-detail-media-card #propertyCarousel {
    margin: -1rem -1rem 0;
}

.property-detail-image,
.property-detail-placeholder {
    border-radius: 28px;
}

.property-detail-carousel-frame {
    position: relative;
}

.property-carousel-split-nav {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
}

.property-carousel-hit-area {
    flex: 1 1 50%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.property-carousel-hit-area--prev {
    border-radius: 28px 0 0 28px;
}

.property-carousel-hit-area--next {
    border-radius: 0 28px 28px 0;
}

.property-carousel-open {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    border-radius: 999px !important;
    padding: 0.45rem 0.8rem;
    background: rgba(16, 33, 58, 0.82) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 24px rgba(10, 20, 38, 0.2);
}

.property-carousel-open:hover,
.property-carousel-open:focus {
    background: rgba(16, 33, 58, 0.92) !important;
}

.property-gallery-carousel {
    position: relative;
}

#imageGalleryModal .modal-content,
#imageGalleryModal .modal-body {
    background: #0b1018;
}

.property-gallery-carousel .carousel-inner {
    height: 100%;
}

.property-gallery-carousel .carousel-item > .d-flex {
    min-height: 100%;
    padding: 1rem;
}

.property-gallery-carousel .carousel-item img {
    max-height: calc(100vh - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
}

.property-gallery-carousel .modal-header,
#imageGalleryModal .modal-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding: calc(env(safe-area-inset-top, 0px) + 0.35rem) 0 0;
    pointer-events: none;
}

#imageGalleryModal .btn-close {
    pointer-events: auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 999px;
    background-color: rgba(9, 15, 26, 0.72);
    background-position: center;
    background-size: 0.9rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    opacity: 1;
}

#imageGalleryModal .btn-close:hover,
#imageGalleryModal .btn-close:focus {
    background-color: rgba(9, 15, 26, 0.88);
}

.property-gallery-split-nav {
    z-index: 1;
}

.property-gallery-split-nav .property-carousel-hit-area--prev,
.property-gallery-split-nav .property-carousel-hit-area--next {
    border-radius: 0;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: clamp(56px, 7vw, 84px);
    opacity: 1;
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    display: block;
    width: clamp(2.5rem, 4vw, 3rem);
    height: clamp(2.5rem, 4vw, 3rem);
    background-color: rgba(0, 0, 0, 0.5);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 42%;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

#galleryCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarousel .carousel-control-prev:focus .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next:hover .carousel-control-next-icon,
#galleryCarousel .carousel-control-next:focus .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 767.98px) {
    .property-gallery-carousel .carousel-item > .d-flex {
        padding: 0.35rem;
    }

    .property-gallery-carousel .carousel-item img {
        max-height: calc(100vh - 0.7rem) !important;
        max-width: calc(100vw - 0.7rem) !important;
    }

    #imageGalleryModal .modal-header {
        padding: calc(env(safe-area-inset-top, 0px) + 0.35rem) 0.35rem 0;
    }

    #imageGalleryModal .btn-close {
        width: 2.5rem;
        height: 2.5rem;
        background-size: 0.82rem;
    }

    #galleryCarousel .carousel-control-prev,
    #galleryCarousel .carousel-control-next {
        width: 56px;
    }

    #galleryCarousel .carousel-control-prev-icon,
    #galleryCarousel .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
        background-size: 40%;
    }
}

@media (max-width: 767.98px) and (max-height: 760px) {
    .property-gallery-carousel .carousel-item > .d-flex {
        padding: 0.2rem;
    }

    .property-gallery-carousel .carousel-item img {
        max-height: calc(100vh - 0.4rem) !important;
        max-width: calc(100vw - 0.4rem) !important;
    }

    #imageGalleryModal .modal-header {
        top: 20px;
        left: 20px;
        right: 20px;
        padding: calc(env(safe-area-inset-top, 0px) + 0.2rem) 0 0;
    }

    #imageGalleryModal .btn-close {
        width: 2.25rem;
        height: 2.25rem;
        background-size: 0.75rem;
    }

    #galleryCarousel .carousel-control-prev,
    #galleryCarousel .carousel-control-next {
        width: 48px;
    }

    #galleryCarousel .carousel-control-prev-icon,
    #galleryCarousel .carousel-control-next-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.property-surface-card {
    border: 1px solid #dfe8f3;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(14, 31, 57, 0.08);
}

.property-surface-card:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(14, 31, 57, 0.08);
}

.property-surface-card .card-body {
    padding: 1.3rem;
}

.property-detail-sidebar-card .card-body {
    padding: 1.35rem;
}

.property-detail-address {
    margin-bottom: 0.95rem !important;
    color: #17314f !important;
    font-size: 0.95rem;
    line-height: 1.35;
}

.property-status-pill {
    border-radius: 999px !important;
    background: #6b7a8c !important;
}

.property-status-pill--under-contract {
    background: #a15c00 !important;
}

.property-status-pill--sold {
    background: #198754 !important;
}

.property-detail-sidebar-card .property-pricing {
    display: grid;
    gap: 0.7rem;
}

.property-detail-sidebar-card .price-value {
    margin-bottom: 0 !important;
    color: #10213a;
    font-size: 1.6rem;
    line-height: 1.15;
}

.property-search-band {
    max-width: 100%;
}

.property-detail-meta-band {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.property-detail-sidebar-card .search-band-card__value {
    padding: 0.5rem 0.5rem;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    border-radius: 16px;
}

.property-detail-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.property-detail-feature-pills .feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: #f2f7fd;
    color: #24405f;
    font-weight: 600;
}

.property-detail-feature-pills .feature-item i {
    margin-right: 0;
}

.property-detail-meta-row {
    margin-bottom: 0.7rem !important;
    padding: 0.72rem 0.9rem;
    border-radius: 16px;
    background: #f7fbff;
    border: 1px solid #e0eaf5;
}

.property-detail-meta-row:last-of-type {
    margin-bottom: 1.2rem !important;
}

.property-detail-meta-row .d-flex {
    align-items: center;
    gap: 1rem;
}

.property-detail-meta-row span {
    color: #60748c;
}

.property-detail-meta-row strong {
    color: #142846;
}

.property-detail-page .card-title {
    margin-bottom: 0.75rem;
    color: #10213a;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.2;
}

.property-detail-page h2.h4,
.property-detail-page h2.card-title,
.property-detail-page .card-body > h2 {
    color: #10213a;
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 700;
}

.property-detail-page .card-text,
.property-detail-page p,
.property-detail-page td,
.property-detail-page small,
.property-detail-page li {
    color: rgba(33, 37, 41, 0.75);
}

.property-detail-page .table {
    margin-bottom: 0;
}

.property-detail-page .table th,
.property-detail-page .table td {
    padding: 0.8rem 0;
    border-bottom-color: #e5edf7;
    color: #1d3654;
}

.property-detail-page .table th {
    color: #61738b;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.property-detail-map {
    border-radius: 22px !important;
    box-shadow: inset 0 0 0 1px rgba(222, 232, 243, 0.65);
}

.property-thumbnails {
    gap: 0.6rem !important;
    margin-top: 0.9rem !important;
    scroll-snap-type: x proximity;
}

.thumbnail-item {
    flex: 0 0 clamp(112px, 18vw, 148px);
    aspect-ratio: 4 / 3;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #d7e2ef;
    box-shadow: 0 4px 10px rgba(14, 31, 57, 0.06);
    scroll-snap-align: start;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.thumbnail-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.thumbnail-item.active {
    border-color: #17314f;
    box-shadow: 0 0 0 1px #17314f, 0 10px 22px rgba(14, 31, 57, 0.14);
    transform: translateY(-1px);
}

@media (min-width: 600px) and (max-width: 991.98px) {
    .property-thumbnails {
        gap: 0.5rem !important;
    }

    .thumbnail-item {
        flex-basis: clamp(88px, 11vw, 108px);
    }
}

.property-detail-page .btn,
.property-detail-page .form-control,
.property-detail-page .form-select {
    border-radius: 14px;
}

.property-detail-page .btn-primary {
    box-shadow: 0 12px 24px rgba(12, 49, 107, 0.16);
}

.property-detail-sidebar-card .btn {
    min-height: 46px;
    font-size: 0.96rem;
}

.property-finance-widget .card-body {
    padding: 1.15rem 1.1rem;
}

.property-finance-widget__header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.property-finance-widget__icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f2f6fb;
    color: #4f647c;
    border: 1px solid #dbe5f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.property-finance-widget__icon i {
    font-size: 1.2rem;
}

.property-finance-widget__title {
    color: #1a2f4f;
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 700;
}

.property-finance-widget__text {
    color: #60748c;
    font-size: 0.92rem;
    line-height: 1.45;
}

.property-finance-widget__pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.property-finance-widget__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.8rem;
    padding: 0.44rem 0.86rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f2f6fc 0%, #e9f0f8 100%);
    border: 1px solid #d6e0ee;
    color: #526f92;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.property-finance-widget__pill i {
    color: #4a7fd5;
    font-size: 0.86rem;
}

.property-finance-widget__meta {
    color: #7d8ea4;
    font-size: 0.8rem;
    text-align: center;
}

.property-finance-widget__button {
    min-height: 48px;
    border-radius: 14px !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(15, 24, 36, 0.16);
}

.property-finance-widget__button:hover,
.property-finance-widget__button:focus {
    box-shadow: 0 14px 28px rgba(15, 24, 36, 0.2);
}

.property-finance-widget .alert {
    border-radius: 14px;
    font-size: 0.9rem;
}

.property-detail-page .btn-primary:hover,
.property-detail-page .btn-primary:focus {
    box-shadow: 0 14px 28px rgba(12, 49, 107, 0.2);
}

#contactAgentModal .contact-agent-action-row,
#financeHelpModal .contact-agent-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

#contactAgentModal .contact-agent-action-button,
#financeHelpModal .contact-agent-action-button {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #d7e3f0;
    background: #f8fbff;
    color: #17314f;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#contactAgentModal .contact-agent-action-button:hover,
#contactAgentModal .contact-agent-action-button:focus,
#financeHelpModal .contact-agent-action-button:hover,
#financeHelpModal .contact-agent-action-button:focus {
    background: #ffffff;
    border-color: #c6d8eb;
    color: #10213a;
    box-shadow: 0 10px 20px rgba(14, 31, 57, 0.08);
    transform: translateY(-1px);
}

#contactAgentModal .contact-agent-action-icon,
#financeHelpModal .contact-agent-action-icon {
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e9f1fa;
    color: #355f8d;
    font-size: 0.82rem;
}

#contactAgentModal .contact-agent-action-icon--phone,
#financeHelpModal .contact-agent-action-icon--phone {
    background: #e7f7ee;
    color: #1c8f4d;
}

#contactAgentModal .contact-agent-action-label,
#financeHelpModal .contact-agent-action-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

#contactAgentModal .contact-agent-phone-link,
#financeHelpModal .contact-agent-phone-link {
    background: #f5fcf7;
    border-color: #ccebd9;
}

#contactAgentModal .contact-agent-phone-link:hover,
#contactAgentModal .contact-agent-phone-link:focus,
#financeHelpModal .contact-agent-phone-link:hover,
#financeHelpModal .contact-agent-phone-link:focus {
    background: #ffffff;
    border-color: #b9dfc8;
}

@media (max-width: 575.98px) {
    #contactAgentModal .contact-agent-action-row,
    #financeHelpModal .contact-agent-action-row {
        gap: 0.6rem;
    }

    #contactAgentModal .contact-agent-action-button,
    #financeHelpModal .contact-agent-action-button {
        flex-basis: 100%;
        font-size: 0.8rem;
        padding: 0.65rem 0.8rem;
    }
}

#contactAgentModal .modal-content,
#financeHelpModal .modal-content {
    border-radius: 24px;
    overflow: hidden;
}

#contactAgentModal .property-finance-widget {
    border: 1px solid #174d83;
    background: #165894;
    box-shadow: 0 22px 40px rgba(11, 33, 61, 0.28);
}

#contactAgentModal .property-finance-widget .card-body {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
}

#contactAgentModal .property-finance-widget__icon {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#contactAgentModal .property-finance-widget__title {
    color: #ffffff;
}

#contactAgentModal .property-finance-widget__text,
#contactAgentModal .property-finance-widget__meta,
#contactAgentModal .property-finance-widget .form-label {
    color: rgba(241, 247, 255, 0.9);
}

#contactAgentModal .property-finance-widget__pill {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f5f9ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#contactAgentModal .property-finance-widget__pill i {
    color: #d8ebff;
}

#contactAgentModal .property-finance-widget .form-control {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.6);
    color: #14385e;
}

#contactAgentModal .property-finance-widget .form-control:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(221, 238, 255, 0.28);
}

#contactAgentModal .property-finance-widget__button {
    background: linear-gradient(180deg, #53cf88 0%, #249b59 100%);
    border-color: #249b59;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(10, 67, 36, 0.28);
}

#contactAgentModal .property-finance-widget__button:hover,
#contactAgentModal .property-finance-widget__button:focus {
    background: linear-gradient(180deg, #5ddd93 0%, #2ca963 100%);
    border-color: #2ca963;
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(10, 67, 36, 0.32);
}

#contactAgentModal .property-finance-widget .alert {
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    color: #123252;
}

.contact-success-followup {
    display: grid;
    gap: 1rem;
}

.contact-success-panel {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f1fbf5 0%, #e5f6ec 100%);
    border: 1px solid #b9dfc8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.contact-success-icon {
    width: 3.1rem;
    height: 3.1rem;
    display: flex;
    flex: 0 0 3.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #1ea45f 0%, #15824b 100%);
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 14px 28px rgba(21, 115, 71, 0.2);
}

.contact-success-title {
    margin: 0;
    color: #123524;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    line-height: 1.15;
}

.finance-followup-card {
    padding: 1.3rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #1d4f80 0%, #245f96 100%);
    color: #ffffff;
    border: 1px solid rgba(167, 208, 248, 0.22);
    box-shadow: 0 18px 32px rgba(11, 29, 48, 0.22);
}

.finance-followup-card h5 {
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
}

.finance-followup-card p {
    color: rgba(244, 249, 255, 0.92);
    font-size: 1rem;
    line-height: 1.45;
}

.finance-followup-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(214, 234, 255, 0.18);
    color: #eef7ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finance-followup-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.finance-followup-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

#financeFollowupYes {
    background: linear-gradient(180deg, #49c27d 0%, #259c58 100%);
    border-color: #259c58;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(20, 122, 64, 0.28);
}

#financeFollowupYes:hover,
#financeFollowupYes:focus {
    background: linear-gradient(180deg, #55ce88 0%, #2ba962 100%);
    border-color: #2ba962;
    color: #ffffff;
}

#financeFollowupNo {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 238, 252, 0.48);
    color: #eef6ff;
    box-shadow: none;
}

.finance-followup-card .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 238, 252, 0.48);
    color: #eef6ff;
}

.finance-followup-card .btn-outline-secondary:hover,
.finance-followup-card .btn-outline-secondary:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(235, 243, 255, 0.64);
    color: #ffffff;
}

.finance-followup-card .alert {
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    color: #10213a;
}

.property-detail-page .other-properties-grid .card {
    border-radius: 24px;
}

.other-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.related-property-card {
    border: 1px solid #dfe8f3 !important;
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(14, 31, 57, 0.08);
    background: #ffffff;
}

.related-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 48px rgba(14, 31, 57, 0.12) !important;
}

.related-property-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, #e7eff8 0%, #dce7f4 100%);
}

.related-property-image,
.related-property-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-property-placeholder {
    min-height: 100%;
}

.related-property-card .card-body {
    padding: 1.35rem;
}

.related-property-title h4 {
    color: #10213a;
    font-size: 1.5rem;
    line-height: 1.15;
}

.related-property-address h6 {
    color: #1a3555;
    font-size: 1rem;
    line-height: 1.4;
}

.related-property-pricing .search-band-card {
    max-width: min(100%, 320px);
}

.related-property-pricing .search-band-card__value {
    padding: 0.52rem 0.7rem;
    border-radius: 16px;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(13, 46, 94, 0.1);
}

.related-property-pricing .search-band-card__label {
    font-size: 0.78rem;
}

.related-property-pricing .search-band-card__confidence {
    font-size: 0.8rem;
}

.related-property-card .property-display-price h6 {
    color: #5b7089 !important;
    font-size: 1rem;
    font-weight: 600 !important;
}

.related-property-card .property-features .d-flex {
    gap: 0.65rem !important;
}

.related-property-card .feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: #f2f7fd;
    color: #24405f;
    font-weight: 600;
}

.related-property-card .feature-item i {
    margin-right: 0;
}

@media (max-width: 991.98px) {
    .property-detail-page {
        padding: 1.1rem !important;
        border-radius: 28px;
    }

    .property-surface-card,
    .property-detail-image,
    .property-detail-placeholder,
    .property-detail-page .carousel-inner.rounded {
        border-radius: 24px !important;
    }

    .property-surface-card .card-body,
    .property-detail-sidebar-card .card-body {
        padding: 1.1rem;
    }

    .property-finance-widget .card-body {
        padding: 1rem;
    }

    .property-detail-media-card .card-body {
        padding: 0.85rem;
    }

    .property-detail-media-card #propertyCarousel {
        margin: -0.85rem -0.85rem 0;
    }


    .property-carousel-open {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.38rem 0.7rem;
    }

    .finance-followup-card,
    .contact-success-panel {
        padding: 1rem;
    }

    .finance-followup-actions {
        gap: 0.6rem;
    }

    .finance-followup-actions .btn {
        font-size: 0.95rem;
        padding-inline: 0.75rem;
    }

    .contact-success-panel {
        gap: 0.8rem;
    }

    .contact-success-title {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .property-detail-page {
        padding: 0.5rem !important;
        border-radius: 24px;
    }

    .property-thumbnails {
        gap: 0.45rem !important;
    }

    .thumbnail-item {
        flex: 0 0 clamp(84px, 24vw, 102px);
        width: clamp(84px, 24vw, 102px);
    }

    .thumbnail-item img {
        aspect-ratio: 4 / 3;
    }

    .property-detail-sidebar-card .price-value {
        font-size: 1.05rem;
    }

    .property-detail-page h2.h4,
    .property-detail-page h2.card-title,
    .property-detail-page .card-body > h2 {
        font-size: 1.2rem;
    }

    .property-detail-sidebar-card .search-band-card__value {
        font-size: 0.96rem;
        padding: 0.5rem 0.5rem;
    }

    .property-detail-sidebar-card .search-band-card__label {
        font-size: 0.76rem;
    }

    .property-detail-sidebar-card .search-band-card__confidence {
        font-size: 0.78rem;
    }

    .property-detail-meta-band {
        gap: 0.55rem;
    }

    .property-detail-feature-pills {
        gap: 0.4rem;
    }

    .property-detail-feature-pills .feature-item {
        gap: 0.3rem;
        padding: 0.34rem 0.48rem;
        font-size: 0.72rem;
        line-height: 1.05;
        box-sizing: border-box;
    }

    .property-detail-feature-pills .feature-item i {
        width: 0.95rem;
        flex: 0 0 0.95rem;
        text-align: center;
        font-size: 0.74rem;
    }

    .property-detail-meta-row {
        padding: 0.65rem 0.8rem;
    }

    .property-finance-widget__header {
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .property-finance-widget__icon {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
        border-radius: 14px;
    }

    .property-finance-widget__title {
        font-size: 1.08rem;
    }

    .property-finance-widget__text {
        font-size: 0.88rem;
    }

    .property-finance-widget__pill-row {
        gap: 0.4rem;
    }

    .property-finance-widget__pill {
        min-height: 2.5rem;
        font-size: 0.74rem;
        padding: 0.38rem 0.72rem;
    }

    .property-finance-widget__button {
        min-height: 46px;
        font-size: 0.95rem;
    }
}

@media (min-width: 390px) and (max-width: 767.98px) {
    .property-detail-meta-band {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .property-detail-meta-band .property-search-band {
        flex: 0 0 160px;
        min-width: 160px;
        margin-top: 0 !important;
    }

    .property-detail-meta-band .search-band-card {
        min-width: 160px;
        max-width: 160px;
    }

    .property-detail-meta-band .property-detail-feature-pills {
        flex: 1 1 0;
        min-width: 0;
        align-content: flex-start;
    }
}
