/* ============================================================
   TAULIGNAN ANNUAIRE — front
   Charte lavande cohérente avec le thème
   ============================================================ */
.tlg-annuaire {
    --tlg-lav:    #7b5ea7;
    --tlg-lav-l:  #c9aee8;
    --tlg-lav-d:  #2e1f4a;
    --tlg-border: #e4e0db;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    font-family: inherit;
}

/* ── BARRE DE RECHERCHE ── */
.tlg-search-bar {
    margin-bottom: 1.4rem;
}
.tlg-search-input-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.tlg-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}
#tlg-search-input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    font-size: 16px;
    border: 2px solid var(--tlg-border);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
#tlg-search-input:focus {
    border-color: var(--tlg-lav);
    box-shadow: 0 0 0 4px rgba(123,94,167,0.12);
}

/* ── FILTRES ── */
.tlg-filters,
.tlg-subfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1rem;
}
.tlg-subfilters {
    padding-top: 0.5rem;
    border-top: 1px dashed var(--tlg-border);
    margin-top: 0.3rem;
}

.tlg-filter,
.tlg-subfilter {
    background: #fff;
    border: 1.5px solid var(--tlg-border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.tlg-filter:hover,
.tlg-subfilter:hover {
    border-color: var(--f-color, var(--tlg-lav));
    color: var(--f-color, var(--tlg-lav));
}
.tlg-filter.active {
    background: var(--f-color, var(--tlg-lav));
    border-color: var(--f-color, var(--tlg-lav));
    color: #fff;
}
.tlg-subfilter {
    font-size: 13px;
    padding: 6px 14px;
}
.tlg-subfilter.active {
    background: var(--tlg-lav);
    border-color: var(--tlg-lav);
    color: #fff;
}

/* ── META RÉSULTATS ── */
.tlg-results-meta {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 1.2rem;
    min-height: 18px;
}

/* ── GRILLE DE RÉSULTATS ── */
.tlg-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    transition: opacity 0.2s;
}

/* ── CARTE ── */
.tlg-card {
    background: #fff;
    border: 1px solid var(--tlg-border);
    border-top: 4px solid var(--cat-color, var(--tlg-lav));
    border-radius: 14px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: box-shadow 0.2s, transform 0.18s;
}
.tlg-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tlg-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tlg-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.tlg-card-thumb-empty {
    background: linear-gradient(135deg, var(--cat-color, var(--tlg-lav)), var(--tlg-lav-l));
    display: flex;
    align-items: center;
    justify-content: center;
}
.tlg-card-thumb-empty span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}
.tlg-card-titles { flex: 1; min-width: 0; }
.tlg-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1510;
    margin: 0 0 2px;
    line-height: 1.25;
}
.tlg-card-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cat-color, var(--tlg-lav));
    margin: 0;
}

.tlg-card-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.tlg-card-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-top: 1px solid #f0ecf6;
    padding-top: 0.8rem;
}
.tlg-card-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: #444;
    line-height: 1.5;
}
.tlg-card-info .tlg-ic {
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 1px;
}
.tlg-card-info a {
    color: var(--cat-color, var(--tlg-lav));
    text-decoration: none;
    word-break: break-word;
}
.tlg-card-info a:hover { text-decoration: underline; }

.tlg-card-social {
    display: flex;
    gap: 10px;
    padding-top: 0.6rem;
    border-top: 1px solid #f0ecf6;
}
.tlg-card-social a {
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.12s;
    display: inline-block;
}
.tlg-card-social a:hover { transform: scale(1.2); }

/* ── CARTE OPENSTREETMAP ── */
.tlg-map-wrap {
    position: relative;
    margin-bottom: 1.6rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--tlg-border);
    transition: height 0.3s ease;
}
#tlg-map {
    width: 100%;
    height: 360px;
    z-index: 1;
}
.tlg-map-wrap.collapsed #tlg-map {
    height: 0;
}
.tlg-map-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 400;
    background: #fff;
    border: 1px solid var(--tlg-border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tlg-lav-d);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tlg-map-toggle:hover { background: var(--tlg-lav-l); }

/* Marqueur personnalisé */
.tlg-map-pin span {
    display: block;
    width: 18px; height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin: 2px;
}

/* ── ÉTATS ── */
.tlg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 15px;
}
.tlg-loader {
    text-align: center;
    padding: 1.5rem;
    color: var(--tlg-lav);
    font-size: 14px;
}
.tlg-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(123,94,167,0.3);
    border-top-color: var(--tlg-lav);
    border-radius: 50%;
    animation: tlg-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes tlg-spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .tlg-results { grid-template-columns: 1fr; }
    .tlg-filters, .tlg-subfilters { justify-content: flex-start; }
}
