.oda-apartment-wrapper,
.oda-apartment-wrapper * {
    box-sizing: border-box;
}

.oda-apartment-wrapper {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(72px, 6svh, 96px) 0;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-tbc-caps, 'Arial_Geo', Arial, sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-oda {
    width: min(
        calc(100% - 48px),
        max(1120px, min(78.125vw, 145.60svh))
    );
    margin: 0 auto;
    container-name: apartment-layout;
    container-type: inline-size;
}

.oda-apartment-main-grid,
.oda-reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 57.143%) minmax(0, 35.893%);
    gap: 4%;
    align-items: center;
    min-height: max(560px, 39.0625vw);
}

.oda-apartment-visual,
.oda-reference-plan-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: max(560px, 39.0625vw);
    padding: 0 10% 0 0;
    background: #ffffff;
}

.oda-visual-tabs-nav,
.oda-reference-tabs {
    position: absolute;
    top: calc(50% - max(235px, 16.40625vw));
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 7px 6px;
    border: 1px solid rgba(23, 21, 19, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 3px 12px rgba(23, 21, 19, 0.06);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: none;
}

.oda-tab-btn {
    appearance: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #171513;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.oda-tab-btn::before {
    content: '';
    position: absolute;
    z-index: 0;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, transparent, transparent, #171513);
    animation: odaPlanSwitcherSpin 2.5s linear infinite;
}

.oda-tab-btn::after {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: 1;
    border-radius: 50%;
    background: #ffffff;
    transition: background-color 180ms ease;
}

.oda-tab-btn span {
    position: relative;
    z-index: 2;
}

.oda-tab-btn.active,
.oda-tab-btn:hover,
.oda-tab-btn:focus-visible {
    color: #ffffff;
    outline: none;
}

.oda-tab-btn.active::after,
.oda-tab-btn:hover::after,
.oda-tab-btn:focus-visible::after {
    background: #111111;
}

.oda-tab-panel {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: max(560px, 39.0625vw);
    padding-top: 0;
    text-align: center;
}

.oda-tab-panel.active {
    display: flex;
}

.oda-tab-panel img,
.oda-tab-panel .oda-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: max(470px, 32.8125vw);
    margin: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.oda-tab-panel .oda-main-image:focus-visible,
.oda-gallery-item .oda-lightbox-trigger:focus-visible {
    outline: 1px solid #111111;
    outline-offset: 4px;
}

.oda-tab-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 360px;
    color: #8e8b86;
    font-size: 12px;
}

.oda-apartment-info,
.oda-reference-info {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    padding-top: calc(max(45px, 3.125vw) + clamp(6px, 0.52vw, 10px));
}

.oda-reference-eyebrow {
    margin: 0 0 24px;
    color: #161616;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(13px, 1.15vw, 19px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.oda-reference-heading-row {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.oda-apartment-title {
    margin: 0;
    color: #0d0d0d;
    font-family: var(--font-tbc-caps, 'BPG_Header', sans-serif);
    font-size: clamp(19px, 1.7vw, 26px);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.oda-floor-position {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 8px 12px 4px 12px;
    border: 1px solid #939393;
    border-radius: 999px;
    background: #ffffff;
    color: #222222;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

a.oda-floor-position,
a.oda-floor-position:visited,
a.oda-floor-position:hover,
a.oda-floor-position:focus,
a.oda-floor-position:active {
    color: #222222;
    text-decoration: none;
}

.oda-price-box,
.oda-reference-price-box {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 32px;
    margin-top: 20px;
}

.oda-reference-price-copy {
    min-width: 0;
}

.oda-reference-primary-price-row {
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

.oda-reference-primary-price-row .oda-currency-switcher {
    margin-bottom: 0;
}

.oda-apartment-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #111111;
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.oda-price-label,
#oda-sqm-price {
    color: inherit;
    font: inherit;
}

.oda-sqm-price-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.oda-sqm-label {
    color: #111111;
    font-family: var(--font-tbc-caps, 'Arial_Geo', sans-serif);
    font-weight: 400;
}

#oda-main-price {
    color: inherit;
    font: inherit;
}

.oda-currency-switcher {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-bottom: 1px;
    padding: 0;
    border: 1px solid #d9d7d3;
    border-radius: 999px;
    background: #ffffff;
}

.oda-curr-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 22px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4a4845;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.oda-curr-btn.active {
    background: #111111;
    color: #ffffff;
}

.oda-apartment-specs,
.oda-reference-specs {
    margin-top: 62px;
}

.oda-apartment-actions,
.oda-reference-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.oda-reference-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 12px 14px 6px 14px;
    border: 1px solid #dedbd6;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-family: 'TBC CAPS';
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.oda-reference-action:hover,
.oda-reference-action:focus-visible,
.oda-reference-action.compare-toggle-btn.in-compare {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    outline: none;
}

.oda-reference-action:disabled {
    cursor: wait;
    opacity: 0.7;
}

.oda-apartment-wrapper .oda-reference-actions .oda-reference-action.compare-toggle-btn {
    width: 100%;
    margin-top: 0;
    padding: 12px 14px 6px 14px;
    border: 1px solid #dedbd6;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-weight: 500;
}

.oda-apartment-wrapper .oda-reference-actions .oda-reference-action.compare-toggle-btn:hover,
.oda-apartment-wrapper .oda-reference-actions .oda-reference-action.compare-toggle-btn:focus-visible,
.oda-apartment-wrapper .oda-reference-actions .oda-reference-action.compare-toggle-btn.in-compare {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.oda-pdf-spinner {
    width: 11px;
    height: 11px;
    margin-right: 6px;
    border: 1px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: odaPdfSpinner 700ms linear infinite;
}

.oda-apartment-gallery-section {
    width: min(100%, max(402px, 28.0125vw));
    margin-top: 62px;
}

.oda-gallery-caption {
    margin: 0 0 7px;
    color: #252525;
    font-family: var(--font-tbc);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    word-spacing: 2px;
}

.oda-apartment-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
}

.oda-gallery-item {
    position: relative;
    aspect-ratio: 0.74;
    width: 100%;
    overflow: hidden;
    background: #f2f1ee;
}

.oda-gallery-item:nth-child(n + 4) {
    display: none;
}

.oda-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

body.oda-lightbox-open {
    overflow: hidden;
}

.oda-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 64px 82px;
    background: rgba(255, 255, 255, 0.97);
}

