/* Store locator Kino — /reserver-un-essai */

.kino-locator {
	--kino-ink: #111;
	--kino-muted: #6b6b6b;
	--kino-line: #e8e8e8;
	--kino-soft: #f6f6f6;

	display: flex;
	height: 640px;
	max-height: 85vh;
	border: 1px solid var(--kino-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: var(--kino-ink);
	font-family: inherit;
}

/* ── Panneau gauche ── */
.kino-locator-panel {
	flex: 0 0 30%;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--kino-line);
	min-width: 320px;
}

.kino-locator-search {
	display: flex;
	gap: 8px;
	padding: 16px;
	border-bottom: 1px solid var(--kino-line);
}
.kino-locator-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	font-size: 14px;
}
.kino-locator-geo {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 1px solid var(--kino-ink) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--kino-ink) !important;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.kino-locator-geo:hover { background: var(--kino-ink) !important; color: #fff !important; }
.kino-locator-geo:disabled { opacity: .5; cursor: default; }

.kino-locator-count {
	padding: 10px 16px;
	border-bottom: 1px solid var(--kino-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--kino-muted);
}

.kino-locator-list {
	flex: 1 1 auto;
	overflow-y: auto;
}

/* ── Fiches magasin ── */
.kino-store-card {
	padding: 16px;
	border-bottom: 1px solid var(--kino-line);
	cursor: pointer;
	transition: background .12s;
}
.kino-store-card:hover { background: var(--kino-soft); }
.kino-store-card.is-selected {
	background: var(--kino-soft);
	box-shadow: inset 3px 0 0 var(--kino-ink);
}

.kino-store-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}
.kino-store-name { font-weight: 700; font-size: 16px; }
.kino-store-dist {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--kino-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.kino-store-addr,
.kino-store-tel,
.kino-store-today { font-size: 13px; line-height: 1.5; color: var(--kino-muted); }
.kino-store-tel a { color: inherit !important; text-decoration: none; }
.kino-store-tel a:hover { color: var(--kino-ink) !important; text-decoration: underline; }
.kino-store-today { margin-top: 6px; color: var(--kino-ink); }
.kino-store-today::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #1e9e4a;
	vertical-align: 1px;
}
.kino-store-today.is-closed::before { background: #c6c6c6; }

.kino-store-hours-toggle { margin-top: 2px; font-size: 13px; color: var(--kino-muted); }
.kino-store-hours-toggle summary { cursor: pointer; width: max-content; }
.kino-store-hours-toggle summary:hover { color: var(--kino-ink); }
.kino-store-hours {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: var(--kino-muted);
	line-height: 1.6;
}
.kino-store-hours li::first-letter { text-transform: uppercase; }
.kino-store-hours li.is-today { color: var(--kino-ink); font-weight: 600; }

.kino-store-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	background: var(--kino-ink, #111);
	color: #fff !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: opacity .15s;
}
.kino-store-cta:hover { opacity: .8; }

/* Note Google : 5 étoiles grises, recouvertes au prorata par 5 étoiles jaunes. */
.kino-store-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--kino-ink);
}
.kino-stars {
	position: relative;
	display: inline-block;
	color: #d6d6d6;
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
}
.kino-stars::before,
.kino-stars i::before { content: '★★★★★'; }
.kino-stars i {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #f5a623;
	font-style: normal;
}
.kino-store-premium {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #c9a227;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
}
.kino-infowindow .kino-store-premium { margin-top: 2px; }
.kino-store-note { font-weight: 600; }
.kino-store-avis { color: var(--kino-muted); }

