/*
Theme Name: hello-elementor-child
Template:   hello-elementor
*/

:root {
    --color-bg-dark: #322620;
    --color-red: #FF3B23;
    --color-black: #000200;
}

/* Offset anchor scrolls by the mobile fixed header height */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 95px;
    }
}

/* Booking modal — our own wrapper around the YCBM iframe (full lifecycle control) */
.mami-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.mami-modal.is-open {
    display: flex;
}

.mami-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mami-modal__backdrop:hover {
    background: rgba(0, 0, 0, 0.55);
}

.mami-modal__dialog {
    position: relative;
    width: min(1024px, 100%);
    height: min(760px, calc(100vh - 2rem));
    background: #fff;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.mami-modal__iframe {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    display: block;
    background: #fff;
}

.mami-modal__confirm {
    display: none;
    flex: 0 0 auto;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 0;
    background: var(--color-red);
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mami-modal.is-confirmed .mami-modal__confirm {
    display: block;
}

.mami-modal__confirm:hover,
.mami-modal__confirm:focus {
    background: var(--color-red);
    outline: none;
    filter: brightness(0.95);
}

.mami-modal__close {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: var(--color-red);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mami-modal__close-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.mami-modal__close:hover,
.mami-modal__close:focus {
    background: var(--color-red);
    outline: none;
}

@media (max-width: 600px) {
    .mami-modal {
        padding: 0;
    }

    .mami-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

@font-face {
    font-family: 'RagSans';
    src: url('assets/fonts/RagSans-1.4-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RagSans';
    src: url('assets/fonts/RagSans-1.4-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avgard';
    src: url('assets/fonts/AVGARDD_2.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'RagSans', sans-serif;
    line-height: 1;
}

/* ---------- Announcement bar (reusable) ---------- */

.announcement-bar {
    background-color: var(--color-bg-dark);
    color: #fff;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 1.1rem;
}

/* ---------- Hero ---------- */

.hero__visual {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.hero__video,
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 0;
}

.hero__video {
    display: block;
}

.hero__image {
    display: none;
}

@media (min-width: 768px) {
    .hero__video {
        display: none;
    }

    .hero__image {
        display: block;
    }
}

.hero__overlay {
    display: none;
}

@media (max-width: 1200px) {
    .hero__visual {
        min-height: 90vh;
    }
}

@media (max-width: 767px) {
    .hero__visual {
        min-height: calc(100vh - 181.4px);
    }

    .hero__overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 33.33%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
        z-index: 1;
        pointer-events: none;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    /* min-height: inherit; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 80px;
    text-align: center;
}

@media (max-width: 767px) {
    .hero__content {
        padding-top: 30px;
        margin-bottom: 1.5rem;
    }
}

.hero__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    color: #fff;
}

.hero__lead {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
}

.hero__price {
    font-family: 'Avgard', sans-serif;
    font-size: clamp(4rem, 14vw, 12rem);
    line-height: 1;
    letter-spacing: -0.025em;
}

.hero__currency {
    font-size: 0.5em;
}

/* Hero messages (under the price) */
.hero__messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 40rem;
}

.hero__message {
    margin: 0;
    padding: .5rem 1rem;
    color: #fff;
    border-radius: 10px;
}

.hero__message--alert {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(-1deg);
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1;
}

.hero__message--highlight {
    background: var(--color-red);
    font-weight: 600;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
}

@media (min-width: 768px) {
    .hero__message--highlight {
        border-radius: 0 0 10px 10px;
        margin-top: -9px;
        font-size: 1.7rem;
    }

    .hero__message {
        padding: .7rem 1rem;
    }
}

/* Hero features (numbered cards) */
.hero__features {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem 2rem;
}

.hero__features--mobile {
    margin-top: auto;
}

.hero__features--desktop {
    display: none;
}

.hero__features::before {
    display: none;
}

.features {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

.feature {
    text-align: center;
}

.feature__num {
    display: block;
    width: 90px;
    height: auto;
    margin: 0 auto .3rem;
}

.feature__text {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    padding: 0 0.5rem;
}

@media (max-width: 767px) {
    .feature__num {
        width: 70px;
    }

    .feature__text {
        font-weight: 600;
    }

    .hero__features--mobile::before {
        display: block;
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.77), transparent);
        z-index: -1;
        pointer-events: none;
    }
}

@media (min-width: 768px) {
    .hero__features--mobile {
        display: none;
    }

    .hero__features--desktop {
        display: block;
        background: #fff;
        margin-top: 50px;
    }

    .features {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .hero__features--desktop .feature__num {
        margin-top: -45px;
    }

    .feature__text {
        color: var(--color-black);
        margin-inline: auto;
        font-size: 1.1rem;
    }
}

@media (min-width: 1600px) {
    .hero__features--desktop {
        margin-top: 0;
    }
}

.hero__arrow {
    display: none;
}

@media (min-width: 768px) {
    .hero__arrow {
        display: block;
        text-align: center;
        width: fit-content;
        margin-inline: auto;
    }

    .hero__arrow img {
        width: 46px;
        height: 46px;
    }
}

/* ---------- Site Nav (desktop sidebar + mobile drawer) ---------- */

.site-nav {
    background: var(--color-red);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.site-nav__logo {
    display: block;
}

.site-nav__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav__menu {
    flex: 1;
}

.menu,
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu__link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: opacity 0.2s;
}

/* Global override — keep links their own color on hover (theme reset.css turns them blue) */
a:hover,
a:focus {
    color: #ffffffc4 !important;
}


.submenu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.35rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.menu__item:first-child>.menu__link {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu a {
    padding-inline-start: 2.75rem;
    font-size: 0.95em;
    opacity: 0.85;
    border-bottom: 0;
}

.site-nav__cta {
    display: block;
    margin: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-dark);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
}

/* Submenu collapsed by default; smoothly slides open top-to-bottom */
.menu__item--has-submenu>.submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.menu__item--has-submenu.is-expanded>.submenu {
    max-height: 300px;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: var(--color-red);
    border: 0;
    border-radius: 6px;
    padding: 9px 7px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    direction: ltr;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
    background: var(--color-red);
    color: inherit;
    outline: none;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.35s ease;
}

.menu-toggle span:nth-child(1) {
    width: 55%;
    align-self: flex-start;
}

.menu-toggle span:nth-child(2) {
    width: 100%;
    align-self: center;
}

.menu-toggle span:nth-child(3) {
    width: 55%;
    align-self: flex-end;
}

/* Open state — top slides right, bottom slides left */
.site-nav.is-open .menu-toggle span:nth-child(1) {
    transform: translateX(81.82%);
}

.site-nav.is-open .menu-toggle span:nth-child(3) {
    transform: translateX(-81.82%);
}

body.is-menu-open {
    overflow: hidden;
}

/* ---------- Mobile sticky bottom CTA ---------- */

.mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-red);
        padding: .9rem 0;
        z-index: 40;
    }

    .mobile-cta__button {
        display: block;
        background: var(--color-bg-dark);
        color: #fff;
        text-align: center;
        text-decoration: none;
        padding: .5rem 1.5rem;
        border-radius: 999px;
        font-size: 1.2rem;
        width: fit-content;
        margin: 0 auto;
    }
}

/* ----- Desktop: fixed right sidebar ----- */
@media (min-width: 768px) {
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 14rem;
    }

    .site-nav__menu {
        overflow-y: auto;
        padding-bottom: 5rem;
    }

    .site-nav__cta {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    body {
        padding-right: 14rem;
    }

    .site-nav__logo {
        width: 90px;
        margin: 40px auto;
        padding: 0;
    }

    .menu__item--has-submenu>.menu__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu__item--has-submenu>.menu__link::after {
        content: '>';
        opacity: 0.7;
        transition: transform 0.2s ease;
    }

    .menu__item--has-submenu.is-expanded>.menu__link::after {
        transform: rotate(-90deg);
    }
}

/* ----- Mobile: top header bar + full-screen drawer ----- */
@media (max-width: 767px) {
    .announcement-bar {
        font-size: 0.85rem;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        box-sizing: border-box;
        max-height: 95px;
        padding-top: 95px;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    body {
        padding-top: 95px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 1.65rem;
        right: 1rem;
        z-index: 2;
    }

    .site-nav__logo {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        max-width: 70px;
        padding: 0;
    }

    /* CTA is hidden inside the mobile drawer (lives in the sticky bottom bar) */
    .site-nav__cta {
        display: none;
    }

    /* Menu fades in as the drawer slides open */
    .site-nav__menu {
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .site-nav.is-open .site-nav__menu {
        opacity: 1;
    }

    /* Open state — drawer slides down from the header bar */
    .site-nav.is-open {
        max-height: 100vh;
        overflow-y: auto;
    }

    /* Submenu always visible on mobile when drawer is open */
    .site-nav.is-open .menu__item--has-submenu>.submenu {
        max-height: 300px;
    }
}

/* ==========================================================================
   Approved section
   ========================================================================== */

.approved {
    background: var(--color-red);
    color: #fff;
}

.approved__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.approved__media {
    position: relative;
    margin-bottom: 1.5rem;
}

.approved__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.approved__badge {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 50%;
    max-width: 200px;
    height: auto;
}

.approved__title {
    display: none;
}

.approved__body {
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .approved__inner {
        display: flex;
        align-items: center;
        gap: 4rem;
        padding: 5rem 3rem;
    }

    .approved__media {
        flex: 1 1 55%;
        margin-bottom: 0;
    }

    .approved__text {
        flex: 1 1 45%;
    }

    .approved__title {
        display: block;
        margin: 0 0 1.5rem;
        font-size: clamp(2.5rem, 4.5vw, 4rem);
        font-weight: 400;
        letter-spacing: -0.025em;
        line-height: 1;
    }

    .approved__body {
        text-align: start;
        font-size: 1.125rem;
    }

    .approved__badge {
        top: auto;
        bottom: -3rem;
        left: -5rem;
        width: 200px;
    }
}

/* ==========================================================================
   Apartments section
   ========================================================================== */

.apartments {
    background: #F7F5F5;
    color: var(--color-black);
}

.apartments__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.apartments__banner {
    display: block;
    position: absolute;
    width: 100%;
}

.apartments__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 10%;
}

.apartments__model {
    position: relative;
    bottom: -10px;
    display: block;
    pointer-events: none;
    width: 100%;
    max-width: 420px;
    height: auto;
}

.apartments__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('assets/images/apartments-mobile-bg.webp') center / cover no-repeat;
    padding-bottom: 44px;
}

.apartments__badge {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
}

.apartments__badge span {
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background: var(--color-red);
    border-radius: 12px;
    transform: rotate(-1deg);
}

.apartments__badge span:first-child {
    margin-left: 50px;
    border-radius: 12px 12px 12px 0px;
}

.apartments__badge span:nth-child(2) {
    margin-right: 140px;
    margin-top: -12px;
    border-radius: 12px 0px 12px 12px;
}

.apartments__tagline {
    order: 2;
    margin: 1.75rem 1rem 0.55rem;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.25;
}

.apartments__tagline--desktop {
    display: none;
}

.apartments__tagline--mobile {
    order: 0;
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1;
}

.apartments__tagline-strong {
    display: block;
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1;
    margin-top: 10px;
}

.apartments__list {
    order: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.apartment {
    text-align: center;
    padding: .7rem 0;
}

.apartment__rooms {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 600;
}

.apartment__rooms-break,
.apartment__rooms-desktop {
    display: none;
}

.apartment__price {
    margin: 0 0 0.15rem;
    font-size: 1.5rem;
}

.apartment__price-old {
    margin: 0 0 0.55rem;
    color: var(--color-red);
    font-size: 1.25rem;
    line-height: 1;
}

.apartment__price-old s {
    text-decoration-thickness: 1px;
}

.apartment__button {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: var(--color-black);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .apartments__badge span:nth-child(2) {
        margin-right: 230px;
        margin-top: -16px;

    }

    .apartments {
        position: relative;
    }

    .apartments__visual {
        position: static;
    }

    .apartment__price {
        font-size: 1.3rem;
    }

    .apartments__banner {
        height: auto;
        position: static;
    }

    .apartments__banner img {
        height: auto;
        object-fit: contain;
    }

    .apartments__inner {
        max-width: 950px;
        width: 70%;
        padding-bottom: 2rem;
        background: none;
    }

    .apartments__badge {
        margin-top: -1.75rem;
        font-size: 2.5rem;
    }

    .apartments__badge span {
        padding: 0.7rem 1.5rem;
    }

    .apartments__tagline-break {
        display: none;
    }

    .apartment__rooms-break {
        display: revert;
    }

    .apartment__rooms-mobile {
        display: none;
    }

    .apartment__rooms-desktop {
        display: block;
    }

    .apartments__list {
        order: 1;
        flex-direction: row;
        gap: 0;
        margin-top: 2.5rem;
        padding: 0;
        /* width: auto; */
    }

    .apartment {
        flex: 1;
        padding: 0;
    }

    .apartment__rooms {
        font-size: 1.6rem;
    }

    .apartments__tagline--mobile {
        display: none;
    }

    .apartments__tagline--desktop {
        display: block;
    }

    .apartments__tagline {
        order: 2;
        margin: 2.5rem 0 0;
        font-size: 1.5rem;
    }

    .apartments__tagline-strong {
        font-size: 2.3rem;
        margin-top: 0;
    }

    .apartments__model {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 350px;
        max-width: none;
        height: auto;
    }
}

@media (min-width: 1400px) {
    .apartments__model {
        width: 30%;
    }

    .apartments__inner {
        margin-right: 5%;
    }
}

@media (min-width: 1600px) {
    .apartments__inner {
        margin-right: 10%;
    }
}

@media (min-width: 1800px) {
    .apartments__inner {
        margin-right: 15%;
    }
}

/* ==========================================================================
   Lev Details section
   ========================================================================== */

.lev-details {
    background: #fff;
    color: var(--color-black);
    padding-top: 44px;
}

.lev-details__banner {
    display: block;
    position: relative;
}

.lev-details__pan {
    display: none;
}

.lev-details__more {
    display: none;
}

.lev-details__content {
    padding: 2.5rem 1rem 3rem;
}

.lev-details__heading {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin: -3.6rem auto 2rem;
    color: #fff;
    border-radius: 12px;
    text-align: right;
    font-weight: 400;
    line-height: 1.2;
}

.lev-details__heading-main {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--color-red);
    width: fit-content;
    padding: 0.7rem 0.7rem 0;
    border-radius: 10px 10px 0 0;
}

.lev-details__heading-sub {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--color-red);
    padding: 0.7rem;
    border-radius: 10px 0 10px 10px;
    width: fit-content;
}

.lev-details__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lev-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lev-detail__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.lev-detail__body {
    margin: 0;
    font-size: 1rem;
}

.lev-detail__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .lev-details__main {
        display: flex;
        align-items: stretch;
    }

    .lev-details__banner {
        flex: 1;
        position: relative;
        overflow: hidden;
        min-width: 0;
    }

    .lev-details__pan {
        display: block;
        position: absolute;
        inset: 0;
    }

    .lev-details__pan img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        transition: object-position 5s ease-out;
    }

    .lev-details.is-visible .lev-details__pan img {
        object-position: left center;
    }

    .details-carousel--page {
        display: none;
    }

    .lev-details__more {
        display: inline-flex;
        align-items: center;
        position: absolute;
        z-index: 3;
        left: 1.25rem;
        bottom: 1.25rem;
        margin: 0;
        padding: 0.7rem 1.35rem;
        border: 0;
        border-radius: 999px;
        background: #111;
        color: #fff;
        font: inherit;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .lev-details__heading {
        display: block;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .lev-details__content {
        flex: 1 1 30%;
        padding: 0 1rem 3rem;
    }

    .lev-details__heading {
        margin: 0;
        max-width: none;
    }

    .lev-details__heading-sub,
    .lev-details__heading-main {
        font-size: 2rem;
    }

    .lev-details__items {
        gap: 2.5rem;
    }

    .lev-detail {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .lev-detail__image {
        flex: 0 0 30%;
        width: 40%;
        aspect-ratio: unset;
    }

    .lev-detail:nth-child(2) .lev-detail__image {
        margin-left: 70px;
    }

    .lev-detail:nth-child(2) {
        gap: 5rem
    }

    .lev-detail__text {
        flex: 1;
    }

    /* Scroll-in slide animation — alternating direction per image */
    .lev-detail__image {
        transition: transform 1s ease-out;
    }

    .lev-detail:nth-child(1) .lev-detail__image {
        transform: translateX(-60px);
    }

    .lev-detail:nth-child(2) .lev-detail__image {
        transform: translateX(60px);
    }

    .lev-detail:nth-child(3) .lev-detail__image {
        transform: translateX(-60px);
    }

    .lev-details.is-visible .lev-detail__image {
        transform: translateX(0);
    }
}

@media (min-width: 1400px) {
    .lev-detail__image {
        width: 40%;
    }

    .lev-detail {
        gap: 10rem;
    }

    .lev-details__content {
        padding: 4rem 6rem 4rem 2rem;
    }
/* 
    .lev-detail:nth-child(1) .lev-detail__text {
        margin-top: 110px;
    } */

    .lev-detail__text {
        max-width: 300px;
    }

    .lev-details__heading {
        margin-bottom: -6rem;
    }
}

@media (min-width: 1600px) {
    .lev-detail {
        gap: 11rem;
    }

    .lev-detail__title {
        font-size: 1.5rem;
    }

    .lev-detail__body {
        font-size: 1.3rem;
    }

    .lev-details__content {
        padding: 4rem 6rem 4rem 10rem;
    }
}

/* ---------- Details carousel ---------- */

.details-carousel--page {
    position: relative;
    z-index: 0;
}

.details-carousel__viewport {
    overflow: hidden;
    direction: ltr;
    touch-action: pan-y;
}

.details-carousel__track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.details-carousel__slide {
    position: relative;
    flex: 0 0 66%;
    aspect-ratio: 1;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
}

.details-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.details-carousel__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.58);
    transition: opacity 0.45s ease;
}

.details-carousel__slide.is-active {
    z-index: 1;
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.details-carousel__slide.is-active::after {
    opacity: 0;
}

.details-carousel__count {
    display: none;
}

.details-lightbox {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    right: 14rem;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 245, 245, 0.94);
}

.details-lightbox[hidden] {
    display: none;
}

.details-lightbox__close {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 2;
    margin: 0;
    padding: 0.25rem 0.4rem;
    border: 0;
    background: none;
    color: #111;
    font: inherit;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

.details-carousel--lightbox {
    width: 100%;
}

.details-carousel--lightbox .details-carousel__track {
    gap: 1.25rem;
}

.details-carousel--lightbox .details-carousel__slide {
    flex-basis: min(58vh, 52%);
    border-radius: 28px;
}

.details-carousel--lightbox .details-carousel__count {
    display: block;
    position: absolute;
    z-index: 2;
    left: 1.25rem;
    bottom: 1.1rem;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.details-carousel--lightbox .details-carousel__slide:not(.is-active) .details-carousel__count {
    display: none;
}

body.is-details-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .details-carousel__track,
    .details-carousel__slide::after {
        transition: none;
    }
}

/* ==========================================================================
   Why Rehovot section
   ========================================================================== */

.why-city {
    position: relative;
    background: #D9D3D3;
    color: var(--color-black);
    padding: 2rem 0 0;
    overflow: hidden;
}

.why-city__inner {
    /* position: relative; */
    max-width: 1100px;
    margin-inline: auto;
}

.why-city__title {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.why-city__model {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
}

.why-city__model img {
    display: block;
    width: 100%;
    height: auto;
}

.why-city__container {
    position: absolute;
    inset-inline: 1rem;
    bottom: 7rem;
    z-index: 2;
    margin-top: -3rem;
    padding: 0 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.why-city__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    margin-top: -1.25rem;
    padding-top: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.why-city__scroll::-webkit-scrollbar {
    display: none;
}

.why-city__items {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem;
    padding-inline-end: 0;
    display: flex;
    gap: 1.5rem;
}

.why-city__item {
    flex: 0 0 75%;
    max-width: 280px;
    text-align: start;
}

@media (max-width: 1023px) {
    .why-city__item:last-child {
        margin-inline-end: 1.5rem;
    }
}

.why-city__star {
    display: block;
    width: 36px;
    height: auto;
    margin: 0 0 1rem;
}

.why-city__item-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.why-city__item-text {
    margin: 0;
    line-height: 1;
    font-size: 1.3rem;
}

@media (min-width: 1024px) {
    .why-city {
        padding: 7rem 3rem;
    }

    .why-city__title {
        max-width: none;
        margin-bottom: 5rem;
        margin-right: 17rem;
        font-size: 2.25rem;
    }

    .why-city__item-title {
        font-size: 1.3rem;
    }

    .why-city__item-text {
        font-size: 1rem;
    }

    .why-city__model {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 3;
        height: 80%;
        width: auto;
        max-width: none;
        margin: 0;
        transform: translateX(50vw);
        transition: transform 1s ease-out;
    }

    .why-city__model img {
        height: 100%;
        width: auto;
    }

    .why-city.is-visible .why-city__model {
        transform: translateX(0);
    }

    .why-city__container {
        /* margin: 0 3rem 0 18rem; */
        padding: 0;
        position: static;
        margin-inline: 1rem;
    }

    .why-city__scroll {
        overflow: visible;
        margin-top: 0;
        padding-top: 0;
    }

    .why-city__items {
        padding: 2.5rem 13rem 2.5rem 0;
        gap: 1rem;
        justify-content: end;
    }

    .why-city__item {
        flex: 1;
        max-width: 150px;
    }

    .why-city__star {
        width: 30px;
        margin-top: -3rem;
    }
}

@media (min-width: 1200px) {
    .why-city__model {
        height: 550px;
    }

    .why-city__items {
        gap: 2rem;
    }
}

@media (min-width: 1400px) {
    .why-city__model {
        right: 6vw;
    }
}

@media (min-width: 1600px) {
    .why-city__model {
        right: 12vw;
    }
}

@media (min-width: 1800px) {
    .why-city__model {
        right: 16vw;
    }
}

@media (min-width: 2000px) {
    .why-city__model {
        right: 20vw;
    }
}

/* ---------- Lev Vision ---------- */

.lev-vision {
    background: #fff;
    color: var(--color-black);
}

.lev-vision__visual {
    position: relative;
}

.lev-vision__media {
    position: relative;
}

.lev-vision__media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 33.33%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.lev-vision__map {
    display: block;
    width: 100%;
}

.lev-vision__credit {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    z-index: 2;
    color: white;
    font-size: 0.9rem;
    max-width: 7rem;
    line-height: 1.2;
    text-align: left;
}

.lev-vision__intro {
    position: relative;
    z-index: 2;
    margin: -7.5rem 1rem 0;
}

.lev-vision__badge {
    font-weight: 600;
    display: inline-block;
    margin-bottom: -0.5rem;
    padding: 0.4rem 1rem;
    background: var(--color-bg-dark);
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    transform: rotate(-1deg);
    margin-right: 0.5rem;
}

.lev-vision__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.lev-vision__title span {
    width: fit-content;
    padding: 0.4rem 1rem;
    background: var(--color-red);
    line-height: 1;
}

.lev-vision__title span:nth-child(1) {
    border-radius: 10px 10px 0 10px;
    position: relative;
    z-index: -1;
}

.lev-vision__title span:nth-child(2) {
    border-radius: 10px 0 0 10px;
    position: relative;
    z-index: -2;
    padding-bottom: 10px;
}

.lev-vision__title span:nth-child(3) {
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: -3;
}

.lev-vision__title span:not(:first-child) {
    margin-top: -16px;
}

.lev-vision__description p {
    max-width: 320px;
    margin: 60px auto 0;
    font-size: 0.95rem;
    text-align: center;
}

.lev-vision__features {
    padding: 1rem 3rem;
}

.lev-vision__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lev-vision__item {
    text-align: center;
}

.lev-vision__icon {
    display: block;
    width: auto;
    height: 72px;
    max-width: 100%;
    margin: 0 auto .5rem;
}

.lev-vision__item-title {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lev-vision__item-text {
    margin: 0 auto;
    line-height: 1;
    font-size: 0.95rem;
    max-width: 320px;
}

@media (min-width: 1024px) {
    .lev-vision__media::before {
        inset: auto 0 0 0;
        height: 20%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    }

    .lev-vision__intro {
        position: absolute;
        top: 20vw;
        right: 5vw;
        transform: translateY(-50%);
        max-width: 540px;
        margin: 0;
        z-index: 3;
    }

    .lev-vision__credit {
        bottom: 1rem;
        left: auto;
        right: 2rem;
        max-width: none;
        text-align: right;
    }

    .lev-vision__title {
        font-size: 2rem;
    }

    .lev-vision__title span {
        padding: 0.2rem 1.25rem;
    }

    .lev-vision__title span:nth-child(2) {
        padding-bottom: 10px;
    }

    .lev-vision__description {
        padding: 1.4rem 1.75rem;
        border-radius: 20px 0 20px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
        max-width: 390px;
        margin-top: -30px;
        position: relative;
        z-index: -4;
    }

    .lev-vision__description p {
        font-size: 1.1rem;
        margin: 0;
    }

    .lev-vision__features {
        padding: 4rem 3rem;
    }

    .lev-vision__items {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 4rem;
    }

    .lev-vision__item {
        flex: 1;
        max-width: 280px;
    }

    .lev-vision__icon {
        width: auto;
        height: 90px;
    }

    .lev-vision__item-title {
        font-size: 1.35rem;
    }
}

/* ---------- Roof Agreement ---------- */

.roof-agreement {
    background: #D9D3D3;
    color: var(--color-black);
    padding: 3rem 1.5rem;
}

.roof-agreement__inner {
    max-width: 900px;
    margin: 0 auto;
}

.roof-agreement__title {
    margin: 0 1.6rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.roof-agreement__break {
    display: none;
}

.roof-agreement__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
}

.roof-agreement__item {
    text-align: center;
}

.roof-agreement__number {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto;
}

.roof-agreement__item-title {
    margin: 0 0 0.3rem;
    color: var(--color-red);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.roof-agreement__item-text {
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .roof-agreement {
        padding: 5rem 3rem;
    }

    .roof-agreement__title {
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .roof-agreement__break {
        display: revert;
    }

    .roof-agreement__items {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .roof-agreement__number {
        width: 110px;
        margin-bottom: 0;
    }

    .roof-agreement__item-title {
        font-size: 1.35rem;
    }
}

/* ---------- Signature (Boni Hatichon) ---------- */

.signature__main {
    padding: 2rem;
}

.signature {
    background: #fff;
    color: var(--color-black);
}

.signature__media {
    position: relative;
}

.signature__helmets {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #111;
    border-radius: 20px;
}

.signature__intro {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: -50px 0 0;
}

.signature__badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: var(--color-bg-dark);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    transform: rotate(-1deg);
    font-weight: 600;
    margin-right: -0.5rem;
    position: relative;
    z-index: 1;
    top: 5px;
}

.signature__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.signature__title span {
    width: fit-content;
    padding: 0.5rem 1rem;
    line-height: 1;
    background: var(--color-red);
    border-radius: 10px;
    position: relative;
}

.signature__content {
    position: relative;
    z-index: 1;
}

.signature__heading {
    /* margin: -2rem 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    color: var(--color-black);
    line-height: 1.4; */
    font-size: 1.4rem;
    font-weight: 700;
    margin-block: 1rem;
    line-height: 1.1;
}

.signature__body p {
    margin: 0 0 .5rem;
}

.signature__body p:last-child {
    margin-bottom: 0;
}

.signature__features {
    background: url(assets/images/signature-bg.webp) no-repeat center / cover;
    padding: 0 1.5rem 3rem;
}

.signature__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.signature__item {
    text-align: center;
    margin-top: -1rem;
}

.signature__number {
    display: block;
    width: 70px;
    height: auto;
    margin: 0 auto 1rem;
}

.signature__item-title {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.signature__item-text {
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .signature__badge {
        font-size: 1.1rem;
        padding: 0.7rem 1.1rem;
    }

    .signature__main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
        padding: 3rem 3rem 0;
    }

    .signature__media {
        display: contents;
    }

    .signature__helmets {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        border-radius: 24px;
    }

    .signature__intro {
        position: static;
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin: 0 0 1rem;
    }

    .signature__title {
        font-size: 2rem;
    }

    .signature__title span {
        padding: 0.65rem 1.25rem;
        border-radius: 12px;
    }

    .signature__content {
        grid-column: 2;
        grid-row: 2;
        padding: 0;
        align-self: start;
    }

    .signature__heading {
        margin: 0;
        padding: 0;
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .signature__body p {
        font-size: 1rem;
    }

    .signature__features {
        background: none;
        padding: 3rem 3rem 4rem;
    }

    .signature__items {
        flex-direction: row;
        gap: 2rem;
        max-width: 880px;
        margin: 0 auto;
    }

    .signature__item {
        flex: 1;
    }

    .signature__number {
        width: 100px;
    }

    .signature__item-title {
        font-size: 1.35rem;
    }
}

/* ---------- Outro ---------- */

.outro {
    position: relative;
    background: #fff;
    color: var(--color-black);
}

.outro__media {
    position: relative;
    overflow: hidden;
}

.outro__media picture {
    display: block;
    height: 100%;
}

.outro__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.outro__logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 110px;
    height: auto;
    z-index: 2;
}

.outro__shapir,
.outro__copyright {
    display: none;
}

.outro__copyright {
    margin: 0;
}

.outro__copyright a {
    color: inherit;
    text-decoration: none;
}

.outro__content {
    padding: 0 2rem 2rem;
    text-align: center;
    margin-top: -5rem;
}

.outro__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 600;
}

.outro__title span {
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background: var(--color-red);
    border-radius: 12px;
    transform: rotate(-1deg);
}

.outro__title span:first-child {
    margin-left: 50px;
}

.outro__title span:nth-child(2) {
    margin-right: 50px;
    margin-top: -8px;
}

.outro__body {
    /* padding: 1.25rem 1.5rem; */
}

.outro__body p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .outro__title span:first-child {
        margin-left: 0;
    }

    .outro__title span:nth-child(2) {
        margin-right: 0;
    }

    .outro__media {
        overflow: visible;
    }

    .outro__banner {
        height: auto;
        object-position: center;
    }

    .outro__logo {
        top: 2rem;
        bottom: auto;
        right: 2rem;
        width: 150px;
    }

    .outro__shapir {
        display: block;
        position: absolute;
        top: auto;
        right: 1.5rem;
        bottom: 1.25rem;
        width: 160px;
        height: auto;
        z-index: 2;
    }

    .outro__copyright {
        display: block;
        position: absolute;
        left: 1.5rem;
        bottom: 1.5rem;
        z-index: 2;
        color: #fff;
        font-size: 0.85rem;
    }

    .site-footer {
        display: none;
    }

    .outro__content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 2rem;
    }

    .outro__title {
        display: inline-block;
        margin: 0;
        padding: 0.8rem 1.5rem;
        background: var(--color-red);
        border-radius: 20px;
        font-size: 2.4rem;
        position: relative;
    }

    .outro__title span {
        background: none;
        padding: 0;
        width: auto;
        margin: 0;
    }

    .outro__body {
        max-width: 400px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
        background: white;
        border-radius: 0 0 20px 20px;
        margin-top: -10px;
    }

    .outro__body p {
        font-size: 1rem;
    }
}

/* ---------- Site Footer ---------- */

.site-footer {
    position: relative;
    z-index: 50;
    background: var(--color-bg-dark);
    color: #fff;
    padding: 2.5rem 1rem 1.75rem;
    font-size: 0.85rem;
    max-width: 100% !important;
}

.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.site-footer__logo {
    width: 115px;
    height: auto;
    display: block;
}

.site-footer__copyright {
    margin: 0;
    line-height: 1;
}

.site-footer__copyright {
    opacity: .45;
    transition: opacity 0.2s ease;
}

.site-footer__copyright:hover {
    opacity: 1;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 3rem 2rem 2rem;
    }

    .site-footer__logo {
        width: 220px;
    }
}

/* ============================================================
   Plans Gallery (modal)
   ============================================================ */
body.is-plans-open {
    overflow: hidden;
}

/* Override Hello Elementor reset.css button defaults for all gallery buttons */
.plans-gallery button:hover,
.plans-gallery button:focus {
    background-color: transparent;
    color: inherit;
    text-decoration: none;
}

.plans-gallery {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.plans-gallery[hidden] {
    display: none;
}

.plans-gallery__overlay {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 14rem;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    padding: 0;
    cursor: pointer;
}


.plans-gallery__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #f7f5f5;
    overflow: hidden;
    /* padding: 1rem; */
}

.plans-gallery__panel[hidden] {
    display: none;
}

.plans-gallery__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .5rem 0 1rem;
    flex-shrink: 0;
}

.plans-gallery__title {
    margin: 0;
    padding: 0.6rem 1.5rem;
    background: var(--color-red);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 12px;
}

.plans-gallery__close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: transparent;
    border: 0;
    color: var(--color-black);
    font-size: 2.75rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.plans-gallery__close:hover {
    opacity: 1;
}

.plans-gallery__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.plans-gallery__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 0;
    background: #f7f5f5;
    overflow: hidden;
    cursor: zoom-in;
}

.plans-gallery__main.is-zoomed {
    cursor: zoom-out;
}

.plans-gallery__main.is-zoomed.is-grabbing {
    cursor: grabbing;
}

.plans-gallery__current {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.2s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.plans-gallery__main.is-grabbing .plans-gallery__current {
    transition: none;
}

.plans-gallery__thumbs {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.plans-gallery__thumbs-list {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.plans-gallery__thumbs-list::-webkit-scrollbar {
    display: none;
}

.plans-gallery__thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    padding: 0;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.plans-gallery__thumb:hover,
.plans-gallery__thumb:focus {
    border-color: var(--color-red);
    background-color: #fff;
}

.plans-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plans-gallery__thumb.is-active {
    border-color: var(--color-red);
}

.plans-gallery__scroll-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 0;
    color: var(--color-black);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.plans-gallery__scroll-btn:hover {
    opacity: 1;
}

.plans-gallery__nav-bar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    flex-shrink: 0;
}

.plans-gallery__nav {
    background: transparent;
    border: 0;
    color: var(--color-black);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.plans-gallery__nav:hover {
    opacity: 1;
}

/* Tablet+ — sidebar is visible, panel fills only the content area, overlay sits over the nav */
@media (min-width: 768px) {
    .plans-gallery__panel {
        right: 14rem;
    }

    .plans-gallery__overlay {
        display: block;
    }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
    .plans-gallery__panel {
        padding: 2rem;
    }

    .plans-gallery__header {
        justify-content: flex-start;
        padding: 0 0 1.5rem;
    }

    .plans-gallery__title {
        padding: 0.85rem 2rem;
        font-size: 1.5rem;
        border-radius: 14px;
        padding: 0.85rem 2rem;
        font-size: 1.5rem;
        border-radius: 14px;
        position: relative;
        top: 3rem;
        z-index: 1;
    }

    .plans-gallery__close {
        top: 1.25rem;
        left: 1.25rem;
        font-size: 3.25rem;
        width: 4rem;
        height: 4rem;
    }

    .plans-gallery__body {
        flex-direction: row-reverse;
        gap: 1.5rem;
    }

    .plans-gallery__main {
        flex: 1;
        padding: 0;
    }

    .plans-gallery__thumbs {
        flex-direction: column;
        width: 140px;
        padding: 0;
    }

    .plans-gallery__thumbs-list {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }

    .plans-gallery__thumb {
        width: 100%;
        height: 90px;
    }

    .plans-gallery__nav-bar {
        padding: 1.5rem 0 0;
    }

    .plans-gallery__nav {
        font-size: 1rem;
    }
}