/*
Theme Name:   Esbjerg Storcenter
Theme URI:    https://esbjergstorcenter.dk
Description:  Child theme til GeneratePress for Esbjerg Storcenter. Indeholder forside, butiksoversigt, butiksprofiler, events, gavekort m.m. Bygger på datamodellen i pluginet esbjerg-storcenter-core.
Author:       SEOONE
Author URI:   https://seoone.dk
Template:     generatepress
Version:      0.1.0
Text Domain:  esc-theme
*/

/* ------------------------------------------------------------------ */
/* Fira Sans – self-hosted (GDPR). Filer i assets/fonts/.             */
/* ------------------------------------------------------------------ */
@font-face {
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/fira-sans-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/fira-sans-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/fira-sans-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/fira-sans-700.woff2') format('woff2');
}

/* ------------------------------------------------------------------ */
/* Designtokens                                                       */
/* ------------------------------------------------------------------ */
:root {
	--esc-font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--esc-ink: #1d1d1b;
	--esc-muted: #5f6368;
	--esc-line: #e4e4e2;
	--esc-bg-soft: #f6f5f3;
	/* Sæson-farver – overskrives af det aktive tema (se inc/seasons.php).
	   --esc-brand      : accentfarve brugt som baggrund/fyld
	   --esc-on-brand   : tekst der ligger OVENPÅ brand-farven
	   --esc-brand-ink  : brand-farvet tekst på hvid baggrund (links m.m.) */
	--esc-brand: #11776e;
	--esc-brand-dark: #0c574f;
	--esc-on-brand: #ffffff;
	--esc-brand-ink: #0c574f;
	--esc-open: #1c7c3e;
	--esc-closed: #b1242c;
	--esc-radius: 10px;
	--esc-shadow: 0 2px 10px rgba(0, 0, 0, .06);
	--esc-maxw: 1180px;
}

body,
button,
input,
select,
textarea {
	font-family: var(--esc-font);
	color: var(--esc-ink);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--esc-font);
	font-weight: 600;
	line-height: 1.18;
}

/* ------------------------------------------------------------------ */
/* GeneratePress-tilpasninger                                         */
/* ------------------------------------------------------------------ */
.site-header .site-logo img,
.site-header img.header-image {
	max-height: 56px;
	width: auto;
}
/* Logoet indeholder allerede navnet – skjul den tekstbaserede sitetitel. */
.site-header .main-title {
	display: none;
}
/* Forsidens hero går helt til kant, uanset container-bredde. */
.esc-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}
/* Fjern hvid container-baggrund/padding på vores fuld-bredde skabeloner. */
.home .site-main,
.post-type-archive-esc_butik .site-main,
.post-type-archive-esc_event .site-main {
	padding: 0;
}
.esc-footer-col--brand img {
	max-height: 46px;
	width: auto;
}
/* Sikkerhedsnet: skjul GeneratePress' fremhævede billede på forsiden
   (hero'en viser det allerede). Rører ikke hero-billedet, som er plain img. */
