/* =========================================================
   Timothy Griesel — dark-gallery / gold-accent visual system
   Principle: the photograph is the interface, framed by
   near-black gallery sections and a quiet gold accent, with
   light, airy pages (Story, single product, cart) for reading
   and buying. Matches the approved mockup direction.
   ========================================================= */

:root {
	--tg-ink: #111111;
	--tg-paper: #ffffff;
	--tg-line: #e5e5e5;
	--tg-accent: #c59b27; /* gold */
	--tg-dark: #0a0a0a;      /* gallery / dark-section background */
	--tg-dark-surface: #121212;
	--tg-dark-border: #222222;
	--tg-dark-text: #f5f5f5;
	--tg-dark-muted: #888888;
	--tg-serif: 'Cinzel', Georgia, serif;
	--tg-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

body {
	background: var(--tg-paper);
	color: var(--tg-ink);
	font-family: var(--tg-sans);
}

/* Global link color — without this, any link not caught by a more specific
   selector below falls back to browser-default blue (and purple once
   visited), which is what was showing up in the tagline and post titles. */
a {
	color: var(--tg-ink);
	text-decoration-color: var(--tg-line);
	text-underline-offset: 0.15em;
}
a:visited {
	color: var(--tg-ink);
}
a:hover,
a:focus {
	color: var(--tg-accent);
}

/* Titles that happen to be wrapped in a link (entry titles, breadcrumbs,
   site title) shouldn't look like body-copy hyperlinks — no underline,
   inherits the heading's own color rather than the link color above. */
.entry-title a,
.entry-title,
.site-title a,
.woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.woocommerce-breadcrumb {
	color: var(--tg-ink);
	opacity: 0.6;
	font-size: 0.85rem;
}
.woocommerce-breadcrumb a:hover {
	color: var(--tg-accent);
}

h1, h2, h3, .site-title {
	font-family: var(--tg-serif);
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* Defensive: if Storefront's default branding/nav/cart ever renders
   alongside our custom header (e.g. a caching layer serving an older
   cached page before this theme update took effect), hide the default
   markup rather than showing both. Our own header lives entirely inside
   .tg-header__inner and never uses these classes, so this can't hide
   anything of ours. */
#masthead .site-branding:not(.tg-header__branding),
#masthead > .main-navigation,
#masthead .storefront-handheld-footer-bar,
.storefront-handheld-footer-bar {
	display: none !important;
}

/* Storefront's default header is built for a general store; replaced with
   a centred-logo, split-navigation grid to match the approved mockup. */
.site-header {
	background: var(--tg-paper);
	border-bottom: 1px solid var(--tg-line);
	box-shadow: none;
}

.tg-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 1.5rem clamp(1rem, 4vw, 3rem);
}

.tg-header__nav {
	display: flex;
	align-items: center;
}

.tg-header__nav--right {
	justify-content: flex-end;
	gap: 1.75rem;
}

.tg-header__menu {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}

.tg-header__menu a {
	font-family: var(--tg-sans);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
}

.tg-header__menu a:hover {
	color: var(--tg-accent);
}

.tg-header__branding {
	text-align: center;
}

.tg-header__cart {
	font-family: var(--tg-sans);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
	white-space: nowrap;
}

.tg-header__cart:hover {
	color: var(--tg-accent);
}

@media (max-width: 860px) {
	.tg-header__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
	.tg-header__nav--left,
	.tg-header__nav--right {
		justify-content: center;
	}
	.tg-header__menu {
		flex-wrap: wrap;
		justify-content: center;
	}
}

.site-branding .site-title a {
	font-family: var(--tg-serif);
	font-size: 1.4rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
}

.site-description {
	display: block;
	font-family: var(--tg-sans);
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tg-dark-muted);
	margin-top: 0.2rem;
}

/* Shop grid: let the image breathe. No shadows, no rounded-corner "cards" —
   treat every thumbnail like a print on a wall. */
ul.products li.product {
	margin-bottom: 3rem;
	width: 100% !important;
	float: none !important;
}

ul.products li.product img {
	border-radius: 0;
	box-shadow: none;
	transition: opacity 0.3s ease;
}

ul.products li.product a:hover img {
	opacity: 0.92;
}

ul.products li.product .price {
	font-family: var(--tg-sans);
	color: var(--tg-ink);
	opacity: 0.75;
}

