body .vm-search-wrap,
body .vm-single {
    font-family: "Montserrat", sans-serif;
}

.vm-search-form {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
    align-items: stretch;
}

.vm-search-form input,
.vm-search-form select,
.vm-search-form button {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
    padding: 10px;
    min-height: 44px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vm-search-form select {
    appearance: none;
    color: #fff;
    padding-right: 40px;
    border-radius: 10px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.9) 50%),
        linear-gradient(135deg, rgba(255,255,255,0.9) 50%, transparent 50%),
        linear-gradient(to right, rgba(255,255,255,0.22), rgba(255,255,255,0.22));
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        calc(100% - 34px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 18px;
    background-repeat: no-repeat;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vm-search-form select option {
    color: #111;
    background: #fff;
}

.vm-search-form select:hover {
    border-color: rgba(129, 216, 208, 0.85);
    background-color: rgba(255, 255, 255, 0.22);
}

.vm-search-form select:focus {
    outline: none;
    border-color: #81D8D0;
    box-shadow: 0 0 0 3px rgba(129, 216, 208, 0.26);
    background-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.vm-search-form button {
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    grid-column: span 2;
    background: rgba(129, 216, 208, 0.3);
    border-color: rgba(129, 216, 208, 0.8);
    color: #fff;
}

/* Estate search: plot + can build + four toggles + button on one row */
.vm-search-wrap--estate .vm-estate-search-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.vm-search-wrap--estate .vm-estate-search-form > select {
    flex: 1 1 0;
    min-width: 8.5rem;
}

.vm-search-wrap--estate .vm-estate-search-form .vm-search-toggle-group--estate {
    flex: 2.2 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    grid-column: auto;
    grid-template-columns: none;
}

.vm-search-wrap--estate .vm-estate-search-form .vm-search-toggle-group--estate .vm-search-toggle {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px 0 10px;
}

.vm-search-wrap--estate .vm-estate-search-form .vm-search-toggle__label {
    font-size: 0.78rem;
    line-height: 1.2;
}

.vm-search-wrap--estate .vm-estate-search-form > button[type="submit"] {
    flex: 0 0 auto;
    grid-column: auto;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
}

.vm-search-toggle-group {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 8px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vm-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0 10px 0 12px;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
}

.vm-search-toggle__label {
    font-weight: 600;
}

.vm-search-toggle__switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.vm-search-toggle__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vm-search-toggle__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #c9ccd1;
    transition: background-color .2s ease;
}

.vm-search-toggle__slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.22);
    transition: transform .2s ease;
}

.vm-search-toggle.is-active {
    border-color: #81D8D0;
    background: rgba(129, 216, 208, 0.2);
}

.vm-search-toggle.is-active .vm-search-toggle__slider {
    background: #81D8D0;
}

.vm-search-toggle.is-active .vm-search-toggle__slider::before {
    transform: translateX(16px);
}

.vm-results-grid {
    display: grid;
    gap: 18px;
}

/*
 * Shortcode results: square cells (row height = column width) so 1×1 tiles are square
 * and dense packing (e.g. 2×2 big + four 1×1) reads as one big + four small in a 2×2 block.
 */
#vm-search-results,
#vm-protected-search-results,
#vm-estate-search-results {
    container-type: inline-size;
    width: 100%;
    min-width: 0;
}

.vm-results-grid--layout {
    --vm-results-cols: 4;
    --vm-results-gap: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: var(--vm-results-gap);
    /* Fallback when container query units are unavailable */
    grid-auto-rows: minmax(148px, 22vw);
}

@supports (width: 1cqw) {
    .vm-results-grid--layout {
        grid-auto-rows: calc(
            (100cqw - (var(--vm-results-cols) - 1) * var(--vm-results-gap)) / var(--vm-results-cols)
        );
    }
}

.vm-results-grid--layout .vm-villa-card.vm-card-layout {
    grid-column: span var(--vm-card-w, 1);
    grid-row: span var(--vm-card-h, 1);
    min-height: 0;
    align-self: stretch;
}

.vm-results-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vm-results-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.vm-villa-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.vm-villa-card.vm-card-large {
    min-height: 540px;
}

.vm-villa-card.vm-card-small {
    min-height: 260px;
}

.vm-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: none;
    transform: none;
}

.vm-villa-card.is-protected .vm-card-image {
    filter: blur(17px) brightness(1.2);
    transform: scale(1.05);
}

.vm-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.72) 100%);
    padding: 24px 20px;
    box-sizing: border-box;
}

/*
 * Shortcode result cards: always opaque (scroll-reveal / theme can otherwise leave opacity:0 on mobile).
 * Use IDs so this wins without relying on html.vm-js.
 */
#vm-search-results .vm-villa-card,
#vm-protected-search-results .vm-villa-card,
#vm-estate-search-results .vm-villa-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-height: 0 !important;
}

/* Listing cards: blur only (no scale) — scale(1.05) on the image caused white gaps in grid cells on touch/tablet */
#vm-search-results .vm-villa-card.is-protected .vm-card-image,
#vm-protected-search-results .vm-villa-card.is-protected .vm-card-image,
#vm-estate-search-results .vm-villa-card.is-protected .vm-card-image {
    transform: none;
    filter: blur(17px) brightness(1.2);
}

/* Villa / estate shortcode grids: hide text overlay until hover on fine-pointer devices only.
 * Touch (hover: none): overlay stays visible — avoids WebKit bugs with visibility/opacity on full-bleed layers. */
.vm-search-wrap .vm-results-grid--layout > .vm-villa-card {
    touch-action: manipulation;
}

.vm-search-wrap .vm-results-grid--layout > .vm-villa-card .vm-card-overlay {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
    .vm-search-wrap .vm-results-grid--layout > .vm-villa-card .vm-card-overlay {
        transition: none;
    }
}