.home .featured-image,
.home .page-header-image,
.home .generate-page-header,
.home > .site-content .page-hero {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Åbningstider – fælles visning (badge + tabel)                      */
/* ------------------------------------------------------------------ */
.esc-aabent-idag {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 18px;
	border-radius: var(--esc-radius);
	background: #fff;
	box-shadow: var(--esc-shadow);
	border-left: 5px solid var(--esc-closed);
}
.esc-aabent-idag--open {
	border-left-color: var(--esc-open);
}
.esc-aabent-idag__dag {
	font-weight: 600;
	font-size: .95rem;
}
.esc-aabent-idag__tid {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
}
.esc-aabent-idag__status {
	font-size: .9rem;
	font-weight: 600;
	color: var(--esc-closed);
}
.esc-aabent-idag--open .esc-aabent-idag__status {
	color: var(--esc-open);
}
.esc-aabent-idag__note {
	font-size: .85rem;
	color: var(--esc-muted);
}

.esc-aabningstider {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .95rem;
}
.esc-aabningstider th,
.esc-aabningstider td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--esc-line);
	font-weight: 500;
}
.esc-aabningstider tr:last-child th,
.esc-aabningstider tr:last-child td {
	border-bottom: none;
}
.esc-aabningstider td {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
/* Dagens dag fremhæves med en blød pille i sæsonfarven. */
.esc-aabningstider .is-today th,
.esc-aabningstider .is-today td {
	font-weight: 700;
	color: var(--esc-brand-ink);
	background: var(--esc-bg-soft);
	background: color-mix(in srgb, var(--esc-brand) 10%, #fff);
	border-bottom-color: transparent;
}
.esc-aabningstider .is-today th { border-radius: 8px 0 0 8px; }
.esc-aabningstider .is-today td { border-radius: 0 8px 8px 0; }
.esc-aabningstider .is-today th::after {
	content: ' · i dag';
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Parkering-kasse (fremhæver gratis parkering)                       */
/* ------------------------------------------------------------------ */
.esc-parking {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px 11px 11px;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	text-decoration: none;
	color: var(--esc-ink);
	font-weight: 600;
	box-shadow: var(--esc-shadow);
	transition: border-color .15s ease, transform .15s ease;
}
.esc-parking:hover {
	border-color: var(--esc-brand);
	transform: translateY(-2px);
}
.esc-parking__mark {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--esc-brand);
	color: var(--esc-on-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.25rem;
	flex: none;
}
.esc-parking__text { font-size: .98rem; }
/* Fuld bredde på forside (flugter med åbningstids-badgen) og butiksprofil. */
.esc-hero__hours .esc-parking,
.esc-profile__main .esc-parking {
	display: flex;
	width: 100%;
}
.esc-hero__hours .esc-parking { margin-bottom: 12px; }
.esc-profile__main .esc-parking { margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Navigation – dropdown-undermenuer (GeneratePress)                  */
/* ------------------------------------------------------------------ */
/* GP's undermenuer er ustylet i temaet og ser flade ud. Her gøres de til
   et pænt panel med bløde hjørner, skygge og brand-accent – styret i CSS,
   ikke i Customizeren (som hænger hos kunden). Sæson-tokens giver farven. */

/* Selve dropdown-panelet – kun på desktop (mobil bruger GP's accordion). */
@media (min-width: 769px) {
	.main-navigation .main-nav ul ul.sub-menu {
		border: 1px solid rgba(0, 0, 0, .06);
		border-radius: 0;
		box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
		padding: 6px;
		background: #fff;
	}
	/* Blødt opdukkende panel i stedet for hårdt spring. */
	.main-navigation .main-nav ul li.menu-item-has-children:hover > ul.sub-menu,
	.main-navigation .main-nav ul li.sfHover > ul.sub-menu {
		animation: esc-dropdown-in .18s ease;
	}
}

@keyframes esc-dropdown-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Links i undermenuen – afrundede rækker der tændes i brand-farven. */
.main-navigation .main-nav ul ul.sub-menu a {
	border-radius: 0;
	padding: 10px 16px;
	line-height: 1.3;
	transition: background-color .18s ease, color .18s ease;
}
.main-navigation .main-nav ul ul.sub-menu li:hover > a,
.main-navigation .main-nav ul ul.sub-menu li.sfHover > a,
.main-navigation .main-nav ul ul.sub-menu li a:hover,
.main-navigation .main-nav ul ul.sub-menu li a:focus,
.main-navigation .main-nav ul ul.sub-menu li.current-menu-item > a {
	background-color: color-mix(in srgb, var(--esc-brand) 12%, #fff);
	color: var(--esc-brand-ink);
}

/* ------------------------------------------------------------------ */
/* Forside – hero                                                     */
/* ------------------------------------------------------------------ */
.esc-hero {
	position: relative;
	min-height: clamp(420px, 70vh, 720px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #fff;
}
.esc-hero__media,
.esc-hero__media video,
.esc-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.esc-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .1) 100%);
}
.esc-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--esc-maxw);
	margin: 0 auto;
	width: 100%;
	padding: 40px 24px 56px;
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 32px;
	align-items: end;
}
/* Kassen (parkering + åbningstider) ligger nu alene i hero'en, justeret til
   højre. Teksten er flyttet ud i .esc-intro under slideren. */
.esc-hero__hours {
	grid-column: 2;
	justify-self: end;
	width: 100%;
	max-width: 400px;
}
.esc-hero__hours .esc-aabent-idag {
	color: var(--esc-ink);
	width: 100%;
}
.esc-hero__special {
	display: inline-block;
	margin-top: 12px;
	font-size: .95rem;
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 782px) {
	.esc-hero__inner {
		grid-template-columns: 1fr;
	}
	.esc-hero__hours {
		grid-column: 1;
		justify-self: stretch;
		max-width: none;
	}
}

/* ------------------------------------------------------------------ */
/* Forside – tekst under slideren (over ikon-bjælken)                 */
/* ------------------------------------------------------------------ */
.esc-intro {
	max-width: var(--esc-maxw);
	margin: 0 auto;
	padding: 48px 24px 0;
	text-align: center;
}
.esc-intro__title {
	font-size: clamp(1.8rem, 3.6vw, 2.9rem);
	line-height: 1.1;
	margin: 0 0 .3em;
	color: var(--esc-ink);
}
.esc-intro__text {
	font-size: 1.2rem;
	line-height: 1.5;
	max-width: 60ch;
	margin: 0 auto;
	color: var(--esc-ink);
}

/* ------------------------------------------------------------------ */
/* Forside – hero-slideshow                                           */
/* ------------------------------------------------------------------ */
/* Billedlagene stables oven på hinanden og krydsfader. Kun det aktive
   slide er synligt; gradienten i .esc-hero__media::after ligger ovenpå. */
.esc-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease;
}
.esc-hero__slide.is-active {
	opacity: 1;
}

