/* =========================================================================
   FERIA DE NÎMES — Fiche d'une feria (single-feria.php)
   Chargée uniquement sur le CPT « feria ». Dépend de main.css (tokens & hero).
   Blocs : A infos essentielles · B hébergement (quartiers/transports) ·
           C Top 10 des hôtels au centre.
   ========================================================================= */

:root {
	--green: #1f9d55;
	--green-tint: #eafaf1;
	--amber-tint: #fff6e0;
}

/* ---------- Badges du hero (pays / mois / type) ------------------------- */
.fhero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fhero-badge {
	display: inline-flex; align-items: center;
	height: 28px; padding: 0 12px;
	border-radius: 16px;
	font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
	line-height: 1;
}
.fhero-badge--country { background: #fff; color: var(--ink); }
.fhero-badge--month   { background: var(--yellow); color: var(--ink); }
.fhero-badge--type    { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }

/* ---------- Conteneur & rythme des blocs -------------------------------- */
.feria-single {
	max-width: 900px;
	/* padding vertical seulement : on garde la gouttière horizontale de .container
	   (sinon le contenu colle aux bords sur mobile). */
	padding-top: 44px;
	padding-bottom: 80px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.feria-block { margin: 0; }
.feria-block__title {
	font-family: var(--title-font);
	font-weight: 400;
	font-size: clamp(24px, 3.2vw, 30px);
	line-height: 1.05;
	text-transform: uppercase;
	margin: 0 0 18px;
}

/* ---------- BLOC A : infos essentielles (facts) ------------------------- */
.feria-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}
.fact {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.fact__k {
	font-size: 11px; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: var(--muted-2);
}
.fact__v { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.fact__note { font-size: 12.5px; color: var(--muted-3); }
.fact--dates {
	background: var(--pink-tint);
	border-color: #f6d6e6;
}
.fact--dates .fact__v { color: var(--pink-dark); font-size: 17px; }

/* ---------- Programme & temps forts ------------------------------------- */
.temps-forts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.temps-forts li {
	position: relative;
	padding-left: 30px;
	font-size: 15.5px; line-height: 1.5; color: #2a231e;
}
.temps-forts li::before {
	content: "";
	position: absolute; left: 0; top: 3px;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--pink-tint);
	box-shadow: inset 0 0 0 2px var(--pink);
}
.temps-forts li::after {
	content: "";
	position: absolute; left: 6px; top: 8px;
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--pink);
}

/* ---------- Image à la une ---------------------------------------------- */
.feria-single__media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
}
.feria-single__media img { width: 100%; height: auto; display: block; }

/* ---------- BLOC B : tension (callout) ---------------------------------- */
.tension {
	background: var(--amber-tint);
	border: 1px solid #f2dfa8;
	border-left: 4px solid var(--yellow-dark);
	border-radius: 12px;
	padding: 16px 18px;
	font-size: 15px; line-height: 1.5; color: #5c4a12;
	font-weight: 600;
}

/* ---------- BLOC B : quartiers ------------------------------------------ */
.quartiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.quartier {
	background: #fff;
	border: 1px solid var(--border);
	border-top: 3px solid var(--border-3);
	border-radius: var(--radius);
	padding: 18px 18px 20px;
}
.quartier--centre { border-top-color: var(--pink); }
.quartier--calme  { border-top-color: var(--green); }
.quartier--budget { border-top-color: var(--yellow-dark); }
.quartier__tag {
	font-size: 11px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--muted-2);
	margin-bottom: 8px;
}
.quartier__name { font-family: var(--title-font); font-size: 20px; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.quartier__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- BLOC B : transports ----------------------------------------- */
.feria-transport p { font-size: 15.5px; line-height: 1.7; color: #2a231e; margin: 0 0 1em; }
.feria-transport p:last-child { margin-bottom: 0; }

/* =========================================================================
   BLOC C : Top 10 des hôtels au centre (liste)
   ========================================================================= */
.feria-hotels { margin: 0; }
.feria-hotels__head { margin-bottom: 20px; }
.feria-hotels__sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; max-width: 620px; }

.feria-hotels__empty {
	background: #fff; border: 1px dashed var(--border-3); border-radius: var(--radius);
	padding: 28px; text-align: center;
}
.feria-hotels__empty p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }

/* Liste verticale de lignes (rendu « Top 10 ») */
.hgrid { display: flex; flex-direction: column; gap: 12px; }
.hgrid__item { display: block; }

.hcard {
	display: flex;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hcard:hover {
	border-color: var(--pink);
	box-shadow: 0 10px 24px rgba(28, 23, 20, .08);
	transform: translateY(-1px);
}
.hcard__media {
	position: relative;
	flex: none;
	width: 168px;
	background: linear-gradient(135deg, #f0e6d8 0%, #e9dcc9 100%);
}
.hcard__media img { width: 100%; height: 100%; object-fit: cover; }
.hcard__media .ph-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; }
.hcard__rank {
	position: absolute; top: 8px; left: 8px;
	min-width: 26px; height: 26px; padding: 0 7px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--pink); color: #fff;
	font-family: var(--title-font); font-size: 15px; line-height: 1;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(28, 23, 20, .25);
}

.hcard__body {
	flex: 1;
	min-width: 0;
	padding: 15px 18px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.hcard__name { font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--ink); }
.hcard__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.hcard__stars { color: var(--yellow-dark); letter-spacing: .5px; }
.hcard__rating { font-weight: 700; color: var(--green); }
.hcard__reviews { color: var(--muted-2); }
.hcard__dist { font-size: 13px; color: var(--muted); }
.hcard__foot {
	margin-top: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding-top: 4px;
}
.hcard__price { font-size: 13px; color: var(--muted); }
.hcard__price small { font-size: 11px; color: var(--muted-2); }
.hcard__price .hcard__price--na,
.hcard__price--na { color: var(--muted-2); font-style: italic; }
.hcard__cta {
	display: inline-flex; align-items: center; flex: none;
	height: 38px; padding: 0 16px;
	background: var(--pink); color: #fff;
	border-radius: 20px; font-weight: 700; font-size: 13px;
	transition: background-color .15s ease;
}
.hcard:hover .hcard__cta { background: var(--pink-dark); }

.feria-hotels__foot {
	margin-top: 22px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.feria-hotels__note { font-size: 11.5px; line-height: 1.5; color: var(--muted-2); margin: 0; }

/* ---------- Retour annuaire --------------------------------------------- */
.feria-single__back { margin: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 560px) {
	.feria-single { gap: 32px; padding-top: 32px; padding-bottom: 60px; }
	.hcard__media { width: 104px; }
	.hcard__body { padding: 12px 14px; gap: 6px; }
	.hcard__name { font-size: 15px; }
	.hcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
	.hcard__cta { justify-content: center; height: 40px; }
}
