/**
 * Styles: Villa page - immersive, image-forward layout.
 *
 * Sections: hero, intro (text + bento), description, showcase
 * (rooms + spaces + outdoor), gallery masonry, slideshow lightbox,
 * amenities, booking CTA.
 *
 * @package Triennes
 */

/* ============================================
   VILLA HERO
   ============================================ */

.tri-villa-hero {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-color: var(--tri-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Pull hero under fixed header. Fallback 150px =
     * promo bar (~42px) + top bar (36px) + nav (72px). */
    margin-top: -150px;
    margin-top: calc(-1 * var(--tri-header-height, 150px));
    padding-top: 150px;
    padding-top: var(--tri-header-height, 150px);
}

.tri-villa-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 43, 37, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tri-villa-hero__content {
    text-align: center;
    color: var(--tri-white);
}

.tri-villa-hero .tri-hero__content-backdrop {
    background: rgba(0, 0, 0, 0.20);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--tri-radius);
    padding: var(--tri-space-md) var(--tri-space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tri-space-xs);
}

.tri-villa-hero__title {
    font-family: var(--tri-font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
    color: var(--tri-white);
    margin-bottom: 0;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.tri-villa-hero__subtitle {
    font-family: var(--tri-font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(247, 245, 240, 0.88);
    letter-spacing: 0.02em;
}

/* Scroll indicator — sits in its own wrapper between the hero
 * and the intro section, no longer overlapping the photo. */
.tri-villa-hero__scroll-wrap {
    display: flex;
    justify-content: center;
    padding: var(--tri-space-md) 0 var(--tri-space-sm);
    background: var(--tri-white);
}

.tri-villa-hero__scroll {
    color: var(--tri-charcoal);
    opacity: 0.7;
    animation: villa-bounce 2s infinite;
    line-height: 0;
}

@keyframes villa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}


/* ============================================
   INTRO (text + key figures + bento)
   ============================================ */

.tri-villa-intro {
    padding-bottom: 0;
}

.tri-villa-intro__content {
    max-width: 1100px;
    margin: 0 auto var(--tri-space-lg);
    text-align: center;
}

.tri-villa-intro__heading {
    font-family: var(--tri-font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--tri-charcoal);
    margin-bottom: var(--tri-space-sm);
    position: relative;
    display: inline-block;
}

.tri-villa-intro__heading::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--tri-gold);
    margin: var(--tri-space-xs) auto 0;
}

.tri-villa-intro__text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--tri-text);
}

.tri-villa-intro__text p:first-child {
    font-family: var(--tri-font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--tri-charcoal);
}

/* Key figures — kept narrower than the intro text above so the
 * "Une demeure d'exception" paragraph reads as the wider, dominant
 * column, and the figures sit centered as a tighter accent band. */
.tri-villa-intro__keyfigures {
    display: flex;
    justify-content: center;
    gap: var(--tri-space-xl);
    margin: 0 auto var(--tri-space-xl);
    max-width: 720px;
    padding: var(--tri-space-md) var(--tri-space-lg);
    background: var(--tri-cream, #faf8f5);
    border-radius: var(--tri-radius-md, 8px);
}

.tri-villa-intro__kf {
    text-align: center;
}

.tri-villa-intro__kf-num {
    display: block;
    font-family: var(--tri-font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--tri-charcoal);
    line-height: 1.1;
}

.tri-villa-intro__kf-star {
    color: var(--tri-gold);
    font-size: 0.7em;
}

.tri-villa-intro__kf-label {
    font-family: var(--tri-font-nav);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tri-text-light, #666);
    margin-top: 0.25em;
    display: block;
}

/* ============================================
   BENTO GRID - 5-image discovery
   ============================================ */

.tri-villa-bento {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 2.2 / 1;
    border-radius: 16px;
    overflow: hidden;
}

.tri-villa-bento__item {
    overflow: hidden;
    border: none;
    padding: 0;
    background: var(--tri-charcoal);
    cursor: pointer;
    position: relative;
}

.tri-villa-bento__item:first-child {
    grid-row: 1 / -1;
}

.tri-villa-bento__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tri-villa-bento__item:hover img {
    transform: scale(1.04);
}

/* ============================================
   SHARED SECTION TITLE
   ============================================ */

.tri-villa-section-title {
    font-family: var(--tri-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--tri-charcoal);
    text-align: center;
    margin-bottom: var(--tri-space-xs);
    position: relative;
    display: block;
}

.tri-villa-section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--tri-gold);
    margin: var(--tri-space-xs) auto 0;
}

