/* LakeSide Games — grid + detail modal
   Inherits the theme's font stack on purpose: no extra font requests. */

/* Scoped reset: themes vary on box-sizing, and every width below assumes
   border-box. Never inherit that assumption from the theme. */
.lsgg,
.lsgg *,
.lsgg-modal,
.lsgg-modal * {
	box-sizing: border-box;
}

.lsgg {
	--lsgg-red: #a8232b;
	--lsgg-ink: #141414;
	--lsgg-body: #4d4d4d;
	--lsgg-mute: #7a7a7a;
	--lsgg-line: #e4e4e4;
	--lsgg-sunk: #f3f3f3;
	--lsgg-radius: 14px;
}

.lsgg-heading {
	margin: 0 0 1.5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--lsgg-ink);
}

/* ---------- grid ---------- */

.lsgg-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 2rem 1.75rem;
}

.lsgg-card { margin: 0; }

.lsgg-card-link {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
}

.lsgg-thumb {
	display: block;
	border: 1px solid var(--lsgg-line);
	border-radius: var(--lsgg-radius);
	overflow: hidden;
	background: #fff;
	aspect-ratio: 1 / 1;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.lsgg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lsgg-thumb-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--lsgg-sunk);
}

.lsgg-card-title {
	text-align: center;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lsgg-ink);
	transition: color 0.18s ease;
}

.lsgg-card-link:hover .lsgg-thumb,
.lsgg-card-link:focus-visible .lsgg-thumb {
	border-color: var(--lsgg-red);
	transform: translateY(-2px);
}

.lsgg-card-link:hover .lsgg-card-title,
.lsgg-card-link:focus-visible .lsgg-card-title {
	color: var(--lsgg-red);
}

.lsgg-card-link:focus-visible {
	outline: 2px solid var(--lsgg-red);
	outline-offset: 6px;
	border-radius: var(--lsgg-radius);
}

/* ---------- modal ---------- */

.lsgg-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1rem;
}

.lsgg-modal[hidden] { display: none; }

.lsgg-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	animation: lsgg-fade 0.2s ease;
}

.lsgg-panel {
	position: relative;
	background: #fff;
	border-radius: 20px;
	width: min(920px, 100%);
	max-height: min(880px, 92vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 2.75rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	animation: lsgg-rise 0.22s ease;

	--lsgg-red: #a8232b;
	--lsgg-ink: #141414;
	--lsgg-body: #4d4d4d;
	--lsgg-mute: #7a7a7a;
	--lsgg-sunk: #f3f3f3;
}

@keyframes lsgg-fade { from { opacity: 0; } }
@keyframes lsgg-rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
	.lsgg-overlay, .lsgg-panel { animation: none; }
	.lsgg-thumb, .lsgg-card-title { transition: none; }
}

.lsgg-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: background 0.18s ease;
}

.lsgg-close:hover { background: var(--lsgg-red); }

.lsgg-close:focus-visible {
	outline: 2px solid var(--lsgg-red);
	outline-offset: 3px;
}

.lsgg-close svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	fill: none;
}

/* ---------- modal content ---------- */

.lsgg-crumb {
	margin: 0 0 1.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lsgg-mute);
	display: flex;
	gap: 0.5em;
	padding-right: 4rem;
}

.lsgg-crumb-current { color: var(--lsgg-red); }

.lsgg-detail-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.lsgg-detail-media {
	border-radius: var(--lsgg-radius);
	overflow: hidden;
	background: var(--lsgg-sunk);
	aspect-ratio: 1 / 1;
}

.lsgg-detail-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lsgg-detail-text h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.9rem, 3.6vw, 2.5rem);
	line-height: 1.1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.015em;
	color: var(--lsgg-ink);
}

.lsgg-detail-text p {
	margin: 0 0 1rem;
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--lsgg-body);
}

.lsgg-detail-text p:last-child { margin-bottom: 0; }

.lsgg-locations-heading {
	margin: 2.75rem 0 1.25rem;
	font-size: clamp(1.4rem, 2.8vw, 1.75rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--lsgg-ink);
}

.lsgg-locations {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.lsgg-location {
	background: var(--lsgg-sunk);
	border-radius: var(--lsgg-radius);
	padding: 1.5rem;
}

.lsgg-location p { margin: 0 0 0.5rem; }
.lsgg-location p:last-child { margin-bottom: 0; }

.lsgg-location-name {
	font-size: 1.1875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--lsgg-ink);
}

