/* Carte des logements Aix Meublés */
.c2l-carte {
	--bleu: #1D5C7A; --bleu-fonce: #154A63; --turquoise: #3BB3D3; --encre: #1F2A33; --gris: #5E6A74;
	--fond: #fff; --doux: #F4F7F9; --bord: #E2E8EE; --ombre: 0 8px 28px rgba(21, 74, 99, .16);
	position: relative; display: flex; flex-direction: column; gap: 12px;
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--encre); line-height: 1.4;
}
.c2l-carte *, .c2l-carte *::before, .c2l-carte *::after { box-sizing: border-box; }
.c2l-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre de filtres */
.c2l-carte-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c2l-carte-groupe { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--doux); border: 1px solid var(--bord); }
.c2l-carte-groupe .c2l-puce-filtre { border: 0; background: transparent; padding: 6px 12px; }
.c2l-puce-filtre, .c2l-carte-pers select, .c2l-carte-effacer {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--bord); background: var(--fond); color: var(--encre); font: 500 14px/1 inherit; font-family: inherit;
	cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.c2l-puce-filtre:hover { border-color: var(--bleu); }
.c2l-puce-filtre[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 2px 8px rgba(29, 92, 122, .28); }
.c2l-puce-filtre[data-etoiles] { color: #C98A00; letter-spacing: -1px; }
.c2l-puce-filtre[data-etoiles="0"] { color: var(--encre); letter-spacing: 0; }
.c2l-puce-filtre[data-etoiles][aria-pressed="true"] { color: #FFD45C; }
.c2l-puce-filtre[data-etoiles="0"][aria-pressed="true"] { color: #fff; }
.c2l-puce-filtre svg, .c2l-carte-pers svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.c2l-carte-pers { position: relative; display: inline-flex; align-items: center; }
.c2l-carte-pers svg { position: absolute; left: 12px; pointer-events: none; color: var(--gris); }
.c2l-carte-pers select { appearance: none; padding-left: 36px; padding-right: 30px; background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235E6A74' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.c2l-carte-effacer { border: 0; background: none; color: var(--bleu); text-decoration: underline; padding: 6px 4px; }
.c2l-carte-compte { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--bleu-fonce); }

/* Corps : liste + carte */
.c2l-carte-corps { position: relative; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; height: var(--c2l-carte-h, 640px); border-radius: 18px; overflow: hidden; border: 1px solid var(--bord); background: var(--doux); box-shadow: 0 2px 10px rgba(21, 74, 99, .06); }
.c2l-carte--seul .c2l-carte-corps, .c2l-carte-corps:not(:has(.c2l-carte-liste)) { grid-template-columns: 1fr; }
.c2l-carte-map { position: relative; min-height: 100%; }
.c2l-carte-liste { overflow-y: auto; background: var(--fond); border-right: 1px solid var(--bord); padding: 12px; scrollbar-width: thin; }
.c2l-carte-liste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c2l-carte-note { margin: 0 4px 10px; font-size: 12.5px; color: var(--gris); }
.c2l-carte-aucun { padding: 24px 8px; text-align: center; color: var(--gris); }

/* Fiche (liste et bulle) */
.c2l-fiche { display: flex; flex-direction: column; background: var(--fond); border-radius: 14px; overflow: hidden; }
.c2l-fiche h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.c2l-fiche h3 a { color: var(--encre); text-decoration: none; }
.c2l-fiche h3 a:hover, .c2l-fiche h3 a:focus-visible { color: var(--bleu); text-decoration: underline; }
.c2l-fiche-photo { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #DDE9F0, #EEF3F6); }
.c2l-fiche-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2l-fiche-etoiles { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: #C98A00; font-size: 13px; letter-spacing: -1px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.c2l-fiche-texte { padding: 12px 14px 14px; display: grid; gap: 6px; }
.c2l-fiche-ville { margin: 0; font-size: 13px; color: var(--gris); }
.c2l-fiche-badges { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.c2l-fiche-badges > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--doux); font-size: 12.5px; color: var(--encre); }
.c2l-fiche-badges svg { width: 15px; height: 15px; fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c2l-fiche-actions { margin: 6px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.c2l-bouton { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 8px 14px; border-radius: 10px; background: var(--bleu); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; transition: background .15s; }
.c2l-bouton:hover, .c2l-bouton:focus-visible { background: var(--bleu-fonce); }

.c2l-fiche--ligne { flex-direction: row; align-items: center; border: 1px solid var(--bord); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.c2l-fiche--ligne .c2l-fiche-photo { flex: 0 0 128px; width: 128px; height: 96px; aspect-ratio: 4 / 3; margin: 10px 0 10px 10px; border-radius: 10px; overflow: hidden; } /* taille unique, paysage, recadrée */
.c2l-fiche--ligne .c2l-fiche-etoiles { font-size: 11px; left: 6px; bottom: 6px; }
.c2l-fiche--ligne .c2l-fiche-texte { padding: 10px 12px; align-content: start; }
.c2l-fiche--ligne h3 { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c2l-fiche--ligne:hover, .c2l-fiche--ligne.est-actif { border-color: var(--bleu); box-shadow: var(--ombre); }

/* Bulle MapLibre */
.c2l-popup .maplibregl-popup-content { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
/* Le thème donne des marges et une bordure aux boutons : la croix est verrouillée (rond de 32 px, croix centrée). */
.c2l-carte .c2l-popup button.maplibregl-popup-close-button { position: absolute; top: 10px; right: 10px; left: auto; width: 32px !important; height: 32px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center; background: rgba(255,255,255,.95) !important; color: var(--encre) !important; font: 400 22px/1 Roboto, system-ui, sans-serif !important; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 2; cursor: pointer; }
.c2l-popup .maplibregl-popup-tip { display: none; }
.c2l-popup .c2l-fiche { width: 290px; max-width: 78vw; }
.c2l-popup--seul .c2l-fiche { width: 250px; }
.c2l-popup--seul .c2l-fiche-texte { padding-right: 40px; }

/* Pastilles et regroupements */
.c2l-pastille, .c2l-grappe { font-family: Roboto, system-ui, sans-serif; cursor: pointer; border: 0; padding: 0; }
.c2l-pastille { display: inline-flex; align-items: center; gap: 1px; height: 30px; min-width: 38px; padding: 0 10px; border-radius: 999px; background: #fff; color: var(--encre); font-weight: 700; font-size: 14px; box-shadow: 0 2px 6px rgba(21,74,99,.25), 0 0 0 1px rgba(21,74,99,.08); transition: transform .15s, background .15s, color .15s; justify-content: center; }
.c2l-pastille span { color: #E0A100; font-size: 13px; }
.c2l-pastille:hover, .c2l-pastille:focus-visible, .c2l-pastille.est-actif { background: var(--bleu); color: #fff; transform: scale(1.12); z-index: 3; outline: none; }
.c2l-pastille.est-actif span, .c2l-pastille:hover span { color: #FFD45C; }
.c2l-pastille:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bleu); }
.c2l-grappe { width: var(--t); height: var(--t); border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 6px rgba(59,179,211,.28), 0 4px 12px rgba(21,74,99,.3); transition: transform .15s; }
.c2l-grappe:hover, .c2l-grappe:focus-visible { transform: scale(1.08); background: var(--bleu-fonce); outline: none; }

.c2l-pastille--seul { background: none; box-shadow: none; padding: 0; height: auto; }
.c2l-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--bleu); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(21,74,99,.4); position: relative; display: block; }
.c2l-pin::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.c2l-pastille--seul:hover, .c2l-pastille--seul.est-actif { background: none; transform: none; }

/* Bouton liste / carte (téléphone) */
.c2l-carte-bascule { display: none; }

.c2l-carte .maplibregl-ctrl-group { border-radius: 12px; box-shadow: 0 2px 8px rgba(21,74,99,.18); }
.c2l-carte .maplibregl-ctrl-attrib { font-size: 11px; }

@media (max-width: 760px) {
	.c2l-carte-corps { grid-template-columns: 1fr; height: min(var(--c2l-carte-h, 640px), 78vh); }
	.c2l-carte-liste { position: absolute; inset: 0; z-index: 4; border: 0; visibility: hidden; }
	.c2l-carte.montre-liste .c2l-carte-liste { visibility: visible; }
	.c2l-carte-bascule { position: absolute; z-index: 5; left: 50%; bottom: 46px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--encre); color: #fff; font: 600 14px/1 Roboto, system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
	.c2l-carte-bascule svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
	.c2l-carte-barre { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.c2l-carte-barre > * { flex: none; }
	.c2l-carte-compte { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .c2l-carte * { transition: none !important; } }
/* Le thème colore les boutons en rose au survol : on garde les couleurs Aix Meublés. */
.c2l-carte button.c2l-puce-filtre:hover, .c2l-carte button.c2l-puce-filtre:focus { background: #fff !important; color: var(--encre) !important; border-color: var(--bleu) !important; }
.c2l-carte button.c2l-puce-filtre[aria-pressed="true"], .c2l-carte button.c2l-puce-filtre[aria-pressed="true"]:hover, .c2l-carte button.c2l-puce-filtre[aria-pressed="true"]:focus { background: var(--bleu) !important; color: #fff !important; border-color: var(--bleu) !important; }
.c2l-carte .c2l-carte-groupe button.c2l-puce-filtre:not([aria-pressed="true"]):hover { background: #fff !important; }
.c2l-carte button.c2l-carte-effacer:hover, .c2l-carte button.c2l-carte-effacer:focus { background: none !important; color: var(--bleu-fonce) !important; }
.c2l-carte button.c2l-pastille:hover, .c2l-carte button.c2l-pastille:focus { background: var(--bleu) !important; color: #fff !important; }
.c2l-carte button.c2l-grappe:hover, .c2l-carte button.c2l-grappe:focus { background: var(--bleu-fonce) !important; color: #fff !important; }
.c2l-carte button.c2l-carte-bascule:hover { background: var(--encre) !important; color: #fff !important; }
.c2l-carte .maplibregl-popup-close-button:hover { background: #fff !important; color: var(--encre) !important; }
