/* =========================================================
   POMOSDA — SECTION 10 REDESIGN R15
   Editorial Facility Showcase
   Design-only. Replaces R13/R13.1 visual concept.
   Existing category/slider JS and admin data are retained.
   ========================================================= */

.pomosda-facilities-section {
    --s10-green: #075f51;
    --s10-green-dark: #054d42;
    --s10-green-soft: #dfeae3;
    --s10-gold: #f3c623;
    --s10-bg: #f7f3ea;
    --s10-surface: #fffdf9;
    --s10-ink: #173f36;
    --s10-muted: #66746f;

    position: relative !important;
    width: 100% !important;
    padding:
        clamp(68px, var(--section10-padding-top, 82px), 96px)
        0
        clamp(76px, var(--section10-padding-bottom, 88px), 104px) !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 8% 20%, rgba(109,139,116,.12), transparent 21%),
        radial-gradient(circle at 93% 72%, rgba(243,198,35,.09), transparent 18%),
        linear-gradient(180deg, #fbf8f1 0%, #f5f0e7 100%) !important;
}

.pomosda-facilities-section::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: 48px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(7,95,81,.08);
    border-radius: 50%;
    pointer-events: none;
}

.pomosda-facilities-section::after {
    content: "";
    position: absolute;
    right: 4%;
    top: 120px;
    width: 62px;
    height: 62px;
    background:
        radial-gradient(circle, rgba(7,95,81,.22) 0 2px, transparent 2.5px)
        0 0 / 12px 12px;
    opacity: .35;
    pointer-events: none;
}

.pomosda-facilities-section__container {
    width: min(1380px, calc(100% - 48px)) !important;
    margin-inline: auto !important;
}

/* ---------- Header ---------- */
.pomosda-facilities-section__header {
    width: min(900px, 100%) !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
}

.pomosda-facilities-section__eyebrow {
    margin-bottom: 12px !important;
}

.pomosda-facilities-section__header h2 {
    max-width: 820px !important;
    margin-inline: auto !important;
    text-wrap: balance;
}

.pomosda-facilities-section__header p {
    max-width: 740px !important;
    margin-top: 15px !important;
    color: var(--s10-muted) !important;
}

/* ---------- Tabs ---------- */
.pomosda-facilities-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto 28px !important;
    padding: 0 4px 6px !important;
    overflow-x: auto !important;
}

.pomosda-facilities-tab {
    position: relative !important;
    min-width: 72px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(7,95,81,.11) !important;
    border-radius: 999px !important;
    background: rgba(255,253,249,.84) !important;
    color: #37554d !important;
    box-shadow: 0 5px 16px rgba(30,59,51,.04) !important;
}

.pomosda-facilities-tab.is-active {
    border-color: var(--s10-green) !important;
    background: var(--s10-green) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(7,95,81,.16) !important;
}

.pomosda-facilities-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--s10-gold);
    transform: translateX(-50%);
}

/* =========================================================
   POCKET = ONE EDITORIAL SHOWCASE CARD
   ========================================================= */

.pomosda-facilities-showcase,
.pomosda-facilities-pockets {
    position: relative !important;
}

.pomosda-facilities-pockets {
    min-height: 510px !important;
}

.pomosda-facility-pocket {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    grid-template-columns: 310px minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    min-height: 510px !important;
    padding: 18px !important;
    border: 1px solid rgba(7,95,81,.07) !important;
    border-radius: 34px !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.88), rgba(248,244,235,.95)) !important;
    box-shadow:
        0 24px 64px rgba(27,55,47,.09),
        inset 0 1px 0 rgba(255,255,255,.72) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) !important;
}

.pomosda-facility-pocket.is-active {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* old pocket lip is no longer part of this redesign */
.pomosda-facility-pocket__lip {
    display: none !important;
}

/* =========================================================
   LEFT INFORMATION PANEL
   ========================================================= */

.pomosda-facility-pocket__info {
    position: relative !important;
    inset: auto !important;
    z-index: 5 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 474px !important;
    height: auto !important;
    padding: 40px 34px 34px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 27px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 5% 3%, rgba(255,255,255,.09), transparent 28%),
        radial-gradient(circle at 90% 90%, rgba(243,198,35,.11), transparent 31%),
        linear-gradient(150deg, #0a7864 0%, var(--s10-green) 52%, var(--s10-green-dark) 100%) !important;
    box-shadow:
        0 20px 44px rgba(4,62,52,.18),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.pomosda-facility-pocket__info::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -72px;
    bottom: -70px;
    border: 1px solid rgba(243,198,35,.16);
    border-radius: 50%;
}

.pomosda-facility-pocket__info::after {
    content: "";
    position: absolute;
    top: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background:
        radial-gradient(circle, rgba(243,198,35,.92) 0 2px, transparent 2.5px)
        0 0 / 10px 10px;
    opacity: .27;
}

.pomosda-facility-pocket__info > * {
    position: relative !important;
    z-index: 1 !important;
    transform: none !important;
}

.pomosda-facility-pocket__label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: rgba(255,255,255,.70) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
}

