:root {
    --g: 12px;
    --header-h: 1px;
}

body {
    background-color: #f5f6f8;
    color: #4b5563 !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial !important;
}

.breadcrumb {
    background-color: transparent;
    padding-left: 0;
}

h1 {
    color: #173761;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial !important;
    font-size: 1.6em !important;
    font-weight: 700 !important;
    line-height: inherit !important;
}

h3,
h4 {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
    line-height: inherit !important;
}

.property-section-title {
    display: block;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    margin-bottom: .5rem;
    margin-top: 0;
}

#main-content,
#main-content .site-content,
#detail-row {
    overflow: visible !important;
    transform: none !important;
}

#main-content p {
    font-size: .875rem !important;
    line-height: 1.4em !important;
    margin-bottom: 15px;
}

#main-content ul {
    font-size: .875rem !important;
    line-height: 1.4em !important;
    list-style: inside;
}

#detail-row {
    align-items: stretch !important;
}

.content-pusher {
    overflow: clip !important;
    transform: none !important;
}

.card-detail {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.sale-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 16px;
}

.sale-summary-main {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.sale-summary-main > div {
    min-width: 0;
    order: 1;
}

.sale-summary-icon {
    align-items: center;
    background: #eaf3ff;
    border-radius: 12px;
    color: #0d6efd;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.2rem;
    height: 42px;
    justify-content: center;
    margin-left: auto;
    order: 2;
    width: 42px;
}

.sale-summary-label {
    color: #6b7280;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.sale-price {
    color: #173761;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.sale-summary-location {
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.35;
    margin-top: 10px;
}

.gallery-frame {
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.equal-gap {
    margin: calc(-1 * var(--g) / 2);
}

.equal-gap > [class^="col"],
.equal-gap > [class*=" col"] {
    padding: calc(var(--g) / 2);
}

.gallery-grid {
    min-height: auto;
}

@media (min-width: 768px) {
    .gallery-grid {
        display: grid;
        gap: var(--g);
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        height: 430px;
        margin: 0;
    }

    .gallery-grid > [class^="col"],
    .gallery-grid > [class*=" col"] {
        flex: initial;
        height: 100%;
        max-width: none;
        padding: 0;
        width: auto;
    }

    .gallery-grid .col-md-5 > .row {
        display: grid;
        gap: var(--g);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        height: 100%;
        margin: 0;
        width: 100%;
    }

    .gallery-grid .col-md-5 > .row > [class^="col"],
    .gallery-grid .col-md-5 > .row > [class*=" col"] {
        flex: initial;
        height: auto;
        max-width: none;
        padding: 0;
        width: auto;
    }
}

.img-wrap {
    border-radius: .5rem;
    cursor: zoom-in;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.img-cover {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.sale-detail-feature-badge {
    align-items: center;
    background: rgba(23, 55, 97, .94);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    color: #fff;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 700;
    gap: 7px;
    left: 14px;
    line-height: 1.2;
    max-width: calc(100% - 28px);
    overflow-wrap: anywhere;
    padding: 7px 12px;
    pointer-events: none;
    position: absolute;
    top: 14px;
    z-index: 3;
}

.img-wrap::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .08));
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .2s ease;
}

.img-wrap:hover::after {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .img-wrap {
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 768px) {
    .half-md {
        height: 50%;
    }
}

.show-all {
    border-radius: 999px;
    bottom: var(--g);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
    font-size: 14px;
    left: var(--g);
    position: absolute;
}

.property-highlight-pills {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    width: 100%;
}

.pill {
    align-items: center;
    background-color: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    color: #173761;
    display: flex;
    font-size: .92rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    min-width: 0;
    padding: 9px 13px 9px 9px;
    text-align: center;
    white-space: normal;
    width: 100%;
}

.pill i {
    align-items: center;
    background: #eaf3ff;
    border-radius: 10px;
    color: #118acb;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.05rem;
    height: 30px;
    justify-content: center;
    margin-right: .55rem;
    width: 30px;
}

.room-detail {
    max-height: 220px;
    overflow: hidden;
    position: relative;
    transition: max-height .35s ease-in-out;
}

.room-detail::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
    bottom: 0;
    content: "";
    height: 56px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transition: opacity .2s ease-in-out;
}

.room-detail.is-open {
    max-height: none;
}

.room-detail.is-open::after {
    opacity: 0;
}

#description-button {
    box-shadow: none !important;
    color: inherit !important;
    outline: none !important;
    text-decoration: none !important;
}

