:root {
	--lp-accent: #1d5c8c;
	--lp-accent-2: #ff385c;
	--lp-free: #e7f5ec;
	--lp-free-text: #1d6b3a;
	--lp-booked: #f1f1f1;
	--lp-booked-text: #a3a3a3;
	--lp-border: #e4e4e4;
	--lp-radius: 14px;
}

/* Cartes */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 24px 0; }
.lp-card { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; }
.lp-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.lp-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f5; }
.lp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.lp-card-body h3 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.3; }
.lp-card-body h3 a { color: inherit; text-decoration: none; }
.lp-lieu { margin: 0 0 8px; color: #666; font-size: .92rem; }
.lp-excerpt { margin: 10px 0 16px; font-size: .95rem; color: #444; }
.lp-card-actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 10px; }

.lp-facts { margin: 0 0 6px; color: #333; font-size: .95rem; }
.lp-rating { font-weight: 600; font-size: .95rem; }
.lp-rating small { font-weight: 400; color: #666; }

/* Boutons */
.lp-btn { display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--lp-accent-2); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: filter .15s; }
.lp-btn:hover { filter: brightness(.92); }
.lp-btn-ghost { background: transparent; color: var(--lp-accent) !important; border: 1.5px solid var(--lp-accent); }

/* Fiche logement */
.lp-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--lp-radius); overflow: hidden; aspect-ratio: 2.2 / 1; margin-bottom: 20px; }
.lp-gallery a { display: block; overflow: hidden; background: #eef2f5; }
.lp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.lp-gallery a:hover img { transform: scale(1.03); }
.lp-g-main { grid-row: 1 / 3; }
.lp-gallery[data-count="1"] { grid-template-columns: 1fr; }
.lp-gallery[data-count="2"] { grid-template-columns: 2fr 1fr; }
.lp-gallery[data-count="2"] .lp-g:not(.lp-g-main) { grid-row: 1 / 3; }
.lp-head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-bottom: 12px; }
.lp-head .lp-facts { margin: 0; }
.lp-atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 20px; padding: 16px 20px 16px 38px; background: #f6f9fb; border-radius: var(--lp-radius); margin: 0 0 24px; }
.lp-booking { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--lp-border); }
.lp-cta { margin-top: 18px; }

/* Calendrier */
.lp-cal { position: relative; max-width: 720px; }
.lp-cal-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.lp-cal-nav button { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lp-border); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: #333; padding: 0; }
.lp-cal-nav button:disabled { opacity: .3; cursor: default; }
.lp-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lp-month h4 { text-align: center; margin: 6px 0 12px; font-size: 1rem; }
.lp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.lp-dow { font-size: .75rem; color: #888; padding-bottom: 4px; }
.lp-day { display: inline-flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; font-size: .85rem; }
.lp-day.is-free { background: var(--lp-free); color: var(--lp-free-text); font-weight: 600; }
.lp-day.is-booked { background: var(--lp-booked); color: var(--lp-booked-text); text-decoration: line-through; }
.lp-day.is-past { color: #ccc; }
.lp-legend { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #555; margin: 16px 0 4px; }
.lp-legend .lp-day { width: 24px; height: 24px; aspect-ratio: auto; font-size: .7rem; }
.lp-legend .lp-day + * { margin-right: 10px; }
.lp-sync { font-size: .8rem; color: #888; margin: 4px 0 0; }

/* Visionneuse */
.lp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.lp-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lp-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 12px 18px; }
.lp-lb-close { top: 8px; right: 8px; }
.lp-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lp-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lp-lb-count { position: absolute; bottom: 16px; color: #ddd; font-size: .9rem; }

/* Formulaire de contact */
.lp-contact { max-width: 760px; }
.lp-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.lp-form input[type=text], .lp-form input[type=email], .lp-form input[type=tel], .lp-form input[type=date], .lp-form input[type=number], .lp-form select, .lp-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cfd6dc; border-radius: 8px; font: inherit; background: #fff; }
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { outline: 2px solid var(--lp-accent); outline-offset: 1px; border-color: var(--lp-accent); }
.lp-form p { margin: 0 0 16px; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lp-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.lp-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.lp-consent input { margin-top: 4px; }
.lp-small { font-size: .82rem; color: #666; }
.lp-form .lp-btn { border: 0; cursor: pointer; font-size: 1rem; }
.lp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.lp-notice-ok { background: var(--lp-free); color: var(--lp-free-text); }
.lp-notice-err { background: #fdecee; color: #a01c2c; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 700px) {
	.lp-cal-months { grid-template-columns: 1fr; }
	/* Galerie : carrousel horizontal glissable */
	.lp-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; aspect-ratio: auto; border-radius: 0; margin: 0 -16px 20px; padding: 0 16px; scrollbar-width: none; }
	.lp-gallery::-webkit-scrollbar { display: none; }
	.lp-gallery .lp-g { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; border-radius: 12px; }
	.lp-row, .lp-row-3 { grid-template-columns: 1fr; }
	.lp-cta .lp-btn { width: 100%; text-align: center; box-sizing: border-box; }
}