.pomosda-facility-pocket__label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--s10-gold);
    box-shadow: 0 0 0 5px rgba(243,198,35,.08);
}

.pomosda-facility-pocket__info h3 {
    max-width: 235px !important;
    margin-top: 14px !important;
    color: #fff !important;
    font-size: clamp(34px, 3vw, var(--section10-category-title-size, 44px)) !important;
    line-height: 1.03 !important;
    letter-spacing: -.028em !important;
    text-transform: uppercase !important;
}

.pomosda-facility-pocket__info h3::after {
    width: 54px !important;
    height: 4px !important;
    margin: 19px 0 0 !important;
    background: var(--s10-gold) !important;
}

.pomosda-facility-pocket__info p {
    width: 100% !important;
    max-width: 235px !important;
    margin: 21px 0 0 !important;
    color: rgba(255,255,255,.81) !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
    text-align: left !important;
}

.pomosda-facility-pocket__counter {
    width: 100% !important;
    max-width: 230px !important;
    margin-top: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    color: var(--s10-gold) !important;
    font-size: 11px !important;
    letter-spacing: .07em !important;
}

.pomosda-facility-pocket__counter-line {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 2px !important;
    border-radius: 99px !important;
    background: linear-gradient(90deg, rgba(243,198,35,.90), rgba(243,198,35,.18)) !important;
}

/* =========================================================
   GALLERY: HERO + 2 STACKED PREVIEWS
   ========================================================= */

.pomosda-facility-pocket__slider {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    min-width: 0 !important;
    min-height: 474px !important;
    border-radius: 27px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 28% 12%, rgba(255,255,255,.96), transparent 30%),
        linear-gradient(145deg, #f7f4ec 0%, #ebe6db 100%) !important;
}

.pomosda-facility-pocket__stage {
    position: absolute !important;
    inset: 0 !important;
}

/* subtle grid guide */
.pomosda-facility-pocket__stage::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: 26px;
    width: 52px;
    height: 52px;
    background:
        radial-gradient(circle, rgba(7,95,81,.18) 0 2px, transparent 2.5px)
        0 0 / 11px 11px;
    opacity: .27;
    pointer-events: none;
}

/* Reset all legacy card sizing/positioning */
.pomosda-facility-card {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    border: 1px solid rgba(7,95,81,.08) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(28,56,48,.11) !important;
    transform-origin: center center !important;
    pointer-events: none !important;
}

/* HERO card occupies left ~68% */
.pomosda-facility-card.is-active {
    top: 25px !important;
    left: 24px !important;
    right: 290px !important;
    bottom: 25px !important;
    width: auto !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    z-index: 8 !important;
    pointer-events: auto !important;
    box-shadow:
        0 27px 56px rgba(27,55,47,.16),
        0 8px 18px rgba(27,55,47,.06) !important;
}

/* first preview: top right */
.pomosda-facility-card.is-next {
    top: 25px !important;
    right: 24px !important;
    width: 238px !important;
    height: 200px !important;
    opacity: .96 !important;
    transform: none !important;
    filter: saturate(.92) !important;
    z-index: 6 !important;
}

/* second preview: bottom right */
.pomosda-facility-card.is-next-2 {
    right: 24px !important;
    bottom: 25px !important;
    width: 238px !important;
    height: 200px !important;
    opacity: .78 !important;
    transform: none !important;
    filter: saturate(.80) !important;
    z-index: 5 !important;
}

.pomosda-facility-card.is-prev {
    left: -48% !important;
    top: 40px !important;
    width: 55% !important;
    height: calc(100% - 80px) !important;
    opacity: 0 !important;
    transform: translateX(-20px) scale(.96) !important;
    z-index: 2 !important;
}

.pomosda-facility-card.is-hidden {
    right: -34% !important;
    top: 54px !important;
    width: 230px !important;
    height: 190px !important;
    opacity: 0 !important;
    transform: translateX(20px) scale(.92) !important;
    z-index: 1 !important;
}

