/* =========================
   CHU MAP PAGE — PREMIUM FIX
========================= */

.chu-page {
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(124,58,237,.08), transparent 34%),
        linear-gradient(to bottom, #ffffff, #f8fbff);
    padding-bottom: 64px;
    overflow: visible;
    position: relative;
}

/* HERO */

.chu-hero {
    padding: 72px 24px 34px;
    text-align: center;
}

.chu-hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.chu-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 18px;
}

.chu-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.chu-hero p {
    margin: 16px auto 0;
    max-width: 690px;
    color: #64748b;
    font-size: 1.06rem;
    line-height: 1.7;
}

/* SEARCH */

.chu-search-card {
    margin: 30px auto 0;
    max-width: 760px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow:
        0 22px 55px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
}

.chu-search-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f5f3ff;
}

.chu-search-card input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #0f172a;
    min-width: 0;
}

.chu-search-card input::placeholder {
    color: #94a3b8;
}

.chu-search-btn {
    border: none;
    cursor: pointer;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(37,99,235,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.chu-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37,99,235,.28);
}

.chu-hero-note {
    font-size: .92rem !important;
    color: #475569 !important;
}

/* LAYOUT */

.chu-shell {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

/* LEFT PANEL */

.chu-info-panel {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 32px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow:
        0 24px 60px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    padding: 28px;
}

.chu-info-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.10), transparent 36%),
        radial-gradient(circle at bottom left, rgba(56,189,248,.08), transparent 34%);
    pointer-events: none;
}

.chu-info-panel > * {
    position: relative;
}

/* EMPTY STATE */

.chu-info-empty {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: #f5f3ff;
    font-size: 2rem;
}

.chu-info-empty h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.chu-info-empty p {
    margin: 12px auto 0;
    max-width: 290px;
    color: #64748b;
    line-height: 1.7;
}

/* DETAILS */

.chu-details.hidden {
    display: none;
}

.chu-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0369a1;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.chu-details h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

/* META */

.chu-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.chu-address,
.chu-city {
    margin: 0;
    border-radius: 18px;
    line-height: 1.55;
}

.chu-address {
    padding: 15px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 650;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.chu-address::before {
    content: "Adresse";
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.chu-city {
    padding: 13px 15px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #5b21b6;
    font-size: .92rem;
    font-weight: 700;
}

.chu-city::before {
    content: "📍 ";
}

/* ACTIONS */

.chu-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.btn-call,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease;
}

.btn-call {
    background: linear-gradient(135deg, #4da6ff, #2563eb);
    color: white;
    border: none;
    box-shadow:  0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-call::before {
    content: "📞 ";
    margin-right: 6px;
}

.btn-outline {
    background: rgba(255,255,255,.72);
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.btn-outline:hover,
.btn-call:hover {
    transform: translateY(-1px);
}

/* WARNING */

.chu-warning {
    margin-top: 24px;
    padding: 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: .92rem;
    line-height: 1.6;
}

/* MAP */

.chu-map-container {
    position: relative;
    height: 680px;
    min-height: 0;
    overflow: hidden;
    border-radius: 32px;
    background: #f8fafc;
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 24px 60px rgba(15,23,42,.08);
}

.map-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

.map-loading {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 11px 17px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,232,240,.9);
    backdrop-filter: blur(14px);
    color: #0f172a;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(15,23,42,.12);
}

.map-loading.hidden {
    display: none;
}

/* LEAFLET */

.leaflet-container {
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

.leaflet-popup-content {
    line-height: 1.55;
    color: #334155;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .chu-shell {
        grid-template-columns: 1fr;
        width: min(100% - 40px, 1440px);
    }

    .chu-info-panel {
        min-height: auto;
    }

    .chu-info-empty {
        min-height: 260px;
    }

    .chu-map-container {
        height: 540px;
    }
}

@media (max-width: 640px) {
    .chu-page {
        padding-bottom: 40px;
    }

    .chu-hero {
        padding: 54px 18px 28px;
    }

    .chu-search-card {
        grid-template-columns: 1fr;
        border-radius: 26px;
        padding: 14px;
    }

    .chu-search-icon {
        display: none;
    }

    .chu-search-card input {
        min-height: 46px;
        padding: 0 8px;
        text-align: center;
    }

    .chu-search-btn {
        width: 100%;
    }

    .chu-shell {
        width: min(100% - 28px, 1440px);
        gap: 16px;
    }

    .chu-info-panel,
    .chu-map-container {
        border-radius: 26px;
    }

    .chu-info-panel {
        padding: 22px;
    }

    .chu-map-container {
        height: 460px;
    }
}
