/* Directory pages are server-rendered outside the SPA, so they carry their own
   CSS rather than pulling the app's Tailwind bundle. Tokens mirror index.css. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap');

:root {
	--bg: #0C0E14;
	--panel: #12151E;
	--border: #252835;
	--cyan: #22D3EE;
	--text: #E8EAF0;
	--text-dim: #A8ADBF;
	--text-muted: #737891;
	--display: 'Sora', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.dir-body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--display);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.dir-header {
	border-bottom: 1px solid var(--border);
	padding: 1rem;
	display: flex;
	justify-content: center;
}
.dir-logo { font-weight: 800; font-size: 1.05rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.dir-logo span { color: var(--cyan); }

.dir-main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.dir-crumbs { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.dir-crumbs a { color: var(--text-dim); text-decoration: none; }
.dir-crumbs a:hover { color: var(--cyan); }
.dir-sep { margin: 0 0.45rem; color: var(--border); }

.dir-h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.dir-lede { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.5rem; margin-bottom: 1.75rem; }

/* child-segment grid (countries / states / cities) */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.65rem; }
.dir-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 0.7rem;
	padding: 0.9rem 1rem;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	transition: border-color 0.15s ease;
}
.dir-card:hover { border-color: rgba(34, 211, 238, 0.4); }
.dir-card-label { color: #fff; font-weight: 600; font-size: 0.95rem; }
.dir-card-count { color: var(--text-muted); font-size: 0.75rem; }

/* attraction list (city level) */
.dir-list { display: flex; flex-direction: column; gap: 0.65rem; }
.dir-item {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 0.7rem;
	overflow: hidden;
	text-decoration: none;
	display: flex;
	gap: 0.9rem;
	transition: border-color 0.15s ease;
}
.dir-item:hover { border-color: rgba(34, 211, 238, 0.4); }
.dir-item-img { width: 116px; height: 116px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.dir-item-body { padding: 0.85rem 1rem 0.85rem 0; min-width: 0; }
.dir-item-body h2 { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.dir-item-loc { font-size: 0.78rem; color: var(--cyan); margin-top: 0.15rem; }
.dir-item-blurb {
	font-size: 0.84rem;
	color: var(--text-dim);
	margin-top: 0.4rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dir-footer { border-top: 1px solid var(--border); padding: 1.5rem 1rem; text-align: center; }
.dir-footer a { color: var(--cyan); text-decoration: none; font-size: 0.85rem; font-weight: 600; }

@media (max-width: 480px) {
	.dir-item-img { width: 92px; height: 92px; }
	.dir-item-body { padding: 0.7rem 0.85rem 0.7rem 0; }
}

/* language switcher — plain links, no JS */
.dir-header { position: relative; }
.dir-langs { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); display: flex; gap: 0.3rem; }
.dir-lang {
	display: inline-flex; align-items: center; gap: 0.25rem;
	padding: 0.2rem 0.4rem; border-radius: 0.4rem;
	font-size: 0.7rem; font-weight: 600; text-decoration: none;
	color: var(--text-muted); border: 1px solid transparent;
}
.dir-lang:hover { color: var(--text); background: var(--panel); }
.dir-lang-on { color: var(--cyan); border-color: var(--border); background: var(--panel); }
.dir-lang-code { letter-spacing: 0.03em; }
@media (max-width: 480px) { .dir-lang-code { display: none; } }
