.vf-wrap {
    width: 100% !important;
    /*max-width: 900px !important;*/
    margin: auto;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-sizing: border-box;
}

.vf-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-height: 0;
}

/* ── Sidebar ── */
.vf-sidebar {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #062E4E;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
}

.vf-sidebar-header {
    padding: 14px 16px;
    background: #051f35;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ── Top filter bar ── */
.vf-topbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #062E4E;
    border-radius: 6px;
}

.vf-topbar-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 200px;
    min-width: 180px;
}

.vf-filter-label {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.vf-filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 13px;
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.vf-filter-input::placeholder {
    color: #fff;
}

.vf-filter-input:focus {
    border-color: #EDC418;
    background: rgba(255,255,255,0.16);
}

select.vf-filter-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ffffff' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px;
}

select.vf-filter-input option {
    color: #062E4E;
    background: #fff;
}

.vf-topbar-reset {
    align-self: flex-end;
    padding: 8px 14px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vf-topbar-reset:hover {
    background: #EDC418;
    border-color: #EDC418;
    color: #062E4E;
}

.vf-region-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    flex: 1;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 145, 255, 0.45) transparent;
}

/* ── Scrollbar — Webkit (Chrome, Edge, Safari) ── */
.vf-region-list::-webkit-scrollbar {
    width: 4px;
}

.vf-region-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.vf-region-list::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(0, 145, 255, 0.35) 0%,
        rgba(0, 145, 255, 0.65) 50%,
        rgba(0, 145, 255, 0.35) 100%
    );
    border-radius: 100px;
    transition: background 0.25s ease;
}

.vf-region-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #0091FF 0%,
        #33aaff 50%,
        #0091FF 100%
    );
}

.vf-region-item {
    padding: 9px 16px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.3;
}

.vf-region-item:hover {
    background: rgba(237,196,24,0.12);
    color: #EDC418;
    border-left-color: #EDC418;
}

.vf-region-item.active {
    background: rgba(0,145,255,0.18);
    color: #fff;
    border-left-color: #0091FF;
    font-weight: 600;
}

/* ── Map ── */
#vf-map {
    flex: 1;
    height: 100%;
    border-radius: 0 6px 6px 0;
    border: 1px solid #ddd;
    border-left: none;
    position: relative;
}

#vf-map-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

#vf-map-loader.active {
    opacity: 1;
}

#vf-map-loader::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: #EDC418;
    border-radius: 0 2px 2px 0;
    animation: vf-loader 1s ease-in-out infinite;
}

@keyframes vf-loader {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ── Popup — Premium corporate card ── */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(6, 46, 78, 0.08),
        0 12px 32px -8px rgba(6, 46, 78, 0.22);
    border: 1px solid rgba(6, 46, 78, 0.06);
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 360px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #062E4E;
    line-height: 1.4;
}

.leaflet-popup-tip {
    background: #fff;
    box-shadow: 0 2px 6px rgba(6, 46, 78, 0.12);
}

.leaflet-popup-close-button {
    top: 6px !important;
    right: 8px !important;
    color: #fff !important;
    font-size: 20px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.leaflet-popup-close-button:hover {
    color: #EDC418 !important;
}

.vf-popup {
    display: grid;
    grid-template-columns: 124px 1fr;
    background: #fff;
    position: relative;
}

.vf-popup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 124px;
    width: 2px;
    height: 100%;
    background: #EDC418;
    z-index: 1;
    pointer-events: none;
}

.vf-popup__media {
    margin: 0;
    position: relative;
    background: #062E4E;
    min-height: 100%;
    overflow: hidden;
}

.vf-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.vf-popup__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 46, 78, 0) 55%, rgba(6, 46, 78, 0.3) 100%);
    pointer-events: none;
}

.vf-popup__media--empty {
    background: linear-gradient(135deg, #062E4E, #0a3f6c);
    min-height: 200px;
}

.vf-popup__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.vf-popup__header {
    min-width: 0;
}

.vf-popup__eyebrow {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0091FF;
}

.vf-popup__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 600;
    line-height: normal !important;
    letter-spacing: -0.01em;
    color: #062E4E;
    overflow-wrap: break-word;
	
}

.vf-popup__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.vf-popup__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid rgba(6, 46, 78, 0.08);
}

.vf-popup__row:first-child {
    border-top: none;
    padding-top: 0;
}

.vf-popup__row dt {
    margin: 0;
    font-weight: 500;
    color: rgba(6, 46, 78, 0.55);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.vf-popup__row dd {
    margin: 0;
    color: #062E4E;
    font-weight: 500;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    /*white-space: nowrap;*/
}

.vf-pips {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.vf-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(6, 46, 78, 0.25);
    background: transparent;
    box-sizing: border-box;
    display: inline-block;
}

.vf-pip--on {
    background: #EDC418;
    border-color: rgba(6, 46, 78, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.vf-popup__site {
    color: #0091FF !important;
	font-size: 12px !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 145, 255, 0.25);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.vf-popup__site:hover {
    color: #B2128E;
    border-bottom-color: #B2128E;
}

.vf-popup__cta {
    margin-top: 4px;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #062E4E;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 0.18s ease;
}

.vf-popup__cta svg {
    transition: transform 0.18s ease;
}

.vf-popup__cta:hover {
    background: #B2128E;
    color: #fff !important;
}

.vf-popup__cta:hover svg {
    transform: translateX(3px);
}

.vf-popup__cta:focus-visible {
    outline: 2px solid #EDC418;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .leaflet-popup-content {
        width: 300px !important;
    }
    .vf-popup {
        grid-template-columns: 1fr;
    }
    .vf-popup::before {
        top: 170px;
        left: 0;
        width: 100%;
        height: 2px;
    }
    .vf-popup__media {
        min-height: 0;
    }
    .vf-popup__media img,
    .vf-popup__media--empty {
        min-height: 170px;
        height: 170px;
    }
    .vf-popup__row dd {
        white-space: normal;
        text-align: right;
    }
}

@media (max-width: 380px) {
    .leaflet-popup-content {
        width: 270px !important;
    }
    .vf-popup::before {
        top: 150px;
    }
    .vf-popup__media img,
    .vf-popup__media--empty {
        min-height: 150px;
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vf-popup__cta,
    .vf-popup__cta svg,
    .vf-popup__site {
        transition: none;
    }
    .vf-popup__cta:hover svg {
        transform: none;
    }
}

#vf-map-single {
    width: 100%;
    height: 350px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.leaflet-bottom.leaflet-right {
    display: none;
}

/**
Champs pour les filtres
**/
.vf-filter-input:focus {
    border-color: #EDC418;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@media screen and (max-width: 1024px){
	.vf-topbar{
		display: block;
	}
	.vf-topbar-field{
		margin-bottom: 13px;
	}
}