/* ==========================================================================
   Marakuja - Nos Logements : grille de fiches villa (design moderne)
   ========================================================================== */

.npm-wrapper {
	--npm-card-border: #b45384;
	--npm-title-color: #8c2e62;
	--npm-price-color: #b45384;
	--npm-button-bg: #f8c115;
	--npm-button-text: #3c2415;
	--npm-radius-lg: 22px;
	--npm-radius-md: 16px;
	--npm-radius-pill: 999px;
	--npm-ease: cubic-bezier(0.22, 1, 0.36, 1);
	font-family: inherit;
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px 12px;
}

.npm-section-title {
	text-align: center;
	color: var(--npm-title-color);
	margin: 0 0 34px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.npm-complex-title {
	text-align: center;
	color: var(--npm-title-color);
	margin: 56px 0 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.npm-complex-title[hidden],
.npm-grid[hidden] {
	display: none;
}

/* -------------------------------------------------------------------- */
/* Barre d'onglets de filtre par catégorie                              */
/* -------------------------------------------------------------------- */

.npm-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 36px;
	padding: 6px;
}

/* Les propriétés visuelles ci-dessous sont volontairement en !important :
   beaucoup de thèmes appliquent un style générique à "button" (couleur,
   fond, bordure, arrondi) qui sinon prendrait le dessus sur le nôtre selon
   l'ordre de chargement des CSS. On garantit ainsi que ces éléments gardent
   toujours l'identité visuelle rose/magenta de Nos Logements. */
.npm-filter-tab {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	font-family: inherit;
	background: #ffffff !important;
	border: 1.5px solid rgba(180, 83, 132, 0.35) !important;
	color: var(--npm-title-color) !important;
	font-weight: 600;
	font-size: 14.5px;
	padding: 10px 24px;
	border-radius: var(--npm-radius-pill) !important;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 1px 2px rgba(47, 30, 40, 0.06);
	transition: background 0.25s var(--npm-ease), color 0.25s var(--npm-ease),
		border-color 0.25s var(--npm-ease), transform 0.2s var(--npm-ease),
		box-shadow 0.25s var(--npm-ease);
}

.npm-filter-tab:hover {
	transform: translateY(-2px);
	border-color: var(--npm-card-border) !important;
	box-shadow: 0 6px 16px rgba(140, 46, 98, 0.16);
}

.npm-filter-tab:focus-visible {
	outline: 2px solid var(--npm-card-border);
	outline-offset: 2px;
}

.npm-filter-tab.is-active {
	background: linear-gradient(135deg, var(--npm-title-color), var(--npm-card-border)) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 8px 20px rgba(140, 46, 98, 0.28);
}

.npm-filter-tab.is-active:hover {
	transform: translateY(-2px);
}

.npm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 10px;
}

.npm-grid--complex {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
	.npm-grid,
	.npm-grid--complex {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.npm-grid,
	.npm-grid--complex {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------- */
/* Fiche logement                                                        */
/* -------------------------------------------------------------------- */

.npm-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid rgba(180, 83, 132, 0.18);
	border-radius: var(--npm-radius-lg);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(47, 30, 40, 0.06), 0 14px 32px rgba(47, 30, 40, 0.08);
	transition: transform 0.35s var(--npm-ease), box-shadow 0.35s var(--npm-ease),
		border-color 0.35s var(--npm-ease);
}

.npm-card:hover {
	transform: translateY(-6px);
	border-color: rgba(180, 83, 132, 0.4);
	box-shadow: 0 4px 14px rgba(47, 30, 40, 0.08), 0 24px 44px rgba(47, 30, 40, 0.16);
}

.npm-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 22px 22px 26px;
	gap: 7px;
}

.npm-card-title {
	margin: 4px 0 0;
	color: var(--npm-title-color);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	position: relative;
	padding-bottom: 10px;
}

.npm-card-title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 34px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--npm-title-color), var(--npm-card-border));
	opacity: 0.55;
}

.npm-card-capacity {
	margin: 0;
	font-size: 12.5px;
	color: #837c81;
	letter-spacing: 0.01em;
}

.npm-card-desc {
	margin: 6px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: #45393f;
	width: 100%;
}

/* Texte tronqué à 3 lignes avec "…" sur la fiche (chaque paragraphe du
   contenu est clampé individuellement) ; le texte complet n'apparaît que
   dans la popup "Voir plus" (.npm-modal-desc, jamais tronquée). */
.npm-card-desc p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.npm-card-desc p + p {
	display: none; /* Un seul paragraphe visible sur la fiche, le reste dans la popup. */
}

.npm-card-price {
	margin: 6px 0 0;
	font-size: 14px;
	color: #45393f;
}

.npm-card-price strong {
	color: var(--npm-price-color);
	font-weight: 800;
}