@media (hover: hover) {
    .vm-search-wrap .vm-results-grid--layout > .vm-villa-card:hover .vm-card-overlay,
    .vm-search-wrap .vm-results-grid--layout > .vm-villa-card:focus-within .vm-card-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (hover: none) {
    .vm-search-wrap .vm-results-grid--layout > .vm-villa-card .vm-card-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

.vm-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    font-size: 13px;
    margin: 0 0 10px;
}

.vm-card-location {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.35;
    opacity: 0.96;
    max-width: 100%;
}

.vm-card-location--estate {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vm-card-location-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.vm-card-overlay h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2.6vw, 1.65rem);
    line-height: 1.2;
}

.vm-villa-card:hover .vm-card-meta span,
.vm-villa-card:hover .vm-card-location,
.vm-villa-card:hover h3,
.vm-search-wrap .vm-results-grid--layout > .vm-villa-card:focus-within .vm-card-meta span,
.vm-search-wrap .vm-results-grid--layout > .vm-villa-card:focus-within .vm-card-location,
.vm-search-wrap .vm-results-grid--layout > .vm-villa-card:focus-within h3 {
    color: #fff;
}

.zoom-in-down {
    transition: transform 0.35s ease;
}

/* Only real hover devices: tap does not equal hover; transform on grid cards caused huge gaps until “hover” stuck */
@media (hover: hover) {
    .zoom-in-down:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

.vm-hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.vm-hero--video .vm-hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a0c0e;
}

.vm-hero--video .vm-hero-video-bg iframe,
.vm-hero--video .vm-hero-video-bg video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    border: 0;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.vm-hero--video::before {
    z-index: 1;
}

.vm-hero--video .vm-hero-content,
.vm-hero--video .vm-hero-reserve {
    z-index: 2;
}

.vm-hero:not(.vm-hero--locked)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

/* Protected villa: blur hero image, unlock form centered on top */
.vm-hero.vm-hero--locked {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #0e1218;
    color: #fff;
}

.vm-hero-lock-bg {
    position: absolute;
    inset: -32px;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    -webkit-filter: blur(18px);
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .vm-hero-lock-bg {
        filter: none;
        -webkit-filter: none;
        transform: none;
        inset: 0;
    }
}

.vm-hero-lock-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(6, 10, 16, 0.52);
}

.vm-password-gate--overlay {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2.5rem, 10vh, 5rem) 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
}

.vm-password-gate--overlay h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.vm-password-gate--overlay .vm-password-gate-hint {
    margin: 0 auto 0.75rem;
    max-width: min(100%, 28rem);
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
}

.vm-password-gate--overlay .vm-password-gate-hint p {
    margin: 0 0 0.5rem;
}

.vm-password-gate--overlay .vm-password-gate-hint p:last-child {
    margin-bottom: 0;
}

.vm-password-gate--overlay > p {
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.vm-password-gate--overlay form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 1.5rem;
    text-align: left;
}

.vm-password-gate--overlay input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
}

.vm-password-gate--overlay input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.vm-password-gate--overlay button[type="submit"] {
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #1a1f26;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.vm-password-gate--overlay button[type="submit"]:hover {
    background: #f0f2f5;
}

.vm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vm-hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.vm-location {
    font-size: 20px;
    margin: 0 0 6px;
}

.vm-location--estate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vm-location-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.88;
}

.vm-location-value {
    display: block;
    line-height: 1.25;
}

.vm-stats-location-kicker {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6a6a6a;
    margin: 0 0 4px;
}

.vm-hero-reserve {
    position: absolute;
    left: 50%;
    bottom: 58px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    font-family: inherit;
}

.vm-hero-reserve:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.vm-hero-reserve .vm-line {
    display: block;
    width: 1px;
    height: 30px;
    background: #fff;
    margin: 0 auto 8px;
}

.vm-bounce {
    display: inline-block;
    animation: vmBounce 1.8s infinite ease-in-out;
    letter-spacing: 1px;
}

@keyframes vmBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.vm-max-1200 {
    max-width: 75vw;
    margin: 0 auto;
    padding:10px 0 50px 0px;
}

.vm-max-900 {
    max-width: 900px;
    margin: 0;
    padding: 16px;
    text-align: left;
}

.vm-stats-section {
    padding-top: 32px;
    padding-bottom: 0px;
}

.vm-stats-heading {
    margin: 0;
}

.vm-stats-location {
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #4a4a4a;
    margin: 0 0 6px;
}
.vm-hero-content h1 {
    font-size:56px;
}
/* Section titles: Gallery scale (matches tab button typography) */
.vm-section-heading {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(26px, 2.4vw, 54px);
    font-weight: 400;
    line-height: 1.05;
    color: #111;
    letter-spacing: 0;
    margin: 0 0 1rem;
}

.vm-stats-heading .vm-section-heading {
    color: #0f2432;
    margin-bottom: 0em;
}

.vm-amenities > .vm-section-heading,
.vm-gallery-section .vm-max-1200 > .vm-section-heading {
    margin-bottom: 1.25rem;
}

.vm-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-transform: none;
    font-weight: 600;
    gap: 0;
}

.vm-stat-item {
    display: inline-flex;
    align-items: center;
}

.vm-stat-item + .vm-stat-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
    margin: 0 8px 0 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (min-width: 901px) {
    /* zoom-in-down on stat highlights: mobile-only (see max-width block below) */
    .vm-stats .vm-stat-item.zoom-in-down,
    .vm-stats .vm-stat-item.zoom-in-down:hover {
        transition: none;
        transform: none;
    }
}

@media (max-width: 900px) {
    .vm-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
        align-items: start;
        justify-items: start;
    }

    .vm-stat-item + .vm-stat-item::before {
        display: none;
    }

    /* Touch: same lift as search cards where :hover is absent */
    .vm-stats .vm-stat-item.zoom-in-down:active {
        transform: translateY(-6px) scale(1.01);
    }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .vm-stats .vm-stat-item.zoom-in-down,
    .vm-stats .vm-stat-item.zoom-in-down:hover,
    .vm-stats .vm-stat-item.zoom-in-down:active {
        transition: none;
        transform: none;
    }
}

