/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

.btn_4.learn-more {
    width: 205px;
}

.btn_4.learn-more .circle {
    z-index: 1;
}

.btn_4.learn-more .circle .icon.arrow {
    left: 0.575rem;
}

.btn_4.learn-more:hover .circle .icon.arrow {
    transform: translate(0.35rem, 0);
}

.btn_4.learn-more .button-text {
    left: 34px;
    right: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem 0.75rem 2.4rem;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.video-card--region {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #f3ede5 0%, #ffffff 100%);
    box-shadow: 0 20px 60px rgba(34, 34, 34, 0.14);
    padding: 14px;
}

.video-card__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.video-card__media video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.video-card--region .plyr {
    border-radius: 18px;
    overflow: hidden;
    --plyr-color-main: #b88a52;
    --plyr-video-control-color: #ffffff;
    --plyr-menu-background: rgba(24, 24, 24, 0.92);
    --plyr-menu-color: #ffffff;
    --plyr-tooltip-background: rgba(24, 24, 24, 0.92);
}

.video-card--region .plyr--video {
    background: #000;
}

.video-card--region .plyr__control--overlaid {
    background: rgba(184, 138, 82, 0.9);
    border: 0;
}

.video-card--region .plyr__control--overlaid:hover {
    background: #b88a52;
}

.beach-gallery-cta {
    margin: 24px 0 0;
}

.beach-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #a9d8d4;
    border-radius: 999px;
    background: #e9f7f5;
    color: #285f63;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(84, 164, 170, 0.16);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.beach-gallery-link i {
    color: #d79b72;
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s ease;
}

.beach-gallery-link:hover,
.beach-gallery-link:focus-visible {
    border-color: #8fcac5;
    background: #d7f0ed;
    color: #1f5357;
}

.beach-gallery-link:hover i,
.beach-gallery-link:focus-visible i {
    color: #c78660;
}

.beach-gallery-link--overlay {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(31, 83, 87, 0.18);
}

.beach-gallery-link--overlay i {
    font-size: 19px;
}

/* Cleaner typography for the first home intro section */
body[data-page="home"] #first_section .intro {
    color: #333;
    max-width: 760px;
}

body[data-page="home"] #first_section .intro .title small {
    letter-spacing: 0.08em;
    font-size: 11px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

body[data-page="home"] #first_section .intro .title h2 {
    font-size: clamp(1.95rem, 3.1vw, 2.55rem);
    margin-bottom: 18px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

body[data-page="home"] #first_section .intro p,
body[data-page="home"] #first_section .intro p.lead,
body[data-page="home"] #first_section .intro .intro-signature {
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: #3f3f3f;
    margin-bottom: 12px;
}

body[data-page="home"] #first_section .intro .intro-signature {
    display: block;
    margin-top: 10px;
    margin-bottom: 0;
    color: #3f3f3f;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Readability helpers: short scan-friendly lists without changing the site structure */
.readable-checklist {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    color: #3f3f3f;
}

.readable-checklist li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 28px;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 400;
}

.readable-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #978263;
    box-shadow: 0 0 0 5px rgba(151, 130, 99, 0.14);
}

.section-summary-list {
    max-width: 720px;
    margin-top: 18px;
}

.apartment-readable-list {
    margin-top: -2px;
    margin-bottom: 22px;
}

