/* ══════════════════════════════════
   facilities.css
   Insight Resort — Facilities Page
   Inspired by home page design system
   ══════════════════════════════════ */

/* ── Shared Animation Keyframes ── */
@keyframes facFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ── */
.fac-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
}

.fac-section-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #c8902d;
    margin-bottom: 0.5rem;
}

.fac-underline-title {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.fac-underline-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #c8902d, #e0a840);
    border-radius: 2px;
}

.fac-underline-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-center .fac-underline-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.fac-intro-text,
.fac-body-text {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

/* ── Breadcrumb Banner ── */
.fac-breadcrumb {
    position: relative;
    min-height: 280px;
    background: #1a2e1f center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fac-breadcrumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 0;
}

.fac-breadcrumb__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.fac-breadcrumb__content {
    position: relative;
    z-index: 1;
}

.fac-breadcrumb__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.fac-breadcrumb__trail {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    gap: 0.5rem;
}

.fac-breadcrumb__trail li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.5;
}

.fac-breadcrumb__trail a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.fac-breadcrumb__trail a:hover {
    color: #fff;
}

/* ── Image Containers ── */
.fac-img-placeholder {
    background: #e8e3d4;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s cubic-bezier(0.22, 0.68, 0, 1.1),
                box-shadow 0.4s ease;
}

.fac-img-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.fac-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.1);
}

.fac-img-placeholder:hover img {
    transform: scale(1.04);
}

.fac-img-placeholder.fac-img-has-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ddd7c5 0%, #e8e3d4 100%);
}

.fac-img-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    color: #8a7e6b;
    text-align: center;
    padding: 12px;
    letter-spacing: 0.04em;
}

/* Heights */
.fac-img-tall        { height: 320px; }
.fac-img-medium      { height: 200px; }
.fac-img-carousel    { height: 210px; }
.fac-img-fullwidth   { height: 420px; border-radius: 0; box-shadow: none; }

/* ── Carousels ── */
.fac-carousel {
    margin-bottom: 0.5rem;
}

.fac-carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 18px;
    margin-bottom: 0;
    justify-content: center;
    gap: 6px;
}

.fac-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #c8c0a8;
    border: none;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.fac-carousel-indicators [data-bs-target]:hover {
    transform: scale(1.3);
    background-color: #b0a080;
}

.fac-carousel-indicators .active {
    background-color: #c8902d;
    transform: scale(1.2);
}

/* Full-width carousel section */
.fac-fullwidth-carousel {
    position: relative;
}

.fac-fullwidth-carousel .fac-carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    margin: 0;
}

/* ── Section Backgrounds ── */
.fac-facility-section {
    background: #fff;
}

.fac-spa-section {
    background: linear-gradient(180deg, #fcfbf7 0%, #f6f3ea 100%);
}

.fac-bar-section {
    background: linear-gradient(180deg, #fcfbf7 0%, #f6f3ea 100%);
}

/* ── Intro sections ── */
.fac-intro-section {
    background: linear-gradient(180deg, #fdfaf3 0%, #f8f4e8 100%);
    position: relative;
    overflow: hidden;
}

.fac-intro-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(200, 144, 45, 0.04);
    pointer-events: none;
}

/* ── Orange Divider Line ── */
.fac-facility-section + .fac-facility-section,
.fac-fullwidth-carousel + .fac-facility-section {
    border-top: 3px solid #c8902d;
}

/* ── Games Lists ── */
.fac-games-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.fac-games-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #c8902d;
    border-radius: 1px;
}

.fac-games-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fac-games-list li {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: #4a4a4a;
    padding: 4px 0 4px 20px;
    position: relative;
    transition: color 0.2s, padding-left 0.2s;
}

.fac-games-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #c8902d;
    font-size: 0.72rem;
    top: 5px;
    transition: transform 0.2s;
}

.fac-games-list li:hover {
    color: #222;
    padding-left: 24px;
}

.fac-games-list li:hover::before {
    transform: translateX(3px);
}

/* ── Map iframe styling ── */
.fac-fullwidth-carousel iframe {
    display: block;
}

/* ── Scroll reveal animation ── */
.fac-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: facFadeUp 0.7s cubic-bezier(0.22, 0.68, 0, 1) forwards;
}

.fac-reveal-delay-1 { animation-delay: 0.1s; }
.fac-reveal-delay-2 { animation-delay: 0.2s; }
.fac-reveal-delay-3 { animation-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .fac-img-tall { height: 260px; }
}

@media (max-width: 767px) {
    .fac-section-title { font-size: 1.6rem; }
    .fac-breadcrumb__title { font-size: 2rem; }
    .fac-breadcrumb { min-height: 200px; }
    .fac-img-tall { height: 220px; }
    .fac-img-carousel { height: 140px; }
    .fac-img-fullwidth { height: 240px; }
    .fac-img-placeholder { border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
}
