/**
 * Styles – Annuaire Artisans Split View (Liste + Carte)
 * Design "agence immobilière" / Airbnb
 * @package LLA_Marketplace_Connector
 * @since 3.0.0
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --lla-primary: hsl(35, 65%, 55%);
    --lla-primary-hover: hsl(35, 65%, 48%);
    --lla-primary-light: hsl(35, 65%, 94%);
    --lla-accent: #2D5F2B;
    --lla-accent-light: #e8f5e9;
    --lla-text: #1a1a1a;
    --lla-text-muted: #6b7280;
    --lla-bg: #ffffff;
    --lla-bg-soft: #f8f9fa;
    --lla-border: #e5e7eb;
    --lla-border-dark: #d1d5db;
    --lla-radius: 8px;
    --lla-radius-lg: 12px;
    --lla-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --lla-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --lla-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --lla-toolbar-h: 64px;
    --lla-chips-h: 0px;
}

/* ==========================================================================
   Page Reset – s'assurer que le shortcode prend toute la largeur
   ========================================================================== */
.lla-nos-artisans-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lla-text);
    line-height: 1.5;
    font-size: 14px;
    background: var(--lla-bg-soft);
    width: 100%;
    overflow-x: hidden;
}
.lla-nos-artisans-page *, .lla-nos-artisans-page *::before, .lla-nos-artisans-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Astra / Thème compat – plein largeur sans padding résiduel
   ========================================================================== */
body.lla-artisans-active .site-content,
body.lla-artisans-active .ast-container,
body.lla-artisans-active .site-content .ast-container,
body.lla-artisans-active .site-content .ast-builder-grid-row,
body.lla-artisans-active #primary,
body.lla-artisans-active .entry-content,
body.lla-artisans-active article.page {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.lla-artisans-active .ast-separate-container .ast-article-post,
body.lla-artisans-active .ast-separate-container .ast-article-single,
body.lla-artisans-active .ast-plain-container .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
body.lla-artisans-active .ast-separate-container #primary,
body.lla-artisans-active .ast-plain-container #primary {
    margin: 0 !important;
    padding: 0 !important;
}
/* Page builder layout Astra */
body.lla-artisans-active.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
/* Masquer le titre de page Astra (le h1 est dans notre toolbar) */
body.lla-artisans-active .entry-header,
body.lla-artisans-active .page-header,
body.lla-artisans-active .ast-archive-description {
    display: none !important;
}
/* Masquer le contenu textuel original de la page (avant injection shortcode) */
body.lla-artisans-active .entry-content > *:not(.lla-nos-artisans-page) {
    display: none !important;
}

/* ==========================================================================
   TOOLBAR – Barre horizontale fixe en haut
   ========================================================================== */
.lla-toolbar {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--lla-bg);
    border-bottom: 1px solid var(--lla-border);
    box-shadow: var(--lla-shadow-sm);
}

.lla-toolbar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: var(--lla-toolbar-h);
    max-width: 100%;
}

/* Compteur artisans */
.lla-toolbar__count {
    font-size: 12px;
    color: var(--lla-text-muted);
    font-weight: 500;
    margin-left: 6px;
    background: var(--lla-bg-soft);
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Filters row */
.lla-toolbar__filters {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Search */
.lla-toolbar__search {
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 160px;
}
.lla-toolbar__search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lla-text-muted);
    pointer-events: none;
}
.lla-toolbar__search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    font-size: 13px;
    font-family: inherit;
    background: var(--lla-bg-soft);
    transition: all 0.2s;
}
.lla-toolbar__search input:focus {
    outline: none;
    border-color: var(--lla-primary);
    background: var(--lla-bg);
    box-shadow: 0 0 0 3px rgba(191,145,68,0.15);
}

/* Actions */
.lla-toolbar__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}
.lla-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--lla-radius);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lla-toolbar__btn--locate {
    background: var(--lla-accent-light);
    border: 1px solid #c8e6c9;
    color: var(--lla-accent);
}
.lla-toolbar__btn--locate:hover {
    background: #c8e6c9;
    border-color: var(--lla-accent);
}
.lla-toolbar__btn--reset {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.lla-toolbar__btn--reset:hover {
    background: #fecaca;
}

/* Chips bar */
.lla-toolbar__chips {
    display: flex;
    gap: 6px;
    padding: 8px 20px;
    border-top: 1px solid var(--lla-border);
    flex-wrap: wrap;
    background: var(--lla-bg-soft);
}
.lla-toolbar__chips .lla-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--lla-bg);
    border: 1px solid var(--lla-border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--lla-text);
    cursor: pointer;
    transition: all 0.15s;
}
.lla-toolbar__chips .lla-chip:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}
.lla-toolbar__chips .lla-chip svg {
    width: 12px; height: 12px;
}