@keyframes vmStatItemIn {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    html.vm-js .vm-stats:not(.is-revealed) .vm-stat-item {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    html.vm-js .vm-stats.is-revealed .vm-stat-item {
        animation: vmStatItemIn 0.72s cubic-bezier(0.16, 1, 0.42, 1) forwards;
    }

    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(1) {
        animation-delay: 0.04s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(2) {
        animation-delay: 0.11s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(3) {
        animation-delay: 0.18s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(4) {
        animation-delay: 0.25s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(n + 5) {
        animation-delay: 0.32s;
    }
}

/* Shorter viewports: slightly longer stagger so the highlight motion reads on phones */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
    html.vm-js .vm-stats.is-revealed .vm-stat-item {
        animation-duration: 0.88s;
    }

    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(1) {
        animation-delay: 0.06s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(2) {
        animation-delay: 0.14s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(3) {
        animation-delay: 0.22s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(4) {
        animation-delay: 0.3s;
    }
    html.vm-js .vm-stats.is-revealed .vm-stat-item:nth-child(n + 5) {
        animation-delay: 0.38s;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.vm-js .vm-stats .vm-stat-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

.vm-description {
    margin-bottom: 40px;
}

.vm-description.vm-max-900 {
    max-width: 75vw;
    margin: 0 auto 10px;
    padding-left: 16px;
    padding-right: 16px;
}

.vm-description.vm-max-900 > * {
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.vm-cta-wrap {
    text-align: left;
    padding-top: 0;
    padding-bottom: 24px;
}

.vm-cta {
    width: 140px;
    height: 40px;
    background: #0f2432;
    color: #fff;
    border: 0;
    padding: 0 14px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
}

.vm-single .vm-cta-fixed {
    position: fixed;
    bottom: 25px;
    right: 40px;
    z-index: 9990;
    box-shadow: 0 10px 32px rgba(15, 36, 50, 0.38);
    text-transform: uppercase;
    font-weight: 600;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 900px) {
    .vm-single .vm-cta-fixed:not(.is-unlocked) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(16px);
    }

    .vm-single .vm-cta-fixed.is-unlocked {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

html.glightbox-open .vm-cta-fixed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* GLightbox: villa name + location — bottom-left overlay on slides */
.glightbox-container .ginner-container.desc-bottom {
    position: relative;
}

.glightbox-clean .gslide-description.description-bottom {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    top: auto;
    width: auto;
    max-width: min(480px, 90vw);
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: left;
}

.glightbox-clean .gslide-description.description-bottom .gdesc-inner {
    padding: 28px 32px 32px;
    margin: 0;

}

.glightbox-clean .gslide-description.description-bottom .vm-glightbox-location {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 248, 240, 0.88);
    margin: 0 0 6px;
    line-height: 1.35;
}

.glightbox-clean .gslide-description.description-bottom .vm-glightbox-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.glightbox-clean .gslide-description.description-bottom .gslide-title:empty {
    display: none;
}

.glightbox-mobile .glightbox-container .gslide-description.description-bottom {
    text-align: left;
}

.glightbox-mobile .glightbox-container .gslide-description.description-bottom .gdesc-inner {
    text-align: left;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0));
}

@media (max-width: 640px) {
    .vm-single .vm-cta-fixed {
        right: 20px;
    }
}

.vm-tab-headings {
    display: flex;
    gap: 44px;
    align-items: flex-end;
    border-bottom: 2px solid #d7d7d7;
    margin-bottom: 20px;
    padding-bottom: 0;
    overflow-x: auto;
}

.vm-tab-btn {
    background: none;
    border: 0;
    border-bottom: 4px solid transparent;
    padding: 0 0 14px;
    cursor: pointer;
    font-size: clamp(26px, 2.4vw, 54px);
    font-weight: 400;
    line-height: 1.05;
    color: #111;
    white-space: nowrap;
    font-family: "Montserrat", sans-serif;
}

.vm-tab-btn.is-active {
    border-bottom-color: #111;
    font-weight: 700;
}



.vm-tab-panel {
    display: none;
    opacity: 0;
}

.vm-tab-panel.is-active {
    display: block;
    animation: vmTabPanelReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes vmTabPanelReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vm-toggle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Estate stats highlights: six per row; reveal animation when .vm-estate-highlights--animate is added */
.vm-estate-highlights {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 14px;
}

@media (max-width: 1200px) {
    .vm-estate-highlights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .vm-estate-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vm-estate-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item {
    animation: vmToggleItemLux 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(1) { animation-delay: 0.04s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(2) { animation-delay: 0.09s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(3) { animation-delay: 0.14s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(4) { animation-delay: 0.19s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(5) { animation-delay: 0.24s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(6) { animation-delay: 0.29s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(7) { animation-delay: 0.34s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(8) { animation-delay: 0.39s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(9) { animation-delay: 0.44s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(10) { animation-delay: 0.49s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(11) { animation-delay: 0.54s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(12) { animation-delay: 0.59s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(n+13) { animation-delay: 0.64s; }

.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-icon {
    animation: vmToggleIconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(1) .vm-toggle-icon { animation-delay: 0.08s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(2) .vm-toggle-icon { animation-delay: 0.13s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(3) .vm-toggle-icon { animation-delay: 0.18s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(4) .vm-toggle-icon { animation-delay: 0.23s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(5) .vm-toggle-icon { animation-delay: 0.28s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(6) .vm-toggle-icon { animation-delay: 0.33s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(7) .vm-toggle-icon { animation-delay: 0.38s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(8) .vm-toggle-icon { animation-delay: 0.43s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(9) .vm-toggle-icon { animation-delay: 0.48s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(10) .vm-toggle-icon { animation-delay: 0.53s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(11) .vm-toggle-icon { animation-delay: 0.58s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(12) .vm-toggle-icon { animation-delay: 0.63s; }
.vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item:nth-child(n+13) .vm-toggle-icon { animation-delay: 0.68s; }

/* Wrapper e.g. #estateplots: ensure grid uses six columns when only .vm-toggle-grid is on the element */
#estateplots.vm-toggle-grid,
#estateplots .vm-toggle-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 14px;
}

@media (max-width: 1200px) {
    #estateplots.vm-toggle-grid,
    #estateplots .vm-toggle-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #estateplots.vm-toggle-grid,
    #estateplots .vm-toggle-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #estateplots.vm-toggle-grid,
    #estateplots .vm-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Details tab: Layout (2) + Highlights (2) + Services (1) when all present */
.vm-details-grid {
    display: grid;
    gap: 22px;
    position: relative;
}

.vm-details-grid--cols-3 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
}

.vm-details-grid--cols-2.vm-details-grid--pair-lh {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vm-details-grid--cols-2.vm-details-grid--pair-ls,
.vm-details-grid--cols-2.vm-details-grid--pair-hs {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.vm-details-grid--cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.vm-details-grid::before,
.vm-details-grid::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(186, 155, 92, 0) 0%,
        rgba(186, 155, 92, 0.55) 50%,
        rgba(186, 155, 92, 0) 100%
    );
    transform: translateX(-50%);
    pointer-events: none;
}

.vm-details-grid::after {
    display: none;
}

.vm-details-grid--cols-3::before {
    left: 39.5%;
}

.vm-details-grid--cols-3::after {
    display: block;
    left: 80%;
}

.vm-details-grid--cols-2.vm-details-grid--pair-lh::before {
    left: 50%;
}

.vm-details-grid--cols-2.vm-details-grid--pair-ls::before,
.vm-details-grid--cols-2.vm-details-grid--pair-hs::before {
    left: calc(100% * 2 / 3);
}

.vm-details-grid--cols-2.vm-details-grid--pair-lh::after,
.vm-details-grid--cols-2.vm-details-grid--pair-ls::after,
.vm-details-grid--cols-2.vm-details-grid--pair-hs::after {
    display: none;
}

.vm-details-grid--cols-1::before,
.vm-details-grid--cols-1::after {
    display: none;
}

.vm-details-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-content: start;
    padding: 20px 18px;
    border-radius: 16px;
    border: 1px solid rgba(196, 170, 111, 0.28);
    background:
        radial-gradient(130% 85% at 10% -10%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(165deg, rgba(245, 246, 248, 0.92) 0%, rgba(233, 236, 240, 0.8) 100%);
    box-shadow:
        0 16px 38px rgba(17, 24, 39, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(186, 155, 92, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.vm-details-col::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 45%);
}

.vm-details-title {
    grid-column: 1 / -1;
    margin: -2px 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(24px, 1.9vw, 38px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    color: #111;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.vm-details-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, rgba(186, 155, 92, 0.75) 0%, rgba(186, 155, 92, 0.08) 100%);
}

.vm-details-col--layout {
    border-color: rgba(174, 146, 92, 0.34);
    grid-template-columns: 1fr;
}

.vm-details-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 22px;
    grid-column: 1 / -1;
}

.vm-details-slot--guests {
    grid-column: 1;
    grid-row: 1;
}

.vm-details-slot--villa-sqm {
    grid-column: 2;
    grid-row: 1;
}

.vm-details-slot--bedrooms {
    grid-column: 1;
    grid-row: 2;
}

.vm-details-slot--plot-sqm {
    grid-column: 2;
    grid-row: 2;
}

.vm-details-slot--bathrooms {
    grid-column: 1 / -1;
    grid-row: 3;
}

.vm-details-col--highlights {
    border-color: rgba(153, 130, 84, 0.34);
}

.vm-details-col--services {
    grid-template-columns: 1fr;
    border-color: rgba(129, 158, 140, 0.36);
}

/* Amenities tab: same panel skin as .vm-details-col, no inner section title */
.vm-amenities-tab-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 18px;
    border-radius: 16px;
    border: 1px solid rgba(196, 170, 111, 0.28);
    background:
        radial-gradient(130% 85% at 10% -10%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(165deg, rgba(245, 246, 248, 0.92) 0%, rgba(233, 236, 240, 0.8) 100%);
    box-shadow:
        0 16px 38px rgba(17, 24, 39, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(186, 155, 92, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.vm-amenities-tab-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 45%);
}

.vm-toggle-grid--amenities-tab {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px 18px;
}

@media (max-width: 1200px) {
    .vm-toggle-grid--amenities-tab {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .vm-toggle-grid--amenities-tab {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vm-toggle-grid--amenities-tab {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Legacy: services block was under Amenities tab (now in Details) */
.vm-services-below {
    margin-top: 2.5rem;
}

.vm-services-below__title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(17px, 1.25vw, 21px);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #111;
    margin: 0 0 10px;
}

.vm-services-below__rule {
    width: 3rem;
    height: 2px;
    border-radius: 2px;
    background: #84dbd0;
    margin: 0 0 1.35rem;
}

.vm-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vm-tab-panel.vm-tab-animate .vm-toggle-item {
    animation: vmToggleItemLux 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(1) { animation-delay: 0.04s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(2) { animation-delay: 0.09s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(3) { animation-delay: 0.14s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(4) { animation-delay: 0.19s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(5) { animation-delay: 0.24s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(6) { animation-delay: 0.29s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(7) { animation-delay: 0.34s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(8) { animation-delay: 0.39s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(9) { animation-delay: 0.44s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(10) { animation-delay: 0.49s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(11) { animation-delay: 0.54s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(12) { animation-delay: 0.59s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(n+13) { animation-delay: 0.64s; }

@keyframes vmToggleItemLux {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
        filter: blur(8px);
    }
    55% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.vm-tab-panel.vm-tab-animate .vm-toggle-icon {
    animation: vmToggleIconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(1) .vm-toggle-icon { animation-delay: 0.08s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(2) .vm-toggle-icon { animation-delay: 0.13s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(3) .vm-toggle-icon { animation-delay: 0.18s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(4) .vm-toggle-icon { animation-delay: 0.23s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(5) .vm-toggle-icon { animation-delay: 0.28s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(6) .vm-toggle-icon { animation-delay: 0.33s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(7) .vm-toggle-icon { animation-delay: 0.38s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(8) .vm-toggle-icon { animation-delay: 0.43s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(9) .vm-toggle-icon { animation-delay: 0.48s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(10) .vm-toggle-icon { animation-delay: 0.53s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(11) .vm-toggle-icon { animation-delay: 0.58s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(12) .vm-toggle-icon { animation-delay: 0.63s; }
.vm-tab-panel.vm-tab-animate .vm-toggle-item:nth-child(n+13) .vm-toggle-icon { animation-delay: 0.68s; }

@keyframes vmToggleIconPop {
    0% {
        transform: scale(0.3) rotate(-8deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.08) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.vm-toggle-item:hover {
    transform: translateY(-2px);
}

.vm-tab-panel.vm-tab-animate .vm-toggle-item:hover {
    transform: translateY(-2px);
}

.vm-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #81d8d0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.9) 50%, rgba(238, 238, 238, 0.85) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 4px 14px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(129, 216, 208, 0.35);
    font-size: 1.05rem;
    transition: box-shadow 0.35s ease, transform 0.35s ease, color 0.35s ease;
}

.vm-toggle-item:hover .vm-toggle-icon {
    color: #81d8d0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(129, 216, 208, 0.55);
}

.vm-toggle-icon,
.vm-area-icon {
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    min-width: 1.25em;
}

.vm-area-icon {
    display: inline-block;
    color: #81d8d0;
}

@media (prefers-reduced-motion: reduce) {
    .vm-tab-panel.is-active {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .vm-tab-panel.vm-tab-animate .vm-toggle-item,
    .vm-tab-panel.vm-tab-animate .vm-toggle-icon {
        animation: none !important;
        animation-delay: 0s !important;
    }

    .vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-item,
    .vm-estate-highlights.vm-estate-highlights--animate .vm-toggle-icon {
        animation: none !important;
        animation-delay: 0s !important;
    }

    .vm-toggle-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .vm-tab-panel.vm-tab-animate .vm-toggle-icon {
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .vm-details-grid--cols-3,
    .vm-details-grid--cols-2,
    .vm-details-grid--cols-1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .vm-details-grid--cols-3::before,
    .vm-details-grid--cols-3::after,
    .vm-details-grid--cols-2.vm-details-grid--pair-lh::before,
    .vm-details-grid--cols-2.vm-details-grid--pair-ls::before,
    .vm-details-grid--cols-2.vm-details-grid--pair-hs::before {
        display: none;
    }

    .vm-details-col--layout,
    .vm-details-col--highlights,
    .vm-details-col--services {
        grid-column: auto;
    }

    .vm-details-layout-grid .vm-toggle-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

.vm-plot-fullbleed {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #0a0c0e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vm-plot-fullbleed__img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 900px) {
    .vm-plot-fullbleed {
        min-height: 0;
    }

    .vm-plot-fullbleed__img {
        min-height: 0;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

/* Single estate: hide theme / footer scroll-to-top */
body.single-estate .return-top-btn.show-top-btn,
body.single-estate .return-top-btn,
body.single-estate .hfe-scroll-to-top-wrap {
    display: none !important;
}

.vm-video--fullbleed {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background: #0a0c0e;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.vm-video--fullbleed iframe,
.vm-video--fullbleed video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    border: 0;
    display: block;
    object-fit: cover;
}

/* Gallery: explicit row wrappers (see single-villa.php) — reliable gaps & 3-6-3 in Chrome + Firefox */
.vm-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

/* Viewport scroll reveal (html.vm-js from plugin head script; prefers-reduced-motion skips) */
@media (prefers-reduced-motion: no-preference) {
    html.vm-js #vm-gallery .vm-gallery-item {
        opacity: 0;
        transform: translate3d(0, 1.35rem, 0) scale(0.987);
        transition:
            opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.88s cubic-bezier(0.16, 1, 0.3, 1);
    }

    html.vm-js #vm-gallery .vm-gallery-item.vm-img-revealed {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    /*
     * Shortcode result cards: do not use scroll-reveal opacity. IntersectionObserver often
     * never fires on mobile (nested scroll, Elementor sections, rootMargin), leaving cards
     * at opacity:0 while still clickable. Gallery items keep the reveal.
     */
    html.vm-js #vm-search-results .vm-villa-card,
    html.vm-js #vm-protected-search-results .vm-villa-card,
    html.vm-js #vm-estate-search-results .vm-villa-card {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Flex column children default min-width:auto — can overflow grid & push the 3rd column in Chrome */
.vm-gallery-row--hero,
.vm-gallery-row--triple,
.vm-gallery-row--half {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* First 6 photos = three layout rows; further cycles sit behind “View all” */
.vm-gallery-chunk--lead {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.vm-gallery-more {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transition: grid-template-rows 0.92s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-gallery-more.is-expanded {
    grid-template-rows: 1fr;
}

.vm-gallery-more-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
        transform 0.78s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.vm-gallery-more.is-expanded .vm-gallery-more-inner {
    opacity: 1;
    transform: translateY(0);
}

@keyframes vmGalleryRowLuxIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row {
    animation: vmGalleryRowLuxIn 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(1) { animation-delay: 0.06s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(2) { animation-delay: 0.12s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(3) { animation-delay: 0.18s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(4) { animation-delay: 0.24s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(5) { animation-delay: 0.3s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(6) { animation-delay: 0.36s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(7) { animation-delay: 0.42s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(8) { animation-delay: 0.48s; }
.vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row:nth-child(n+9) { animation-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
    .vm-gallery-more {
        transition: none;
    }

    .vm-gallery-more-inner {
        transition: none;
        transform: none;
    }

    .vm-gallery-more:not(.is-expanded) .vm-gallery-more-inner {
        opacity: 0;
    }

    .vm-gallery-more.is-expanded .vm-gallery-more-inner {
        opacity: 1;
    }

    .vm-gallery-more.is-expanded .vm-gallery-more-inner > .vm-gallery-row {
        animation: none;
    }
}

.vm-gallery-row--hero .vm-gallery-item {
    display: block;
    width: 100%;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 21 / 9;
    min-height: clamp(160px, 28vw, 420px);
}

.vm-gallery-row--hero .vm-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 3fr · 6fr · 3fr — one grid row, equal 12px gutters */
.vm-gallery-row--triple {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
    gap: 12px;
    align-items: stretch;
}

.vm-gallery-row--triple.vm-gallery-row--cols-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.vm-gallery-row--triple.vm-gallery-row--cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.vm-gallery-row--triple .vm-gallery-item {
    display: block;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    position: relative;
    height: 100%;
}

.vm-gallery-row--triple .vm-gallery-item--side {
    aspect-ratio: 3 / 4;
}

.vm-gallery-row--triple .vm-gallery-item--center {
    min-height: clamp(160px, 22vw, 320px);
}

.vm-gallery-row--triple .vm-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    display: block;
    object-fit: cover;
}

.vm-gallery-row--triple.vm-gallery-row--cols-2 .vm-gallery-item,
.vm-gallery-row--triple.vm-gallery-row--cols-1 .vm-gallery-item {
    position: relative;
    min-height: clamp(200px, 28vw, 340px);
}

.vm-gallery-row--triple.vm-gallery-row--cols-2 .vm-gallery-item img,
.vm-gallery-row--triple.vm-gallery-row--cols-1 .vm-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vm-gallery-row--half {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.vm-gallery-row--half .vm-gallery-item {
    display: block;
    overflow: hidden;
    min-width: 0;
    min-height: clamp(200px, 26vw, 360px);
    position: relative;
}

.vm-gallery-row--half .vm-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vm-view-all-wrap {
    text-align: center;
    padding-top: 10px;
}

.vm-view-all {
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Post-gallery reserve showcase (premium CTA) ───────────────────────── */
.vm-reserve-showcase {
    --vm-rs-bg: #0a1018;
    --vm-rs-ink: #fff;
    --vm-rs-muted:#fff;
    --vm-rs-gold: #fff;
    --vm-rs-gold-soft:#fff;
    position: relative;
    margin-top: 0;
    padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(4rem, 11vw, 8rem);
    color: var(--vm-rs-ink);
    overflow: hidden;
    background: var(--vm-rs-bg);
}

.vm-reserve-showcase__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.vm-reserve-showcase__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: rgba(0, 0, 0, 0.62);
}

.vm-reserve-showcase__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(198, 166, 103, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(80, 120, 140, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(15, 36, 50, 0.9) 0%, transparent 45%),
        linear-gradient(165deg, #0a1018 0%, #0f1a24 42%, #070c12 100%);
    pointer-events: none;
    z-index: 2;
}

.vm-reserve-showcase--photo .vm-reserve-showcase__mesh {
    background:
        radial-gradient(ellipse 85% 55% at 15% 25%, rgba(198, 166, 103, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 90% 70%, rgba(70, 110, 130, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.vm-reserve-showcase__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.vm-reserve-showcase__shape {
    position: absolute;
    border: 1px solid var(--vm-rs-gold-soft);
    opacity: 0;
    transform: rotate(-8deg);
}

.vm-reserve-showcase__shape--1,
.vm-reserve-showcase__shape--2 {
    opacity: 0;
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__shape--1,
.vm-reserve-showcase.is-revealed .vm-reserve-showcase__shape--2 {
    animation: vmRsShapeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vm-reserve-showcase__shape--1 {
    width: min(42vw, 380px);
    height: min(42vw, 380px);
    top: 8%;
    right: -6%;
    border-radius: 47% 53% 42% 58% / 58% 42% 58% 42%;
    animation-delay: 0.15s;
}

.vm-reserve-showcase__shape--2 {
    width: 120px;
    height: 120px;
    bottom: 18%;
    left: 6%;
    border-radius: 50%;
    animation-delay: 0.35s;
}

.vm-reserve-showcase__shape--3 {
    width: min(220px, 45vw);
    height: 3px;
    top: 42%;
    left: -2%;
    border: none;
    background: linear-gradient(90deg, transparent, var(--vm-rs-gold-soft), transparent);
    border-radius: 2px;
    transform: rotate(12deg);
    opacity: 0;
    transition: opacity 1.1s ease 0.45s;
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__shape--3 {
    opacity: 1;
}

@keyframes vmRsShapeIn {
    from {
        opacity: 0;
        transform: rotate(-8deg) scale(0.92);
    }
    to {
        opacity: 1;
        transform: rotate(-8deg) scale(1);
    }
}

.vm-reserve-showcase__inner {
    position: relative;
    z-index: 3;
    padding-left: 16px;
    padding-right: 16px;
}

.vm-reserve-showcase__frame {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
}

.vm-reserve-showcase__rule {
    position: absolute;
    width: 72px;
    height: 72px;
    border-color: var(--vm-rs-gold);
    border-style: solid;
    opacity: 0;
    pointer-events: none;
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__rule {
    animation: vmRsRuleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.vm-reserve-showcase__rule--tl {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.vm-reserve-showcase__rule--br {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
    animation-delay: 0.35s;
}

@keyframes vmRsRuleIn {
    from {
        opacity: 0;
        width: 0;
        height: 0;
    }
    to {
        opacity: 0.55;
        width: 72px;
        height: 72px;
    }
}

.vm-reserve-showcase__eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--vm-rs-gold);
    margin: 0 0 1.25rem;
    opacity: 0;
    transform: translateY(12px);
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__eyebrow {
    animation: vmRsFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.vm-reserve-showcase__display {
    margin: 0 0 1.5rem;
    line-height: 0.9;
    font-weight: 400;
}

.vm-reserve-showcase__line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.vm-reserve-showcase__line--massive {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(3.75rem, 15vw, 8.75rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #fff 0%, #e8dfd0 45%, var(--vm-rs-gold) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.vm-reserve-showcase__line--accent {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.95rem, 2.8vw, 1.35rem);
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.52em;
    text-transform: uppercase;
    color: var(--vm-rs-muted);
    margin-top: 0.85rem;
    padding-left: 0.12em;
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__line--massive {
    animation: vmRsFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__line--accent {
    animation: vmRsFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

@keyframes vmRsFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vm-reserve-showcase__lead {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.95rem, 2.1vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--vm-rs-muted);
    max-width: 36rem;
    margin: 0 0 2.25rem;
    opacity: 0;
    transform: translateY(20px);
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__lead {
    animation: vmRsFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.vm-reserve-showcase__cta-cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateY(16px);
}

.vm-reserve-showcase.is-revealed .vm-reserve-showcase__cta-cluster {
    animation: vmRsFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.vm-reserve-showcase__cta {
    position: relative;
    width: auto;
    min-width: min(100%, 220px);
    height: auto;
    min-height: 45px;
    padding: 0 2.25rem;
    background: transparent;
    color: var(--vm-rs-ink);
    border: 1px solid var(--vm-rs-gold);
    font-family: "Montserrat", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 18px 40px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.vm-reserve-showcase__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(198, 166, 103, 0.18) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.vm-reserve-showcase__cta:hover,
.vm-reserve-showcase__cta:focus-visible {
    color: var(--vm-rs-bg);
    background: var(--vm-rs-gold);
    border-color: var(--vm-rs-gold);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(198, 166, 103, 0.25);
    outline: none;
}

.vm-reserve-showcase__cta:hover::before,
.vm-reserve-showcase__cta:focus-visible::before {
    opacity: 1;
}

.vm-reserve-showcase__cta-label {
    position: relative;
    z-index: 1;
}

.vm-reserve-showcase__cta-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--vm-rs-gold);
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.9;
    display: none;
}

.vm-reserve-showcase__loc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vm-rs-muted);
    margin: 0;
    padding-left: 0.25rem;
    border-left: 2px solid var(--vm-rs-gold-soft);
    padding-left: 14px;
}

.vm-reserve-showcase__loc-kicker {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--vm-rs-muted);
    opacity: 0.95;
}

.vm-reserve-showcase__loc-text {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .vm-reserve-showcase .vm-reserve-showcase__shape--1,
    .vm-reserve-showcase .vm-reserve-showcase__shape--2 {
        animation: none !important;
        opacity: 0.85 !important;
        transform: rotate(-8deg) scale(1) !important;
    }

    .vm-reserve-showcase .vm-reserve-showcase__shape--3 {
        opacity: 0.9 !important;
        transition: none !important;
    }

    .vm-reserve-showcase .vm-reserve-showcase__rule,
    .vm-reserve-showcase .vm-reserve-showcase__eyebrow,
    .vm-reserve-showcase .vm-reserve-showcase__line,
    .vm-reserve-showcase .vm-reserve-showcase__lead,
    .vm-reserve-showcase .vm-reserve-showcase__cta-cluster {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .vm-reserve-showcase__cta {
        transition: none;
    }

    .vm-reserve-showcase__cta:hover,
    .vm-reserve-showcase__cta:focus-visible {
        transform: none;
    }
}

/* Full-bleed abstract coastline — grey lines on white (no gold / map chrome) */
.vm-area-section {
    --vm-area-ink: #1a1f26;
    --vm-area-muted: rgba(26, 31, 38, 0.66);
    --vm-area-accent: #2e333c;
    --vm-area-bg-url: url("/wp-content/uploads/2026/03/Screenshot-from-2026-03-24-20-45-18-scaled.png");
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3rem, 9vw, 6rem) 0;
    color: var(--vm-area-ink);
}

.vm-area-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(252, 252, 253, 0.42) 45%,
            rgba(250, 251, 252, 0.52) 100%
        ),
        var(--vm-area-bg-url) center / cover no-repeat;
    pointer-events: none;
}

.vm-area-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.35) 100%);
    pointer-events: none;
}

.vm-area-section .vm-area {
    position: relative;
    z-index: 1;
}

.vm-area-section .vm-section-heading {
    margin: 0 0 1.75rem;
    letter-spacing: 0.02em;
    color: var(--vm-area-ink);
}

.vm-area-section .vm-area-item strong {
    color: var(--vm-area-ink);
    font-weight: 600;
}

.vm-area-section .vm-area-item > div > span {
    color: var(--vm-area-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.vm-area-section .vm-area-icon {
    color: var(--vm-area-accent);
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9));
}

/* Full row is 4 columns; items live in the center 2 columns only */
.vm-area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vm-area-grid__inner {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.vm-area-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.vm-area-item span {
    display: block;
}

.vm-map iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

.vm-password-gate:not(.vm-password-gate--overlay) {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
}

.vm-cf7-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px 16px;
    background: rgba(10, 16, 24, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.45s step-end;
}

.vm-cf7-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s step-start;
}

.vm-cf7-content {
    --vm-modal-accent: #b8943f;
    --vm-modal-ink: #0f2432;
    position: relative;
    width: min(720px, 94vw);
    max-height: 88vh;
    overflow: auto;
    padding: 2.75rem 2.5rem 2.35rem;
    background:
        linear-gradient(168deg, #fcfbfa 0%, #f4f1eb 48%, #efe9df 100%);
    color: var(--vm-modal-ink);
    border-radius: 3px;
    box-shadow:
        0 32px 90px rgba(8, 18, 28, 0.42),
        0 0 0 1px rgba(255, 252, 248, 0.85) inset,
        0 0 0 1px rgba(184, 148, 63, 0.22),
        0 1px 0 rgba(184, 148, 63, 0.35);
    opacity: 0;
    transform: scale(0.93) translateY(32px);
    filter: blur(8px);
    transition:
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease-out;
}

.vm-cf7-modal.is-open .vm-cf7-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

.vm-cf7-content::before {
    content: "";
    position: absolute;
    left: 2.5rem;
    right: 2.5rem;
    top: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--vm-modal-accent) 15%,
        var(--vm-modal-accent) 85%,
        transparent
    );
    opacity: 0.9;
    pointer-events: none;
}

.vm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 36, 50, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    color: var(--vm-modal-ink);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vm-modal-close:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 148, 63, 0.45);
    transform: rotate(90deg);
}

.vm-cf7-modal .wpcf7-form > p {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

.vm-cf7-modal.is-open .wpcf7-form > p.vm-field-shown {
    animation: vmCf7FieldIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--vm-field-delay, 0s);
}

@keyframes vmCf7FieldIn {
    0% {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(6px);
    }
    55% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.vm-cf7-modal .wpcf7 label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(15, 36, 50, 0.68);
}

.vm-cf7-modal .wpcf7 input[type="text"],
.vm-cf7-modal .wpcf7 input[type="email"],
.vm-cf7-modal .wpcf7 input[type="tel"],
.vm-cf7-modal .wpcf7 input[type="url"],
.vm-cf7-modal .wpcf7 input[type="number"],
.vm-cf7-modal .wpcf7 input[type="date"],
.vm-cf7-modal .wpcf7 textarea,
.vm-cf7-modal .wpcf7 select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    margin-top: 4px;
    border: 1px solid rgba(15, 36, 50, 0.14);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-size: 1rem;
    color: var(--vm-modal-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

.vm-cf7-modal .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

.vm-cf7-modal .wpcf7 input:focus,
.vm-cf7-modal .wpcf7 textarea:focus,
.vm-cf7-modal .wpcf7 select:focus {
    outline: none;
    border-color: rgba(184, 148, 63, 0.65);
    box-shadow:
        0 0 0 3px rgba(184, 148, 63, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    background: #fff;
}

.vm-cf7-modal .wpcf7 input[type="submit"],
.vm-cf7-modal .wpcf7 button[type="submit"] {
    margin-top: 0.5rem;
    padding: 14px 28px;
    min-height: 48px;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, #1a3344 0%, #0f2432 100%);
    color: #faf8f5;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 14px 28px rgba(15, 36, 50, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.vm-cf7-modal .wpcf7 input[type="submit"]:hover,
.vm-cf7-modal .wpcf7 button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px rgba(15, 36, 50, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vm-cf7-modal .vm-cf7-content > p:not(.vm-field-shown) {
    opacity: 0;
}

.vm-cf7-modal.is-open .vm-cf7-content > p.vm-field-shown {
    animation: vmCf7FieldIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--vm-field-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    .vm-cf7-modal {
        transition: opacity 0.2s ease;
    }

    .vm-cf7-modal .vm-cf7-content {
        transition: opacity 0.2s ease;
        filter: none !important;
        transform: none !important;
    }

    .vm-cf7-modal.is-open .vm-cf7-content {
        transform: none;
    }

    .vm-cf7-modal .wpcf7-form > p.vm-field-shown,
    .vm-cf7-modal.is-open .vm-cf7-content > p.vm-field-shown {
        animation: none !important;
    }

    .vm-cf7-modal.is-open .wpcf7-form > p,
    .vm-cf7-modal.is-open .vm-cf7-content > p {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .vm-modal-close:hover {
        transform: none;
    }
}



@media (max-width: 900px) {
    #wpcf7-f1155-p1140-o1 {
        padding: 2rem 1.35rem 1.85rem;
    }

    #wpcf7-f1155-p1140-o1::before {
        left: 1.35rem;
        right: 1.35rem;
    }

    .e-n-accordion:has(#e-n-accordion-item-2530) {
        padding: 2rem 1.35rem 1.25rem;
    }

    .e-n-accordion:has(#e-n-accordion-item-2530)::before {
        left: 1.35rem;
        right: 1.35rem;
    }

    .vm-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .vm-search-wrap--estate .vm-estate-search-form {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        margin-bottom: 24px;
        scrollbar-gutter: stable;
    }

    .vm-search-wrap--estate .vm-estate-search-form > select {
        flex: 0 0 min(42vw, 11rem);
    }

    .vm-search-wrap--estate .vm-estate-search-form .vm-search-toggle-group--estate {
        flex: 0 0 auto;
        min-width: min(520px, 135vw);
    }

    .vm-search-wrap--estate .vm-estate-search-form > button[type="submit"] {
        flex: 0 0 auto;
    }

    .vm-results-row,
    .vm-results-right,
    .vm-area-grid {
        grid-template-columns: 1fr;
    }

    .vm-area-grid__inner {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .vm-amenities .vm-toggle-grid:not(.vm-toggle-grid--amenities-tab) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .vm-amenities .vm-toggle-grid--amenities-tab {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .vm-gallery-row--triple,
    .vm-gallery-row--half {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .vm-gallery-row--triple .vm-gallery-item--side {
        aspect-ratio: 4 / 3;
    }

    .vm-results-grid--layout {
        --vm-results-cols: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(120px, 28vw);
    }

    @supports (width: 1cqw) {
        .vm-results-grid--layout {
            grid-auto-rows: calc(
                (100cqw - (var(--vm-results-cols) - 1) * var(--vm-results-gap)) / var(--vm-results-cols)
            );
        }
    }

    .vm-results-grid--layout .vm-villa-card.vm-card-layout {
        grid-column: auto / span min(var(--vm-card-w, 1), 2);
        grid-row: auto / span var(--vm-card-h, 1);
    }

    .vm-villa-card.vm-card-large {
        min-height: 260px;
    }

    .vm-video--fullbleed {
        aspect-ratio: 16 / 9;
    }

    .vm-video--fullbleed iframe,
    .vm-video--fullbleed video {
        height: 100% !important;
    }
}
#vm-gallery {
    margin-top: -35px;
  }
  .vm-description.vm-max-900 {
    padding-left: 0px;
  }
  @media all and (max-width:768px){
    .vm-description.vm-max-900 p::after{
        display: none!important;
    }
        .vm-stats {

            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 0px;
            font-size: 10px;
      
    }
     .vm-details-grid {
    grid-template-columns: 1fr;
  }
    .vm-description.vm-max-900,.vm-max-1200 {
        max-width: 90vw;
  }
  .vm-details-col{
    gap:0px;
    padding:15px;
  }
  .vm-toggle-item {
    font-size: 14px;
}
}