/**
 * Shared section — venue block (template-parts/sections/venue-info.php)
 * Tournaments "Venue Information" (base) and Contact "Find Us" (--home-ground).
 *
 * 1. Venue Info
 * 2. Venue Info — Home Ground variant
 * 3. Responsive
 */

/* ============================ VENUE INFO ============================ */
.venue-info {
	background: var(--light-bg);
	padding-top: calc(143 * var(--u));
}

.venue-info__head {
	margin-bottom: var(--space-30);
}

.venue-info__head .section-head__copy {
	max-width: calc(646 * var(--u));
}

.venue-info__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	padding: calc(27 * var(--u)) var(--stroke-thin) var(--stroke-thin);
	overflow: hidden;
	background: var(--white);
	border: var(--stroke-thin) solid var(--border-color);
	border-radius: var(--radius-lg);
}

.venue-info__details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-8);
	padding: var(--space-48) var(--space-48) calc(50 * var(--u));
}

.venue-info__eyebrow {
	font-size: var(--fs-24);
	font-weight: var(--font-weight-bold);
	line-height: 1.55;
	color: var(--primary-color);
}

.venue-info__name {
	font-size: var(--fs-stat);
	font-weight: var(--font-weight-black);
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--heading-color);
}

.venue-info__address {
	margin: 0;
	padding: var(--space-6) 0 var(--space-18);
	font-size: var(--fs-h4);
	font-style: normal;
	font-weight: var(--font-weight-light);
	line-height: 1.45;
	color: var(--text-color);
}

.venue-info__directions {
	min-height: 0;
	padding: calc(22.5 * var(--u)) calc(41 * var(--u));
}

.venue-info__amenities {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-16) var(--space-24);
	width: 100%;
	margin: var(--space-2) 0 0;
	padding: calc(52 * var(--u)) 0 0;
	list-style: none;
	border-top: var(--stroke-thin) solid var(--border-color);
}

.venue-info__amenity {
	display: flex;
	align-items: center;
	gap: var(--space-14);
	min-height: calc(74 * var(--u));
}

.venue-info__check {
	display: inline-flex;
	flex: none;
	width: calc(26 * var(--u));
	height: calc(26 * var(--u));
	min-width: 18px;
	min-height: 18px;
}

.venue-info__check svg {
	width: 100%;
	height: 100%;
}

.venue-info__amenity-text {
	font-size: var(--fs-24);
	font-weight: var(--font-weight-medium);
	line-height: 1.55;
	color: var(--heading-color);
}

.venue-info__map {
	position: relative;
	min-height: max(calc(675 * var(--u)), 360px);
	background: var(--light-bg-alt);
}

.venue-info__map-empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-6);
	padding: var(--space-24);
	text-align: center;
}

.venue-info__map-pin {
	display: inline-flex;
	width: calc(46 * var(--u));
	height: calc(46 * var(--u));
	min-width: 30px;
	min-height: 30px;
	margin-bottom: var(--space-8);
	color: var(--text-color);
}

.venue-info__map-pin svg {
	width: 100%;
	height: 100%;
}

.venue-info__map-name {
	font-size: var(--fs-h4);
	font-weight: var(--font-weight-black);
	line-height: 1.55;
	color: var(--heading-color);
}

.venue-info__map-address {
	font-size: var(--fs-24);
	line-height: 1.55;
	color: var(--text-color);
}

.venue-info__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.venue-info__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-30);
	margin-top: var(--space-30);
}

.venue-info__card {
	display: flex;
	flex-direction: column;
	gap: calc(8.8 * var(--u));
	padding: calc(35 * var(--u));
	background: var(--white);
	border: var(--stroke-thin) solid var(--border-color);
	border-radius: var(--radius-lg);
}

.venue-info__card-icon {
	display: inline-flex;
	width: calc(44 * var(--u));
	height: calc(44 * var(--u));
	min-width: 30px;
	min-height: 30px;
	color: var(--black);
}

.venue-info__card-icon svg,
.venue-info__card-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.venue-info__card-title {
	padding-top: calc(19.4 * var(--u));
	font-size: var(--fs-28);
	font-weight: var(--font-weight-black);
	letter-spacing: -0.022em;
	line-height: 1.02;
	color: var(--heading-color);
	text-transform: capitalize;
}

.venue-info__card-text {
	font-size: var(--fs-24);
	font-weight: var(--font-weight-light);
	line-height: 1.45;
	color: var(--text-color);
}

.venue-info__note {
	max-width: calc(1241 * var(--u));
	margin-top: var(--space-30);
	font-size: var(--fs-24);
	line-height: 1.55;
	color: var(--text-color);
}

