/* Microsite vNext compatibility treatment for property details pages. */

.csh-vnext.page-property-detail .property-page-header {
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 2rem) !important;
    background: var(--csh-surface);
    border-color: var(--csh-border) !important;
}

.csh-vnext.page-property-detail .property-page-header .actions {
    display: flex;
    align-items: stretch;
    gap: .55rem !important;
}

.csh-vnext.page-property-detail .property-page-header .actions > a,
.csh-vnext.page-property-detail .property-page-header .actions > .btn,
.csh-vnext.page-property-detail .property-page-header .actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 !important;
    padding: .55rem .85rem !important;
    line-height: 1.15 !important;
    white-space: nowrap;
}

.csh-vnext.page-property-detail .property-hero {
    position: relative;
    height: auto;
    margin-bottom: 0;
    overflow: visible;
    background: var(--csh-surface-muted);
}

.csh-vnext.page-property-detail .property-hero .save-favorite,
.csh-vnext.page-property-detail .property-hero .save-favorite:link,
.csh-vnext.page-property-detail .property-hero .save-favorite:visited,
.csh-vnext.page-property-detail .property-hero .save-favorite:hover,
.csh-vnext.page-property-detail .property-hero .save-favorite:focus,
.csh-vnext.page-property-detail .property-hero .save-favorite:active {
    top: .5rem;
    right: .75rem;
    z-index: 12;
    color: var(--csh-primary);
    text-decoration: none !important;
}

.csh-vnext.page-property-detail .property-hero .save-favorite > div {
    color: var(--csh-primary) !important;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .1);
}

.csh-vnext.page-property-detail .property-hero .save-favorite > .btn-favorite-on,
.csh-vnext.page-property-detail .property-hero .save-favorite > .btn-favorite-on i {
    color: #dc2626 !important;
}

.csh-vnext.page-property-detail .property-hero .hero-ui {
    top: .5rem;
    right: 4.25rem;
}

.csh-vnext.page-property-detail .property-hero #detailsViews {
    position: absolute;
    top: .5rem;
    bottom: auto;
    left: .75rem;
    z-index: 12;
}

.csh-vnext.page-property-detail .property-hero #detailsViews .tag {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: .4rem;
    margin: 0;
    padding: .5rem .7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .5rem;
    background: rgba(10, 15, 22, .86);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1;
    backdrop-filter: blur(5px);
}

.csh-vnext.page-property-detail .property-hero #detailsViews .property-views-text {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.csh-vnext.page-property-detail .property-hero #detailsViews .property-views-text::before {
    content: "\f06e";
    font-family: FontAwesome;
    font-weight: normal;
}

.csh-vnext.page-property-detail .hero-image {
    display: block;
}

.csh-vnext.page-property-detail .hero-thumbnails-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(1400px, calc(100% - 2rem));
    max-width: calc(100% - 2rem);
    margin: .75rem auto 0;
    padding: .45rem;
    transform: none;
    background: rgba(10, 15, 20, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
}

.csh-vnext.page-property-detail .hero-thumbnails {
    max-width: calc(100% - 80px);
    padding: .1rem;
}

.csh-vnext.page-property-detail .hero-thumbnails img {
    flex: 0 0 68px;
    width: 68px;
    height: 58px;
    border: 2px solid transparent;
    border-radius: .45rem;
}

.csh-vnext.page-property-detail .hero-thumbnails img.active-thumb {
    border-color: var(--csh-secondary);
    box-shadow: 0 0 0 2px rgba(var(--csh-secondary-rgb), .28);
}

.csh-vnext.page-property-detail .thumb-scroll {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #ffffff;
    background: rgba(var(--csh-primary-rgb), .9);
}

.csh-vnext.page-property-detail .thumb-scroll:hover {
    background: var(--csh-primary);
}

.csh-vnext.page-property-detail #prop-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .35rem;
    background: var(--csh-surface-muted);
    border: 1px solid var(--csh-border);
    border-radius: .75rem;
}

.csh-vnext.page-property-detail #prop-tab-nav .nav-link,
.csh-vnext.page-property-detail #prop-tab-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .55rem .9rem;
    color: var(--csh-text);
    background: transparent;
    border: 0;
    border-radius: .55rem;
    text-decoration: none;
}

.csh-vnext.page-property-detail #prop-tab-nav .nav-link:hover,
.csh-vnext.page-property-detail #prop-tab-nav a:hover {
    color: var(--csh-primary);
    background: rgba(var(--csh-primary-rgb), .08);
}