/* Slide-teksten ligger ØVERST i hero'en – over centrets navn, velkomst-
   tekst og åbningstider. Alle tekstlag deles om samme grid-celle, så
   hero'en ikke hopper i højden når der skiftes slide. */
.esc-hero__slidetexts {
	grid-column: 1;
	display: grid;
	margin-bottom: 8px;
}
.esc-hero__slidetext {
	grid-area: 1 / 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity .8s ease;
}
.esc-hero__slidetext.is-active {
	opacity: 1;
	pointer-events: auto;
}
/* Overskriften er slidets budskab: stor, fed og i VERSALER. Underteksten
   står som en let underrubrik lige under – tydeligt underordnet. */
.esc-hero__slidetitle {
	font-size: clamp(1.9rem, 4.4vw, 3.6rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .005em;
	line-height: 1.05;
	margin: 0 0 .22em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.esc-hero__slidebody {
	font-size: clamp(1rem, 1.7vw, 1.4rem);
	font-weight: 400;
	line-height: 1.35;
	max-width: 52ch;
	margin: 0;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.esc-hero__cta {
	display: inline-block;
	margin-top: 14px;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--esc-brand);
	color: var(--esc-on-brand);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease;
}
.esc-hero__cta:hover,
.esc-hero__cta:focus {
	background: var(--esc-brand-dark);
	color: var(--esc-on-brand);
}

/* Betjening: pilene lodret centreret i hver side, prikkerne centreret i
   bunden. Wrapperen selv fjernes fra layoutet med display:contents, så
   pile og prikker placeres frit i forhold til hele hero'en. */
.esc-hero__nav {
	display: contents;
}
.esc-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: rgba(0, 0, 0, .28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}
.esc-hero__arrow--prev {
	left: 20px;
}
.esc-hero__arrow--next {
	right: 20px;
}
.esc-hero__arrow:hover {
	background: var(--esc-brand);
	border-color: var(--esc-brand);
}
.esc-hero__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Prikkerne sidder under indholdet (som er bundjusteret med 56px luft),
   så de aldrig lægger sig oven i teksten. */
.esc-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 9px;
}
.esc-hero__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: background .25s ease, width .25s ease;
}
.esc-hero__dot:hover {
	background: #fff;
}
.esc-hero__dot.is-active {
	width: 26px;
	background: #fff;
}
.esc-hero__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 782px) {
	.esc-hero__arrow {
		width: 40px;
		height: 40px;
		font-size: 1.4rem;
	}
	.esc-hero__arrow--prev {
		left: 10px;
	}
	.esc-hero__arrow--next {
		right: 10px;
	}
}