.oda-lightbox.active {
    display: flex;
}

.oda-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.oda-lightbox-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}

.oda-lightbox-content {
    display: block;
    max-width: min(94vw, 1500px);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.16);
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    transition: transform 180ms ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.oda-lightbox-content-wrapper.is-gesturing .oda-lightbox-content {
    transition: none;
}

.oda-lightbox-btn,
.oda-lb-arrow {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.06);
    color: #111111;
    cursor: pointer;
}

.oda-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 3;
}

.oda-lb-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    font-size: 25px;
    transform: translateY(-50%);
}

.oda-lb-prev {
    left: 0;
}

.oda-lb-next {
    right: 0;
}

.oda-lightbox-index {
    position: fixed;
    left: 50%;
    bottom: 22px;
    color: rgba(17, 17, 17, 0.62);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    transform: translateX(-50%);
}

.oda-pdf-document {
    position: fixed;
    top: 0;
    left: -200vw;
    width: 1123px;
    visibility: hidden;
    pointer-events: none;
}

@keyframes odaPlanSwitcherSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes odaPdfSpinner {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 992px) {
    .oda-apartment-wrapper {
        padding: 96px 0 56px;
        align-items: flex-start;
    }

    .container-oda {
        width: min(760px, calc(100% - 36px));
    }

    .oda-apartment-main-grid,
    .oda-reference-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .oda-apartment-visual,
    .oda-reference-plan-card,
    .oda-tab-panel {
        min-height: 500px;
    }

    .oda-visual-tabs-nav,
    .oda-reference-tabs {
        top: 30px;
        transform: none;
    }

    .oda-tab-panel {
        padding-top: 0;
    }

    .oda-tab-panel img,
    .oda-tab-panel .oda-main-image {
        max-height: 440px;
    }

    .oda-apartment-info,
    .oda-reference-info {
        padding-top: 0;
    }

    .oda-reference-eyebrow {
        margin-top: 36px;
        white-space: normal;
    }

    .oda-apartment-specs,
    .oda-reference-specs {
        margin-top: 44px;
    }

    .oda-apartment-gallery-section {
        margin-top: 54px;
    }
}

@media screen and (min-width: 901px) and (max-width: 992px) {
    .oda-apartment-gallery-section {
        width: calc(42vw - 76.16px);
    }
}