/* Buttons: understated, no gradients, no urgency-red. This is a considered
   purchase, not an impulse-buy funnel. */
.button, button, input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button {
	background: var(--tg-ink);
	color: var(--tg-paper);
	border-radius: 0;
	font-family: var(--tg-sans);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 0.8rem;
	padding: 0.9em 1.6em;
}

.button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
	background: var(--tg-accent);
	color: var(--tg-paper);
}

/* Single product: image dominant, copy secondary, edition/availability
   treated as a quiet fact rather than a scarcity-marketing banner. */
.single-product div.product .woocommerce-product-gallery {
	max-width: 100%;
}

.stock.available-on-backorder,
.stock.in-stock {
	font-family: var(--tg-sans);
	font-size: 0.85rem;
	color: var(--tg-accent);
	text-transform: none;
}

/* Variation "tiers" — progressively enhanced by assets/js/tier-swatches.js
   into clickable boxes (matching the approved mockup) when JS runs; the
   native <select> (hidden via .tg-swatches-active) still works underneath
   if it doesn't, so nothing breaks. */
table.variations {
	border: none;
}
table.variations td {
	border: none;
	padding: 0.4em 0;
}
.tg-swatches-active table.variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.tg-tier-list {
	margin: 0.5rem 0 1.5rem;
}

.tg-tier-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	border: 1px solid var(--tg-line);
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tg-tier-option:hover {
	border-color: var(--tg-accent);
}

.tg-tier-option.tg-tier-option--selected {
	border-color: var(--tg-accent);
	background: #fafafa;
}

.tg-tier-option__title {
	font-family: var(--tg-sans);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--tg-ink);
}

.tg-tier-option__desc {
	font-family: var(--tg-sans);
	font-size: 0.8rem;
	color: var(--tg-ink);
	opacity: 0.6;
	margin-top: 0.15rem;
}

.tg-tier-option__price {
	font-family: var(--tg-serif);
	font-size: 1.1rem;
	color: var(--tg-ink);
	white-space: nowrap;
}

/* Story / long-form pages: narrower measure for readability, serif body. */
.page-template-default .entry-content,
.single-post .entry-content {
	max-width: 42rem;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* Single blog post: quiet byline, generous title, breathing room above the
   first heading so it doesn't crowd the meta line. */
.single-post .entry-header {
	max-width: 42rem;
	margin: 2.5rem auto 0;
	padding: 0 1rem;
}

.single-post .entry-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0.4rem 0 1rem;
	line-height: 1.2;
}

.single-post .posted-on,
.single-post .byline,
.single-post .entry-meta {
	font-family: var(--tg-sans);
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--tg-ink);
	opacity: 0.55;
}

.single-post .entry-content {
	padding: 1.5rem 1rem 3rem;
}

.single-post .entry-content h3 {
	margin-top: 2.2rem;
	font-size: 1.25rem;
}

.single-post .entry-content p {
	margin-bottom: 1.2rem;
}

/* Footer: dark, matching the gallery sections — quiet copyright line,
   no widget clutter. */
#colophon {
	background: #000;
	border-top: 1px solid var(--tg-dark-border);
	color: var(--tg-dark-muted);
}
#colophon a {
	color: var(--tg-dark-muted);
}
#colophon a:hover {
	color: var(--tg-accent);
}

.tg-footer__credit {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2.5rem clamp(1rem, 4vw, 3rem);
	text-align: center;
	font-family: var(--tg-sans);
	font-size: 0.8rem;
}

/* ---------------------------------------------------------
   Before / After preset slider — CSS-driven, no JS dependency
   beyond the one inline oninput handler that resizes the clip.
   --------------------------------------------------------- */
.tg-before-after {
	margin: 2.5rem 0;
	max-width: 620px;
}

.tg-before-after__label {
	font-family: var(--tg-serif);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.tg-before-after__notice {
	font-family: var(--tg-sans);
	font-size: 0.82rem;
	color: var(--tg-accent);
	margin-bottom: 0.75rem;
}

.tg-before-after__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--tg-line);
	background: var(--tg-line);
}

.tg-before-after__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The "before" image sits full-frame, on top of "after", and is revealed
   with clip-path rather than a width-based wrapper — this keeps it pixel
   -aligned with "after" at any container width, so it stays responsive
   without any JS measuring the frame. --tg-ba-pos is set inline by the
   range input's oninput handler. */
