/* Laboratory archive: map + filter bar */

/* ── Map ────────────────────────────────────────────── */
.laboratory-archive-map-wrapper {
    width: 100%;
    height: 500px;
}
@media (max-width: 767px) {
    .laboratory-archive-map-wrapper {
        height: 280px;
    }
}
#laboratory-archive-map {
    width: 100%;
    height: 100%;
}
/* NW-25179 : substitut Complianz quand le marketing est refuse. Complianz injecte en
   fin de <head> une regle .cmplz-placeholder-N { height } tiree du rapport de son
   image (1280x920) : 1158 px de haut a 1609 px de large, la liste des laboratoires
   repoussee de 658 px et le bouton d'acceptation sous la ligne de flottaison (revue
   du 17/09). Le conteneur garde ses hauteurs, en specificite 0-2-0. */
.laboratory-archive-map-wrapper.cmplz-blocked-content-container {
    height: 500px;
}
@media (max-width: 767px) {
    .laboratory-archive-map-wrapper.cmplz-blocked-content-container {
        height: 280px;
    }
}
.lab-map-infowindow {
    min-width: 180px;
    max-width: 220px;
    font-family: inherit;
    line-height: 1.4;
}
.lab-map-infowindow p {
    margin: 0 0 4px;
}
.liw-title a {
    color: #00957D;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.liw-title a:hover {
    text-decoration: underline;
}
.liw-address,
.liw-city {
    color: #4B5864;
    font-size: 13px;
}
.liw-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #4B5864;
    border-radius: 4px;
    color: #4B5864;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.liw-btn:hover {
    background: #4B5864;
    color: #fff;
    text-decoration: none;
}

/* ── Filter bar ─────────────────────────────────────── */
.laboratory-filters-bar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(75, 88, 100, 0.14);
    padding: 14px 0;
}
.laboratory-filters-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
@media (min-width: 992px) {
    .laboratory-filters-inner {
        flex-wrap: nowrap;
    }
}

/* ── Text search ────────────────────────────────────── */
.lab-filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.lab-filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4B5864;
    font-size: 15px;
    pointer-events: none;
}
.lab-filter-search .form-control {
    padding-left: 40px;
    height: 45px;
    border-color: #d0d0cf;
    border-radius: 4px;
    font-size: 14px;
}
.lab-filter-search .form-control::placeholder {
    color: #756D6A;
}

/* ── Dropdown ───────────────────────────────────────── */
.lab-filter-dropdown {
    position: relative;
    flex-shrink: 0;
}
.lab-filter-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    min-height: 45px;
    background: #fff;
    border: 1px solid #63B4AC;
    border-radius: 4px;
    color: #4B5864;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    text-transform: none;
}
.lab-filter-dropdown__toggle i {
    font-size: 11px;
    color: #63B4AC;
    transition: transform 0.2s ease;
}
.lab-filter-dropdown__toggle:hover,
.lab-filter-dropdown__toggle:focus {
    background: rgba(99, 180, 172, 0.07);
    color: #4B5864;
    outline: none;
}
.lab-filter-dropdown__toggle.has-selection {
    background: rgba(99, 180, 172, 0.12);
    border-color: #00957D;
    color: #00957D;
    font-weight: 500;
}
.lab-filter-dropdown__toggle.has-selection i {
    color: #00957D;
}
.lab-filter-dropdown.is-open .lab-filter-dropdown__toggle i {
    transform: rotate(180deg);
}

.lab-filter-dropdown__menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(75, 88, 100, 0.16);
    z-index: 200;
    padding: 6px 0;
}
.lab-filter-dropdown__menu[hidden] {
    display: none !important;
}
.lab-filter-dropdown.is-open .lab-filter-dropdown__menu {
    display: block;
}

.lab-filter-dropdown__items {
    max-height: 240px;
    overflow-y: auto;
}

.lab-filter-dropdown__footer {
    padding: 8px 12px 6px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

/* ── Checkbox labels ────────────────────────────────── */
.lab-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #4B5864;
    transition: background 0.12s;
}
.lab-filter-checkbox:hover {
    background: rgba(99, 180, 172, 0.06);
}
.lab-filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.lab-filter-checkbox__box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #c8c8c8;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.lab-filter-checkbox__box::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}
.lab-filter-checkbox input[type="checkbox"]:checked ~ .lab-filter-checkbox__box {
    background: #63B4AC;
    border-color: #63B4AC;
}
.lab-filter-checkbox input[type="checkbox"]:checked ~ .lab-filter-checkbox__box::after {
    display: block;
}

/* ── Submit inside dropdown ─────────────────────────── */
.lab-btn-submit {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: #63B4AC;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.lab-btn-submit:hover {
    background: #4e9f97;
    color: #fff;
}

/* ── Main Rechercher button ─────────────────────────── */
.lab-filter-submit {
    flex-shrink: 0;
}
.lab-btn-primary {
    padding: 9px 22px;
    height: 45px;
    background: #63B4AC;
    border: 1px solid #63B4AC;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.lab-btn-primary:hover {
    background: #4e9f97;
    border-color: #4e9f97;
    color: #fff;
}

/* ── Reset link ─────────────────────────────────────── */
.lab-filter-reset {
    text-align: right;
    padding: 5px 0 2px;
}
.lab-filter-reset a {
    color: #756D6A;
    font-size: 13px;
    text-decoration: underline;
}
.lab-filter-reset a:hover {
    color: #4B5864;
}

/* ── Dynamic results sentence ───────────────────────── */
.lab-results-sentence {
    font-size: 15px;
    color: #4B5864;
    margin: 20px 0 10px;
}
.lab-results-sentence strong {
    color: #00957D;
    font-weight: 600;
}

/* ── Today's opening hours on lab cards ─────────────── */
.opening {
    align-items: center;
}
.opening.is-closed i,
.opening.is-closed p {
    color: #9e9e9e;
    font-weight: 400;
}
