body.post-type-archive-service .header-hero-wrapper {
    min-height: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

body.post-type-archive-service .service-proximite-container {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding-top: 0;
}

.leaflet-popup.svc-popup .leaflet-popup-content-wrapper {
    border-radius: 0;
}

.svc-btn[href] {
    background-image: none !important;
}

body.post-type-archive-service {
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --bg: #f7f8fb;
    --panel: #ffffff;
    --text: #101828;
    --muted: #667085;
    --primary: #1e66ff;
    --border: #e6e8ef;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(16, 24, 40, .08);
    --focus: 0 0 0 3px rgba(30, 102, 255, .20);
}

body {
    background: var(--bg);
}

.service-proximite-container {
    position: relative;
    max-width: 1900px;
    margin: 3rem auto;
}

.leaflet-control-attribution.leaflet-control {
    display: none;
}

.panel {
    width: min(360px, 92vw);
    background: var(--panel);
    border: 1px solid #27305926;
    box-shadow: var(--shadow);
    padding: 28px;
    position: absolute;
    top: 20rem;
    left: 4rem;
    z-index: 1000;
}

.title {
    font-family: "Karma", serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: var(--text);
}

.panel-label-top {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 6px 0;
}

.panel-find-label {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 12px 0;
}

.panel-not-found {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    margin: 16px 0 8px 0;
}

.panel-info {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    margin: 0;
}

.hint {
    display: none;
}

.field {
    display: grid;
    gap: 8px;
    margin: 0 0 8px 0;
}

label {
    font-weight: 600;
    font-size: 14px;
}

.select-wrap {
    position: relative;
    width: 100%;
}

#select-lieu {
    border: 1px solid #000;
    border-radius: 4px;
}

select {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 44px 12px 14px;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    transition: border .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus);
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    background: no-repeat center / 18px 18px url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23667085" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    opacity: .9;
}



#map {
    height: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

/* ====== POPUP STYLE ====== */
.leaflet-popup.svc-popup .leaflet-popup-content-wrapper {
    background: #0d7bc6;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .25);
    border: none;
    min-width: 300px;
}

.leaflet-popup.svc-popup .leaflet-popup-content {
    margin: 0;
    color: white;
    font-family: "Montserrat", "Arial", sans-serif;
}

.leaflet-popup.svc-popup .leaflet-popup-tip {
    background: #0d7bc6;
    border: none;
}

.leaflet-popup.svc-popup .leaflet-popup-close-button {
    color: white;
    font-size: 22px;
    padding: 10px 14px;
    right: 0;
    top: 0;
    font-weight: 300;
}

.svc-card {
    width: 300px;
    background: #0d7bc6;
    color: white;
    position: relative;
    padding: 28px 24px 20px;
}

.svc-title {
    font-family: "Karma", serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
    margin: 0 0 12px 0;
    padding-right: 30px;
    color: white;
}

.svc-address {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 16px;
    color: white;
}

.svc-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 6px 14px;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0;
}

.status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.status-icon.closed {
    background: #ef4444;
}

.svc-actions {
    display: flex;
    flex-direction: column;
    background: white;
    margin: 20px -24px -20px -24px;
    padding: 0 24px;
}

.svc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f2937;
    text-decoration: none !important;
    font-family: "Montserrat", "Arial", sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 18px 0;
    transition: color 0.2s;
}

.svc-btn:hover {
    color: #0d7bc6;
    text-decoration: none !important;
}

.svc-btn:last-child {
    border-bottom: none;
}

.svc-btn-arrow {
    font-size: 18px;
    color: #1f2937;
    line-height: 1;
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .panel {
        position: relative;
        top: auto;
        left: auto;
        margin: 1rem auto;
        width: 90%;
    }

    #map {
        height: 700px;
    }
}

@media (max-width: 600px) {
    .service-proximite-container {
        padding: 8px;
    }

    .panel {
        width: 100%;
        margin: 0 0 1rem 0;
        padding: 20px;
    }

    #map {
        height: 610px !important;
    }

    .title {
        font-size: 22px;
    }

    .badge {
        font-size: 24px;
    }

    select {
        font-size: 13px;
        padding: 10px 36px 10px 12px;
    }
}

.contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.contact-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100vw);
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    flex-direction: column;
}

.contact-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-panel-title {
    font-family: "Karma", serif;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

.contact-panel-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #667085;
    padding: 4px 8px;
}

.contact-panel-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}