:root {
	color-scheme: light dark;
	--bg: #f8fafc;
	--fg: #0f172a;
	--surface: #ffffff;
	--surface-subtle: #f1f5f9;
	--muted: #64748b;
	--border: #e2e8f0;
	--border-subtle: #cbd5e1;
	
	/* Asturian maritime + sidra inspired accents */
	--accent: #0284c7; /* Cantabrian Deep Sea Blue */
	--accent-hover: #0369a1;
	--accent-light: #e0f2fe;
	--accent-dark: #075985;
	
	--sidra: #d97706; /* Asturian Sidra Amber / Gold */
	--sidra-light: #fef3c7;
	--sidra-border: #fcd34d;
	
	--emerald: #059669; /* Asturian Nature Green */
	--emerald-light: #d1fae5;
	
	--danger: #dc2626;
	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 18px;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
	--shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
	
	--font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #090d16;
		--fg: #f1f5f9;
		--surface: #111827;
		--surface-subtle: #1e293b;
		--muted: #94a3b8;
		--border: #243248;
		--border-subtle: #334155;
		
		--accent: #38bdf8;
		--accent-hover: #7dd3fc;
		--accent-light: rgba(56, 189, 248, 0.15);
		--accent-dark: #0284c7;
		
		--sidra: #fbbf24;
		--sidra-light: rgba(251, 191, 36, 0.15);
		--sidra-border: rgba(251, 191, 36, 0.3);
		
		--emerald: #34d399;
		--emerald-light: rgba(52, 211, 153, 0.15);
		
		--danger: #f87171;
		--shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
		--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* Base Container */
.shell {
	max-width: 76rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 3.5rem;
}

/* Header & Banner */
.hero-banner {
	background: linear-gradient(135deg, #0f172a 0%, #075985 60%, #0284c7 100%);
	color: #ffffff;
	border-radius: var(--radius-lg);
	padding: 2.2rem 1.75rem;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.hero-banner::after {
	content: "";
	position: absolute;
	right: -50px;
	bottom: -50px;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
	pointer-events: none;
	border-radius: 50%;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 48rem;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hero-title {
	font-family: var(--font-title);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.hero-subtitle {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 1.25rem;
	line-height: 1.5;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item {
	display: flex;
	flex-direction: column;
}

.hero-stat-value {
	font-family: var(--font-title);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--sidra-light);
}

.hero-stat-label {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Nav Tabs */
.nav-tabs {
	display: flex;
	gap: 0.5rem;
	padding: 0.35rem;
	background: var(--surface-subtle);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow-x: auto;
	margin-bottom: 1.75rem;
	scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
	display: none;
}

.tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.1rem;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	border-radius: calc(var(--radius) - 4px);
	font-family: var(--font);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease-in-out;
}

.tab-btn:hover {
	color: var(--fg);
	background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
	background: var(--surface);
	color: var(--accent);
	box-shadow: var(--shadow-sm);
	border-color: var(--border);
}

/* Controls & Desplegables Panel */
.controls-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	margin-bottom: 1.75rem;
	box-shadow: var(--shadow-sm);
}

.controls-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
	align-items: end;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.field label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.select, .input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--fg);
	font-family: var(--font);
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}

.select:hover, .input:hover {
	border-color: var(--accent);
}

.select:focus, .input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

/* Button Pills */
.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--border);
}

.pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-subtle);
	color: var(--fg);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
}

.pill-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pill-btn.active {
	background: var(--accent);
	color: #ffffff;
	border-color: var(--accent);
}

/* Standard Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #ffffff;
	font-family: var(--font);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	text-decoration: none;
	line-height: 1.25;
}

.btn:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

.btn-secondary {
	background: var(--surface-subtle);
	color: var(--fg);
	border-color: var(--border);
}

.btn-secondary:hover {
	background: var(--surface);
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sidra {
	background: var(--sidra);
	color: #ffffff;
}

.btn-sidra:hover {
	background: #b45309;
}

.btn-sm {
	padding: 0.35rem 0.65rem;
	font-size: 0.8125rem;
	border-radius: 4px;
}

/* Cards Grid */
.cards-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}