.lsgg-location-address {
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--lsgg-body);
}

.lsgg-location-phone {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.0625rem;
}

.lsgg-location-phone svg {
	width: 18px;
	height: 18px;
	fill: var(--lsgg-red);
	flex: none;
}

.lsgg-location-phone a {
	color: var(--lsgg-body);
	text-decoration: none;
}

.lsgg-location-phone a:hover { text-decoration: underline; }

.lsgg-location-hours {
	font-size: 1.0625rem;
	color: var(--lsgg-body);
}

.lsgg-location-hours strong {
	color: var(--lsgg-ink);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ---------- narrow screens ---------- */

@media (max-width: 700px) {
	.lsgg-panel { padding: 2rem 1.25rem; border-radius: 16px; }
	.lsgg-close { top: 1rem; right: 1rem; width: 44px; height: 44px; }
	.lsgg-detail-top { grid-template-columns: 1fr; gap: 1.5rem; }
	.lsgg-crumb { margin-bottom: 1.25rem; padding-right: 3.5rem; }
	.lsgg-locations-heading { margin-top: 2rem; }
}

body.lsgg-locked { overflow: hidden; }

/* ---------- location filter ----------
   Matched to the site's own header buttons (Plus Jakarta Sans 0.8rem/800,
   uppercase, 2px black pill, 12px 28px). Selectors are deliberately specific:
   the theme styles bare <button> inside Elementor containers, and those rules
   beat a single class. Every inherited property is therefore reset here. */

.lsgg-filters {
	--lsgg-red: #cb222f;
	--lsgg-red-dark: #8c0e06;
	--lsgg-btn-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-sizing: border-box;
	margin: 0 0 1.5rem;
	display: none;
	flex-direction: column;
	align-items: flex-end;
	gap: 1rem;
	width: 100%;
}

.lsgg-filters.is-visible { display: flex; }

.lsgg-filters * { box-sizing: border-box; }

.lsgg-filters .lsgg-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.lsgg-filters .lsgg-filter-tabs button.lsgg-filter {
	--lsgg-btn-bg: transparent;
	--lsgg-btn-fg: #000;
	--lsgg-btn-border: #000;
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 12px 28px;
	font-family: var(--lsgg-btn-font);
	font-size: 0.8rem;
	font-weight: 800;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border: 2px solid var(--lsgg-btn-border);
	border-radius: 999px;
	background-color: var(--lsgg-btn-bg);
	background-image: none;
	color: var(--lsgg-btn-fg);
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.lsgg-filters .lsgg-filter-tabs button.lsgg-filter:hover,
.lsgg-filters .lsgg-filter-tabs button.lsgg-filter:focus {
	--lsgg-btn-bg: #000;
	--lsgg-btn-fg: #fff;
	--lsgg-btn-border: #000;
}

.lsgg-filters .lsgg-filter-tabs button.lsgg-filter.is-active {
	--lsgg-btn-bg: var(--lsgg-red);
	--lsgg-btn-border: var(--lsgg-red);
	--lsgg-btn-fg: #fff;
}

.lsgg-filters .lsgg-filter-tabs button.lsgg-filter.is-active:hover,
.lsgg-filters .lsgg-filter-tabs button.lsgg-filter.is-active:focus {
	--lsgg-btn-bg: var(--lsgg-red-dark);
	--lsgg-btn-border: var(--lsgg-red-dark);
	--lsgg-btn-fg: #fff;
}

.lsgg-filters .lsgg-filter-tabs button.lsgg-filter:focus-visible {
	outline: 2px solid var(--lsgg-red);
	outline-offset: 3px;
}

.lsgg-filters .lsgg-filter-count {
	margin: 0;
	padding: 0;
	font-family: var(--lsgg-btn-font);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #000;
}

.lsgg-filters .lsgg-filter-count:empty { display: none; }

.lsgg-hidden { display: none !important; }

/* Stacks and left-aligns on small screens, as the original does. */
@media (max-width: 767px) {
	.lsgg-filters { align-items: flex-start; }
	.lsgg-filters .lsgg-filter-tabs { justify-content: flex-start; }
}