/* ==========================================================================
   DROPDOWN – Filtres dropdown style Airbnb
   ========================================================================== */
.lla-dropdown {
    position: relative;
}
.lla-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    background: var(--lla-bg);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--lla-text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lla-dropdown__trigger:hover {
    border-color: var(--lla-border-dark);
    background: var(--lla-bg-soft);
}
.lla-dropdown__trigger[aria-expanded="true"] {
    border-color: var(--lla-primary);
    box-shadow: 0 0 0 2px rgba(191,145,68,0.15);
}
.lla-dropdown__trigger[aria-expanded="true"] .lla-dropdown__chevron {
    transform: rotate(180deg);
}
.lla-dropdown__chevron {
    transition: transform 0.2s;
}
.lla-dropdown__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--lla-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lla-dropdown__panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    max-height: 360px;
    background: var(--lla-bg);
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius-lg);
    box-shadow: var(--lla-shadow-lg);
    overflow: hidden;
    z-index: 1000;
}
.lla-dropdown.open .lla-dropdown__panel {
    display: block;
}
.lla-dropdown__search {
    padding: 10px 12px;
    border-bottom: 1px solid var(--lla-border);
}
.lla-dropdown__search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--lla-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}
.lla-dropdown__search input:focus {
    outline: none;
    border-color: var(--lla-primary);
}
.lla-dropdown__options {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}
.lla-dropdown__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.1s;
}
.lla-dropdown__option:hover {
    background: var(--lla-bg-soft);
}
.lla-dropdown__option input[type="checkbox"] {
    display: none;
}
.lla-dropdown__check {
    width: 18px; height: 18px;
    border: 2px solid var(--lla-border-dark);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
.lla-dropdown__option input:checked + .lla-dropdown__check {
    background: var(--lla-primary);
    border-color: var(--lla-primary);
}
.lla-dropdown__option input:checked + .lla-dropdown__check::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.lla-dropdown__text {
    flex: 1;
    font-size: 13px;
    color: var(--lla-text);
}
.lla-dropdown__count {
    font-size: 11px;
    color: var(--lla-text-muted);
}
.lla-dropdown__count:not(:empty)::before { content: '('; }
.lla-dropdown__count:not(:empty)::after  { content: ')'; }
.lla-dropdown__option.lla-option-empty {
    display: none;
}

/* ==========================================================================
   SPLIT LAYOUT – Liste à gauche, Carte à droite
   ========================================================================== */
.lla-split {
    display: flex;
    height: calc(100vh - var(--lla-toolbar-h) - var(--lla-chips-h));
    overflow: hidden;
}

/* Liste panel */
.lla-split__list {
    width: 380px;
    min-width: 320px;
    max-width: 420px;
    height: 100%;
    overflow-y: auto;
    background: var(--lla-bg);
    border-right: 1px solid var(--lla-border);
    scroll-behavior: smooth;
}
.lla-split__list::-webkit-scrollbar { width: 6px; }
.lla-split__list::-webkit-scrollbar-track { background: transparent; }
.lla-split__list::-webkit-scrollbar-thumb { background: var(--lla-border-dark); border-radius: 3px; }

/* Map panel */
.lla-split__map {
    flex: 1;
    position: relative;
    min-height: 400px;
    z-index: 1; /* Sous la toolbar et les dropdowns */
}
.lla-map {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   LIST ITEMS
   ========================================================================== */
.lla-list__items {
    padding: 0;
}

/* ==========================================================================
   MINI-CARD – Carte artisan compacte pour la liste
   ========================================================================== */
.lla-minicard {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--lla-border);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.lla-minicard:hover,
.lla-minicard.lla-minicard--active {
    background: var(--lla-primary-light);
}
.lla-minicard.lla-minicard--highlight {
    background: #fffbeb;
    box-shadow: inset 3px 0 0 var(--lla-primary);
}

/* Image */
.lla-minicard__image {
    position: relative;
    width: 100px;
    min-width: 100px;
    height: 90px;
    border-radius: var(--lla-radius);
    overflow: hidden;
    flex-shrink: 0;
}
.lla-minicard__image > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lla-minicard__logo {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Body */
.lla-minicard__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lla-minicard__name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--lla-text);
}
.lla-minicard__metier {
    font-size: 12px;
    color: var(--lla-primary-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lla-minicard__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--lla-text-muted);
}
.lla-minicard__location svg {
    flex-shrink: 0;
    color: var(--lla-accent);
}
.lla-minicard__labels {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.lla-minicard__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--lla-primary);
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
}
.lla-minicard__link:hover {
    color: var(--lla-primary-hover);
    text-decoration: underline;
}