.tri-villa-section-subtitle {
    text-align: center;
    font-family: var(--tri-font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--tri-text-light, #666);
    margin-bottom: var(--tri-space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   DESCRIPTION (alternating rows + details)
   ============================================ */

.tri-villa-desc {
    font-size: 1.05rem;
    line-height: 1.8;
}

.tri-villa-desc__row {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: var(--tri-space-xl);
    align-items: center;
}

/* Row 2: image left, text right - flip ratio (TRI-806) */
.tri-villa-desc__row:nth-child(2) {
    grid-template-columns: 7fr 3fr;
}

.tri-villa-desc__row + .tri-villa-desc__row {
    margin-top: var(--tri-space-xl);
}

.tri-villa-desc__img {
    overflow: hidden;
    border-radius: var(--tri-radius-sm);
    aspect-ratio: 4 / 3;
}

.tri-villa-desc__img-btn {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.tri-villa-desc__img img,
.tri-villa-desc__img-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--tri-transition-slow);
}

.tri-villa-desc__img:hover img,
.tri-villa-desc__img-btn:hover img {
    transform: scale(1.02);
}

.tri-villa-desc__text-col {
    display: flex;
    flex-direction: column;
    gap: var(--tri-space-sm);
}

.tri-villa-desc__heading {
    font-family: var(--tri-font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--tri-charcoal);
    position: relative;
    padding-bottom: var(--tri-space-sm);
    margin: 0 0 var(--tri-space-xs);
}

.tri-villa-desc__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--tri-gold);
}

.tri-villa-desc__body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--tri-text);
}

.tri-villa-desc__body p:first-child {
    font-family: var(--tri-font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--tri-charcoal);
    line-height: 1.7;
}

/* Building details (2-column) */
.tri-villa-desc__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: var(--tri-space-xl);
    padding: 0;
    background: var(--tri-cream, #faf8f5);
    border-radius: var(--tri-radius-sm);
    overflow: hidden;
}

.tri-villa-desc__building {
    padding: var(--tri-space-lg);
}

.tri-villa-desc__building + .tri-villa-desc__building {
    border-left: 1px solid var(--tri-border, #e5e1da);
}

.tri-villa-desc__building-title {
    font-family: var(--tri-font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--tri-charcoal);
    margin-bottom: var(--tri-space-sm);
    position: relative;
    padding-bottom: var(--tri-space-xs);
}

.tri-villa-desc__building-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--tri-gold);
}

.tri-villa-desc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tri-villa-desc__list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tri-text);
}

.tri-villa-desc__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tri-gold);
}

/* ============================================
   FULL-WIDTH CINEMATIC BREAKS
   ============================================ */

.tri-villa-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 55vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-color: var(--tri-charcoal);
}

/* ============================================
   ROOMS GRID (3×2)
   ============================================ */

.tri-villa-rooms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tri-villa-rooms__item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    background: var(--tri-charcoal);
    cursor: pointer;
    position: relative;
}

.tri-villa-rooms__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tri-villa-rooms__item:hover img {
    transform: scale(1.04);
}

/* ============================================
   SPACES MASONRY (CSS columns)
   ============================================ */

.tri-villa-spaces__masonry {
    columns: 2;
    column-gap: 12px;
}

.tri-villa-spaces__item {
    break-inside: avoid;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
    border: none;
    padding: 0;
    background: var(--tri-charcoal);
    cursor: pointer;
    display: block;
    width: 100%;
}

.tri-villa-spaces__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tri-villa-spaces__item:hover img {
    transform: scale(1.03);
}

/* ============================================
   OUTDOOR GRID (3×2)
   ============================================ */

.tri-villa-outdoor__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tri-villa-outdoor__item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    background: var(--tri-charcoal);
    cursor: pointer;
}

.tri-villa-outdoor__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tri-villa-outdoor__item:hover img {
    transform: scale(1.04);
}

/* ============================================
   GALLERY MASONRY
   ============================================ */

.tri-villa-gallery__masonry {
    columns: 3;
    column-gap: 12px;
}

.tri-villa-gallery__item {
    break-inside: avoid;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
    border: none;
    padding: 0;
    background: var(--tri-charcoal);
    cursor: pointer;
    display: block;
    width: 100%;
}