/* Brugere der har slået bevægelse fra får skiftet uden fade. */
@media (prefers-reduced-motion: reduce) {
	.esc-hero__slide,
	.esc-hero__slidetext,
	.esc-hero__dot {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Forside – genveje                                                  */
/* ------------------------------------------------------------------ */
.esc-quicklinks {
	max-width: var(--esc-maxw);
	margin: -34px auto 0;
	position: relative;
	z-index: 3;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.esc-quicklinks__item {
	background: #fff;
	border-radius: var(--esc-radius);
	box-shadow: var(--esc-shadow);
	padding: 22px 20px;
	text-decoration: none;
	color: var(--esc-ink);
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.esc-quicklinks__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
}
.esc-quicklinks__item .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: var(--esc-brand-ink);
	margin-bottom: 2px;
}
.esc-quicklinks__item strong {
	font-size: 1.1rem;
}
.esc-quicklinks__item span {
	color: var(--esc-muted);
	font-size: .92rem;
}
@media (max-width: 880px) {
	.esc-quicklinks {
		grid-template-columns: repeat(2, 1fr);
	}
}

.esc-section {
	max-width: var(--esc-maxw);
	margin: 48px auto 0;
	padding: 0 24px;
}
.esc-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 16px;
}
.esc-section__head h2 {
	margin: 0;
	font-size: 1.5rem;
}
/* Prik-motiv der ekko'er logoets prikker – ESC-signatur. */
.esc-section__head h2::after {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--esc-brand);
	margin-left: 14px;
	vertical-align: middle;
	box-shadow: 12px 0 0 -1px var(--esc-brand), 21px 0 0 -2px var(--esc-brand);
}
.esc-section__head a {
	font-size: .92rem;
	font-weight: 500;
	color: var(--esc-brand-ink);
	white-space: nowrap;
}
.esc-event-list--home {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Butikskategorier på forsiden */
.esc-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}
.esc-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	text-decoration: none;
	color: var(--esc-ink);
	font-weight: 600;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.esc-cat:hover {
	border-color: var(--esc-brand);
	transform: translateY(-2px);
	box-shadow: var(--esc-shadow);
}
.esc-cat__arrow {
	color: var(--esc-brand-ink);
	font-size: 1.1rem;
}

/* Instagram-feed */
.esc-instagram__feed {
	min-height: 40px;
}