/* Media fills card correctly */
.pomosda-facility-card img,
.pomosda-facility-card__placeholder {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

.pomosda-facility-card__placeholder {
    display: grid !important;
    place-items: center !important;
}

/* ---------- Labels become compact floating chips ---------- */
.pomosda-facility-card figcaption {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 14px !important;
    left: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: max-content !important;
    max-width: calc(100% - 28px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 14px 8px 9px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 999px !important;
    background: rgba(255,253,249,.90) !important;
    box-shadow: 0 9px 22px rgba(23,55,46,.11) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none !important;
}

.pomosda-facility-card figcaption strong {
    width: auto !important;
    margin: 0 !important;
    color: var(--s10-ink) !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* if an icon wrapper exists */
.pomosda-facility-card figcaption > :first-child:not(strong) {
    flex: 0 0 auto !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    background: var(--s10-green) !important;
    color: #fff !important;
}

.pomosda-facility-card.is-next figcaption,
.pomosda-facility-card.is-next-2 figcaption {
    bottom: 10px !important;
    left: 10px !important;
    max-width: calc(100% - 20px) !important;
    padding: 7px 11px 7px 8px !important;
}

.pomosda-facility-card.is-next figcaption strong,
.pomosda-facility-card.is-next-2 figcaption strong {
    max-width: 145px !important;
    font-size: 12px !important;
}

/* ---------- Navigation ---------- */
.pomosda-facility-pocket__arrow {
    position: absolute !important;
    top: auto !important;
    bottom: 36px !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(7,95,81,.11) !important;
    border-radius: 999px !important;
    background: rgba(255,253,249,.94) !important;
    color: var(--s10-green) !important;
    box-shadow: 0 10px 24px rgba(24,53,45,.10) !important;
    transform: none !important;
    z-index: 30 !important;
}

.pomosda-facility-pocket__arrow--prev {
    right: 82px !important;
}

.pomosda-facility-pocket__arrow--next {
    right: 30px !important;
}

@media (hover:hover) and (pointer:fine) {
    .pomosda-facility-card.is-active img {
        transition: transform 360ms ease !important;
    }

    .pomosda-facility-card.is-active:hover img {
        transform: scale(1.018) !important;
    }

    .pomosda-facility-pocket__arrow:hover {
        background: var(--s10-green) !important;
        color: #fff !important;
        transform: translateY(-1px) !important;
    }
}

/* =========================================================
   MEDIUM DESKTOP / TABLET LANDSCAPE
   ========================================================= */

@media (max-width: 1120px) and (min-width: 821px) {
    .pomosda-facilities-section__container {
        width: min(100% - 32px, 1040px) !important;
    }

    .pomosda-facility-pocket {
        grid-template-columns: 280px minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .pomosda-facility-pocket__info {
        padding: 34px 28px 30px !important;
    }

    .pomosda-facility-pocket__info h3 {
        font-size: 35px !important;
    }

    .pomosda-facility-card.is-active {
        right: 235px !important;
    }

    .pomosda-facility-card.is-next,
    .pomosda-facility-card.is-next-2 {
        width: 188px !important;
    }
}

/* =========================================================
   MOBILE / TABLET PORTRAIT
   ========================================================= */

@media (max-width: 820px) {
    .pomosda-facilities-section__container {
        width: min(100% - 24px, 720px) !important;
    }

    .pomosda-facilities-section::after {
        display: none;
    }

    .pomosda-facilities-tabs {
        justify-content: flex-start !important;
        margin-bottom: 20px !important;
    }

    .pomosda-facilities-pockets {
        min-height: 740px !important;
    }

    .pomosda-facility-pocket,
    .pomosda-facility-pocket.is-active {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
        gap: 12px !important;
        min-height: 740px !important;
        padding: 12px !important;
        border-radius: 28px !important;
    }

    .pomosda-facility-pocket__info {
        min-height: 240px !important;
        padding: 30px 27px !important;
        border-radius: 23px !important;
    }

    .pomosda-facility-pocket__info h3 {
        max-width: none !important;
        font-size: 36px !important;
    }

    .pomosda-facility-pocket__info p {
        max-width: 590px !important;
    }

    .pomosda-facility-pocket__counter {
        max-width: 260px !important;
        margin-top: 22px !important;
    }

    .pomosda-facility-pocket__slider {
        min-height: 450px !important;
        border-radius: 23px !important;
    }

    .pomosda-facility-card.is-active {
        top: 18px !important;
        right: 18px !important;
        bottom: 72px !important;
        left: 18px !important;
    }

    .pomosda-facility-card.is-next,
    .pomosda-facility-card.is-next-2,
    .pomosda-facility-card.is-prev,
    .pomosda-facility-card.is-hidden {
        right: -100% !important;
        left: auto !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .pomosda-facility-pocket__arrow {
        bottom: 16px !important;
    }

    .pomosda-facility-pocket__arrow--prev {
        right: 68px !important;
    }

    .pomosda-facility-pocket__arrow--next {
        right: 16px !important;
    }
}

@media (max-width: 540px) {
    .pomosda-facilities-section {
        padding-top: 60px !important;
        padding-bottom: 70px !important;
    }

    .pomosda-facilities-section__header {
        margin-bottom: 24px !important;
    }

    .pomosda-facility-pocket__info h3 {
        font-size: 32px !important;
    }

    .pomosda-facilities-pockets,
    .pomosda-facility-pocket {
        min-height: 680px !important;
    }

    .pomosda-facility-pocket__info {
        min-height: 220px !important;
        padding: 27px 23px !important;
    }

    .pomosda-facility-pocket__slider {
        min-height: 420px !important;
    }

    .pomosda-facility-card figcaption {
        bottom: 11px !important;
        left: 11px !important;
        max-width: calc(100% - 22px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pomosda-facilities-section *,
    .pomosda-facilities-section *::before,
    .pomosda-facilities-section *::after {
        transition-duration: .01ms !important;
    }
}
