
/* --- CORE VARIABLES --- */
:root {
	--bg-app: #030508;          /* Ultra dark background */
	--bg-card: #0b0d11;         /* Slightly lighter card bg */
	--bg-glass: rgba(11, 13, 17, 0.7);
	
	--text-main: #e2e8f0;       /* Off-white for readability */
	--text-muted: #64748b;      /* Slate grey for secondary text */
	
	--brand-primary: #3b82f6;   /* Scientific Blue */
	--brand-accent: #f59e0b;    /* Hazard Amber */
	--border: rgba(255, 255, 255, 0.08);
	
	--font-ui: 'Inter', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
	
	--shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
	--glow-primary: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; outline: none; }

body {
	margin: 0;
	background-color: var(--bg-app);
	color: var(--text-main);
	font-family: var(--font-ui);
	height: 100vh;
	overflow: hidden; /* App-like feel, no page scroll */
	display: flex;
	flex-direction: column;
	background-image: 
		radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 25%),
		radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.03) 0%, transparent 25%);
}

/* --- UTILITIES --- */
a { color: var(--brand-primary); text-decoration: none; transition: 0.2s; }
a:hover { color: #60a5fa; text-decoration: underline; }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.05em; }

/* --- TOP NAVBAR (Minimalist) --- */
.navbar {
	height: 64px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	background: rgba(3, 5, 8, 0.8);
	backdrop-filter: blur(10px);
	z-index: 50;
}

.logo {
	font-weight: 700;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: -0.02em;
}

.logo span { color: var(--brand-primary); }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 6px;
	text-decoration: none !important;
}
.nav-links a.active, .nav-links a:hover {
	background: rgba(255,255,255,0.05);
	color: var(--text-main);
}
.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: rgba(16, 185, 129, 0.1);
	color: #34d399;
	border-radius: 99px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-dot { width: 6px; height: 6px; background: #34d399; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 8px #34d399; }

/* --- MAIN LAYOUT GRID --- */
.layout-container {
	display: grid;
	grid-template-columns: 380px 1fr; /* Sidebar | Map */
	height: calc(100vh - 64px);
	overflow: hidden;
}

/* --- SIDEBAR (Content) --- */
.sidebar {
	background: var(--bg-card);
	border-right: 1px solid var(--border);
	padding: 32px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.section-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 8px 0;
	letter-spacing: -0.03em;
	background: linear-gradient(to right, #fff, #94a3b8);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.section-header p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* Cards */
.info-card {
	background: rgba(255,255,255,0.02);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
}

/* Notice/Alert */
.alert {
	background: rgba(245, 158, 11, 0.05);
	border: 1px solid rgba(245, 158, 11, 0.2);
	color: #fbbf24;
	padding: 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	display: flex;
	gap: 12px;
	line-height: 1.5;
}
.alert svg { flex-shrink: 0; width: 20px; height: 20px; }

/* Typography within sidebar */
.sidebar-text {
	color: #94a3b8;
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 16px;
}
.contact-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--brand-primary);
	font-weight: 500;
	margin-bottom: 8px;
}

/* CTA Button */
.btn-primary {
	display: block;
	width: 100%;
	background: var(--brand-primary);
	color: white;
	text-align: center;
	padding: 14px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
	color: white; /* Force no underline */
	text-decoration: none;
}

/* Footer in Sidebar */
.sidebar-footer {
	margin-top: auto;
	border-top: 1px solid var(--border);
	padding-top: 20px;
	font-size: 0.8rem;
	color: #475569;
}

/* --- MAP VIEWER (Right Pane) --- */
.map-viewer {
	position: relative;
	background: #000;
	display: flex;
	flex-direction: column;
}

.map-toolbar {
	height: 50px;
	background: rgba(11, 13, 17, 0.9);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}

.map-title {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 8px;
}

.map-coords {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: #475569;
}

.iframe-container {
	flex: 1;
	position: relative;
	background: #020617;
	/* Grid pattern overlay for empty space feel */
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
	linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
}

iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
	.layout-container {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		height: auto;
		overflow-y: auto;
	}
	body { overflow: auto; }
	.sidebar { border-right: none; border-bottom: 1px solid var(--border); max-height: none; }
	.map-viewer { height: 70vh; min-height: 500px; }
}
@media (max-width: 600px) {
	.navbar { padding: 0 16px; }
	.nav-links { display: none; } /* Simplify for mobile */
	.sidebar { padding: 20px; }
}