/* ============================ VENUE INFO — HOME GROUND ============================ */
.venue-info--home-ground {
	background: var(--white);
	padding-top: var(--section-spacing);
	padding-bottom: var(--space-96);
}

.venue-info--home-ground .section-heading {
	font-size: var(--fs-form-title);
	letter-spacing: -0.022em;
}

.venue-info--home-ground .venue-info__panel {
	position: relative;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	padding-top: calc(35 * var(--u));
}

.venue-info--home-ground .venue-info__panel::before {
	content: "";
	position: absolute;
	top: calc(27 * var(--u));
	left: var(--stroke-thin);
	right: var(--stroke-thin);
	height: calc(8 * var(--u));
	min-height: 5px;
	background: var(--flag-thirds);
}

.venue-info--home-ground .venue-info__details {
	gap: 0;
	padding: calc(58 * var(--u)) var(--space-56) calc(52 * var(--u));
}

.venue-info--home-ground .venue-info__eyebrow {
	margin-bottom: var(--space-12);
}

.venue-info--home-ground .venue-info__name {
	margin-bottom: var(--space-8);
	font-size: var(--fs-48);
	letter-spacing: -0.022em;
	line-height: 1.02;
}

.venue-info--home-ground .venue-info__address {
	padding: var(--space-12) 0 var(--space-26);
	font-size: var(--fs-lead);
	font-weight: var(--font-weight-bold);
	line-height: 1.4;
	color: var(--heading-color);
}

.venue-info--home-ground .venue-info__cta {
	margin-bottom: var(--space-40);
}

.venue-info--home-ground .venue-info__amenities {
	gap: var(--space-16) calc(22 * var(--u));
	margin: var(--space-30) 0 0;
	padding-top: calc(29 * var(--u));
}

.venue-info--home-ground .venue-info__amenity {
	align-items: flex-start;
	gap: var(--space-12);
	min-height: calc(56 * var(--u));
}

.venue-info--home-ground .venue-info__check {
	width: calc(24 * var(--u));
	height: calc(24 * var(--u));
	margin-top: var(--space-2);
}

.venue-info--home-ground .venue-info__amenity-text {
	font-size: var(--fs-20);
	font-weight: var(--font-weight-regular);
	line-height: 1.1;
}

.venue-info--home-ground .venue-info__map {
	min-height: max(calc(779 * var(--u)), 360px);
}

.venue-info--home-ground .venue-info__card {
	gap: var(--space-10);
	padding: calc(35 * var(--u)) calc(33 * var(--u)) calc(33 * var(--u));
}

.venue-info--home-ground .venue-info__card-icon {
	width: calc(40 * var(--u));
	height: calc(40 * var(--u));
}

.venue-info--home-ground .venue-info__card-title {
	padding-top: calc(20 * var(--u));
	font-size: var(--fs-card-heading);
	line-height: 1.02;
}

.venue-info--home-ground .venue-info__card-text {
	font-size: var(--fs-20);
	line-height: 1.9;
}

/* ============================ RESPONSIVE ============================ */

/* --- LG --- */
@media (max-width: 1200px) {
	.venue-info__panel,
	.venue-info--home-ground .venue-info__panel {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.venue-info__amenities,
	.venue-info--home-ground .venue-info__amenities {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.venue-info__amenity,
	.venue-info--home-ground .venue-info__amenity {
		min-height: 0;
	}
}

/* --- MD / Tablet --- */
@media (max-width: 992px) {
	.venue-info {
		padding-top: var(--section-spacing);
	}

	.venue-info__panel,
	.venue-info--home-ground .venue-info__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.venue-info__amenities,
	.venue-info--home-ground .venue-info__amenities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.venue-info__map,
	.venue-info--home-ground .venue-info__map {
		min-height: 360px;
	}

	.venue-info__cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 16px;
	}
}

/* --- SM / Mobile --- */
@media (max-width: 768px) {
	.venue-info__details,
	.venue-info--home-ground .venue-info__details {
		padding: 28px 20px 32px;
	}

	.venue-info--home-ground .venue-info__cta {
		margin-bottom: 8px;
	}

	.venue-info__card,
	.venue-info--home-ground .venue-info__card {
		padding: 24px 20px;
	}

	.venue-info--home-ground .venue-info__card-text {
		line-height: 1.6;
	}

	.venue-info--home-ground {
		padding-bottom: var(--section-spacing);
	}
}

/* --- XS / Small Mobile --- */
@media (max-width: 575px) {
	.venue-info__amenities,
	.venue-info--home-ground .venue-info__amenities {
		grid-template-columns: minmax(0, 1fr);
	}

	.venue-info__map,
	.venue-info--home-ground .venue-info__map {
		min-height: 300px;
	}
}