.tg-before-after__before-wrap {
	position: absolute;
	inset: 0;
	--tg-ba-pos: 50%;
	clip-path: inset(0 calc(100% - var(--tg-ba-pos)) 0 0);
}

.tg-before-after__before-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--tg-ba-pos);
	width: 2px;
	background: var(--tg-paper);
	transform: translateX(-1px);
}

.tg-before-after__labels {
	position: absolute;
	bottom: 0.6rem;
	left: 0.6rem;
	right: 0.6rem;
	display: flex;
	justify-content: space-between;
	font-family: var(--tg-sans);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
}

.tg-before-after__labels span {
	background: rgba(26, 26, 24, 0.55);
	color: var(--tg-paper);
	padding: 0.25em 0.6em;
}

.tg-before-after__slider {
	width: 100%;
	margin-top: 0.75rem;
	accent-color: var(--tg-ink);
}

/* ===========================================================
   Robustness: force a light surface + dark text on every
   WooCommerce/content wrapper, explicitly, rather than relying
   on inheritance. Prevents the "black on black" failure mode
   (forced dark-mode inversion, a stray dark background from a
   parent template, or a plugin re-theming just one section)
   seen on the current live site. color-scheme:light also stops
   browsers auto-inverting form fields/scrollbars in dark mode.
   =========================================================== */
:root {
	color-scheme: light;
}

body,
.site-content,
.content-area,
.woocommerce,
.woocommerce-page,
.single-product div.product,
.single-product .entry-summary,
.single-product .woocommerce-tabs,
.woocommerce-Reviews {
	background-color: var(--tg-paper);
	color: var(--tg-ink);
}

.entry-summary *,
.woocommerce-tabs *,
.related.products * {
	color: inherit;
}

/* ---------------------------------------------------------
   Hero banner
   --------------------------------------------------------- */
/* Full-bleed: breaks the hero out of Storefront's constrained .col-full
   content wrapper so it spans the true viewport width, not just the
   content column width. */
.tg-hero {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.tg-hero__frame {
	position: relative;
	min-height: 62vh;
	display: flex;
	align-items: flex-end;
	background-color: var(--tg-ink);
	background-size: cover;
	background-position: center;
	color: var(--tg-paper);
}

.tg-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.4) 45%, rgba(10, 10, 10, 0.05) 100%);
}

.tg-hero__frame:not(.tg-hero__frame--has-image) .tg-hero__scrim {
	background: var(--tg-dark);
	opacity: 1;
}

.tg-hero__content {
	position: relative;
	z-index: 1;
	max-width: 42rem;
	padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

.tg-hero__title {
	font-family: var(--tg-serif);
	font-size: clamp(2rem, 4vw, 3.2rem);
	color: var(--tg-paper);
	margin-bottom: 0.75rem;
	line-height: 1.15;
}

.tg-hero__subtitle {
	font-family: var(--tg-sans);
	font-size: 1.05rem;
	color: var(--tg-paper);
	opacity: 0.92;
	max-width: 36rem;
	margin-bottom: 1.5rem;
}

.tg-hero__button.button {
	background: var(--tg-paper);
	color: var(--tg-ink);
}
.tg-hero__button.button:hover {
	background: var(--tg-accent);
	color: var(--tg-paper);
}

/* ---------------------------------------------------------
   Collections grid — text always sits on a solid scrim, never
   directly on raw image pixels, so it stays legible regardless
   of what's in the photo behind it.
   --------------------------------------------------------- */
.tg-collections {
	max-width: 1400px;
	margin: 0 auto;
	padding: 4rem clamp(1.5rem, 5vw, 4rem);
}

.tg-collections__header {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.5rem;
}

.tg-collections__header h2 {
	font-family: var(--tg-serif);
	font-size: 1.9rem;
	margin-bottom: 0.5rem;
}

.tg-collections__header p {
	color: var(--tg-ink);
	opacity: 0.75;
}

.tg-collections__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.tg-collection-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	text-decoration: none;
	background-color: var(--tg-line);
}

.tg-collection-card__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.tg-collection-card:hover .tg-collection-card__image {
	transform: scale(1.04);
}

.tg-collection-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.3) 55%, rgba(10, 10, 10, 0) 100%);
}

.tg-collection-card__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.tg-collection-card__tag {
	font-family: var(--tg-sans);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-accent);
}

.tg-collection-card__name {
	font-family: var(--tg-serif);
	font-size: 1.4rem;
	font-weight: 400;
	color: #fff;
	line-height: 1.2;
}