#description-button:hover,
#description-button:focus,
#description-button:active,
#description-button:focus-visible {
    box-shadow: none !important;
    color: inherit !important;
    outline: none !important;
    text-decoration: none !important;
}

.description-toggle.is-hidden {
    display: none !important;
}

.section-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    margin-top: 8px;
}

.badge {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    font-size: 13px;
    font-weight: normal;
    padding: 4px 8px;
}

.property-facts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.property-fact {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    gap: 9px;
    min-width: 0;
    padding: 9px 10px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.property-fact:hover {
    border-color: #dbe6f3;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
    transform: translateY(-1px);
}

.property-fact-icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 9px;
    color: #118acb;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 1rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.property-fact-body {
    min-width: 0;
}

.property-fact-label {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
}

.property-fact-value {
    color: #173761;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.location-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.location-card i {
    color: #118acb;
    font-size: 1.2rem;
    margin-right: .35rem;
}

@media (max-width: 991.98px) {
    .property-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .property-facts {
        gap: 7px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-fact {
        gap: 7px;
        padding: 8px;
    }

    .property-fact-icon {
        flex-basis: 30px;
        height: 30px;
        width: 30px;
    }

    .property-fact-label {
        font-size: .68rem;
    }

    .property-fact-value {
        font-size: .82rem;
    }
}

@media (min-width: 768px) {
    .rez-col {
        align-self: flex-start;
        position: -webkit-sticky;
        position: sticky;
        top: var(--header-h);
        z-index: 1010;
    }
}

.advisor-card img {
    border-radius: 14px;
    display: block;
    height: auto;
    margin: 0 auto 12px;
    max-width: 180px;
    width: 100%;
}

.advisor-role {
    color: #118acb;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
    text-transform: uppercase;
}

.advisor-license {
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.35;
    text-align: center;
}

.advisor-actions .btn {
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
}

.advisor-actions .btn:hover,
.advisor-actions .btn:focus {
    color: #fff;
}

.advisor-whatsapp {
    background: linear-gradient(90deg, #25d366, #075e54);
}

.advisor-phone {
    background: linear-gradient(90deg, #f6c65b, #d99105);
}

.advisor-contact-title {
    align-items: center;
    border-top: 1px solid #edf0f4;
    color: #173761;
    display: flex;
    font-size: 1rem !important;
    justify-content: center;
    margin: 16px 0 10px;
    padding-top: 14px;
}

.advisor-contact-title i {
    color: #118acb;
    font-size: 1rem;
    margin-right: .35rem;
}

.contact-form .form-control {
    background-color: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    box-shadow: none;
    font-size: .875rem;
    min-height: 44px;
}

.contact-form textarea.form-control {
    min-height: 120px;
}

.contact-submit {
    background: linear-gradient(90deg, #3d5ca2, #2c4377);
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    width: 100%;
}

.iti {
    display: block;
    width: 100%;
}

.iti__country-container {
    z-index: 4;
}

@media (max-width: 767.98px) {
    .property-highlight-pills {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sale-summary-card {
        margin-bottom: 12px;
    }

    .sale-summary-main {
        align-items: flex-start;
    }

    .show-all {
        left: 10px;
    }
}

@media (max-width: 575.98px) {
    .property-highlight-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-highlight-pills .pill {
        font-size: .82rem;
        min-height: 44px;
        padding: 8px;
    }

    .property-highlight-pills .pill i {
        height: 28px;
        margin-right: .4rem;
        width: 28px;
    }
}

.gtm-noscript-frame {
    display: none;
    visibility: hidden;
}

.contact-message-success {
    color: green;
}

.contact-message-error {
    color: red;
}