/* Kampagnebanner */
.esc-band {
	max-width: var(--esc-maxw);
	margin: 40px auto 0;
	padding: 0 24px;
}
.esc-band__inner {
	background: var(--esc-brand);
	color: var(--esc-on-brand);
	border-radius: var(--esc-radius);
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.esc-band__inner strong {
	font-size: 1.25rem;
	display: block;
}
.esc-band__inner span {
	font-size: .95rem;
	opacity: .92;
}
.esc-band__cta {
	background: #fff;
	color: var(--esc-brand-ink);
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
}

.esc-front-content {
	max-width: var(--esc-maxw);
	margin: 48px auto 0;
	padding: 0 24px;
}

/* Intro-tekst (fra valgt side) øverst på oversigtssider. */
.esc-archive-intro {
	max-width: 760px;
	margin: 0 0 30px;
}
.esc-archive-intro > *:first-child { margin-top: 0; }
.esc-archive-intro > *:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Butiksoversigt + filter                                            */
/* ------------------------------------------------------------------ */
.esc-shop-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}
.esc-shop-filter button {
	border: 1px solid var(--esc-line);
	background: #fff;
	color: var(--esc-ink);
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
	font-weight: 500;
	font-size: .95rem;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.esc-shop-filter button:hover {
	background: var(--esc-bg-soft);
	border-color: var(--esc-brand);
	color: var(--esc-ink);
}
.esc-shop-filter button.is-active,
.esc-shop-filter button.is-active:hover {
	background: var(--esc-brand);
	border-color: var(--esc-brand);
	color: var(--esc-on-brand);
}
.esc-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 18px;
}
.esc-shop-card {
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;                 /* ens korthøjde i hele rækken */
	transition: box-shadow .15s ease, transform .15s ease;
}
.esc-shop-card:hover {
	box-shadow: var(--esc-shadow);
	transform: translateY(-2px);
}
.esc-shop-card__logo {
	height: 116px;               /* fast højde → navnet starter samme sted overalt */
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 18px;
	border-bottom: 1px solid var(--esc-line);
}
/* Alle logoer skalerer til samme felt → ens størrelse. */
.esc-shop-card__logo img,
.esc-shop-card__logo .esc-logo-svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* Neutral placeholder når en butik mangler logo (i stedet for dubleret navn). */
.esc-shop-card__logo .esc-logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d4d2cd;
}
.esc-shop-card__logo .esc-logo-fallback svg {
	width: 46px;
	height: 46px;
}
.esc-shop-card__body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.esc-shop-card__name {
	font-weight: 600;
}
.esc-shop-card__status {
	font-size: .85rem;
	font-weight: 600;
}
.esc-shop-card__status.is-open { color: var(--esc-open); }
.esc-shop-card__status.is-closed { color: var(--esc-closed); }
.esc-shop-card[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Åbningstids-oversigt (accordion pr. butik)                         */
/* ------------------------------------------------------------------ */
.esc-hours-overview .esc-shop-filter { margin-bottom: 18px; }
.esc-hours-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.esc-hours-item {
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	background: #fff;
}
.esc-hours-item[hidden] { display: none; }
.esc-hours-item__head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: var(--esc-ink);
	transition: background .12s ease;
}
/* Hover/aktiv: blød sæsonfarve i stedet for GeneratePress' mørkegrå knap. */
.esc-hours-item__head:hover,
.esc-hours-item__head:focus,
.esc-hours-item__head:active,
.esc-hours-item__head[aria-expanded="true"] {
	background: var(--esc-bg-soft);
	background: color-mix( in srgb, var(--esc-brand) 8%, #fff );
	color: var(--esc-ink);
}
.esc-hours-item__name {
	font-weight: 600;
	font-size: 1.05rem;
	flex: 1;
}
.esc-hours-item__today {
	font-size: .9rem;
	font-weight: 600;
	white-space: nowrap;
}
.esc-hours-item__today.is-open { color: var(--esc-open); }
.esc-hours-item__today.is-closed { color: var(--esc-closed); }
.esc-hours-item__chev {
	color: var(--esc-muted);
	flex: none;
	transition: transform .15s ease;
}
.esc-hours-item__head[aria-expanded="true"] .esc-hours-item__chev {
	transform: rotate(180deg);
}
/* Udfoldet område: blød sæsonfarvet baggrund (følger temaet). */
.esc-hours-item__week {
	padding: 16px 18px;
	border-top: 1px solid var(--esc-line);
	background: var(--esc-bg-soft);
	background: color-mix( in srgb, var(--esc-brand) 7%, #fff );
}
/* Åbningstider i kolonner i stedet for fuld bredde. */
.esc-uge-kol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
}
.esc-uge-kol__dag {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: 8px;
}
.esc-uge-kol__navn {
	font-weight: 600;
	font-size: .85rem;
}
.esc-uge-kol__tid {
	font-variant-numeric: tabular-nums;
}
/* Dagens dag fremhæves i sæsonfarven. */
.esc-uge-kol__dag.is-today {
	background: var(--esc-bg-soft);
	background: color-mix( in srgb, var(--esc-brand) 16%, #fff );
	border-color: var(--esc-brand);
	color: var(--esc-brand-ink);
}
@media (max-width: 560px) {
	.esc-hours-item__head { flex-wrap: wrap; gap: 4px 12px; }
	.esc-hours-item__name { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ */
/* Butiksprofil                                                       */
/* ------------------------------------------------------------------ */
.esc-profile__head {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 24px;
	align-items: center;
	margin-bottom: 28px;
}
.esc-profile__logo {
	background: var(--esc-bg-soft);
	border-radius: var(--esc-radius);
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}
.esc-profile__logo img { max-width: 100%; height: auto; }
.esc-profile__grid {
	display: grid;
	grid-template-columns: 1.4fr .9fr;
	gap: 32px;
}
.esc-profile__panel {
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	padding: 20px;
	margin-bottom: 20px;
}
.esc-profile__panel h3 {
	margin-top: 0;
}
/* Luft mellem "dagens åbningstider"-badge og ugeskemaet. */
.esc-profile__panel .esc-aabent-idag {
	display: flex;
	margin-bottom: 18px;
}

/* Kontakt-liste med ikoner. */
.esc-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.esc-contact-list li {
	display: flex;
	align-items: center;
	gap: 11px;
}
.esc-contact-list .dashicons {
	color: var(--esc-brand);
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex: none;
}
.esc-contact-list a {
	color: var(--esc-ink);
	text-decoration: none;
	word-break: break-word;
}
.esc-contact-list a:hover {
	color: var(--esc-brand-ink);
	text-decoration: underline;
}

@media (max-width: 782px) {
	.esc-profile__head,
	.esc-profile__grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Events                                                             */
/* ------------------------------------------------------------------ */
.esc-event-list {
	display: grid;
	gap: 18px;
}
.esc-event-card {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}
.esc-event-card__date {
	background: var(--esc-brand);
	color: var(--esc-on-brand);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
}
.esc-event-card__day { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.esc-event-card__month { text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.esc-event-card__body { padding: 14px 16px; }
.esc-event-card--past { opacity: .55; }

/* ------------------------------------------------------------------ */
/* Faciliteter-bar (Kolding-inspireret)                               */
/* ------------------------------------------------------------------ */
.esc-facilities {
	max-width: var(--esc-maxw);
	margin: 40px auto 0;
	padding: 0 24px;
}
.esc-facilities__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: 16px;
	padding: 22px 16px;
}
.esc-facilities__item {
	flex: 1 1 0;
	min-width: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 11px;
	text-align: center;
	text-decoration: none;
	color: var(--esc-ink);
	font-weight: 600;
	font-size: 1.05rem;
}
.esc-facilities__item .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	font-size: 28px;
	background: var(--esc-bg-soft);
	background: color-mix(in srgb, var(--esc-brand) 13%, #fff);
	color: var(--esc-brand-ink);
	transition: transform .15s ease;
}
.esc-facilities__item:hover .dashicons { transform: translateY(-3px); }
@media (max-width: 700px) {
	.esc-facilities__item { flex: 1 1 40%; }
}

/* ------------------------------------------------------------------ */
/* Event-kort (Kolding-stil: billede øverst)                          */
/* ------------------------------------------------------------------ */
.esc-ev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}
.esc-ev-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.esc-ev-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .1); }
.esc-ev-card__img {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--esc-bg-soft);
}
.esc-ev-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.esc-ev-card__ph {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--esc-muted);
}
.esc-ev-card__ph .dashicons { font-size: 42px; width: 42px; height: 42px; }
.esc-ev-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.esc-ev-card__title { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.esc-ev-card__date {
	background: var(--esc-brand);
	color: var(--esc-on-brand);
	border-radius: 999px;
	padding: 6px 14px;
	font-weight: 600;
	font-size: .92rem;
}
.esc-ev-card__more {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--esc-line);
	width: 100%;
	color: var(--esc-brand-ink);
	font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Event-carousel på forsiden (side-scroll)                           */
/* ------------------------------------------------------------------ */
.esc-carousel { position: relative; }
.esc-carousel__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 4px 2px 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.esc-carousel__track > .esc-ev-card {
	flex: 0 0 300px;
	max-width: 82%;
	scroll-snap-align: start;
}
.esc-carousel__nav {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--esc-line);
	background: #fff;
	box-shadow: var(--esc-shadow);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--esc-ink);
	z-index: 2;
}
.esc-carousel.is-scrollable .esc-carousel__nav { display: flex; }
.esc-carousel__nav:hover { border-color: var(--esc-brand); color: var(--esc-brand-ink); }
.esc-carousel__nav--prev { left: -10px; }
.esc-carousel__nav--next { right: -10px; }
@media (max-width: 700px) {
	.esc-carousel__nav { display: none !important; }
	.esc-carousel__track > .esc-ev-card { flex-basis: 78%; }
}