.apartment-readable-list li {
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.box_facilities h3 {
    line-height: 1.25;
}

.box_facilities .facility-icon-img {
    display: block;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.box_facilities p {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    color: #555;
}

@media (max-width: 991px) {
    .video-card--region {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .parallax_section_1 {
        height: auto;
        min-height: 0;
    }

    .parallax_section_1 .wrapper {
        position: relative;
        min-height: 0;
        padding: 50px 0;
    }

    .parallax_section_1 .title h2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .carousel_testimonials .owl-stage-outer {
        overflow: visible;
    }

    .margin_120_95 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .bg_white .add_bottom_90 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 18px;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .bg_white .add_bottom_90 > [class*="col-"] {
        width: 100%;
    }

    .bg_white .add_bottom_90 .title {
        margin-bottom: 0;
    }

    .video-card--region {
        border-radius: 20px;
        padding: 10px;
        box-shadow: 0 14px 35px rgba(34, 34, 34, 0.14);
    }

    .video-card--region.mb-4 {
        margin-bottom: 0 !important;
    }

    .beach-gallery-cta {
        margin-top: 0;
        margin-bottom: 0;
    }

    .beach-gallery-link {
        width: auto;
        max-width: 100%;
        min-height: 42px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .beach-gallery-link--overlay {
        right: 18px;
        bottom: 18px;
        max-width: calc(100% - 24px);
        min-height: 34px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .beach-gallery-link--overlay i {
        font-size: 17px;
    }

    .video-card__media,
    .video-card--region .plyr {
        border-radius: 14px;
    }

    .video-card__media video {
        aspect-ratio: 4 / 3;
    }

    .bg_white .container.margin_120_95 {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .box_overlay {
        padding: 24px 20px;
        min-height: 0;
    }

    .pic {
        margin-bottom: 18px;
    }

    .pic figure {
        width: 70px;
        height: 70px;
    }

    .pic figure img {
        width: 70px;
    }

    .pic h4 {
        font-size: 14px;
        line-height: 1.25;
    }

    .pic h4 small {
        font-size: 12px;
        line-height: 1.25;
    }

    .comment {
        font-size: 16px;
        line-height: 1.45;
    }
}

@media (min-width: 768px) {
    .box_overlay {
        padding-left: 290px;
    }

    .pic {
        width: 215px;
    }

    .pic h4 {
        width: 120px;
        line-height: 1.25;
    }

    .pic h4 small {
        line-height: 1.25;
    }
}

@media (min-width: 992px) {
    .box_overlay {
        padding-left: 340px;
    }

    .pic {
        width: 265px;
    }

    .pic h4 {
        width: 170px;
    }
}

/* Mobile contact page overflow/wrapping fixes */
body[data-page="contact"] {
    overflow-x: hidden;
}

body[data-page="contact"] main,
body[data-page="contact"] .map_contact {
    max-width: 100%;
    overflow-x: hidden;
}

body[data-page="contact"] .contact_info,
body[data-page="contact"] .contact_info * {
    box-sizing: border-box;
}

body[data-page="contact"] .contact_info {
    width: 100%;
    max-width: 100%;
}

body[data-page="contact"] .contact_info ul li,
body[data-page="contact"] .contact_info ul li p,
body[data-page="contact"] .contact_info ul li div,
body[data-page="contact"] .contact_info ul li a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

body[data-page="contact"] .contact_info ul li p {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    body[data-page="contact"] .container.margin_120_95 {
        padding-left: 12px;
        padding-right: 12px;
    }

    body[data-page="contact"] .row {
        margin-left: 0;
        margin-right: 0;
    }

    body[data-page="contact"] .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    body[data-page="contact"] .contact_info {
        padding: 26px 20px 18px;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    body[data-page="contact"] .contact_info {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Site-wide mobile text overflow/wrapping fixes */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
iframe {
    max-width: 100%;
}

main,
section {
    max-width: 100%;
}

/* Keep content comfortably aligned inside Bootstrap containers */
.container {
    padding-left: 24px;
    padding-right: 24px;
}

body[data-page="home"] #first_section .intro,
.title p,
.box_facilities p,
.row_list_version_1 .box_item_info p {
    line-height: 1.75;
}

.section-summary {
    max-width: 680px;
    margin: 12px 0 0;
    color: #555;
    font-size: 1rem;
}

body[data-page="home"] #apartamentos {
    max-width: 1140px;
}

body[data-page="home"] #apartamentos .title {
    margin-bottom: 38px !important;
}

.home-apartment-list .row_list_version_1:last-child {
    margin-bottom: 0;
}

.home-apartment-list .box_item_footer {
    clear: both;
}

.home-apartment-list .box_item_footer .btn_4.learn-more {
    width: 190px;
}

.home-apartment-list .box_item_footer .btn_4.learn-more .button-text {
    left: 30px;
}

.apartment-gallery-popup[hidden] {
    display: none !important;
}

.apartment-gallery-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: var(--apartment-overlay-height, 100svh);
    padding: 96px 20px 20px;
    box-sizing: border-box;
}

body.apartment-gallery-popup-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.apartment-gallery-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.72);
}

.apartment-gallery-popup__dialog {
    position: relative;
    width: min(1280px, 100%);
    max-height: calc(100vh - 116px);
    max-height: calc(var(--apartment-overlay-height, 100svh) - 116px);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.apartment-gallery-popup__body {
    max-height: calc(100vh - 116px);
    max-height: calc(var(--apartment-overlay-height, 100svh) - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 42px 42px 28px;
}

.apartment-gallery-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #978263;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.apartment-gallery-popup__close:hover,
.apartment-gallery-popup__close:focus-visible {
    background: #7d6a4d;
    transform: translateY(-1px);
}

.apartment-gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.apartment-gallery-description {
    max-width: 760px;
    margin: 10px auto 0;
    color: #555;
    font-size: 14px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.apartment-gallery-filter__btn {
    border: 1px solid rgba(151, 130, 99, 0.4);
    border-radius: 999px;
    background: #fff;
    color: #333;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.apartment-gallery-filter__btn:hover,
.apartment-gallery-filter__btn.active {
    border-color: #978263;
    background: #978263;
    color: #fff;
}

.apartment-gallery-filter__btn:focus-visible {
    outline: 3px solid rgba(151, 130, 99, 0.25);
    outline-offset: 2px;
}

.apartment-gallery-popup .item-img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.apartment-gallery-popup .item-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    background: #f3f1ed;
}

.apartment-image-viewer[hidden] {
    display: none !important;
}

.apartment-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: var(--apartment-overlay-height, 100svh);
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    box-sizing: border-box;
    overflow: hidden;
}

body.apartment-image-viewer-open > header,
body.apartment-image-viewer-open [data-include="includes/header.html"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.apartment-image-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.9);
}

.apartment-image-viewer__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(1380px, 100%);
    height: min(860px, calc(100vh - 36px));
    height: min(860px, calc(100svh - 36px));
    height: min(860px, calc(var(--apartment-overlay-height, 100svh) - 36px));
    max-height: 100%;
    min-height: 0;
}

.apartment-image-viewer__main {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.apartment-image-viewer__image-wrap {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
}

.apartment-image-viewer__image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.apartment-image-viewer__info {
    display: none;
}

.apartment-image-viewer__counter {
    display: inline-flex;
    margin-bottom: 4px;
    color: #d8c7aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.apartment-image-viewer__info h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
}

.apartment-image-viewer__info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.apartment-image-viewer__index {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px;
}

.apartment-image-viewer__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    white-space: nowrap;
}

.apartment-image-viewer__summary strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.apartment-image-viewer__summary > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.apartment-image-viewer__bottom-nav {
    display: none;
}

.apartment-image-viewer__category-title,
.apartment-image-viewer__thumb-title {
    display: none;
}

.apartment-image-viewer__thumb-title {
    display: none;
}

.apartment-image-viewer__categories {
    display: flex;
    gap: 6px;
    margin: 0 0 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.apartment-image-viewer__category {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    transition: all 0.2s ease;
}

.apartment-image-viewer__category span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 19px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
}

.apartment-image-viewer__category:hover,
.apartment-image-viewer__category.active {
    border-color: #978263;
    background: #978263;
    color: #fff;
}

.apartment-image-viewer__category:hover span,
.apartment-image-viewer__category.active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.apartment-image-viewer__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.apartment-image-viewer__thumb {
    flex: 0 0 76px;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    height: 54px;
    transition: all 0.2s ease;
}

.apartment-image-viewer__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

.apartment-image-viewer__thumb span {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.apartment-image-viewer__thumb:hover,
.apartment-image-viewer__thumb.active {
    box-shadow: inset 0 0 0 2px rgba(151, 130, 99, 0.85);
    transform: translateY(-1px);
}

.apartment-image-viewer__thumb:hover img,
.apartment-image-viewer__thumb.active img {
    opacity: 0.9;
}

.apartment-image-viewer__close,
.apartment-image-viewer__nav {
    border: 0;
    border-radius: 50%;
    background: rgba(151, 130, 99, 0.95);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.apartment-image-viewer__close:hover,
.apartment-image-viewer__close:focus-visible,
.apartment-image-viewer__nav:hover,
.apartment-image-viewer__nav:focus-visible {
    background: #7d6a4d;
    transform: translateY(-1px);
}

.apartment-image-viewer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
}

.apartment-image-viewer__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
}

.apartment-image-viewer__nav--prev {
    left: 12px;
}

.apartment-image-viewer__nav--next {
    right: 12px;
}

body[data-page="other-pages"] .row_list_version_1 {
    margin-bottom: 40px;
}

body[data-page="other-pages"] #first_section {
    max-width: 1140px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a {
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .section-summary {
        max-width: 100%;
        font-size: 15px;
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    body[data-page="home"] #apartamentos {
        max-width: 100%;
    }

    body[data-page="home"] #apartamentos .title {
        margin-bottom: 26px !important;
    }

    .home-apartment-list.add_bottom_90 {
        padding-bottom: 0;
    }

    .home-apartment-list .row_list_version_1 {
        margin-bottom: 44px;
    }

    .apartment-gallery-popup {
        padding: 86px 10px 10px;
    }

    .apartment-gallery-popup__dialog,
    .apartment-gallery-popup__body {
        max-height: calc(100vh - 96px);
        max-height: calc(var(--apartment-overlay-height, 100svh) - 96px);
    }

    .apartment-gallery-popup__body {
        padding: 54px 16px 18px;
    }

    .apartment-gallery-description {
        max-width: 300px;
        font-size: 13px;
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .apartment-gallery-popup__close {
        top: 10px;
        right: 10px;
    }

    .apartment-gallery-popup .item-img img {
        height: 280px;
    }

    .apartment-image-viewer {
        height: 100vh;
        height: 100svh;
        height: var(--apartment-overlay-height, 100svh);
        padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }

    .apartment-image-viewer__dialog {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 20px);
        height: calc(100svh - 20px);
        height: calc(var(--apartment-overlay-height, 100svh) - 20px);
        max-height: 100%;
        gap: 10px;
    }

    .apartment-image-viewer__main {
        min-height: 0;
        flex: 1 1 auto;
        height: auto;
    }

    .apartment-image-viewer__image-wrap {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
    }

    .apartment-image-viewer__index {
        flex: 0 0 auto;
        max-height: none;
        padding: 10px;
    }

    .apartment-image-viewer__summary {
        gap: 8px;
        overflow-x: auto;
        font-size: 12px;
    }

    .apartment-image-viewer__summary strong {
        font-size: 14px;
    }

    .apartment-image-viewer__categories {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .apartment-image-viewer__category {
        flex: 0 0 auto;
        width: auto;
        gap: 10px;
    }

    .apartment-image-viewer__thumbs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .apartment-image-viewer__thumb {
        flex: 0 0 64px;
        height: 46px;
        aspect-ratio: auto;
    }

    .apartment-image-viewer__close {
        top: 8px;
        right: 8px;
    }

    .apartment-image-viewer__nav {
        top: 36%;
        width: 42px;
        height: 42px;
    }

    .apartment-image-viewer__nav--next {
        right: 12px;
    }

    .apartment-image-viewer-open .whatsapp-floating {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body[data-page="other-pages"] #first_section {
        max-width: 100%;
    }

    .hero .wrapper .container,
    .pinned_over_content,
    .title,
    .slide-text {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero .wrapper h1,
    .hero .wrapper h2,
    .hero .wrapper h3,
    .title h2,
    .title h3,
    .pinned_over_content h2,
    .slide-text h2,
    .slide-text h3 {
        max-width: 100%;
        hyphens: none;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }

    .hero .wrapper h1,
    .hero .wrapper h3,
    .slide-text h2,
    .slide-text h3 {
        font-size: clamp(2rem, 11vw, 2.625rem);
        line-height: 1.12;
    }

    .title h2,
    .pinned_over_content h2 {
        font-size: clamp(2rem, 9.5vw, 2.75rem);
        line-height: 1.18;
    }

    .title small,
    .hero .wrapper small,
    .pinned_over_content small,
    .slide-text small {
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.4;
    }

    .row_list_version_1 .box_item_info {
        padding: 28px 26px 18px;
    }

    .row_list_version_1 .box_item_info small {
        font-size: 12px;
        font-size: 0.75rem;
        line-height: 1.35;
        letter-spacing: 1.5px;
    }

    .row_list_version_1 .box_item_info h2 {
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        line-height: 1.22;
        margin-bottom: 14px;
    }

    .row_list_version_1 .box_item_info p {
        font-size: 15px;
        font-size: 0.9375rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .row_list_version_1 .box_item_info .box_item_footer {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        flex-direction: column;
        gap: 16px;
    }

    .row_list_version_1 .box_item_info .box_item_footer .btn_4.learn-more {
        width: 205px;
        flex: 0 0 2.6rem;
    }

    .row_list_version_1 .box_item_info .box_item_footer .btn_4.learn-more .button-text {
        left: 34px;
        right: 14px;
        justify-content: center;
        padding: 0.75rem 1rem 0.75rem 2.4rem;
    }

    .row_list_version_1 .box_item_info .facilities ul li {
        font-size: 15px;
        font-size: 0.9375rem;
        margin-bottom: 12px;
    }

    .row_list_version_1 .box_item_info .box_item_footer .button-text,
    .row_list_version_1 .box_item_info .box_item_footer a.animated_link {
        font-size: 14px;
        font-size: 0.875rem;
    }

    .row_list_version_1 .box_item_info .box_item_footer a.animated_link {
        flex: 0 0 auto;
        margin-left: 0;
        white-space: nowrap;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .apartment-image-viewer {
        padding-top: max(4px, env(safe-area-inset-top));
        padding-right: max(4px, env(safe-area-inset-right));
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        padding-left: max(4px, env(safe-area-inset-left));
    }

    .apartment-image-viewer__dialog {
        height: calc(var(--apartment-overlay-height, 100svh) - 8px);
        gap: 0;
    }

    .apartment-image-viewer__main {
        min-height: 0;
        flex: 1 1 auto;
        height: auto;
    }

    .apartment-image-viewer__image-wrap {
        height: auto;
        border-radius: 10px;
    }

    .apartment-image-viewer__index {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "summary nav"
            "categories categories"
            "thumbs thumbs";
        column-gap: 6px;
        row-gap: 3px;
        padding: 5px;
        border-radius: 12px;
    }

    .apartment-image-viewer__bottom-nav {
        grid-area: nav;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        align-self: center;
    }

    .apartment-image-viewer__bottom-btn {
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 50%;
        background: rgba(151, 130, 99, 0.95);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    }

    .apartment-image-viewer__summary {
        grid-area: summary;
        min-width: 0;
        margin-bottom: 0;
        font-size: 10px;
        gap: 5px;
        overflow: hidden;
    }

    .apartment-image-viewer__summary strong {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .apartment-image-viewer__summary > span:last-child {
        display: none;
    }

    .apartment-image-viewer__categories {
        grid-area: categories;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .apartment-image-viewer__category {
        padding: 3px 6px;
        font-size: 10px;
        gap: 5px;
    }

    .apartment-image-viewer__category span {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .apartment-image-viewer__thumbs {
        grid-area: thumbs;
        gap: 5px;
        padding-bottom: 0;
    }

    .apartment-image-viewer__thumb {
        flex-basis: 52px;
        height: 34px;
        border-radius: 7px;
    }

    .apartment-image-viewer__thumb span {
        top: 4px;
        left: 4px;
        min-width: 18px;
        height: 17px;
        font-size: 10px;
    }

    .apartment-image-viewer__nav {
        display: none;
    }

    .apartment-image-viewer__close {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        width: 38px;
        height: 38px;
        background: rgba(151, 130, 99, 0.82);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .apartment-image-viewer {
        padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }

    .apartment-image-viewer__dialog {
        height: calc(var(--apartment-overlay-height, 100svh) - 8px);
        gap: 0;
    }

    .apartment-image-viewer__main {
        height: 100%;
        flex: 1 1 100%;
    }

    .apartment-image-viewer__image-wrap {
        height: 100%;
        border-radius: 14px;
    }

    .apartment-image-viewer__index {
        display: none;
    }

    .apartment-image-viewer__bottom-nav {
        grid-area: nav;
        display: flex;
        align-items: center;
        gap: 5px;
        align-self: stretch;
    }

    .apartment-image-viewer__bottom-btn {
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 50%;
        background: rgba(151, 130, 99, 0.95);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .apartment-image-viewer__summary {
        grid-area: summary;
        margin-bottom: 0;
        font-size: 11px;
    }

    .apartment-image-viewer__summary strong {
        font-size: 13px;
    }

    .apartment-image-viewer__categories {
        grid-area: categories;
        margin-bottom: 0;
    }

    .apartment-image-viewer__thumbs {
        grid-area: thumbs;
    }

    .apartment-image-viewer__category {
        padding: 5px 8px;
        font-size: 11px;
    }

    .apartment-image-viewer__category span {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .apartment-image-viewer__thumb {
        flex-basis: 58px;
        height: 42px;
        border-radius: 8px;
    }

    .apartment-image-viewer__thumb span {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .apartment-image-viewer__close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .apartment-image-viewer__nav {
        display: none;
    }
}

@media (max-width: 420px) {
    .pinned_over_content h2 {
        font-size: clamp(2rem, 10vw, 2.35rem);
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .hero .wrapper .container,
    .pinned_over_content,
    .title,
    .slide-text {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero .wrapper h1,
    .hero .wrapper h3,
    .title h2,
    .title h3,
    .pinned_over_content h2,
    .slide-text h2,
    .slide-text h3 {
        font-size: 1.95rem;
        line-height: 1.18;
    }
}

@media (max-width: 767px) {
    .title.text-center.mb-5,
    .title.center.mb-5 {
        margin-bottom: 1.45rem !important;
    }

    .title.text-center h2,
    .title.center h2 {
        font-size: clamp(1.65rem, 7vw, 2.05rem);
        line-height: 1.18;
    }

    .box_facilities {
        padding: 0 12px 18px;
        margin-bottom: 18px;
    }

    .box_facilities i {
        font-size: 44px;
        margin-bottom: 12px;
    }

    .box_facilities h3 {
        font-size: 16px;
        line-height: 1.22;
        margin-bottom: 8px;
    }

    .box_facilities p {
        max-width: 280px;
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 0;
    }
}

/* Highlight booking button inside the mobile header menu */
@media only screen and (max-width: 991px) {
    a.box_cat_rooms .info {
        transform: translate(0, -65px);
    }

    a.box_cat_rooms .info span {
        opacity: 1;
    }

    a.box_cat_rooms .info span:before {
        width: 100%;
    }

    .main-menu #mainNav ul li a.btn_1[data-nav-key="booking"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 210px;
        margin-top: 6px;
        padding: 13px 24px !important;
        border: 2px solid #978667;
        border-radius: 999px;
        background-color: #978667 !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(151, 134, 103, 0.28);
        letter-spacing: 0.03em;
    }

    .main-menu #mainNav ul li a.btn_1[data-nav-key="booking"]:hover,
    .main-menu #mainNav ul li a.btn_1[data-nav-key="booking"]:focus {
        border-color: #4b514d;
        background-color: #4b514d !important;
        color: #fff !important;
        opacity: 1 !important;
    }
}

/* Floating WhatsApp button */
.whatsapp-floating {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff !important;
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
    z-index: 1001;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.whatsapp-floating::before {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: inherit;
    animation: whatsappPulse 1.8s ease-out infinite;
}

.whatsapp-floating i {
    position: relative;
    z-index: 1;
}

.whatsapp-floating:hover,
.whatsapp-floating:focus {
    color: #fff !important;
    background-color: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45);
}

@keyframes whatsappPulse {
    0% {
        opacity: 0.8;
        transform: scale(0.92);
    }

    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

@media (max-width: 767px) {
    .whatsapp-floating {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}

/* Home hero: keep the first screen equal to the current viewport height */
body[data-page="home"] .hero.full-height {
    height: 100vh;
    min-height: 100vh;
}

@supports (height: 100svh) {
    body[data-page="home"] .hero.full-height {
        height: 100svh;
        min-height: 100svh;
    }
}

@supports (height: 100dvh) {
    body[data-page="home"] .hero.full-height {
        height: 100dvh;
        min-height: 100dvh;
    }
}
