/* ============================================================
   Nos Producteurs — La Cueille
   ============================================================ */

.lc-prod {
    background: var(--lc-cream, #F5F0E8) !important;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--lc-dark, #1A1A18) !important;
    position: relative;
    z-index: 1;
}

.lc-prod * {
    color: inherit;
}

.lc-prod h1, .lc-prod h2 { color: inherit; }
.lc-prod p { color: inherit; }

/* ── Header ───────────────────────────────────────────────── */
.lc-prod__header {
    background: var(--lc-dark, #1A1A18) !important;
    color: #fff !important;
    padding: clamp(48px, 7vw, 80px) 24px clamp(40px, 6vw, 64px);
}

.lc-prod__header-inner {
    max-width: var(--lc-max, 1200px);
    margin: 0 auto;
    text-align: center;
}

.lc-prod__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px;
}

.lc-prod__intro {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Body ─────────────────────────────────────────────────── */
.lc-prod__body {
    max-width: var(--lc-max, 1200px);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) 24px 56px;
}

/* ── Grid ─────────────────────────────────────────────────── */
.lc-prod__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ── Card ─────────────────────────────────────────────────── */
.lc-prod__card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}

.lc-prod__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.lc-prod__card-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.lc-prod__card-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

.lc-prod__card-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--lc-dark, #1A1A18);
    margin: 0 0 4px;
}

.lc-prod__card-count {
    font-size: .7rem;
    font-weight: 600;
    color: var(--lc-stone, #7A6A57);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── List ─────────────────────────────────────────────────── */
.lc-prod__list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.lc-prod__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,.06);
    gap: 8px;
}

.lc-prod__list li:last-child { border-bottom: none; }

