/* LC Annuaire : styles de base, volontairement sobres pour être habillés dans Elementor. */
:root {
	--lca-accent: #0e7490;
	--lca-featured: #b45309;
	--lca-radius: 12px;
	--lca-border: rgba(15, 23, 42, .1);
	--lca-muted: #64748b;
}

/* Carte */
.lca-map { position: relative; width: 100%; border-radius: var(--lca-radius); overflow: hidden; z-index: 0; background: #e5eef0; }
.lca-map__empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 500; margin: 0; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); font-size: 14px; }
.lca-pin { background: none; border: 0; }
.lca-pin span { display: block; width: 24px; height: 24px; margin: 2px; background: var(--lca-accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.lca-pin--featured span { background: var(--lca-featured); }
.lca-cluster { background: none; border: 0; }
.lca-cluster span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--lca-accent); color: #fff; font-weight: 700; font-size: 13px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lca-accent) 30%, transparent); cursor: pointer; }
.lca-popup img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 8px 8px 0 0; }
.leaflet-popup-content:has(.lca-popup) { margin: 0; width: 240px !important; }
.lca-popup__body { padding: 10px 12px 12px; }
.lca-popup__meta { margin: 0 0 2px; font-size: 12px; color: var(--lca-muted); }
.lca-popup__title { margin: 0 0 4px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.lca-popup__title a { color: inherit; text-decoration: none; }
.lca-popup__price { margin: 0 0 6px; font-size: 13px; }
.lca-popup__link { font-size: 13px; font-weight: 600; color: var(--lca-accent); text-decoration: none; }

/* Google Maps sur la fiche (chargement au clic) */
.lca-gmap { position: relative; width: 100%; border-radius: var(--lca-radius); overflow: hidden; background: linear-gradient(135deg, #dbeafe 0%, #e0f2f1 50%, #fef3c7 100%); }
.lca-gmap__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; }
.lca-gmap__note { margin: 0; max-width: 420px; font-size: 13px; color: #475569; }
.lca-gmap__open { font-size: 13px; font-weight: 600; color: var(--lca-accent); }

/* Grille de cartes d'annonces */
.lca-grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--lca-cols, 3), minmax(0, 1fr)); }
.lca-grid--1 { --lca-cols: 1; }
.lca-grid--2 { --lca-cols: 2; }
.lca-grid--3 { --lca-cols: 3; }
.lca-grid--4 { --lca-cols: 4; }
.lca-grid--5 { --lca-cols: 5; }
.lca-grid--6 { --lca-cols: 6; }
@media (max-width: 1024px) { .lca-grid--3, .lca-grid--4, .lca-grid--5, .lca-grid--6 { --lca-cols: 2; } }
@media (max-width: 640px) { .lca-grid { --lca-cols: 1 !important; } }

.lca-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lca-border); border-radius: var(--lca-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.lca-card:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.lca-card--featured { border-color: color-mix(in srgb, var(--lca-featured) 45%, transparent); }
.lca-card__media { display: block; aspect-ratio: 4 / 3; background: #e2e8f0; overflow: hidden; }
.lca-card__media img, .lca-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lca-card--noimg { border-top: 4px solid var(--lca-accent); }
.lca-card--noimg .lca-badge { position: static; align-self: flex-start; margin: 12px 16px 0; }
.lca-card__body { padding: 14px 16px 16px; }
.lca-card__meta { margin: 0 0 4px; font-size: 13px; color: var(--lca-muted); }
.lca-card__title { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.lca-card__title a { color: inherit; text-decoration: none; }
.lca-card__title a::after { content: ""; position: absolute; inset: 0; }
.lca-card__facts { margin: 0 0 6px; font-size: 14px; }
.lca-card__price { margin: 0; font-weight: 600; color: var(--lca-accent); }

.lca-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--lca-featured); color: #fff; font-size: 12px; font-weight: 600; }
.lca-badge--inline { position: static; display: inline-block; margin-bottom: 6px; }

.lca-pagination { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lca-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--lca-border); border-radius: 8px; text-decoration: none; color: inherit; }
.lca-pagination .page-numbers.current { background: var(--lca-accent); border-color: var(--lca-accent); color: #fff; }
.lca-empty { padding: 24px; border: 1px dashed var(--lca-border); border-radius: var(--lca-radius); text-align: center; color: var(--lca-muted); }

/* Filtres */
.lca-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px; background: #fff; border: 1px solid var(--lca-border); border-radius: var(--lca-radius); }
.lca-filters p { margin: 0; }
.lca-filters__field { flex: 1 1 200px; }
.lca-filters__field--small { flex: 0 1 120px; }
.lca-filters label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.lca-filters select, .lca-filters input[type="number"] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lca-border); border-radius: 8px; background: #fff; font: inherit; }
.lca-filters__eq { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 14px; border: 0; margin: 0; padding: 0; }
.lca-filters__eq legend { font-size: 13px; font-weight: 600; margin-bottom: 4px; width: 100%; }
.lca-filters__eq label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; margin: 0; }