.npm-price-chip {
	display: inline-block;
	background: rgba(180, 83, 132, 0.08);
	border-radius: var(--npm-radius-pill);
	padding: 5px 16px;
}

.npm-toggle-wrap {
	margin: 2px 0 0;
}

.npm-toggle-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	font-family: inherit;
	background: none !important;
	border: none !important;
	padding: 2px 0;
	color: var(--npm-price-color) !important;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	position: relative;
}

.npm-toggle-btn::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0.85);
	opacity: 0.55;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.npm-toggle-btn:hover::after {
	opacity: 1;
	transform: scaleX(1);
}

.npm-modal-source[hidden] {
	display: none;
}

/* -------------------------------------------------------------------- */
/* Popup "Voir plus"                                                     */
/* -------------------------------------------------------------------- */

body.npm-modal-open {
	overflow: hidden;
}

.npm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(25, 15, 22, 0.6);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 100000;
	animation: npm-fade-in 0.2s var(--npm-ease);
}

.npm-modal-overlay[hidden] {
	display: none;
}

@keyframes npm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes npm-modal-in {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.npm-modal {
	position: relative;
	background: #ffffff;
	border-radius: 24px;
	max-width: 920px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 38px 34px 30px;
	box-shadow: 0 30px 70px rgba(20, 10, 18, 0.35);
	animation: npm-modal-in 0.28s var(--npm-ease);
}

.npm-modal-close {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 14px;
	right: 16px;
	background: rgba(140, 46, 98, 0.1) !important;
	border: 1.5px solid rgba(140, 46, 98, 0.18) !important;
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	font-size: 22px;
	font-family: inherit;
	line-height: 1;
	color: var(--npm-title-color, #8c2e62) !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.npm-modal-close:hover {
	background: var(--npm-title-color, #8c2e62) !important;
	color: #ffffff !important;
	transform: rotate(90deg);
}

.npm-modal-title {
	margin: 0 0 6px;
	color: var(--npm-title-color, #8c2e62);
	font-size: 23px;
	font-weight: 800;
	text-align: center;
	letter-spacing: -0.01em;
}

.npm-modal-capacity {
	text-align: center;
	color: #837c81;
	font-size: 13px;
	margin: 0 0 16px;
}

/* Deux colonnes : galerie photo à gauche, infos + description longue à
   droite (comme sur le site d'origine : photos + détails côte à côte). */
.npm-modal-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	text-align: left;
}

@media (max-width: 680px) {
	.npm-modal-columns {
		grid-template-columns: 1fr;
	}
}

.npm-modal-media .npm-detail-images {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.npm-modal-media .npm-detail-images img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	border-radius: var(--npm-radius-md);
}

.npm-modal-info {
	display: flex;
	flex-direction: column;
}

.npm-modal-desc {
	font-size: 15px;
	line-height: 1.6;
	color: #45393f;
	margin-bottom: 10px;
}

.npm-modal-desc p {
	margin: 0 0 8px;
}

.npm-modal-details {
	background: rgba(180, 83, 132, 0.05);
	border-radius: var(--npm-radius-md);
	padding: 14px 18px;
	margin-bottom: 18px;
	max-height: 320px;
	overflow-y: auto;
}

.npm-modal-details-heading {
	color: var(--npm-title-color, #8c2e62);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 16px 0 6px;
}

.npm-modal-details-heading:first-child {
	margin-top: 0;
}

.npm-modal-details-item {
	font-size: 14px;
	line-height: 1.55;
	color: #45393f;
	margin: 0 0 6px;
	padding-left: 16px;
	position: relative;
}

.npm-modal-details-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--npm-card-border, #b45384);
}

.npm-modal-price {
	font-size: 15px;
	color: #45393f;
	margin: 0 0 14px;
}

.npm-modal-price strong {
	color: var(--npm-price-color, #b45384);
	font-weight: 800;
}

.npm-modal-info .npm-reserve-btn {
	display: block;
	width: fit-content;
	margin-top: auto;
}

.npm-reserve-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 11px 30px;
	border: none !important;
	border-radius: var(--npm-radius-pill) !important;
	background: var(--npm-button-bg) !important;
	color: var(--npm-button-text) !important;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(248, 193, 21, 0.35);
	transition: filter 0.2s ease, transform 0.2s var(--npm-ease), box-shadow 0.2s ease;
}

.npm-reserve-btn:hover {
	filter: brightness(0.97);
	color: var(--npm-button-text) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(248, 193, 21, 0.45);
}

/* -------------------------------------------------------------------- */
/* Carrousel photo                                                       */
/* -------------------------------------------------------------------- */

.npm-card-media {
	width: 100%;
	position: relative;
}

.npm-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(3px);
	color: var(--npm-title-color);
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 6px 14px;
	border-radius: var(--npm-radius-pill);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.npm-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eeeeee;
}

.npm-card:hover .npm-slide.is-current {
	transform: scale(1.06);
}

.npm-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.npm-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.03);
	transition: opacity 0.6s var(--npm-ease), transform 6s linear;
}

