/* Naples Ride Map — frontend styles
   All colors are variables so you can match "Rave" branding in one place. */

.nrm-block {
	--nrm-accent: #e23d57;
	--nrm-ink: #1f2430;
	--nrm-muted: #6b7280;
	--nrm-line: #eceef1;
	--nrm-surface: #ffffff;
	--nrm-tip-bg: #fff8e6;
	--nrm-tip-line: #f0c651;
	--nrm-radius: 16px;
	--nrm-map-offset: 140px;
	--nrm-map-h: clamp(460px, calc(100vh - var(--nrm-map-offset)), 820px);
	--nrm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--nrm-font-title: 'Anton', var(--nrm-font-body);

	color: var(--nrm-ink);
	font-family: var(--nrm-font-body);
}

/* Titles: Anton, uppercase, 1px letter-spacing */
.nrm-heading,
.nrm-card__title {
	font-family: var(--nrm-font-title);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.nrm-heading {
	font-size: clamp(1.5rem, 3.2vw, 2.2rem);
	line-height: 1.1;
	margin: 0 0 0.5rem;
}

.nrm-col-cards {
	min-width: 0;
}

.nrm-cards-intro {
	margin-bottom: 1.25rem;
}

.nrm-intro {
	margin: 0;
	color: var(--nrm-muted);
	font-size: 1.02rem;
	line-height: 1.55;
	max-width: 55ch;
}

.nrm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 28px;
	align-items: start;
}

/* ---- cards column ---- */
.nrm-cards {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.nrm-card {
	position: relative;
	background: var(--nrm-surface);
	border: 1px solid var(--nrm-line);
	border-radius: var(--nrm-radius);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.nrm-card:hover {
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
	transform: translateY(-2px);
}

.nrm-card.is-active {
	border-color: var(--nrm-accent);
	box-shadow: 0 0 0 2px var(--nrm-accent), 0 12px 30px rgba(16, 24, 40, 0.12);
}

.nrm-card:focus-visible {
	outline: 3px solid var(--nrm-accent);
	outline-offset: 2px;
}

.nrm-card__num {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--nrm-pin, var(--nrm-accent));
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nrm-card__media {
	aspect-ratio: 16 / 10;
	background: #f2f3f5;
	overflow: hidden;
}

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

.nrm-card__body {
	padding: 16px 18px 18px;
}

.nrm-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.nrm-card__title {
	font-size: 1.25rem;
	line-height: 1.2;
	margin: 0;
}

.nrm-card__tag {
	flex: none;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nrm-muted);
	border: 1px solid var(--nrm-line);
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.nrm-card__desc {
	margin: 0;
	color: var(--nrm-ink);
	line-height: 1.55;
}

.nrm-card__tip {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: var(--nrm-tip-bg);
	border-left: 3px solid var(--nrm-tip-line);
	border-radius: 8px;
	font-size: 0.92rem;
	line-height: 1.5;
}

.nrm-card__address {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: var(--nrm-muted);
}

/* ---- map column ---- */
.nrm-map-wrap {
	position: sticky;
	top: 24px;
	min-width: 0;
}

.nrm-map {
	width: 100%;
	height: var(--nrm-map-h);
	border-radius: var(--nrm-radius);
	overflow: hidden;
	background: #dfe7ee;
	border: 1px solid var(--nrm-line);
}

/* ---- info window ---- */
.nrm-iw {
	max-width: 240px;
}

.nrm-iw__media img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	margin-bottom: 8px;
}

.nrm-iw__title {
	margin: 0 0 4px;
	font-size: 1rem;
}

.nrm-iw__desc {
	margin: 0 0 6px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #333;
}

.nrm-iw__tip {
	margin: 0 0 6px;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--nrm-accent);
}

.nrm-iw__link {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--nrm-accent);
	text-decoration: none;
}

.nrm-iw__link:hover {
	text-decoration: underline;
}

/* ---- notices (editors only) ---- */
.nrm-notice {
	background: #fff4f6;
	border: 1px dashed var(--nrm-accent);
	color: #8a1f31;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 0.9rem;
	margin-bottom: 16px;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
	.nrm-layout {
		grid-template-columns: 1fr;
	}

	.nrm-map-wrap {
		position: static;
		order: -1; /* show map first on mobile, like the reference */
	}

	.nrm-block {
		--nrm-map-h: 340px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nrm-card {
		transition: none;
	}
	.nrm-card:hover {
		transform: none;
	}
}

/* ---- Leaflet numbered pins ---- */
.nrm-pin {
	background: none;
	border: none;
}

.nrm-pin__svg {
	position: absolute;
	inset: 0;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.nrm-pin__num {
	position: absolute;
	top: 8px;
	left: 0;
	width: 34px;
	text-align: center;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
}

/* Leaflet popup tuned to match the card look */
.leaflet-popup-content-wrapper {
	border-radius: 12px;
}
.leaflet-popup-content {
	margin: 12px;
}

/* ---- multiple intro sections ---- */
.nrm-intro-item + .nrm-intro-item {
	margin-top: 1rem;
}
.nrm-intro-item .nrm-heading {
	margin-bottom: 0.35rem;
}