.csh-vnext.page-property-detail #prop-tab-nav .nav-link.active,
.csh-vnext.page-property-detail #prop-tab-nav .active > .nav-link,
.csh-vnext.page-property-detail #prop-tab-nav .active > a,
.csh-vnext.page-property-detail #prop-tab-nav a.active {
    color: #ffffff;
    background: var(--csh-primary);
    box-shadow: 0 5px 14px rgba(var(--csh-primary-rgb), .22);
}

/* The legacy stylesheet supplied the dimensions Google Maps requires. */
.csh-vnext.page-property-detail #property-map,
.csh-vnext.page-property-detail .property-detail-map-wrapper {
    position: relative;
    width: 100%;
    height: clamp(340px, 48vw, 520px);
    min-height: 340px;
}

.csh-vnext.page-property-detail #property-detail-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    background: var(--csh-surface-muted);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-property-detail #estimated-payment {
    width: 100%;
    min-width: 0;
}

.csh-vnext.page-property-detail #estimated-payment .row {
    min-width: 0;
    margin-right: -.4rem;
    margin-left: -.4rem;
}

.csh-vnext.page-property-detail #estimated-payment [class*="col-"] {
    min-width: 0;
    padding-right: .4rem;
    padding-left: .4rem;
}

.csh-vnext.page-property-detail #estimated-payment .payment-row-amount {
    row-gap: 1rem;
    margin-top: 1rem;
}

.csh-vnext.page-property-detail #estimated-payment .payment-label {
    margin-bottom: .35rem;
    color: var(--csh-text);
    font-weight: 650;
}

.csh-vnext.page-property-detail #estimated-payment input.form-control,
.csh-vnext.page-property-detail #estimated-payment select#calc_term {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: .55rem .65rem;
    color: var(--csh-text);
    background-color: #ffffff;
    border: 1px solid var(--csh-border);
    border-radius: .5rem;
    line-height: 1.2;
}

.csh-vnext.page-property-detail #estimated-payment .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    width: 100%;
}

.csh-vnext.page-property-detail #estimated-payment .spinner-buttons {
    display: grid;
    grid-template-rows: repeat(2, 22px);
    width: 30px;
}

.csh-vnext.page-property-detail #estimated-payment .spinner-buttons .btn {
    display: grid;
    place-items: center;
    width: 30px;
    min-width: 0;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--csh-primary);
    background: var(--csh-surface-muted);
    border: 1px solid var(--csh-border);
    border-radius: 0;
    font-size: .72rem;
    line-height: 1;
}

.csh-vnext.page-property-detail #estimated-payment .spinner-buttons .btn:first-child {
    border-radius: 0 .5rem 0 0;
}

.csh-vnext.page-property-detail #estimated-payment .spinner-buttons .btn:last-child {
    border-top: 0;
    border-radius: 0 0 .5rem 0;
}

.csh-vnext.page-property-detail #estimated-payment .bootstrap-select:has(> select#calc_term) {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
}

.csh-vnext.page-property-detail #estimated-payment .bootstrap-select > select#calc_term {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    clip: auto !important;
    clip-path: none !important;
}

.csh-vnext.page-property-detail #estimated-payment .bootstrap-select:has(> select#calc_term) > .dropdown-toggle,
.csh-vnext.page-property-detail #estimated-payment .bootstrap-select:has(> select#calc_term) > .dropdown-menu {
    display: none !important;
}

.csh-vnext.page-property-detail #estimated-payment #calc_submit {
    color: #ffffff;
    background: var(--csh-primary);
    border-color: var(--csh-primary);
}

@media (max-width: 767.98px) {
    .csh-vnext.page-property-detail .property-page-header .actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .csh-vnext.page-property-detail .property-page-header .actions > a,
    .csh-vnext.page-property-detail .property-page-header .actions > .btn {
        flex: 1 1 auto;
    }

    .csh-vnext.page-property-detail .property-hero,
    .csh-vnext.page-property-detail .hero-image {
        height: auto;
    }

    .csh-vnext.page-property-detail .hero-image {
        height: min(62vh, 560px);
    }

    .csh-vnext.page-property-detail .hero-thumbnails-wrapper {
        right: auto;
        bottom: auto;
        left: auto;
        width: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
    }

    .csh-vnext.page-property-detail #property-map,
    .csh-vnext.page-property-detail .property-detail-map-wrapper,
    .csh-vnext.page-property-detail #property-detail-map {
        height: 360px;
        min-height: 360px;
    }
}