.npm-slide.is-current {
	opacity: 1;
	transform: scale(1);
}

.npm-slider-arrow {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.92) !important;
	backdrop-filter: blur(2px);
	border: 1.5px solid rgba(140, 46, 98, 0.15) !important;
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	line-height: 1;
	color: var(--npm-title-color) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	opacity: 0.8;
	transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s var(--npm-ease);
}

.npm-slider:hover .npm-slider-arrow,
.npm-slider-arrow:focus-visible {
	opacity: 1;
}

.npm-slider-arrow:hover {
	background: #ffffff !important;
	transform: translateY(-50%) scale(1.08);
}

.npm-slider-arrow.npm-prev {
	left: 12px;
}

.npm-slider-arrow.npm-next {
	right: 12px;
}

/* -------------------------------------------------------------------- */
/* Bouton CTA de section                                                 */
/* -------------------------------------------------------------------- */

.npm-cta-wrap {
	text-align: center;
	margin-top: 44px;
}

.npm-cta-btn {
	display: inline-block;
	padding: 15px 38px;
	border: none !important;
	border-radius: var(--npm-radius-pill) !important;
	background: var(--npm-button-bg) !important;
	color: var(--npm-button-text) !important;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(248, 193, 21, 0.35);
	transition: transform 0.2s var(--npm-ease), box-shadow 0.2s ease;
}

.npm-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(248, 193, 21, 0.45);
}

/* -------------------------------------------------------------------- */
/* Popup "Réservation" (formulaire de demande envoyé par email)          */
/* -------------------------------------------------------------------- */

.npm-booking-modal {
	max-width: 560px;
	padding: 40px 34px 30px;
}

.npm-booking-title {
	margin: 0 0 4px;
	color: var(--npm-title-color, #8c2e62);
	font-size: 22px;
	font-weight: 800;
	text-align: center;
	letter-spacing: -0.01em;
}

.npm-booking-hint {
	text-align: center;
	color: #837c81;
	font-size: 13px;
	margin: 0 0 22px;
}

.npm-booking-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.npm-booking-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #4a3843;
}

.npm-booking-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.npm-booking-form input,
.npm-booking-form textarea {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid rgba(140, 46, 98, 0.18) !important;
	border-radius: 12px !important;
	background: #fbf7f9 !important;
	color: #2c2229 !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.npm-booking-form textarea {
	resize: vertical;
	min-height: 76px;
}

.npm-booking-form input:focus,
.npm-booking-form textarea:focus {
	border-color: var(--npm-title-color, #8c2e62) !important;
	background: #ffffff !important;
}

.npm-booking-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
}

.npm-booking-submit {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 6px;
	padding: 13px 30px;
	border: none !important;
	border-radius: var(--npm-radius-pill) !important;
	background: var(--npm-title-color, #8c2e62) !important;
	color: #ffffff !important;
	font-family: inherit;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(140, 46, 98, 0.35);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--npm-ease), box-shadow 0.2s ease;
}

.npm-booking-submit:hover {
	background: var(--npm-button-bg, #f8c115) !important;
	color: var(--npm-title-color, #8c2e62) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(248, 193, 21, 0.45);
}

.npm-booking-submit:disabled {
	opacity: 0.65;
	cursor: default;
	transform: none;
}

.npm-booking-status {
	min-height: 18px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.npm-booking-status.is-sending {
	color: #837c81;
}

.npm-booking-status.is-success {
	color: #2f8f5b;
}

.npm-booking-status.is-error {
	color: #c0392b;
}

@media (max-width: 560px) {
	.npm-booking-row {
		grid-template-columns: 1fr;
	}
}


/* ------------------------------------------------------------------ */
/* Regroupement par ville                                              */
/* ------------------------------------------------------------------ */
.npm-wrapper .npm-city-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 32px;
}
.npm-wrapper .npm-city-nav-label {
	font-weight: 600;
	margin-right: 4px;
}
.npm-wrapper .npm-city-link {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}
.npm-wrapper .npm-city-link:hover,
.npm-wrapper .npm-city-link:focus {
	opacity: 1;
	text-decoration: none;
}
.npm-wrapper .npm-city-link[hidden] {
	display: none;
}
.npm-wrapper .npm-city-title {
	scroll-margin-top: 120px;
}


/* Bouton "À venir" (logement sans lien de réservation) */
.npm-wrapper .npm-reserve-btn--soon {
	cursor: default;
	pointer-events: none;
	opacity: 0.75;
	font-style: italic;
}