/* Tags / Labels */
.lla-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}
.lla-tag--france { background: #eff6ff; color: #1d4ed8; }
.lla-tag--eco    { background: #ecfdf5; color: #059669; }
.lla-tag--visit  { background: #fff7ed; color: #c2410c; }

/* ==========================================================================
   MAP MARKERS – Photo/logo circulaire comme marqueur
   ========================================================================== */
.lla-map-marker {
    background: none !important;
    border: none !important;
}
/* Neutraliser le style par défaut Leaflet sur les divIcon */
.leaflet-div-icon.lla-map-marker,
.leaflet-marker-icon.lla-map-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 32px !important;
    height: 40px !important;
    margin-left: -16px !important;
    margin-top: -40px !important;
}
.lla-map-marker__inner {
    position: relative;
    width: 32px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lla-map-marker__inner:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}
.lla-map-marker__img {
    display: block;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    border: 2.5px solid #fff !important;
    object-fit: cover !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: all 0.2s;
    background-color: #f5f0e8;
}
.lla-map-marker__inner:hover .lla-map-marker__img,
.lla-map-marker--active .lla-map-marker__img {
    border-color: var(--lla-primary) !important;
    box-shadow: 0 4px 16px rgba(191,145,68,0.4);
    transform: scale(1.1);
}
.lla-map-marker__pin {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--lla-bg);
}
.lla-map-marker__inner:hover .lla-map-marker__pin,
.lla-map-marker--active .lla-map-marker__pin {
    border-top-color: var(--lla-primary);
}

/* Map Popup */
.lla-map-popup .leaflet-popup-content-wrapper {
    border-radius: var(--lla-radius-lg) !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: var(--lla-shadow-lg) !important;
}
.lla-map-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}
.lla-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lla-popup__img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.lla-popup__body {
    padding: 12px;
}
.lla-popup__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--lla-text);
}
.lla-popup__metier {
    font-size: 11px;
    color: var(--lla-primary-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.lla-popup__location {
    font-size: 12px;
    color: var(--lla-text-muted);
    margin-bottom: 8px;
}
.lla-popup__link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--lla-primary);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.lla-popup__link:hover {
    background: var(--lla-primary-hover);
    color: #fff !important;
}

/* Cluster markers */
.lla-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lla-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}
.lla-cluster:hover {
    transform: scale(1.1);
}
.lla-cluster--large {
    width: 50px;
    height: 50px;
    font-size: 16px;
    background: var(--lla-primary-hover);
}

/* ==========================================================================
   MAP TOGGLE – Bouton mobile (fixe en bas)
   ========================================================================== */
.lla-map-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    height: 48px;
    padding: 0 20px;
    background: var(--lla-text);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.lla-map-toggle:hover {
    background: #000;
}
.lla-map-toggle__list { display: none; }

/* ==========================================================================
   LOADING / EMPTY STATES
   ========================================================================== */
.lla-list__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}
.lla-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--lla-border);
    border-top-color: var(--lla-primary);
    border-radius: 50%;
    animation: lla-spin 0.7s linear infinite;
    margin-bottom: 16px;
}
@keyframes lla-spin { to { transform: rotate(360deg); } }

.lla-list__loading p { color: var(--lla-text-muted); font-size: 14px; }

.lla-list__empty {
    text-align: center;
    padding: 60px 20px;
}
.lla-list__empty svg {
    color: var(--lla-border-dark);
    margin-bottom: 16px;
}
.lla-list__empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}
.lla-list__empty p {
    font-size: 13px;
    color: var(--lla-text-muted);
    margin: 0 0 20px;
}

