/* ============================================
   SECTION: Centers v2 (tabbed)
   Header + city tabs on the right; a 400px-tall panel per
   center with copy on the left and a tilted photo/video card
   overhanging on the right, over a clipped light-pink swirl.
   ============================================ */

.centers-v2 {
    padding: 100px var(--section-side-padding) 120px;
    background: var(--color-white);
    overflow: hidden;
}

.centers-v2__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

/* ----- Header: heading left, tabs right ----- */
.centers-v2__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 44px;
}

.centers-v2__heading-group {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.centers-v2__heading-group .eyebrow {
    margin: 0;
}

.centers-v2__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    letter-spacing: -1px;
    color: var(--color-text-heading);
    margin: 0;
}
.centers-v2__heading .accent-script {
    letter-spacing: -0.03em;
}

/* ----- Tabs ----- */
.centers-v2__tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.centers-v2__tab {
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: var(--color-white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: var(--font-weight-normal);
    line-height: 28px;
    color: #3e2e2d;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.centers-v2__tab:hover {
    background: #f8f8f8;
}
.centers-v2__tab.is-active {
    background: #f8f8f8;
}

/* ----- Panels wrapper (the visible box; panels swap inside it) ----- */
.centers-v2__panels {
    position: relative;
    min-height: 400px;
    background: var(--color-white);
    border: 2px solid var(--color-surface-line-soft);   /* #f6f6f6 */
    border-radius: 12px;
    /* no overflow hidden — the tilted photo card pokes past the edges */
}

.centers-v2__panel {
    position: relative;
    min-height: 400px;
}
.centers-v2__panel[hidden] {
    display: none;
}

/* Light-pink swirl, clipped to the panel's rounded corners */
.centers-v2__swirl {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}
.centers-v2__swirl::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../../images/decorative/pink-swirl-centersv2.35c99c8fdea9.png") no-repeat center bottom;
}

/* ----- Copy (left) ----- */
.centers-v2__info {
    position: relative;
    z-index: 1;
    max-width: 470px;
    min-height: 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.centers-v2__id {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.centers-v2__name {
    font-size: 32px;
    font-weight: var(--font-weight-medium);
    line-height: 32px;
    color: var(--color-text-heading);
    margin: 0;
}

.centers-v2__address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: normal;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    color: #3e2e2d;
}
.centers-v2__pin {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.centers-v2__desc {
    max-width: 364px;
    font-size: 16px;
    line-height: 26px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.centers-v2__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ----- Tilted photo / video card (right) ----- */
.centers-v2__media {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 44px;
    width: 588px;
    height: 424px;
    padding: 0;
    display: block;
    transform: rotate(-4deg);
    background: var(--color-white);
    border: 2px solid var(--color-surface-line-soft);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
span.centers-v2__media {
    cursor: default;
}

.centers-v2__photo {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    transform: rotate(4deg);   /* counter-tilt so the photo reads level */
}

.centers-v2__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(4deg);
    width: 113px;
    height: 113px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    box-shadow: 0 8px 61px rgba(166, 78, 101, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.centers-v2__media:hover .centers-v2__play {
    transform: translate(-50%, -50%) rotate(4deg) scale(1.06);
}

/* ----- Video modal (lightbox) -----
   Built by js/sections/centers/video-popup.js; these rules mirror
   the ones in css/sections/centers/hero.css so the modal is styled
   on the home page too (which doesn't load that file). */
.center-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.center-video-modal[hidden] {
    display: none;
}
.center-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}
.center-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
}
.center-video-modal__video {
    display: block;
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.center-video-modal__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.center-video-modal__close:hover {
    opacity: 0.8;
}

/* ----- Responsive ----- */
@media (max-width: 1140px) {
    .centers-v2__media {
        width: 480px;
        height: 348px;
    }
}

@media (max-width: 960px) {
    .centers-v2 {
        padding: 64px var(--section-side-padding) 80px;
    }
    .centers-v2__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .centers-v2__tabs {
        justify-content: flex-start;
    }
    .centers-v2__panels,
    .centers-v2__panel {
        min-height: 0;
    }
    .centers-v2__info {
        max-width: none;
        min-height: 0;
        padding: 32px 32px 0;
    }
    /* Photo card drops into the flow below the copy */
    .centers-v2__media {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% - 64px);
        height: auto;
        aspect-ratio: 16 / 10;
        margin: 24px 32px 32px;
        transform: none;
    }
    .centers-v2__photo {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
    .centers-v2__play {
        transform: translate(-50%, -50%);
        width: 84px;
        height: 84px;
    }
    .centers-v2__media:hover .centers-v2__play {
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@media (max-width: 768px) {
    .centers-v2__heading {
        font-size: 32px;
        line-height: 40px;
    }
}
