/**
 * Tankstation Kaart - frontend styling.
 * Kleuren komen uit CSS-variabelen zodat het thema ze kan overschrijven.
 */


.tk-app {
	/* Afgestemd op het thema (Minimaal Zakelijk). Overschrijfbaar door het thema. */
	--tk-blue: #3a528b;
	--tk-blue-dark: #26365c;
	--tk-red: #3a528b;
	--tk-red-dark: #26365c;
	--tk-lime: #3a528b;
	--tk-text: #111110;
	--tk-muted: #6b6b67;
	--tk-border: #e4e4e0;
	--tk-bg: #ffffff;
	--tk-bg-soft: #f7f7f6;
	--tk-radius: 10px;
	--tk-height: 600px;
	--tk-font: 'Open Sans', sans-serif;

	display: flex;
	gap: 0;
	height: var(--tk-height);
	max-height: 80vh;
	border: 1px solid var(--tk-border);
	border-radius: var(--tk-radius);
	overflow: hidden;
	background: var(--tk-bg);
	color: var(--tk-text);
	font-family: var(--tk-font);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

/* Box-sizing + lettertype-overerving voor álle elementen binnen de kaart, zodat
   labels, knoppen, inputs en spans hetzelfde font (Open Sans) als de pagina krijgen.
   Formuliercontrols erven het lettertype standaard niet — daarom expliciet. */
.tk-app * {
	box-sizing: border-box;
	font-family: inherit;
}

/* --- Zijpaneel --- */
.tk-sidebar {
	width: 380px;
	max-width: 42%;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--tk-border);
	background: var(--tk-bg);
	position: relative;
}

.tk-search {
	padding: 14px;
	border-bottom: 1px solid var(--tk-border);
}

.tk-search-input {
	width: 100%;
	padding: 11px 14px;
	border: 2px solid var(--tk-border);
	border-radius: var(--tk-radius);
	font-size: 15px;
	color: var(--tk-text);
}

.tk-search-input:focus {
	outline: none;
	border-color: var(--tk-blue);
}

.tk-list-wrap {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.tk-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 13px;
	color: var(--tk-muted);
}

.tk-filter-toggle {
	background: var(--tk-blue);
	border: 1px solid var(--tk-blue);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
	cursor: pointer;
	color: #fff;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.tk-filter-toggle:hover,
.tk-filter-toggle:focus {
	background: #fff;
	color: var(--tk-blue);
}

/* --- Filters --- */
.tk-filters {
	padding: 4px 14px 12px;
	border-bottom: 1px solid var(--tk-border);
}

.tk-filter-group {
	margin-bottom: 10px;
}

.tk-filter-title {
	margin: 8px 0 4px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tk-muted);
}

.tk-filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 14px;
	cursor: pointer;
}

.tk-filter-reset {
	margin-top: 6px;
	background: none;
	border: none;
	color: var(--tk-red);
	cursor: pointer;
	font-size: 13px;
	padding: 4px 0;
	text-decoration: underline;
}

/* --- Lijst --- */
.tk-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tk-list-item {
	border-bottom: 1px solid var(--tk-border);
}

.tk-list-item.is-active {
	background: var(--tk-bg-soft);
}

.tk-list-btn {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 13px 14px;
	cursor: pointer;
	border-left: 4px solid transparent;
}

.tk-list-item.is-active .tk-list-btn {
	border-left-color: var(--tk-red);
}

.tk-list-btn:hover {
	background: var(--tk-bg-soft);
}

.tk-list-name {
	font-weight: 700;
	color: var(--tk-blue);
	font-size: 15px;
}

.tk-list-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
}

.tk-list-photo {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--tk-bg-soft);
	flex-shrink: 0;
}

.tk-list-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tk-muted);
	font-size: 12px;
	border: 1px dashed var(--tk-border);
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background: transparent;
}

.tk-list-addr {
	font-size: 13px;
	color: var(--tk-muted);
}

.tk-list-warn {
	font-size: 12px;
	color: #b58100;
}

.tk-empty {
	padding: 24px 16px;
	text-align: center;
	color: var(--tk-muted);
	font-size: 14px;
}

/* --- Detailpaneel --- */
.tk-detail {
	position: absolute;
	inset: 0;
	background: var(--tk-bg);
	overflow-y: auto;
	padding: 14px;
	z-index: 5;
}

.tk-detail:focus {
	outline: none;
}

.tk-detail-back {
	display: inline-block;
	background: #fff;
	border: 1px solid var(--tk-blue);
	border-radius: 100px;
	color: var(--tk-blue);
	font-weight: 600;
	cursor: pointer;
	padding: 7px 16px;
	margin-bottom: 14px;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
}

.tk-detail-back:hover,
.tk-detail-back:focus {
	background: var(--tk-blue);
	color: #fff;
}

.tk-detail-photo {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--tk-radius);
	margin-bottom: 12px;
	background: var(--tk-bg-soft);
}

.tk-detail-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tk-muted);
	font-size: 13px;
	border: 1px dashed var(--tk-border);
}

.tk-detail-name {
	margin: 0 0 10px;
	font-size: 21px;
	color: var(--tk-text);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.tk-detail-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 6px 0;
	font-size: 14px;
	line-height: 1.4;
}

.tk-detail-row a {
	color: var(--tk-red);
	text-decoration: none;
	word-break: break-word;
}

.tk-detail-row a:hover {
	text-decoration: underline;
}

.tk-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tk-text);
}

.tk-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.tk-detail-section {
	margin: 14px 0 0;
}

.tk-detail-subtitle {
	margin: 0 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tk-muted);
}

.tk-detail-hours {
	margin: 0;
	white-space: pre-line;
	font-size: 14px;
}

.tk-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tk-tag {
	background: var(--tk-blue);
	border: 1px solid var(--tk-border);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 14px;
	color: #fff;
}

.tk-route-btn {
	display: block;
	margin-top: 18px;
	background: var(--tk-blue);
	color: #fff;
	text-align: center;
	padding: 13px 16px;
	border: 1px solid var(--tk-blue);
	border-radius: 100px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.tk-route-btn:hover,
.tk-route-btn:focus {
	background: #fff;
	color: var(--tk-blue);
}

/* --- Kaart --- */
.tk-map-col {
	flex: 1;
	min-width: 0;
}

.tk-map {
	width: 100%;
	height: 100%;
}

.tk-pin {
	background: none;
	border: none;
}

.tk-pin--active svg {
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* --- Toegankelijkheid --- */
.tk-app .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.tk-list-btn:focus-visible,
.tk-route-btn:focus-visible,
.tk-detail-back:focus-visible,
.tk-filter-toggle:focus-visible {
	outline: 3px solid var(--tk-lime);
	outline-offset: 2px;
}

/* --- Responsive: onder elkaar op mobiel --- */
@media (max-width: 782px) {
	.tk-app {
		flex-direction: column;
		height: auto;
		max-height: none;
	}

	.tk-sidebar {
		width: 100%;
		max-width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--tk-border);
		order: 2;
	}

	.tk-map-col {
		order: 1;
		height: 340px;
		flex: none;
	}

	.tk-list-wrap {
		max-height: 360px;
	}

	.tk-detail {
		position: static;
		inset: auto;
	}
}