/* ------------------------------------------------------------------ */
/* Enkelt-event (Kolding-stil sidebar)                                */
/* ------------------------------------------------------------------ */
.esc-event-single__grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 40px;
	align-items: start;
	margin-top: 20px;
}
/* Sidebaren følger med ned ved scroll (kun på desktop). */
.esc-event-single__side {
	position: sticky;
	top: 40px;
}
.esc-event-single__card {
	background: #fff;
	border: 1px solid var(--esc-line);
	border-left: 5px solid var(--esc-brand);
	border-radius: var(--esc-radius);
	padding: 20px 22px;
	margin-bottom: 16px;
}
.esc-fact { padding: 14px 0; border-bottom: 1px solid var(--esc-line); }
.esc-fact:first-child { padding-top: 0; }
.esc-fact:last-child { border-bottom: none; padding-bottom: 0; }
.esc-fact__label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: .78rem;
	color: var(--esc-brand-ink);
}
.esc-fact__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-weight: 500;
}
.esc-fact__row .dashicons { color: var(--esc-brand); font-size: 20px; width: 20px; height: 20px; flex: none; }
.esc-event-single__loc {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}
.esc-event-single__loc .dashicons { color: var(--esc-brand); }
.esc-event-single__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--esc-ink);
	color: #fff;
	font-weight: 600;
	padding: 16px 20px;
	border-radius: var(--esc-radius);
	text-decoration: none;
}
.esc-event-single__cta:hover { background: #000; }
.esc-event-single__main h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; }
.esc-event-single__image {
	margin: 20px 0 24px;
}
.esc-event-single__image img {
	width: 100%;
	height: auto;
	border-radius: var(--esc-radius);
	display: block;
}
@media (max-width: 860px) {
	.esc-event-single__grid { grid-template-columns: 1fr; }
	.esc-event-single__side { position: static; }
}