.tri-villa-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tri-villa-gallery__item:hover img {
    transform: scale(1.03);
}

/* ============================================
   SLIDESHOW LIGHTBOX
   ============================================ */

.tri-slideshow {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tri-slideshow[hidden] {
    display: none;
}

.tri-slideshow__viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.tri-slideshow__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.tri-slideshow__img.is-loading {
    opacity: 0.3;
}

.tri-slideshow__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    z-index: 2;
}

.tri-slideshow__close:hover {
    color: var(--tri-white);
}

.tri-slideshow__prev,
.tri-slideshow__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 14px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.tri-slideshow__prev:hover,
.tri-slideshow__next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--tri-white);
}

.tri-slideshow__prev {
    left: 20px;
}

.tri-slideshow__next {
    right: 20px;
}

.tri-slideshow__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--tri-font-nav);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================
   AMENITIES
   ============================================ */

.tri-villa-amenities {
    /* Let container handle horizontal padding */
}

.tri-villa-amenities__title {
    text-align: center;
    margin-bottom: var(--tri-space-lg);
}

.tri-villa-amenities__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tri-space-md);
    max-width: 1100px;
    margin: 0 auto;
}

.tri-villa-amenities__item {
    text-align: center;
    padding: var(--tri-space-sm);
}

.tri-villa-amenities__icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--tri-space-xs);
    color: var(--tri-gold);
}

.tri-villa-amenities__label {
    font-family: var(--tri-font-nav);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tri-text);
}

/* ============================================
   BOOKING CTA
   ============================================ */

.tri-villa-booking {
    margin-bottom: 10px;
}

.tri-villa-booking__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tri-villa-booking__title {
    margin-bottom: var(--tri-space-sm);
}

.tri-villa-booking__text {
    margin-bottom: var(--tri-space-md);
    font-size: 1.1rem;
}