.lca-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 2px solid var(--lca-accent); border-radius: 8px; background: var(--lca-accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.lca-btn:hover, .lca-btn:focus-visible { filter: brightness(1.08); color: #fff; }
.lca-btn--ghost { background: transparent; color: var(--lca-accent); }
.lca-btn--ghost:hover { color: var(--lca-accent); background: color-mix(in srgb, var(--lca-accent) 8%, transparent); }

/* Fiche */
.lca-infos { margin: 0; display: grid; gap: 0; }
.lca-infos__row { display: grid; grid-template-columns: minmax(120px, 35%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lca-border); }
.lca-infos dt { font-weight: 600; }
.lca-infos dd { margin: 0; }
.lca-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.lca-gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(var(--lca-cols, 3), minmax(0, 1fr)); }
.lca-gallery-grid__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.lca-gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; }

/* Pages de l'annuaire (gabarits par défaut) */
.lca-page { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; }
.lca-breadcrumb { font-size: 13px; color: var(--lca-muted); margin: 0 0 16px; }
.lca-breadcrumb a { color: inherit; text-decoration: none; }
.lca-breadcrumb a:hover { color: var(--lca-accent); text-decoration: underline; }
.lca-breadcrumb__sep { margin: 0 4px; }
.lca-title, .lca-single__title { margin: 0 0 6px; line-height: 1.2; }
.lca-single__meta { margin: 0 0 8px; color: var(--lca-muted); }
.lca-single__badges { margin: 0 0 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.lca-stars { color: #d97706; letter-spacing: 1px; }
.lca-verified { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 600; }
.lca-verified::before { content: "✓"; }
.lca-verified--small { font-size: 12px; padding: 2px 8px; }
.lca-card__labels { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.lca-single__cover { margin: 0 0 24px; border-radius: var(--lca-radius); overflow: hidden; }
.lca-single__cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.lca-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .lca-single__grid { grid-template-columns: 1fr; } }
.lca-single__main h2 { font-size: 22px; margin: 32px 0 12px; }
.lca-single__main h2:first-child { margin-top: 0; }
.lca-single__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.lca-single__price { margin: 0; font-size: 20px; font-weight: 700; color: var(--lca-accent); }
.lca-single__more { margin-top: 56px; }
.lca-source { margin-top: 24px; font-size: 13px; color: var(--lca-muted); }
.lca-source a { color: inherit; }

.lca-archive__desc { margin: 0 0 12px; }
.lca-archive__count { margin: 0 0 16px; color: var(--lca-muted); }
.lca-archive__map { margin: 20px 0 28px; }
.lca-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.lca-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--lca-border); border-radius: 999px; text-decoration: none; color: inherit; font-size: 14px; background: #fff; }
.lca-chip span { color: var(--lca-muted); font-size: 12px; }
.lca-chip:hover { border-color: var(--lca-accent); color: var(--lca-accent); }

/* Accueil : types et régions */
.lca-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 32px; }
.lca-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--lca-border); border-radius: var(--lca-radius); text-decoration: none; color: inherit; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.lca-tile:hover { border-color: var(--lca-accent); box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.lca-tile__name { font-weight: 600; }
.lca-tile__count { font-size: 13px; color: var(--lca-muted); }
.lca-tile--empty { opacity: .65; }
.lca-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 28px; margin: 0 0 32px; }
.lca-region__name { margin: 0 0 4px; font-size: 17px; }
.lca-region__name a { color: inherit; text-decoration: none; }
.lca-region__name span { font-size: 13px; font-weight: 400; color: var(--lca-muted); }
.lca-region__places { margin: 0; font-size: 14px; color: var(--lca-muted); }
.lca-region__places a { color: inherit; }

/* Revendication */
.lca-claim { border: 1px solid var(--lca-border); border-radius: var(--lca-radius); padding: 16px; background: #f8fafc; }
.lca-claim--done { background: #f0fdf4; border-color: #bbf7d0; }
.lca-claim--done p { margin: 0; font-size: 14px; }
.lca-claim__summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.lca-claim__summary::-webkit-details-marker { display: none; }
.lca-claim__q { font-weight: 600; }
.lca-claim__intro { font-size: 14px; margin: 12px 0; }
.lca-claim__title { margin: 0 0 10px; font-size: 17px; }
.lca-claim__form p { margin: 0 0 10px; }
.lca-claim__form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.lca-claim__form input:not([type="checkbox"]), .lca-claim__form select, .lca-claim__form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--lca-border); border-radius: 8px; background: #fff; font: inherit; }
.lca-claim__form small { display: block; font-size: 12px; color: var(--lca-muted); margin-top: 4px; }
.lca-claim__consent label { font-weight: 400; font-size: 13px; }
.lca-claim__msg { padding: 10px 12px; border-radius: 8px; background: #eff6ff; font-size: 14px; }
.lca-claim__msg--ok { background: #dcfce7; }
.lca-claim__msg--err { background: #fee2e2; }
.lca-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Liens : le thème souligne les liens du contenu (.page-content a) */
.lca-tiles a.lca-tile, .lca-tiles a.lca-tile:hover, .lca-region__name a, .lca-card__title a, .lca-chips a.lca-chip { text-decoration: none; }
.lca-regions .lca-region__places a { text-decoration: none; }
.lca-regions .lca-region__places a:hover, .lca-region__name a:hover, .lca-card__title a:hover { text-decoration: underline; }
.lca-more { margin: 8px 0 32px; }