.esc-logo-fallback {
	font-weight: 600;
	color: var(--esc-muted);
	text-align: center;
	font-size: .95rem;
}
/* SVG-logoer: lad dem skalere pænt inden for logo-kasserne. */
.esc-logo-svg {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Gutenberg-knapper (wp:button) – følger sæson-farverne              */
/* ------------------------------------------------------------------ */
/* Kernens knap-blok bruger ellers GeneratePress' grå standardfarve, som GP
   sprøjter ind som inline CSS EFTER dette stylesheet. For at vinde uden
   !important tager vi .wp-element-button-klassen med (WordPress sætter den
   altid på selve linket) – så er reglen tre klasser dyb og slår GP's inline
   farve. Knapperne bindes til de fire tokens og skifter med sæsonen. */
.wp-block-button .wp-block-button__link.wp-element-button {
	background-color: var(--esc-brand);
	color: var(--esc-on-brand);
	border: 2px solid var(--esc-brand);
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.wp-block-button .wp-block-button__link.wp-element-button:hover,
.wp-block-button .wp-block-button__link.wp-element-button:focus {
	background-color: var(--esc-brand-dark);
	border-color: var(--esc-brand-dark);
	color: var(--esc-on-brand);
}
/* Outline-varianten (is-style-outline): brand-farvet kontur på hvid, der
   fyldes ved hover. Én klasse mere, så den vinder over den fyldte regel. */
.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button {
	background-color: transparent;
	color: var(--esc-brand-ink);
	border-color: var(--esc-brand-ink);
}
.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:hover,
.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:focus {
	background-color: var(--esc-brand);
	border-color: var(--esc-brand);
	color: var(--esc-on-brand);
}

/* Gavekort-knapperne: luftig række der wrapper pænt på mobil. */
.esc-gavekort-actions {
	gap: 12px;
	margin: 24px 0 8px;
}

/* Redaktionel intro-panel: blød sæson-tonet flade der samler introtekst og
   handlingsknapper, så toppen af siden får ét roligt fokus (ESC-signaturens
   color-mix-tint). Genbrugelig via .esc-panel på andre sider. */
.esc-panel {
	background: #f5f8f8; /* fallback hvis color-mix ikke understøttes */
	background: color-mix(in srgb, var(--esc-brand) 7%, #fff);
	border: 1px solid #e4eeed;
	border: 1px solid color-mix(in srgb, var(--esc-brand) 16%, #fff);
	border-radius: var(--esc-radius);
	padding: 30px 34px;
}
.esc-gavekort-intro {
	margin: 8px 0 44px;
}
.esc-gavekort-intro > *:first-child { margin-top: 0; }
.esc-gavekort-intro > *:last-child { margin-bottom: 0; }
.esc-lead {
	font-size: 1.2rem;
	line-height: 1.5;
	max-width: 62ch;
	margin: 0 0 22px;
	color: var(--esc-ink);
}

@media (max-width: 600px) {
	.esc-panel {
		padding: 22px 20px;
	}
	.esc-lead {
		font-size: 1.08rem;
	}
}

/* ------------------------------------------------------------------ */
/* Oversigtskort – inline SVG ([esc_kort])                            */
/* ------------------------------------------------------------------ */
/* SVG'en lægges inline, så den skalerer efter sin viewBox i stedet for
   at kollapse til 0 i højden som en Billede-blok gør med en SVG uden
   faste dimensioner. Bredden følger indholdet; højden regnes af sig selv. */
.esc-kort {
	margin: 24px 0;
}
.esc-kort svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Gavekort – butiksliste                                             */
/* ------------------------------------------------------------------ */
.esc-gavekort-butikker {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.esc-gavekort-butikker__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--esc-line);
	border-radius: var(--esc-radius);
	text-decoration: none;
	color: inherit;
	text-align: center;
}
.esc-gavekort-butikker__item img {
	max-width: 100%;
	height: 60px;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Event – detaljer                                                   */
/* ------------------------------------------------------------------ */
.esc-event-single__facts {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
/* Fuld bredde af indholdskolonnen, naturligt billedforhold. Ingen max-height:
   kombineret med width:100% ville den strække billedet, og object-fit ville
   beskære det – begge dele uønsket. Hele billedet vises altid. */
.esc-event-single__hero img,
.esc-profile__hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--esc-radius);
	margin-bottom: 24px;
}

/* ------------------------------------------------------------------ */
/* Footer – selvstændigt mørkt bånd (uafhængigt af GP's footer-farve)  */
/* ------------------------------------------------------------------ */
.esc-footer {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--esc-ink);
	color: #cfcecb;
	padding: 52px 24px 36px;
	border-top: 5px solid var(--esc-brand);
}
.esc-footer-cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
	max-width: var(--esc-maxw);
	margin: 0 auto;
}
.esc-footer-cols h4 {
	margin: 0 0 .7em;
	color: #fff;
	font-size: 1.05rem;
}
.esc-footer a {
	color: #fff;
}
.esc-footer-col--contact a {
	text-decoration: underline;
}
.esc-footer-col--brand img {
	filter: brightness(0) invert(1);  /* sort logo → hvidt på mørk footer */
}
.esc-footer__heart {
	margin-top: 16px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .07);
	border-radius: 8px;
	font-size: .88rem;
	line-height: 1.5;
	color: #cfcecb;
}
.esc-footer__some {
	display: flex;
	gap: 16px;
	margin-top: 12px;
}
/* Åbningstids-tabellen gjort læsbar på mørk baggrund. */
.esc-footer .esc-aabningstider th,
.esc-footer .esc-aabningstider td {
	color: #cfcecb;
	border-bottom-color: rgba(255, 255, 255, .12);
	padding: 6px 4px;
}
.esc-footer .esc-aabningstider .is-today th,
.esc-footer .esc-aabningstider .is-today td {
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border-bottom-color: rgba(255, 255, 255, .12);
}

/* GP's footer-bar: lad den smelte sammen med vores bånd. */
.site-info {
	background: var(--esc-ink);
	color: #8d8c89;
	text-align: center;
}
.site-info .esc-copyright {
	font-size: .85rem;
}

@media (max-width: 782px) {
	.esc-footer-cols { grid-template-columns: 1fr; gap: 28px; }
}