.spot-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.spot-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent);
}

.spot-card-header {
	padding: 1rem 1.25rem 0.5rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.spot-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tag-badge {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--surface-subtle);
	color: var(--muted);
	border: 1px solid var(--border);
}

.tag-badge.accent {
	background: var(--accent-light);
	color: var(--accent-dark);
	border-color: transparent;
}

.tag-badge.sidra {
	background: var(--sidra-light);
	color: #92400e;
	border-color: var(--sidra-border);
}

.tag-badge.green {
	background: var(--emerald-light);
	color: #065f46;
}

.spot-card-body {
	padding: 0.5rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.spot-title {
	font-family: var(--font-title);
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--fg);
}

.spot-location {
	font-size: 0.8125rem;
	color: var(--muted);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.spot-desc {
	font-size: 0.8875rem;
	color: var(--fg);
	line-height: 1.5;
	margin: 0 0 1rem;
	flex: 1;
}

.spot-tip-box {
	background: var(--sidra-light);
	border-left: 3px solid var(--sidra);
	padding: 0.6rem 0.75rem;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 0.8125rem;
	color: #78350f;
	margin-bottom: 1rem;
	line-height: 1.4;
}

.spot-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--border);
}

.spot-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--muted);
}

/* Modal View */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	padding: 1rem;
}

.modal-content {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	max-width: 44rem;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--shadow-lg);
	position: relative;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 1.5rem 1.5rem 1rem;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.modal-body {
	padding: 1.5rem;
	display: grid;
	gap: 1.25rem;
}

.modal-close-btn {
	background: var(--surface-subtle);
	border: 1px solid var(--border);
	border-radius: 50%;
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--fg);
	font-size: 1.1rem;
}

.modal-close-btn:hover {
	background: var(--accent-light);
	color: var(--accent);
}

/* Itinerary Planner */
.itinerary-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 48rem) {
	.itinerary-container {
		grid-template-columns: 1fr 1fr;
	}
}

.itinerary-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
}

.itinerary-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.itinerary-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem;
	background: var(--surface-subtle);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: background 0.15s ease;
}

.itinerary-item-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.itinerary-step {
	width: 1.75rem;
	height: 1.75rem;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	flex-shrink: 0;
}

/* Gastronomy Interactive Section */
.gastro-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.gastro-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: transform 0.15s ease;
}

.gastro-card:hover {
	transform: translateY(-2px);
	border-color: var(--sidra-border);
}

.sidra-interactive-card {
	background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
	color: #ffffff;
	border-radius: var(--radius);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow);
}

.sidra-interactive-card h3 {
	margin: 0 0 0.5rem;
	font-family: var(--font-title);
	font-size: 1.35rem;
}

/* Info practical grid */
.practical-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}

.practical-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.practical-card h4 {
	margin: 0 0 0.5rem;
	color: var(--accent);
	font-family: var(--font-title);
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

/* Footer info */
.footer-info {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	color: var(--muted);
	font-size: 0.85rem;
}

.footer-source-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--surface);
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--fg);
	text-decoration: none;
	font-weight: 500;
}

.footer-source-badge:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Utility classes from scaffold */
.empty {
	padding: 3rem 1rem;
	text-align: center;
	color: var(--muted);
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
}

.empty-title {
	margin: 0 0 0.4rem;
	color: var(--fg);
	font-weight: 700;
	font-size: 1.1rem;
}

.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 2rem;
	color: var(--muted);
}

.spinner {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: fab-spin 0.7s linear infinite;
}

@keyframes fab-spin {
	to {
		transform: rotate(360deg);
	}
}

.alert {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-left: 4px solid var(--muted);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.alert-error {
	border-left-color: var(--danger);
	color: var(--danger);
}
