/* =====================================================
   Mini Golf Planet - fiche d'une location (single-mini_golf_location.php)
===================================================== */


/* BANDEAU */
section.location-heading {
	padding-top: 50px;
	padding-bottom: 60px;
}

.location-heading .grid-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
}

.location-heading .heading-text {
	flex: 1 1 auto;
	max-width: 820px;
}

.location-heading h1 {
	color: var(--color-ivory);
	margin-bottom: 16px;
}

.location-heading .heading-subtitle {
	font-size: 21px;
	font-style: italic;
	line-height: 1.45em;
	color: var(--color-ivory);
	margin-bottom: 24px;
}

.heading-visual {
	flex: 0 0 380px;
}

.heading-visual img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.heading-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	background: rgba(255, 252, 247, 0.12);
}

.heading-placeholder img {
	width: 55%;
	box-shadow: none;
	border-radius: 0;
	filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
}


/* Photo du bandeau : format constant, quelle que soit la photo d'origine */
.heading-photo {
	margin: 0;
}

.heading-photo img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.heading-photo .photo-credit {
	margin-top: 10px;
	color: rgba(255, 252, 247, 0.8);
}

.heading-photo .photo-credit a {
	color: var(--color-ivory);
}

/* Mention des photos du site officiel */
.photo-credit {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(24, 61, 53, 0.7);
}

.photo-credit a {
	color: inherit;
	text-decoration: underline;
}


/* Logo (quand il n'y a pas de photo) */
.heading-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 40px;
	border-radius: 20px;
	background-color: #fff; /* blanc pur : beaucoup de logos sont des JPG sur fond blanc */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.heading-visual .heading-logo img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}


/* STATUT (fermé temporairement / définitivement) */
.status-badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
	padding: 4px 12px;
	border-radius: 20px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	background-color: var(--color-orange);
	color: var(--color-ivory);
}

.status-permanently-closed {
	background-color: var(--color-forest);
}


/* PASTILLES D'INFOS */
.info-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.info-chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 30px;
	background-color: var(--color-forest);
	color: var(--color-ivory);
	font-size: 14px;
	font-weight: 600;
}

.info-chips .mgp-icon {
	width: 18px;
	height: 18px;
}


/* BOUTONS DU BANDEAU */
.heading-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Couleurs des boutons : classes bg-* / bg-hover-* (voir base.css). */

.btn-outline {
	background-color: transparent;
	box-shadow: inset 0 0 0 2px var(--color-ivory);
}

.btn-outline:hover,
.btn-outline:focus-visible {
	background-color: var(--color-ivory);
	color: var(--color-forest);
}


/* BARRE D'ANCRES (comme les onglets de BGR) */
/* Non fixe : le menu principal (GP Premium) est déjà fixé en haut au défilement. */
.anchor-bar .grid-container {
	display: flex;
	overflow-x: auto;
	padding: 0 30px;
	scrollbar-width: none;
}

.anchor-bar a {
	flex: 0 0 auto;
	padding: 16px 24px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-ivory);
	border-right: 1px solid rgba(255, 252, 247, 0.12);
}

.anchor-bar a:hover,
.anchor-bar a:focus-visible {
	background-color: var(--color-green);
	color: var(--color-ivory);
}

/* Les ancres ne doivent pas se cacher sous le menu fixe. */
.location-section,
.sidebar-card {
	scroll-margin-top: 140px;
}


/* CORPS : colonne principale + colonne latérale */
.location-body .grid-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 60px;
	align-items: start;
}

.location-section + .location-section {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid rgba(24, 61, 53, 0.12);
}

.location-description p,
.location-section > p {
	font-size: 17px;
}

.small-print {
	font-size: 14px;
	opacity: 0.75;
}


/* HEURES ET PRIX */
.hours-table,
.price-table {
	width: 100%;
	max-width: 620px;
	border-collapse: collapse;
	border: 0;
	margin-bottom: 20px;
}

.hours-table th,
.hours-table td,
.price-table th,
.price-table td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid rgba(24, 61, 53, 0.1);
	text-align: left;
	vertical-align: top;
	font-size: 16px;
}

.hours-table th,
.price-table th {
	font-weight: 600;
	width: 50%;
}

.price-table td {
	text-align: right;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	color: var(--color-green);
	white-space: nowrap;
}

.hours-table .closed {
	opacity: 0.6;
}

.hours-note {
	padding: 14px 18px;
	border-radius: 12px;
	background-color: var(--color-ivory);
	border-left: 4px solid var(--color-blue);
}

.price-note {
	display: block;
	font-size: 14px;
	font-weight: 400;
	opacity: 0.75;
}

.price-category + .price-category {
	margin-top: 30px;
}


/* PARCOURS */
.course-cards {
	display: grid;
	gap: 20px;
}

.course-card {
	border-radius: 20px;
	padding: 28px;
}

.course-holes {
	margin-left: 8px;
	padding: 3px 10px;
	border-radius: 20px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	background-color: var(--color-green);
	color: var(--color-ivory);
	vertical-align: middle;
}

.par-table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	display: block;
	overflow-x: auto;
}

.par-table th,
.par-table td {
	padding: 6px 10px;
	border: 1px solid rgba(24, 61, 53, 0.1);
	text-align: center;
	font-size: 14px;
}


