/* Հարկի էջի վերնագիր + select-ներ — կենտրոն */
.floor-page-header{
    text-align:center;
    max-width:980px;
    margin:0 auto 28px;
    padding:8px 12px 4px;
}
.floor-page-header__title{
    margin:0 0 10px;
    color:#1f2a37;
    font-family:'Poppins', sans-serif;
    font-size:28px;
    font-weight:700;
    line-height:1.25;
    letter-spacing:-0.02em;
}
.floor-page-header__hint{
    margin:0 auto 20px;
    max-width:520px;
    color:#64748b;
    font-size:15px;
    line-height:1.55;
}
.floor-selects-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:stretch;
    gap:14px;
    margin:0 auto;
    padding:14px 16px;
    border-radius:16px;
    background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,251,242,.92) 100%);
    border:1px solid rgba(122, 183, 48, .16);
    box-shadow:0 10px 28px rgba(31, 42, 55, .06);
}
.floor-apartment-select-wrap{
    flex:1 1 320px;
    width:100%;
    max-width:420px;
    margin:0;
    text-align:left;
}
.floor-apartment-select-label{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0 0 8px 4px;
    font-family:'Poppins', sans-serif;
    font-size:11px;
    font-weight:600;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:#5f8f28;
}
.floor-apartment-select-label::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:#7ab730;
    box-shadow:0 0 0 3px rgba(122, 183, 48, .16);
}
.floor-apartment-select-shell{
    position:relative;
}
.floor-apartment-select-shell::after{
    content:"";
    position:absolute;
    top:50%;
    right:14px;
    width:8px;
    height:8px;
    border-right:2px solid #7ab730;
    border-bottom:2px solid #7ab730;
    transform:translateY(-65%) rotate(45deg);
    pointer-events:none;
    transition:transform .2s ease;
}
.floor-apartment-select-shell:focus-within::after{
    transform:translateY(-35%) rotate(225deg);
}
.floor-apartment-select{
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    width:100%;
    height:44px;
    padding:0 36px 0 14px;
    border:1.5px solid rgba(122, 183, 48, .28);
    border-radius:12px;
    background:linear-gradient(180deg, #ffffff 0%, #f4f9ee 100%);
    color:#142033;
    font-family:'Poppins', sans-serif;
    font-size:14px;
    font-weight:500;
    line-height:44px;
    cursor:pointer;
    outline:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px rgba(31, 42, 55, .05);
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.floor-apartment-select:hover{
    border-color:#7ab730;
    background:linear-gradient(180deg, #ffffff 0%, #eef7e4 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 8px 20px rgba(122, 183, 48, .14);
    transform:translateY(-1px);
}
.floor-apartment-select:focus{
    border-color:#7ab730;
    background:#fff;
    box-shadow:0 0 0 3px rgba(122, 183, 48, .16), 0 8px 20px rgba(122, 183, 48, .1);
}
.floor-plan-wrap.is-switching{
    animation:floor-plan-switch .22s ease;
}
@keyframes floor-plan-switch{
    from{opacity:.55}
    to{opacity:1}
}
@media (max-width:575px){
    .floor-page-header__title{
        font-size:22px;
    }
    .floor-selects-row{
        gap:12px;
        padding:12px;
    }
    .floor-apartment-select-wrap{
        flex-basis:100%;
        max-width:100%;
    }
    .floor-apartment-select{
        height:42px;
        font-size:14px;
        line-height:42px;
    }
}

/* Հատակագիծ — նույն կողային հարաբերակից տուփ, նկար/SVG առանց ձգման */
.floor-plan-wrap{
    --floor-crop-top:0%;
    --floor-crop-bottom:0%;
    position:relative;
    width:100%;
    max-width:100%;
    margin:0 auto;
    line-height:0;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 14px 40px rgba(16, 28, 48, .16);
    background:#ffffff;
    border:1px solid rgba(226, 232, 240, .9);
}
.floor-plan-wrap::before{
    content:"";
    display:block;
    width:100%;
    padding-top:calc(55.078125% - var(--floor-crop-top) - var(--floor-crop-bottom)); /* 564 / 1024 */
}
.floor-plan-wrap .floor-plan-img{
    position:absolute;
    left:0;
    top:calc(-1 * var(--floor-crop-top));
    z-index:1;
    width:100%;
    height:calc(100% + var(--floor-crop-top) + var(--floor-crop-bottom));
    object-fit:contain;
    object-position:center top;
    display:block;
    pointer-events:none;
}
.floor-plan-wrap .floor-plan-svg{
    position:absolute;
    left:0;
    top:calc(-1 * var(--floor-crop-top));
    z-index:2;
    width:100%;
    height:calc(100% + var(--floor-crop-top) + var(--floor-crop-bottom));
    display:block;
    cursor:pointer;
    pointer-events:none;
}
.floor-plan-wrap .floor-apt-layer{
    cursor:pointer;
    pointer-events:all;
    transition:transform .25s ease, filter .25s ease;
    transform-origin:center;
}
.floor-plan-wrap .floor-status-text{
    opacity:0;
    transform:translateY(6px);
    transition:opacity .24s ease, transform .24s ease;
    pointer-events:none;
}
.floor-plan-wrap .floor-apt-layer:hover .apt-fill{
    opacity:1;
}
.floor-plan-wrap .floor-apt-layer:hover .floor-status-text{
    opacity:1;
    transform:translateY(0);
}
.floor-plan-wrap .floor-apt-layer:hover{
    transform:scale(1.015);
    filter:drop-shadow(0 8px 14px rgba(22, 34, 60, .18));
}
.floor-plan-wrap .floor-status-text{
    font-family:Poppins, Arial, sans-serif;
    font-size:21px;
    font-weight:700;
    fill:#1b1f2b;
    paint-order:stroke fill;
    stroke:#ffffff;
    stroke-width:5px;
    stroke-linejoin:round;
    letter-spacing:.25px;
}
.floor-plan-wrap .floor-status-text--sold{
    fill:#a01d1d;
}
.floor-plan-wrap .floor-status-text--free{
    fill:#0f6a2f;
}
.floor-plan-wrap .apt-fill{
    stroke:#ffffff;
    stroke-width:2.2;
    opacity:0;
    transition:opacity .24s ease;
}
.floor-plan-wrap .apt-fill--sold{
    fill:rgba(227, 72, 72, .34);
}
.floor-plan-wrap .apt-fill--free{
    fill:rgba(66, 181, 106, .3);
}
.floor-plan-legend{
    margin-top:14px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.floor-plan-legend .legend-item{
    display:flex;
    align-items:center;
    gap:8px;
    background:rgba(255, 255, 255, .92);
    backdrop-filter:blur(6px);
    border:1px solid rgba(220, 228, 240, .9);
    border-radius:999px;
    padding:8px 14px;
    font-size:13px;
    font-weight:600;
    color:#2b3240;
    box-shadow:0 6px 16px rgba(20, 30, 50, .08);
}
.floor-plan-legend .legend-color{
    width:12px;
    height:12px;
    border-radius:50%;
    border:none;
    display:inline-block;
}
.floor-plan-legend .legend-color--sold{
    background:#e24646;
    box-shadow:0 0 0 4px rgba(226, 70, 70, .16);
}
.floor-plan-legend .legend-color--free{
    background:#44b96b;
    box-shadow:0 0 0 4px rgba(68, 185, 107, .16);
}

/* Պատկերասրահ — premium սլայդեր */
.floor-gallery-block{
    margin-top:56px;
    padding:48px 40px 40px;
    width:calc(100vw - 32px);
    max-width:calc(100vw - 32px);
    margin-left:calc(50% - 50vw + 16px);
    margin-right:calc(50% - 50vw + 16px);
    border-radius:24px;
    background:linear-gradient(165deg, #f8fafc 0%, #ffffff 45%, #f5f7fb 100%);
    border:1px solid rgba(226, 232, 240, .9);
    box-shadow:0 24px 60px rgba(15, 23, 42, .06);
}
.floor-gallery-block__title{
    text-align:center;
    font-size:clamp(30px, 4vw, 44px);
    font-weight:700;
    color:#0f172a;
    margin:0 0 12px;
    letter-spacing:-.03em;
}
.floor-gallery-block__subtitle{
    text-align:center;
    font-size:15px;
    color:#64748b;
    margin:0 0 36px;
    font-weight:400;
}
.floor-gallery-block__title::after{
    content:"";
    display:block;
    width:56px;
    height:3px;
    margin:16px auto 0;
    border-radius:999px;
    background:linear-gradient(90deg, transparent, #c9a227, transparent);
}
.floor-gallery-block__slider{
    position:relative;
    display:flex;
    align-items:center;
    gap:16px;
    max-width:100%;
    width:100%;
}
.floor-gallery-block__track{
    flex:1;
    min-width:0;
    overflow:hidden;
    padding:12px 0 8px;
}
.floor-gallery-nav{
    flex:0 0 54px;
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:1px solid rgba(15, 23, 42, .12);
    background:rgba(255, 255, 255, .95);
    backdrop-filter:blur(8px);
    color:#0f172a;
    font-size:22px;
    line-height:1;
    padding:0;
    cursor:pointer;
    box-shadow:0 8px 24px rgba(15, 23, 42, .08);
    transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    z-index:2;
}
.floor-gallery-nav:hover{
    transform:scale(1.06);
    background:#0f172a;
    color:#fff;
    border-color:#0f172a;
    box-shadow:0 12px 28px rgba(15, 23, 42, .18);
}
.floor-gallery-nav:active{
    transform:scale(.98);
}
.floor-gallery-carousel .owl-stage-outer{
    overflow:visible;
    padding:16px 0 12px;
}
.floor-gallery-carousel .owl-item{
    transition:opacity .35s ease;
    opacity:1;
    transform:none;
}
.floor-gallery-carousel .owl-dots{
    margin-top:20px !important;
    line-height:1;
}
.floor-gallery-carousel .owl-dot span{
    width:10px;
    height:10px;
    margin:5px 6px;
    background:#cbd5e1;
    transition:width .3s ease, background .3s ease, border-radius .3s ease;
}
.floor-gallery-carousel .owl-dot.active span{
    width:28px;
    border-radius:999px;
    background:linear-gradient(90deg, #b8922a, #e8c547);
}
.floor-gallery-carousel .owl-dot:hover span{
    background:#94a3b8;
}
.floor-gallery-pair{
    position:relative;
    display:block;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    border:1px solid rgba(226, 232, 240, .9);
    box-shadow:0 8px 24px rgba(15, 23, 42, .08);
    transition:box-shadow .35s ease, transform .35s ease;
}
.floor-gallery-pair:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 32px rgba(15, 23, 42, .12);
}
.floor-gallery-pair--wide .floor-gallery-photo{
    aspect-ratio:3 / 2;
    width:100%;
    height:auto;
}
.floor-gallery-photo{
    display:block;
    position:relative;
    overflow:hidden;
    background:#e2e8f0;
}
.floor-gallery-photo::after{
    content:"\f00e";
    font-family:FontAwesome;
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    color:#fff;
    background:linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, .55) 100%);
    opacity:0;
    transition:opacity .35s ease;
    pointer-events:none;
}
.floor-gallery-photo:hover::after{
    opacity:1;
}
.floor-gallery-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
    display:block;
    transition:transform .5s ease;
}
.floor-gallery-photo:hover img{
    transform:scale(1.03);
}
@media (min-width:992px){
    .floor-gallery-block{
        padding-left:48px;
        padding-right:48px;
    }
}
@media (max-width:767px){
    .floor-gallery-block{
        width:calc(100% + 24px);
        max-width:none;
        margin-left:-12px;
        margin-right:-12px;
        padding:32px 12px 28px;
        border-radius:18px;
    }
    .floor-gallery-block__slider{
        gap:8px;
    }
    .floor-gallery-nav{
        flex:0 0 44px;
        width:44px;
        height:44px;
        font-size:18px;
    }
    .floor-gallery-carousel .owl-item{
        opacity:1;
        transform:none;
    }
}

/* Հարկի էջ — aspect ratio overrides */
body.page-floor-1 .floor-plan-wrap{
    --floor-crop-top:14%;
    --floor-crop-bottom:13%;
}
body.page-floor-1 .floor-plan-wrap::before{
    padding-top:calc(86.23046875% - var(--floor-crop-top) - var(--floor-crop-bottom));
}
body.page-floor-2 .floor-plan-wrap::before{
    padding-top:55.078125%;
}
body.page-floor-3 .floor-plan-wrap::before{
    padding-top:56.73828125%;
}