@media screen and (max-width: 620px) {
    .oda-apartment-wrapper {
        padding: 86px 0 44px;
    }

    .container-oda {
        width: calc(100% - 24px);
    }

    .oda-apartment-visual,
    .oda-reference-plan-card {
        min-height: 390px;
        padding-right: 50px;
    }

    .oda-visual-tabs-nav,
    .oda-reference-tabs {
        top: 20px;
        right: 0;
        transform: none;
    }

    .oda-tab-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 8px;
    }

    .oda-tab-panel {
        min-height: 390px;
        padding-top: 0;
    }

    .oda-tab-panel img,
    .oda-tab-panel .oda-main-image {
        max-height: 350px;
    }

    .oda-reference-heading-row {
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 9px 12px;
    }

    .oda-apartment-title {
        font-size: 19px;
    }

    .oda-price-box,
    .oda-reference-price-box,
    .oda-reference-primary-price-row {
        gap: 12px;
    }

    .oda-apartment-actions,
    .oda-reference-actions {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .oda-reference-action {
        min-height: 34px;
    }

    .oda-apartment-gallery-section {
        width: min(402px, calc(100vw - 40px));
        margin-top: 46px;
    }

    .oda-apartment-gallery-grid {
        gap: 5px;
    }

    .oda-lightbox {
        padding: 68px 12px 56px;
    }

    .oda-lb-arrow {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .oda-lb-prev {
        left: 2px;
    }

    .oda-lb-next {
        right: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oda-tab-btn::before,
    .oda-pdf-spinner {
        animation: none;
    }
}

@media screen and (min-width: 993px) {
    .oda-apartment-main-grid,
    .oda-reference-layout,
    .oda-apartment-visual,
    .oda-reference-plan-card,
    .oda-tab-panel {
        min-height: 50cqw;
    }

    .oda-visual-tabs-nav,
    .oda-reference-tabs {
        top: calc(50% - 20.98cqw);
        gap: 0.45cqw;
        padding: 0.63cqw 0.54cqw;
        border-width: max(1px, 0.089cqw);
    }

    .oda-tab-btn {
        width: 3.39cqw;
        height: 3.39cqw;
        min-width: 3.39cqw;
        min-height: 3.39cqw;
        font-size: 0.80cqw;
    }

    .oda-tab-btn::after {
        inset: max(1px, 0.089cqw);
    }

    .oda-tab-panel img,
    .oda-tab-panel .oda-main-image {
        max-height: 41.96cqw;
    }

    .oda-tab-placeholder {
        min-height: 32.14cqw;
        font-size: 1.07cqw;
    }

    .oda-apartment-info,
    .oda-reference-info {
        padding-top: 4.64cqw;
    }

    .oda-reference-eyebrow {
        margin-bottom: 2.14cqw;
        font-size: 1.16cqw;
    }

    .oda-reference-heading-row {
        gap: 2.14cqw;
    }

    .oda-apartment-title {
        font-size: 1.70cqw;
    }

    .oda-floor-position {
        min-height: 2.23cqw;
        padding: 0.71cqw 1.07cqw 0.36cqw;
        border-width: max(1px, 0.089cqw);
        font-size: 0.98cqw;
    }

    .oda-price-box,
    .oda-reference-price-box {
        gap: 2.86cqw;
        margin-top: 1.79cqw;
    }

    .oda-reference-primary-price-row {
        gap: 2.86cqw;
    }

    .oda-apartment-price {
        gap: 0.45cqw;
        font-size: 1.43cqw;
    }

    .oda-sqm-price-box {
        gap: 0.45cqw;
        margin-top: 0.54cqw;
        font-size: 0.98cqw;
    }

    .oda-currency-switcher {
        min-height: 1.79cqw;
        border-width: max(1px, 0.089cqw);
    }

    .oda-curr-btn {
        min-width: 2.95cqw;
        height: 1.96cqw;
        padding-inline: 0.63cqw;
        font-size: 0.89cqw;
    }

    .oda-apartment-specs,
    .oda-reference-specs {
        margin-top: 6.44cqw;
    }

    .oda-apartment-actions,
    .oda-reference-actions {
        gap: 1.07cqw;
    }

    .oda-reference-action,
    .oda-apartment-wrapper .oda-reference-actions .oda-reference-action.compare-toggle-btn {
        min-height: 3.04cqw;
        padding: 1.07cqw 1.25cqw 0.54cqw;
        border-width: max(1px, 0.089cqw);
        font-size: 1.07cqw;
    }

    .oda-pdf-spinner {
        width: 0.98cqw;
        height: 0.98cqw;
        margin-right: 0.54cqw;
        border-width: max(1px, 0.089cqw);
    }

    .oda-apartment-gallery-section {
        width: 35.89cqw;
        margin-top: 6.54cqw;
    }

    .oda-gallery-caption {
        margin-bottom: 0.63cqw;
        font-size: 1.11cqw;
    }

    .oda-apartment-gallery-grid {
        gap: 0.63cqw;
    }
}