/* GALERIE */
.location-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
}

.location-gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 14px;
}


/* COLONNE LATÉRALE */
.location-sidebar {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.sidebar-card {
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 3px 12px rgba(24, 61, 53, 0.08);
}

.sidebar-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.contact-line {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
	font-size: 15px;
	word-break: break-word;
}

.contact-line .mgp-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--color-green);
}

.contact-line a {
	font-size: 15px;
}

.fullwidth-btn {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	background-color: var(--color-ivory);
	color: var(--color-forest);
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.pill:hover,
.pill:focus-visible {
	background-color: var(--color-green);
	color: var(--color-ivory);
}

/* Pastille avec icône Font Awesome (Features, Thematics) */
.pill-icon {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.pill-icon .fa-icon {
	flex: 0 0 auto;
	width: auto;
	height: 14px;
	fill: var(--color-green);
	transition: fill 0.3s ease;
}

.pill-icon:hover .fa-icon,
.pill-icon:focus-visible .fa-icon {
	fill: currentColor;
}

.brand-link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--color-forest);
}

.brand-link > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.brand-link strong {
	font-family: var(--font-heading);
	font-size: 20px;
}

.brand-link > span > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-orange);
}

.brand-link:hover > span > span,
.brand-link:focus-visible > span > span {
	color: var(--color-forest);
}

.brand-link .mgp-icon {
	width: 16px;
	height: 16px;
}

.brand-logo {
	flex: 0 0 84px;
	width: 84px;
	height: 63px;
	padding: 8px;
	border-radius: 12px;
	object-fit: contain;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(24, 61, 53, 0.08);
}

.brand-logo.is-light { background-color: var(--color-forest); }

.brand-logo-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-orange);
}

.brand-logo-placeholder .mgp-icon {
	width: 30px;
	height: 30px;
}


/* RÉSEAUX SOCIAUX */
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 18px;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: var(--color-sand);
	color: var(--color-forest);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
	background-color: var(--color-orange);
	color: var(--color-ivory);
}


/* APERÇU FACEBOOK */
.fb-feed .fb-page,
.fb-feed .fb-page > span {
	display: block;
	max-width: 100%;
}

.fb-feed .fb-page {
	margin-bottom: 14px;
	border-radius: 14px;
	overflow: hidden;
	background-color: var(--color-ivory);
	box-shadow: 0 3px 12px rgba(24, 61, 53, 0.08);
}

.fb-feed iframe {
	display: block;
	max-width: 100%;
}

.fb-feed .cta-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.fb-feed .cta-link .mgp-icon {
	width: 18px;
	height: 18px;
}


/* AUTRES MINI-GOLFS À PROXIMITÉ */
.mgp-map-small {
	height: 320px;
	margin-bottom: 24px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(24, 61, 53, 0.08);
	z-index: 1;
}

.mgp-map-popup a {
	display: block;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--color-forest);
}

.mgp-map-popup span {
	font-size: 13px;
	opacity: 0.75;
}

.nearby-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.nearby-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 20px 24px;
	border-radius: 16px;
	background-color: var(--color-sand);
	color: var(--color-forest);
	transition: background-color 0.3s ease;
}

.nearby-card:hover,
.nearby-card:focus-visible {
	background-color: var(--color-green);
	color: var(--color-ivory);
}

.nearby-card strong {
	font-family: var(--font-heading);
	font-size: 18px;
}

.nearby-card span {
	font-size: 14px;
}


/* DERNIÈRE MISE À JOUR */
section.location-updated {
	padding-top: 0;
	padding-bottom: 50px;
}


/* RESPONSIVE */
@media screen and (max-width: 1270px) {
	.heading-visual { flex-basis: 300px; }
	.location-body .grid-container { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
}

@media screen and (max-width: 1024px) {
	.location-heading .grid-container { flex-direction: column-reverse; align-items: flex-start; gap: 30px; }
	.heading-visual { flex-basis: auto; width: 100%; max-width: 520px; }
	.heading-placeholder { display: none; }
	.heading-logo { aspect-ratio: auto; max-height: 220px; padding: 24px; }
	.location-body .grid-container { grid-template-columns: 1fr; }
	.nearby-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 600px) {
	section.location-heading { padding-top: 30px; padding-bottom: 40px; }
	.location-heading .heading-subtitle { font-size: 18px; }
	.heading-buttons .btn { width: 100%; justify-content: center; }
	.anchor-bar .grid-container { padding: 0; }
	.anchor-bar a { padding: 14px 16px; }
	.location-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nearby-list { grid-template-columns: 1fr; }
	.sidebar-card, .course-card { padding: 22px; }
}

/* Mini drapeau à la place de l'épingle */
.info-chips .mgp-flag-rect {
	width: 22px;
	height: 16px;
	border-radius: 4px;
}
.contact-line .mgp-flag-rect {
	flex: 0 0 20px;
	width: 20px;
	height: 15px;
	margin-top: 4px;
	margin-right: 0;
	border-radius: 4px;
}

/* Logo clair (blanc sur transparent) : fond vert foncé */
.heading-logo.is-light { background-color: var(--color-forest); }