.tg-collection-card__count {
	font-family: var(--tg-sans);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #ccc;
}

.tg-home-recent {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 5vw, 4rem) 4rem;
}

.tg-home-recent ul.products {
	max-width: none;
	margin: 0;
	padding: 0;
}

.tg-home-recent ul.products li.product {
	text-align: center;
}

.tg-home-recent ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
}

.tg-home-recent ul.products li.product .price {
	justify-content: center;
	display: block;
}

/* ---------------------------------------------------------
   Product archive / category "gallery" pages — dark wrapper,
   white "archival mat" frame around each print, restyled sale
   badge and price line, outlined button. Scoped to category
   archives and the main shop archive; the homepage's "Recent
   Additions" strip stays on the light page background.
   --------------------------------------------------------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2.5rem 1.75rem;
	max-width: 1400px;
	margin: 2.5rem auto;
	padding: 0 clamp(1rem, 4vw, 3rem);
}

.woocommerce ul.products li.product {
	margin: 0;
	width: 100% !important;
	float: none !important;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--tg-serif);
	font-weight: 400;
	font-size: 1.05rem;
	color: var(--tg-ink);
	margin-top: 0.9rem;
}

.woocommerce ul.products li.product .price {
	font-family: var(--tg-sans);
	font-size: 0.9rem;
}

.woocommerce ul.products li.product .price del {
	opacity: 0.45;
	margin-right: 0.5em;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: var(--tg-ink);
}

.woocommerce span.onsale {
	background: var(--tg-ink);
	color: #fff;
	font-family: var(--tg-sans);
	font-size: 0.65rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 0;
	min-height: auto;
	min-width: auto;
	padding: 0.3em 0.6em;
	line-height: 1;
	top: 0.5em;
	left: 0.5em;
}

.woocommerce-products-header__title {
	font-family: var(--tg-serif);
	font-weight: 400;
	max-width: 1400px;
	margin: 2rem auto 0;
	padding: 0 clamp(1rem, 4vw, 3rem);
}

.woocommerce .term-description,
.woocommerce-products-header p {
	max-width: 1400px;
	margin: 0.5rem auto 0;
	padding: 0 clamp(1rem, 4vw, 3rem);
	color: var(--tg-ink);
	opacity: 0.75;
}

/* --- Dark "gallery mode" for category archives + main shop --- */
body.tax-product_cat,
body.post-type-archive-product {
	background: var(--tg-dark);
	color: var(--tg-dark-text);
}
body.tax-product_cat .content-area,
body.tax-product_cat #primary,
body.tax-product_cat .site-content,
body.post-type-archive-product .content-area,
body.post-type-archive-product #primary,
body.post-type-archive-product .site-content {
	background: var(--tg-dark);
	color: var(--tg-dark-text);
	padding-bottom: 4rem;
}

body.tax-product_cat .woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header__title {
	color: var(--tg-dark-text);
	text-align: center;
	font-size: 2rem;
}

body.tax-product_cat .term-description,
body.tax-product_cat .woocommerce-products-header p,
body.post-type-archive-product .woocommerce-products-header p {
	color: var(--tg-dark-muted);
	text-align: center;
	max-width: 44rem;
}

body.tax-product_cat ul.products li.product a,
body.post-type-archive-product ul.products li.product a {
	display: block;
}

/* The archival mat: a white frame with breathing room around the image,
   the way a real print sits inside a mount board. */
body.tax-product_cat ul.products li.product .tg-frame,
body.post-type-archive-product ul.products li.product .tg-frame,
body.tax-product_cat ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img {
	background: #fff;
	padding: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body.tax-product_cat ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img {
	aspect-ratio: 4 / 5;
	object-fit: contain;
	box-sizing: border-box;
}

body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
	color: var(--tg-dark-text);
	text-align: center;
	font-size: 1rem;
}

body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
	display: block;
	text-align: center;
	color: var(--tg-dark-muted);
}

body.tax-product_cat ul.products li.product .price ins,
body.post-type-archive-product ul.products li.product .price ins {
	color: #fff;
}

body.tax-product_cat ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button {
	display: block;
	width: 100%;
	margin-top: 0.75rem;
	background: transparent;
	border: 1px solid var(--tg-dark-border);
	color: #fff;
}

body.tax-product_cat ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .button:hover {
	background: #fff;
	border-color: #fff;
	color: #000;
}