.tri-villa-booking__actions {
    display: flex;
    gap: var(--tri-space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* "Nous contacter" — primary CTA visible & attractive on the dark
 * booking section. The default `.btn--primary` (charcoal/charcoal)
 * disappears on the charcoal background; override with a gold solid
 * fill and a clean white-fill hover, plus a soft lift effect to make
 * the CTA feel tactile and inviting. */
.tri-villa-booking .btn--primary {
    background-color: var(--tri-gold);
    color: var(--tri-charcoal);
    border-color: var(--tri-gold);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background-color var(--tri-transition),
                color var(--tri-transition),
                border-color var(--tri-transition),
                transform var(--tri-transition),
                box-shadow var(--tri-transition);
}

.tri-villa-booking .btn--primary:hover,
.tri-villa-booking .btn--primary:focus {
    background-color: var(--tri-gold-light);
    color: var(--tri-charcoal);
    border-color: var(--tri-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Terracotta Airbnb CTA - override .section--dark a color (TRI-807) */
.section--dark .tri-villa-booking__airbnb {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--tri-terracotta);
    border-color: var(--tri-terracotta);
    color: var(--tri-white);
}

.section--dark .tri-villa-booking__airbnb:hover {
    background: transparent;
    color: var(--tri-terracotta);
    border-color: var(--tri-terracotta);
}

.tri-villa-booking__airbnb-icon {
    flex-shrink: 0;
}

/* ============================================
   CONTACT DIALOG (popover CF7)
   ============================================ */

.tri-villa-dialog {
    border: none;
    border-radius: var(--tri-radius-md, 12px);
    padding: 0;
    max-width: 560px;
    width: calc(100% - 2 * var(--tri-space-md));
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.tri-villa-dialog::backdrop {
    background: rgba(26, 43, 37, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.tri-villa-dialog__inner {
    padding: var(--tri-space-lg) var(--tri-space-lg) var(--tri-space-xl);
    position: relative;
}

.tri-villa-dialog__close {
    position: absolute;
    top: var(--tri-space-sm);
    right: var(--tri-space-sm);
    background: none;
    border: none;
    color: var(--tri-text-light, #888);
    cursor: pointer;
    padding: 4px;
    transition: color var(--tri-transition);
}

.tri-villa-dialog__close:hover {
    color: var(--tri-charcoal);
}

.tri-villa-dialog__title {
    font-family: var(--tri-font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--tri-charcoal);
    margin: 0 0 var(--tri-space-xs);
    padding-right: 2rem;
}

.tri-villa-dialog__subtitle {
    font-size: 0.95rem;
    color: var(--tri-text-light, #666);
    margin-bottom: var(--tri-space-md);
    line-height: 1.6;
}

.tri-villa-dialog__form .wpcf7 {
    margin: 0;
}

.tri-villa-dialog__form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: var(--tri-space-sm);
}

.tri-villa-dialog__form input[type="text"],
.tri-villa-dialog__form input[type="email"],
.tri-villa-dialog__form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--tri-border, #e5e1da);
    border-radius: var(--tri-radius-sm, 6px);
    font-family: var(--tri-font-body, Inter, sans-serif);
    font-size: 0.95rem;
    transition: border-color var(--tri-transition);
}

.tri-villa-dialog__form input:focus,
.tri-villa-dialog__form textarea:focus {
    border-color: var(--tri-gold);
    outline: none;
}

.tri-villa-dialog__form textarea {
    min-height: 120px;
    resize: vertical;
}

.tri-villa-dialog__form input[type="submit"] {
    display: inline-block;
    background: var(--tri-charcoal);
    color: var(--tri-white);
    border: 2px solid var(--tri-charcoal);
    padding: 0.75rem 2rem;
    font-family: var(--tri-font-nav, Inter, sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: var(--tri-radius-sm, 6px);
    transition: background var(--tri-transition), color var(--tri-transition);
}

.tri-villa-dialog__form input[type="submit"]:hover {
    background: transparent;
    color: var(--tri-charcoal);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .tri-villa-bento {
        aspect-ratio: 2 / 1;
        border-radius: 12px;
    }

    /* Single column on tablet/mobile - 2-col was unreadable below 1024px */
    .tri-villa-desc__row,
    .tri-villa-desc__row:nth-child(2) {
        grid-template-columns: 1fr;
        gap: var(--tri-space-md);
    }

    .tri-villa-desc__img {
        order: -1;
    }

    .tri-villa-amenities__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tri-villa-intro__keyfigures {
        gap: var(--tri-space-lg);
    }

    .tri-villa-rooms__grid {
        gap: 10px;
    }

    .tri-villa-outdoor__grid {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .tri-villa-hero {
        min-height: calc(100dvh - var(--tri-header-height, 80px));
    }

    /* Bento → 2-col */
    .tri-villa-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        aspect-ratio: auto;
        height: 70vh;
        border-radius: 0;
        gap: 4px;
    }

    .tri-villa-bento__item:first-child {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .tri-villa-intro__content {
        padding: 0 var(--tri-space-sm);
    }

    /* Switch to proper 2×2 grid - flex-wrap produced uneven 1-2-1 layout */
    .tri-villa-intro__keyfigures {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--tri-space-sm);
        padding: var(--tri-space-md);
    }

    .tri-villa-intro__kf {
        padding: var(--tri-space-sm) var(--tri-space-xs);
    }

    .tri-villa-intro__kf-num {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .tri-villa-desc__details {
        grid-template-columns: 1fr;
    }

    .tri-villa-desc__building + .tri-villa-desc__building {
        border-left: none;
        border-top: 1px solid var(--tri-border, #e5e1da);
    }

    .tri-villa-fullwidth {
        height: 40vh;
        min-height: 250px;
    }

    .tri-villa-rooms__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tri-villa-spaces__masonry {
        columns: 1;
    }

    .tri-villa-outdoor__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tri-villa-gallery__masonry {
        columns: 2;
        column-gap: 8px;
    }

    .tri-villa-gallery__item {
        margin-bottom: 8px;
    }

    .tri-villa-amenities__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tri-villa-booking__actions {
        flex-direction: column;
        align-items: center;
    }

    /* Slideshow mobile */
    .tri-slideshow__prev,
    .tri-slideshow__next {
        padding: 10px;
    }

    .tri-slideshow__prev {
        left: 8px;
    }

    .tri-slideshow__next {
        right: 8px;
    }

    .tri-slideshow__img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .tri-villa-bento {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        height: 80vh;
    }

    .tri-villa-bento__item:first-child {
        grid-row: auto;
    }

    .tri-villa-bento__item:nth-child(4),
    .tri-villa-bento__item:nth-child(5) {
        display: none;
    }

    .tri-villa-rooms__grid {
        grid-template-columns: 1fr;
    }

    .tri-villa-outdoor__grid {
        grid-template-columns: 1fr;
    }

    .tri-villa-gallery__masonry {
        columns: 1;
    }

    .tri-villa-amenities__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
