/* ═══════════════════════════════════════════════════════════════════════════
   Location Page  (.fb-lp-*)
   ═══════════════════════════════════════════════════════════════════════════ */

.fb-lp {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* ── Top row: hero + calendar side by side ───────────────────────────────── */
.fb-lp-top {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 20px;
	align-items: stretch;
	margin-bottom: 28px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.fb-lp-hero {
	position: relative;
	width: 100%;
	background: linear-gradient(135deg, #1a3a5c 0%, #2271b1 60%, #135e96 100%);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 0; /* spacing handled by .fb-lp-top gap */
	min-height: 220px;
	display: flex;
	align-items: flex-end;
}

.fb-lp-hero--img {
	background-image: var(--lp-hero-img);
	background-size: cover;
	background-position: center;
}

.fb-lp-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10, 20, 40, .85) 0%,
		rgba(10, 20, 40, .45) 55%,
		rgba(10, 20, 40, .10) 100%
	);
}

.fb-lp-hero--img .fb-lp-hero__overlay {
	background: linear-gradient(
		to top,
		rgba(5, 10, 20, .92) 0%,
		rgba(5, 10, 20, .55) 50%,
		rgba(5, 10, 20, .18) 100%
	);
}

.fb-lp-hero__inner {
	position: relative;
	z-index: 1;
	padding: 28px 32px 32px;
	width: 100%;
}

.fb-lp-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: rgba(255,255,255,.65);
	margin-bottom: 8px;
}

.fb-lp-hero__name {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 800;
	color: #fff !important;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.fb-lp-hero__address {
	margin: 0 0 6px;
	font-size: .88rem;
	color: rgba(255,255,255,.72);
}

.fb-lp-hero__details {
	margin: 0 0 16px;
	font-size: .86rem;
	color: rgba(255,255,255,.6);
	max-width: 600px;
	line-height: 1.55;
}

.fb-lp-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.fb-lp-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	background: rgba(255,255,255,.15);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	color: #fff;
}

/* ── Calendar card (full-width, below hero) ──────────────────────────────── */
.fb-lp-cal-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
	margin-bottom: 0; /* spacing handled by .fb-lp-top gap */
	display: flex;
	flex-direction: column;
}

/* Calendar body fills remaining height so the card stretches with the hero */
.fb-lp-cal-body {
	flex: 1;
}

.fb-lp-cal-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 18px;
	background: #2271b1;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* ── Calendar collapse toggle (mobile only) ──────────────────────────────── */
.fb-lp-cal-toggle {
	display: none;
	margin-left: auto;
	background: rgba(255,255,255,.2);
	border: 1px solid rgba(255,255,255,.35);
	color: #fff;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: .75rem;
	font-weight: 600;
	cursor: pointer;
	align-items: center;
	gap: 5px;
	transition: background .15s;
	line-height: 1.6;
}
.fb-lp-cal-toggle:hover { background: rgba(255,255,255,.32); }
.fb-lp-cal-toggle i { font-size: .65rem; transition: transform .25s; }
.fb-lp-cal-card--collapsed .fb-lp-cal-toggle i { transform: rotate(-180deg); }
.fb-lp-cal-card--collapsed .fb-lp-cal-body { display: none; }

/* ── Calendar internals ──────────────────────────────────────────────────── */
.fb-lp-cal {
	padding: 16px 20px 14px;
}

.fb-lp-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}

.fb-lp-cal__title {
	font-size: .95rem;
	font-weight: 700;
	color: #111827;
}

.fb-lp-cal__arrow {
	width: 30px;
	height: 30px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #374151;
	font-size: .82rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, border-color .15s, color .15s;
	padding: 0;
	line-height: 1;
}
.fb-lp-cal__arrow:hover {
	background: #eff6ff;
	border-color: #2271b1;
	color: #2271b1;
}

.fb-lp-cal__dow,
.fb-lp-cal__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.fb-lp-cal__dow { margin-bottom: 4px; }

.fb-lp-cal__dow span {
	text-align: center;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9ca3af;
	padding: 4px 0;
}

.fb-lp-cal__cell {
	height: 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: .85rem;
	color: #374151;
	transition: background .15s;
}
.fb-lp-cal__cell--empty { pointer-events: none; }

.fb-lp-cal__cell--today {
	background: #eff6ff;
	border: 1.5px solid #bfdbfe;
}
.fb-lp-cal__cell--today .fb-lp-cal__num { font-weight: 800; color: #2271b1; }

.fb-lp-cal__cell--game {
	cursor: pointer;
	background: #2271b1;
	color: #fff;
}
.fb-lp-cal__cell--game .fb-lp-cal__num { color: #fff; font-weight: 700; }
.fb-lp-cal__cell--game:hover { background: #135e96; }
.fb-lp-cal__cell--game:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
.fb-lp-cal__cell--today.fb-lp-cal__cell--game { background: #135e96; border-color: #135e96; }

.fb-lp-cal__num { line-height: 1; }

.fb-lp-cal__pip {
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255,255,255,.75);
	margin-top: 2px;
}

.fb-lp-cal__legend {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #f3f4f6;
	font-size: .74rem;
	color: #6b7280;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}

.fb-lp-cal__legend-pip {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: #2271b1;
	flex-shrink: 0;
}

/* ── Games section (3-column grid) ──────────────────────────────────────── */
.fb-lp-games-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.fb-lp-games-header__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111827;
}

.fb-lp-games-header__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 22px;
	padding: 0 8px;
	background: #eff6ff;
	color: #2271b1;
	border-radius: 999px;
	font-size: .76rem;
	font-weight: 700;
}

/* 4 columns on the location page */
#fb-lp-games-list .fb-games-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* Scroll-flash highlight when jumping from calendar */
@keyframes fb-lp-flash {
	0%   { box-shadow: 0 0 0 0   rgba(34,113,177,.65); }
	40%  { box-shadow: 0 0 0 8px rgba(34,113,177,.22); }
	100% { box-shadow: 0 0 0 0   rgba(34,113,177,0);   }
}
.fb-game-card--flash { animation: fb-lp-flash .9s ease-out 2; }

/* Location name link in game cards */
a.fb-game-card__location { text-decoration: none; transition: color .15s; }
a.fb-game-card__location:hover { color: #2271b1; }
a.fb-game-card__location:hover i { color: #2271b1; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet: stack hero + calendar, 2-column games */
@media (max-width: 900px) {
	.fb-lp-top {
		grid-template-columns: 1fr;
	}
	.fb-lp-cal-toggle { display: inline-flex; }
	#fb-lp-games-list .fb-games-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Between tablet and desktop: 3 columns for games */
@media (min-width: 901px) and (max-width: 1200px) {
	#fb-lp-games-list .fb-games-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile: 1 column games, enhanced card appearance */
@media (max-width: 560px) {
	#fb-lp-games-list .fb-games-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	#fb-lp-games-list .fb-game-card {
		box-shadow: 0 3px 14px rgba(0,0,0,.10);
		border-color: #d1d5db;
		margin: 0 2px;
	}

	.fb-lp-hero {
		min-height: 180px;
		border-radius: 14px;
	}

	.fb-lp-hero__inner {
		padding: 20px 18px 22px;
	}

	.fb-lp-cal__cell { height: 40px; font-size: .8rem; }
}
