/* =========================================================
   NMW redesign — Venues overview (Figma frame 66 / node 154:1229)
   Grey "VENUES" title bar + [ card grid | map ].
   Measurements taken 1:1 from the 1728px design.
   ========================================================= */

.rds-venues {
	font-family: var(--font-sans);
	background: #7067e0;              /* purple base (Figma frame bg) */
	color: #000;
	--rds-purple: #7067e0;
	--rds-olive: #90991a;
	--rds-grey: #cbcbcb;
	--rds-orange: #f97827;
	padding-top: 95px;               /* clear the fixed redesign header (60 + 35) */
}

/* ---- grey "VENUES" title bar (140px) ---- */
.rds-venues__title {
	height: 140px;
	background: var(--rds-grey);
	display: flex;
	align-items: center;
	justify-content: center;
}
.rds-venues__title-text {
	margin: 0;
	font-weight: 700;
	font-size: 96px;
	line-height: 0.96;
	text-transform: uppercase;
	text-align: center;
	color: #000;
}

/* ---- body: card grid (left 50%) + map (right 50%) ---- */
.rds-venues__body {
	display: flex;
	align-items: stretch;
	height: calc(100vh - 95px - 140px);
	min-height: 620px;
}

/* Left: 2-column venue card grid, scrolls internally when tall. */
.rds-venues__grid {
	width: 50%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: min-content;
	gap: 1px 0;
	overflow-y: auto;
	background: #f97827;
}

.rds-venues__card {
	position: relative;
	display: block;
	aspect-ratio: 432 / 406;
	overflow: hidden;
	background: #222;
	text-decoration: none;
	isolation: isolate;
}
.rds-venues__card img,
.rds-venues__card .rds-venues__ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.25s ease, opacity 0.25s ease;
}
.rds-venues__ph {                    /* fallback when a venue has no photo */
	background: linear-gradient(135deg, #8a8f2a, #77593a);
}
/* duotone hover like the artists overview (mirror + exclusion tint) */
.rds-venues__card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #77593A;
	mix-blend-mode: exclusion;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 1;
}
.rds-venues__card:hover img { filter: saturate(1.7) invert(1); opacity: 0.6; transform: scaleX(-1); }
.rds-venues__card:hover::after { opacity: 1; }
/* slate-blue name strip (black ink) — overlaps the bottom of the photo */
.rds-venues__card-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 35px;
	background: #88A6C5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 26px;
	line-height: 23px;
	color: #000;
	text-align: center;
	white-space: nowrap;
	padding: 0 10px;
}

/* Right: Leaflet map — desaturated + blue-grey wash (Figma). */
.rds-venues__map {
	--rds-brown: #77593a;
	width: 50%;
	height: 100%;
	background: #8b97ac;
	z-index: 0;
}
/* Style the OSM tiles by stacking two exclusion-blend fills over them
   (Figma: image → white exclusion → #88A6C5 exclusion). Applied inside the
   tile pane only, so pins / controls / popups stay untinted. The oversized
   cover keeps the fill in place while panning. */
.rds-venues__map .leaflet-tile-pane::before,
.rds-venues__map .leaflet-tile-pane::after {
	content: '';
	position: absolute;
	top: -4000px;
	left: -4000px;
	width: 12000px;
	height: 12000px;
	pointer-events: none;
	mix-blend-mode: exclusion;
	z-index: 300;
}
.rds-venues__map .leaflet-tile-pane::before { background: #FFFFFF; }
.rds-venues__map .leaflet-tile-pane::after  { background: #88A6C5; }
.rds-venues__map .leaflet-container {
	background: #8b97ac;
	font-family: var(--font-mono);
}

/* ---- custom pin: brown box + black NMW sygnet + triangle tip ---- */
.rds-vpin { display: block; }
.rds-vpin__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 48px;
	overflow: hidden;
	background: var(--rds-brown);
}
.rds-vpin__box img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
}
.rds-vpin__tip {
	display: block;
	margin: 4px auto 0;              /* 4px gap between the box and the arrow */
	width: 0;
	height: 0;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 12px solid var(--rds-brown);
}

/* ---- custom popup: brown head + black WEBSITE/PROGRAMME bar ---- */
.rds-vpop .leaflet-popup-content-wrapper { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
.rds-vpop .leaflet-popup-content { margin: 0; width: auto !important; }
.rds-vpop .leaflet-popup-tip-container { display: none; }
.rds-vpop__head {
	background: var(--rds-brown, #77593a);
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	text-align: center;
	padding: 16px 24px;
}
.rds-vpop__actions { position: relative; display: flex; background: #000; }
.rds-vpop__act {
	flex: 1 1 50%;
	color: #fff;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	padding: 12px 10px;
}
.rds-vpop__act:hover { color: var(--rds-orange, #f97827); }
.rds-vpop__act + .rds-vpop__act { border-left: 1px solid #222; }
.rds-vpop__actions::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -11px;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 11px solid #000;
}

/* ---- Google Maps variant: strip the InfoWindow chrome so our brown/black
   popup renders raw (the black tail comes from .rds-vpop__actions::after). ---- */
.rds-venues__map .gm-style-iw-c {
	padding: 0 !important;
	background: #000 !important;      /* solid backstop so no map shows through any gap */
	box-shadow: none !important;
	border-radius: 0 !important;
	max-width: none !important;
	overflow: hidden !important;
}
.rds-venues__map .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; max-width: none !important; line-height: 0 !important; }
.rds-venues__map .gm-style-iw-c button.gm-ui-hover-effect { display: none !important; }
/* the modern close-button header row reserves a transparent strip (blue map
   bled through it) — remove it and every default tail/divider */
.rds-venues__map .gm-style-iw-ch,
.rds-venues__map .gm-style-iw-chr,
.rds-venues__map .gm-style-iw-tc,
.rds-venues__map .gm-style-iw-t::after { display: none !important; }
.rds-venues__map .rds-vpop--g { min-width: 240px; line-height: normal; }
/* single PROGRAMME action fills the black bar (no 50% split) */
.rds-vpop--g .rds-vpop__act { flex: 1 1 100%; }

/* Desktop-only (mobile venues come from another Figma frame). */
@media (max-width: 1024px) {
	.rds-venues__title-text { font-size: 12vw; }
	/* mobile (M5): map on top, then ONE row of 5 venue thumbnails */
	.rds-venues__body { flex-direction: column-reverse; height: auto; }
	.rds-venues__grid,
	.rds-venues__map { width: 100%; }
	.rds-venues__map { height: 45vh; }
	.rds-venues__grid { grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rds-orange, #f97827); }
	.rds-venues__card { aspect-ratio: 1 / 1; height: auto; }   /* square cards on mobile */
	.rds-venues__card img,
	.rds-venues__card .rds-venues__ph { position: absolute; inset: 0; height: 100%; object-fit: cover; }
	.rds-venues__card-name { height: 28px; font-size: 13px; letter-spacing: 0; padding: 0 8px; }
}