.lc-prod__name {
    font-weight: 600;
    font-size: .88rem;
    color: var(--lc-dark, #1A1A18);
}

.lc-prod__lieu {
    font-size: .75rem;
    color: var(--lc-stone, #7A6A57);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Footer note ──────────────────────────────────────────── */
.lc-prod__footer-note {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--lc-cream-dark, #EDE7D9);
    font-size: .85rem;
    color: var(--lc-stone, #7A6A57);
    line-height: 1.7;
}

.lc-prod__footer-note strong {
    color: var(--lc-dark, #1A1A18);
}

/* ============================================================
   CARTE
   ============================================================ */
.lc-prod__map-section {
    margin-top: 56px;
    text-align: center;
}

.lc-prod__map-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--lc-dark, #1A1A18);
    margin: 0 0 6px;
}

.lc-prod__map-subtitle {
    font-size: .88rem;
    color: var(--lc-stone, #7A6A57);
    margin: 0 0 24px;
}

.lc-prod__map {
    width: 100%;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

/* Légende */
.lc-prod__map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    margin-top: 16px;
}

.lc-prod__map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--lc-stone, #7A6A57);
}

.lc-prod__map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Marqueurs custom */
.lc-map-marker--resto {
    background: none !important;
    border: none !important;
}

.lc-map-marker--resto span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--lc-terracotta, #B85C35);
    color: #fff;
    border-radius: 50%;
    font-size: 0;
    box-shadow: 0 0 0 4px rgba(184, 92, 53, .25), 0 2px 8px rgba(0,0,0,.2);
    position: relative;
}

.lc-map-marker--resto span::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}


/* Distance labels */
.lc-map-dist {
    background: none !important;
    border: none !important;
    font-size: .6rem !important;
    font-weight: 700;
    color: var(--lc-green, #3E5C3A);
    opacity: .45;
    white-space: nowrap;
    text-align: center;
}

/* Popups */
.lc-map-popup {
    font-family: var(--font-body, 'Inter', sans-serif);
    min-width: 180px;
}

.lc-map-popup--resto {
    text-align: center;
    padding: 4px 0;
}

.lc-map-popup--resto strong {
    font-size: .95rem;
    color: var(--lc-terracotta, #B85C35);
}

.lc-map-popup__header {
    border-left: 3px solid;
    padding-left: 10px;
    margin-bottom: 6px;
}

.lc-map-popup__header strong {
    display: block;
    font-size: .9rem;
    color: var(--lc-dark, #1A1A18);
    margin-bottom: 3px;
}

.lc-map-popup__cat-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: .62rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}

.lc-map-popup__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.lc-map-popup__lieu {
    font-size: .78rem;
    color: var(--lc-dark, #1A1A18);
    font-weight: 600;
}

.lc-map-popup__dist {
    font-size: .7rem;
    font-weight: 700;
    color: var(--lc-green, #3E5C3A);
    white-space: nowrap;
}

/* Filtres (facettes) */
.lc-prod__map-filters {
    margin-bottom: 16px;
}

.lc-map-filters__bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lc-map-filters__bar::-webkit-scrollbar { display: none; }

.lc-map-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1.5px solid var(--lc-cream-dark, #EDE7D9);
    border-radius: 100px;
    background: #fff;
    font-size: .68rem;
    font-weight: 600;
    color: var(--lc-stone, #7A6A57);
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.lc-map-filter:hover {
    border-color: var(--lc-stone, #7A6A57);
    transform: translateY(-1px);
}

.lc-map-filter--active {
    background: var(--lc-dark, #1A1A18);
    border-color: var(--lc-dark, #1A1A18);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.lc-map-filter:not(.lc-map-filter--active) {
    opacity: 1;
    background: #fff;
    color: var(--lc-dark, #1A1A18);
    border-color: var(--lc-cream-dark, #EDE7D9);
}

.lc-map-filter__icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lc-map-filter__icon svg {
    width: 9px;
    height: 9px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.lc-map-filter--active .lc-map-filter__icon {
    box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}

.lc-map-filter__label {
    white-space: nowrap;
}

.lc-map-filter--all {
    font-weight: 800;
    letter-spacing: .04em;
    padding: 6px 16px;
}

/* Switch carte / satellite */
.lc-map-layer-switch {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.lc-map-layer-btn {
    padding: 6px 14px;
    border: none;
    background: #fff;
    font-size: .72rem;
    font-weight: 700;
    color: var(--lc-dark, #1A1A18);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.lc-map-layer-btn:first-child { border-radius: 8px 0 0 8px; }
.lc-map-layer-btn:last-child  { border-radius: 0 8px 8px 0; }

.lc-map-layer-btn--active {
    background: var(--lc-green, #3E5C3A);
    color: #fff;
}

/* Pin marqueur avec icône SVG catégorie */
.lc-map-pin {
    background: none !important;
    border: none !important;
}

.lc-map-pin__bg {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.8);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    z-index: 1;
}

.lc-map-pin:hover .lc-map-pin__bg {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 0 0 3px rgba(255,255,255,.9);
}

.lc-map-pin__svg {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-map-pin__svg svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.lc-map-pin__tail {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid;
    margin: -2px auto 0;
    position: relative;
    z-index: 0;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}

/* Leaflet popup override */
.lc-prod__map .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: 4px;
}

.lc-prod__map .leaflet-popup-content {
    margin: 10px 14px;
}

.lc-prod__map .leaflet-popup-tip {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

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

@media (max-width: 768px) {
    .lc-prod__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .lc-prod__card { padding: 20px 18px; border-radius: 16px; }

    .lc-prod__card-title { font-size: 1.15rem; }

    .lc-prod__card-icon { width: 40px; height: 40px; border-radius: 12px; }
    .lc-prod__card-icon svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .lc-prod__grid { grid-template-columns: 1fr; gap: 12px; }

    .lc-prod__header { padding: 36px 16px 32px; }

    .lc-prod__title { font-size: 1.8rem; }

    .lc-prod__body { padding: 24px 18px 40px; }

    .lc-prod__card { padding: 18px 16px; border-radius: 14px; }

    .lc-prod__list li { flex-direction: column; gap: 1px; }

    .lc-prod__lieu { white-space: normal; }

    .lc-prod__map { height: 500px; border-radius: 14px; }

    .lc-map-filters__bar {
        gap: 4px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .lc-map-filters__bar::-webkit-scrollbar { display: none; }

    .lc-map-filter { padding: 10px 14px; font-size: .75rem; flex-shrink: 0; border-radius: 8px; }

    .lc-map-filter__icon { width: 16px; height: 16px; border-radius: 4px; }
    .lc-map-filter__icon svg { width: 9px; height: 9px; }
}