/* ---------------------------------------------------------
   Single product page — clear two-column layout, legible
   description/tabs, and a related-products strip that doesn't
   collapse into empty black space.
   --------------------------------------------------------- */
.single-product div.product {
	max-width: 1400px;
	margin: 2.5rem auto;
	padding: 0 clamp(1rem, 4vw, 3rem);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 768px) {
	.single-product div.product {
		grid-template-columns: 1fr;
	}
}

.single-product div.product .woocommerce-product-gallery {
	max-width: 100%;
	width: 100% !important;
	float: none !important;
}

.single-product div.product .woocommerce-product-gallery img {
	width: 100%;
	height: auto;
}

.single-product div.product .summary {
	float: none !important;
	width: 100% !important;
}

.single-product div.product .product_title {
	font-family: var(--tg-serif);
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.single-product div.product p.price {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.woocommerce-tabs {
	max-width: 1400px;
	margin: 1rem auto 3rem;
	padding: 0 clamp(1rem, 4vw, 3rem);
}

.woocommerce-tabs .panel h2,
.woocommerce-Tabs-panel h2 {
	font-family: var(--tg-serif);
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.related.products {
	max-width: 1400px;
	margin: 0 auto 4rem;
	padding: 0 clamp(1rem, 4vw, 3rem);
}

.related.products > h2 {
	font-family: var(--tg-serif);
	font-size: 1.4rem;
	margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------
   Expeditions Map page
   --------------------------------------------------------- */
.tg-map-page {
	background: var(--tg-paper);
}

.tg-map-intro {
	text-align: center;
	max-width: 44rem;
	margin: 0 auto;
	padding: 3.5rem 1.5rem 2rem;
}

.tg-map-intro h1 {
	font-size: 2.2rem;
	font-weight: 400;
	margin-bottom: 0.75rem;
}

.tg-map-intro p {
	color: var(--tg-ink);
	opacity: 0.7;
	font-size: 0.95rem;
}

.tg-map-wrapper {
	position: relative;
	background: var(--tg-dark);
}

#tg-expedition-map {
	width: 100%;
	height: 600px;
	background: #111;
}

.tg-map-panel {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 999;
	width: 280px;
	max-width: calc(100% - 3rem);
	background: rgba(10, 10, 10, 0.92);
	border: 1px solid var(--tg-dark-border);
	padding: 1.25rem;
	color: #fff;
	backdrop-filter: blur(10px);
}

.tg-map-panel h3 {
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 0.9rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--tg-dark-border);
}

.tg-map-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 60vh;
	overflow-y: auto;
}

.tg-map-panel__item {
	padding: 0.6rem 0.3rem;
	border-bottom: 1px solid #1a1a1a;
	cursor: pointer;
	font-size: 0.8rem;
	transition: background 0.2s ease, color 0.2s ease;
}

.tg-map-panel__item:hover {
	background: rgba(197, 155, 39, 0.15);
	color: var(--tg-accent);
}

/* Leaflet popup restyle — dark card with gold border/tip, matching the
   rest of the site rather than Leaflet's default white popup. */
.leaflet-popup-content-wrapper {
	background: rgba(10, 10, 10, 0.97) !important;
	color: #fff !important;
	border: 1px solid var(--tg-accent);
	border-radius: 0 !important;
}
.leaflet-popup-tip {
	background: var(--tg-accent) !important;
}
.tg-map-popup {
	width: 200px;
	font-family: var(--tg-sans);
}
.tg-map-popup__region {
	font-size: 0.65rem;
	color: var(--tg-accent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.3rem;
}
.tg-map-popup h4 {
	font-family: var(--tg-serif);
	font-weight: 400;
	font-size: 1rem;
	color: #fff;
	margin-bottom: 0.4rem;
}
.tg-map-popup p {
	font-size: 0.75rem;
	color: #bbb;
	line-height: 1.4;
	margin-bottom: 0.6rem;
}
.tg-map-popup__actions {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.tg-map-popup__actions a {
	background: var(--tg-accent);
	color: #000;
	text-align: center;
	padding: 0.4em 0.6em;
	font-size: 0.68rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.tg-map-popup__actions a:hover {
	background: #fff;
	color: #000;
}

.tg-map-pin__dot {
	width: 14px;
	height: 14px;
	background: var(--tg-accent);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(197, 155, 39, 0.8);
}
