/* resort-hero.css — Styles for resort hero map + overlay (matches resort.js output) */

/* ── Hero container: map fills entire area, overlay floats on top ── */

.resort-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--bg-2);
    border-bottom: 1px solid var(--bdr);
    padding: 0;
}

/* ── Terrain map fills hero ─────────────────────────────── */

.resort-hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Only size the map div, not the style toggle */
.resort-hero-map > div:not(.mb-style-toggle) {
    width: 100% !important;
    height: 100% !important;
}

/* ── Overlay: resort name + stats bar ───────────────────── */

.resort-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, rgba(8, 12, 24, 0.92) 0%, rgba(8, 12, 24, 0.7) 60%, transparent 100%);
    padding: 3rem 2rem 1.25rem;
    pointer-events: none;
}

.resort-hero-info {
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: auto;
}

.resort-hero-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

/* ── Stats bar ──────────────────────────────────────────── */

.resort-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
}

.stat-chip-rating {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(34, 211, 238, 0.1));
    border-color: rgba(56, 189, 248, 0.25);
}

.stat-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.stat-detail {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.2;
}

/* ── Scope mb-style-toggle inside hero map ──────────────── */

.resort-hero-map .mb-style-toggle {
    z-index: 6;
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 2px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.resort-hero-map .mb-style-btn {
    all: unset;
    padding: 0.3rem 0.45rem;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
    box-sizing: border-box;
}

.resort-hero-map .mb-style-btn.active {
    background: #1f2937;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.resort-hero-map .mb-style-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .resort-hero {
        height: 340px;
    }

    .resort-hero-info h1 {
        font-size: 1.4rem;
    }

    .stat-chip {
        padding: 0.4rem 0.65rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .resort-hero {
        height: 280px;
    }

    .resort-hero-overlay {
        padding: 2rem 1rem 1rem;
    }

    .resort-hero-info h1 {
        font-size: 1.2rem;
    }

    .resort-stats-bar {
        gap: 0.35rem;
    }

    .stat-chip {
        padding: 0.35rem 0.55rem;
        gap: 0.35rem;
    }

    .stat-icon {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 0.78rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }
}