.kino-locator-empty,
.kino-locator-msg {
	padding: 24px 16px;
	color: var(--kino-muted, #6b6b6b);
	font-size: 14px;
	text-align: center;
}

/* Bulle Google Maps : police du site plutôt que Roboto (imposée par Google sur .gm-style). */
.kino-locator .gm-style { font-family: inherit; }
.kino-infowindow { width: 240px; max-width: 100%; font-family: inherit; color: #111; }
.kino-infowindow strong { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; }
/* Vignette 4:3 pleine largeur, recadrée au centre (hauteur fixe : la bulle ne bouge pas au chargement). */
.kino-iw-photo {
	position: relative;
	aspect-ratio: 4 / 3;
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--kino-soft);
}
/* Position absolue : le thème force height:auto sur les images, qui ne rempliraient pas le cadre. */
.kino-iw-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.kino-infowindow .kino-store-addr { font-size: 12px; }
.kino-infowindow .kino-store-cta { margin-top: 8px; }

/* ── Carte ── */
.kino-locator-map {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

/* ── Fenêtre de réservation (formulaire Amelia) ── */
.kino-booking {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	visibility: hidden; /* Pas de display:none : les formulaires préchargés doivent avoir une taille. */
	pointer-events: none;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px 0; /* Pas de padding bas : le pied « sticky » colle au bas de l'écran. */
	background: rgba( 17, 17, 17, .55 );
	overflow-y: auto;
}
.kino-booking.is-open { visibility: visible; pointer-events: auto; }
body.kino-booking-open { overflow: hidden; }
.kino-booking-box {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin-bottom: 48px;
	background: #fff;
	border-radius: 14px;
	overflow: clip; /* Coins arrondis sans casser le pied « sticky » d'Amelia. */
	box-shadow: 0 20px 60px rgba( 0, 0, 0, .25 );
}
.kino-booking-head {
	padding: 24px 64px 20px 32px;
	border-bottom: 1px solid #e8e8e8;
}
.kino-booking-kicker {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6b6b6b;
}
/* Blocs des autres magasins : hors écran à la largeur de la fenêtre (préchargement possible). */
.kino-booking-store:not(.is-active) {
	position: absolute;
	top: 0;
	left: -10000px;
	width: min( 620px, 100vw );
	visibility: hidden;
}
.kino-booking-loading[hidden],
[class^="kino-book-trigger-"] { display: none !important; }
.kino-booking-loading {
	padding: 48px 32px;
	color: #6b6b6b;
	font-size: 14px;
	text-align: center;
}
.kino-booking-title { margin-top: 2px; font-size: 22px; font-weight: 700; line-height: 1.25; color: #111; }
.kino-booking-addr { margin-top: 4px; font-size: 13px; color: #6b6b6b; }
.kino-booking-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	min-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f2f2f2 !important;
	color: #111 !important;
	cursor: pointer;
	transition: background .15s;
}
.kino-booking-close:hover { background: #e2e2e2 !important; }
.kino-booking-close svg { width: 16px; height: 16px; }

/* Amelia : pas d'animations ni de transitions (apparitions en fondu, glissements, squelettes). */
.kino-booking .amelia-v2-booking *,
.kino-booking .amelia-v2-booking *::before,
.kino-booking .amelia-v2-booking *::after {
	animation: none !important;
	transition: none !important;
}

/* Amelia : retire la marge de 100 px, l'ombre et la largeur fixe du formulaire. */
.kino-booking #amelia-container.am-fs__wrapper {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.kino-booking .am-fs__main {
	--am-mw-fsm: 100% !important;
	width: 100% !important;
	max-width: none !important;
	flex: 1 1 auto !important;
}
.kino-booking .am-fs__main-heading { box-shadow: none !important; border-bottom: 1px solid #e8e8e8; }
/* Hauteur libre : la fenêtre défile, pas le formulaire (Amelia fixe 560 px + ascenseur interne). */
.kino-booking #amelia-container.am-fs__wrapper,
.kino-booking .am-fs__main,
.kino-booking .am-fs__main-inner,
.kino-booking .am-fs__main-content {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}
/* Pied « Continuer » : suit le contenu et reste visible en bas de la fenêtre. */
.kino-booking .am-fs__main-footer {
	position: sticky !important;
	bottom: 0 !important;
	z-index: 2;
	background: #fff !important;
}

/* ── Responsive ── */
@media ( max-width: 782px ) {
	.kino-locator {
		flex-direction: column;
		height: auto;
		max-height: none;
	}
	.kino-locator-panel {
		flex: none;
		min-width: 0;
		border-right: none;
		border-top: 1px solid var(--kino-line);
		order: 2;
	}
	.kino-locator-list { max-height: 420px; }
	.kino-locator-map {
		order: 1;
		height: 300px;
		flex: none;
	}
	.kino-booking { padding: 0; }
	.kino-booking-box { max-width: none; min-height: 100%; margin-bottom: 0; border-radius: 0; }
	.kino-booking-head { padding: 20px 60px 16px 20px; }
	.kino-booking-title { font-size: 19px; }
}