.lla-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--lla-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--lla-radius);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.lla-btn-primary:hover { background: var(--lla-primary-hover); }

.lla-list__more {
    padding: 16px;
    text-align: center;
}
.lla-list__more button {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--lla-border);
    border-radius: var(--lla-radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--lla-primary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.lla-list__more button:hover {
    background: var(--lla-primary-light);
    border-color: var(--lla-primary);
}

/* Skeleton cards */
.lla-minicard--skeleton {
    pointer-events: none;
}
.lla-minicard--skeleton .lla-skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 20%, #f9fafb 40%, #e5e7eb 60%, #f3f4f6 100%);
    background-size: 400% 100%;
    animation: lla-shimmer 1.8s ease-in-out infinite;
    border-radius: 4px;
}
@keyframes lla-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablette */
@media (max-width: 1024px) {
    .lla-toolbar__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        gap: 8px;
    }
    .lla-toolbar__filters {
        flex-wrap: wrap;
    }
    .lla-toolbar__search {
        max-width: none;
        flex: 1;
        min-width: 120px;
    }
    .lla-toolbar__btn-label {
        display: none;
    }
    .lla-split__list {
        width: 340px;
        min-width: 280px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .lla-toolbar__inner {
        padding: 10px 12px;
    }

    .lla-split {
        flex-direction: column;
        height: auto;
    }
    .lla-split__list {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
        max-height: 60vh;
        border-right: none;
        border-bottom: 1px solid var(--lla-border);
        overflow-y: auto;
    }
    .lla-split__map {
        height: 50vh;
        min-height: 300px;
    }

    /* Toggle carte/liste */
    .lla-map-toggle {
        display: flex;
    }

    /* Mode carte plein écran mobile */
    .lla-split.lla-split--map-view .lla-split__list {
        display: none;
    }
    .lla-split.lla-split--map-view .lla-split__map {
        height: calc(100vh - var(--lla-toolbar-h) - var(--lla-chips-h));
    }
    .lla-split.lla-split--map-view .lla-map-toggle__map { display: none; }
    .lla-split.lla-split--map-view .lla-map-toggle__list { display: block; }
    .lla-split.lla-split--map-view .lla-map-toggle__text::after { content: 'Liste'; }
    .lla-split.lla-split--map-view .lla-map-toggle__text { font-size: 0; }
    .lla-split.lla-split--map-view .lla-map-toggle__text::after { font-size: 14px; }

    /* Mode liste mobile */
    .lla-split.lla-split--list-view .lla-split__map {
        display: none;
    }
    .lla-split.lla-split--list-view .lla-split__list {
        max-height: none;
        height: auto;
    }
}

@media (max-width: 480px) {
    .lla-toolbar__filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .lla-toolbar__filters::-webkit-scrollbar { display: none; }
    .lla-dropdown__trigger {
        font-size: 12px;
        padding: 0 10px;
        height: 34px;
    }
    .lla-minicard {
        padding: 12px;
        gap: 10px;
    }
    .lla-minicard__image {
        width: 80px;
        min-width: 80px;
        height: 72px;
    }
}

/* ==========================================================================
   Leaflet overrides
   ========================================================================== */
.lla-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--lla-shadow) !important;
    border-radius: var(--lla-radius) !important;
    overflow: hidden;
}
.lla-map .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    color: var(--lla-text) !important;
    border-color: var(--lla-border) !important;
}
.lla-map .leaflet-control-zoom a:hover {
    background: var(--lla-bg-soft) !important;
}

/* Hide default leaflet attribution styling */
.lla-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255,255,255,0.7) !important;
    border-radius: var(--lla-radius) 0 0 0;
}

/* ==========================================================================
   Sécurité z-index – toolbar et dropdowns au-dessus de la carte
   ========================================================================== */
.lla-nos-artisans-page .lla-toolbar {
    z-index: 500; /* Au-dessus de la carte Leaflet (z-index ~400) */
    position: sticky;
    top: 0;
}
.lla-nos-artisans-page .lla-dropdown__panel {
    z-index: 1000; /* Au-dessus de tout sauf cart drawer */
}

/* ==========================================================================
   Map scroll guard – overlay Ctrl+molette
   ========================================================================== */
.lla-map-scroll-guard {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.lla-map-scroll-guard.visible {
    opacity: 1;
}
.lla-map-scroll-guard span {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}
