/**
 * Vluchtlog / Movements — page-vluchtlog.php
 */

/* Dubbele ruimte onder vaste header voorkomen: body heeft al padding-top (--nav-h)
   via header.css; site.css zet nog eens nav-h op .site-main > :first-child. */
body:not(.woocommerce):not(.woocommerce-page):not(.woocommerce-account) .site-main.vluchtlog-page > *:first-child {
	padding-top: 0;
}

body.airnieuws-has-global-top-bar:not(.woocommerce):not(.woocommerce-page):not(.woocommerce-account)
	.site-main.vluchtlog-page > *:first-child {
	padding-top: var(--airnieuws-global-bar-h);
}

.vluchtlog-page .vluchtlog-hero {
	padding: var(--sp-2) 0 var(--sp-2);
	border-bottom: 1px solid var(--clr-border);
	margin-bottom: var(--sp-2);
}

.vluchtlog-hero__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-2) var(--sp-6);
}

.vluchtlog-hero__top .breadcrumbs {
	margin-bottom: 0;
}

.vluchtlog-page > .container.section--sm {
	padding-block: var(--sp-2) var(--sp-4);
}

.vluchtlog-hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.2vw, 2rem);
	font-weight: var(--fw-bold);
	letter-spacing: var(--ls-tight);
	margin: 0;
	flex: 0 1 auto;
	color: #0a0a0a;
}

.vluchtlog-hero__sub {
	max-width: 46rem;
	color: #0a0a0a;
	font-size: var(--fs-sm);
	line-height: 1.6;
	margin: 0;
}

.vluchtlog-hero__link {
	color: var(--clr-amber, #d97706);
	font-weight: var(--fw-semibold, 600);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vluchtlog-hero__link:hover {
	color: var(--clr-orange, #ea580c);
}

.vluchtlog-alert {
	padding: var(--sp-4);
	border-radius: var(--r-md);
	border: 1px solid rgba(239, 68, 68, 0.35);
	background: rgba(239, 68, 68, 0.08);
	color: var(--txt-secondary);
	margin-bottom: var(--sp-5);
	font-size: var(--fs-sm);
}

.vluchtlog-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--sp-4);
	margin-bottom: var(--sp-4);
}

/* Zoekveld: eerst vergrootglas, dan invoer (flex, geen absolute overlap) */
.vluchtlog-toolbar__search--flex {
	display: flex;
	align-items: stretch;
	flex: 1 1 18rem;
	min-width: 14rem;
	gap: 0;
}

.vluchtlog-toolbar__search--flex .vluchtlog-toolbar__icon {
	position: static;
	transform: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 2.75rem;
	width: 2.75rem;
	border: 1px solid var(--clr-border);
	border-right: 0;
	border-radius: var(--r-md) 0 0 var(--r-md);
	background: var(--clr-fuselage, #f8fafc);
	color: #0a0a0a;
	pointer-events: none;
}

.vluchtlog-toolbar__search--flex .vluchtlog-toolbar__input {
	flex: 1;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: var(--sp-3) var(--sp-3);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	border: 1px solid var(--clr-border);
	background: var(--clr-panel, #fff);
	color: #0a0a0a;
	font-size: var(--fs-sm);
}

.vluchtlog-toolbar__icao {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	flex: 0 0 15.5rem;
	width: 15.5rem;
	min-width: 15.5rem;
	max-width: 15.5rem;
}

.vluchtlog-toolbar__label {
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	color: var(--clr-amber, #b45309);
	text-transform: uppercase;
	letter-spacing: var(--ls-wider);
}

.vluchtlog-toolbar__select {
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-md);
	border: 1px solid var(--clr-border);
	background: var(--clr-panel);
	color: #0a0a0a;
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.vluchtlog-toolbar__count {
	flex: 1 1 100%;
	margin: 0;
	font-size: var(--fs-xs);
	color: #0a0a0a;
}

@media (min-width: 768px) {
	.vluchtlog-toolbar__count {
		flex: 0 0 auto;
		margin-left: auto;
		text-align: right;
	}
}

/* Tabel: steviger, zwart + amber accenten */
.vluchtlog-table-wrap {
	max-height: min(70vh, 900px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--clr-border);
	border-radius: var(--r-md);
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.vluchtlog-table.flight-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	color: #0a0a0a;
}

/* Vaste kolomverdeling (los van filter / inhoud) */
.vluchtlog-table.flight-table thead th:nth-child(1) {
	width: 7%;
}
.vluchtlog-table.flight-table thead th:nth-child(2) {
	width: 11%;
}
.vluchtlog-table.flight-table thead th:nth-child(3) {
	width: 12%;
}
.vluchtlog-table.flight-table thead th:nth-child(4) {
	width: 14%;
}
.vluchtlog-table.flight-table thead th:nth-child(5) {
	width: 18%;
}
.vluchtlog-table.flight-table thead th:nth-child(6) {
	width: 38%;
}

.vluchtlog-table.flight-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #fffdf8;
	color: #0a0a0a;
	font-weight: var(--fw-bold, 700);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-bottom: 2px solid var(--clr-amber, #f59e0b);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
	padding: var(--sp-2) var(--sp-2);
	line-height: 1.2;
}

.vluchtlog-table.flight-table tbody td {
	border-bottom: 1px solid var(--clr-border, #e2e8f0);
	padding: var(--sp-2) var(--sp-2);
	vertical-align: middle;
	color: #0a0a0a;
	font-size: var(--fs-xs, 0.8125rem);
	line-height: 1.35;
}

.vluchtlog-table.flight-table tbody tr:nth-child(even) {
	background: rgba(248, 250, 252, 0.85);
}

.vluchtlog-table.flight-table tbody tr:hover {
	background: rgba(254, 243, 199, 0.35);
}

.vluchtlog-table.flight-table .col-date {
	font-family: var(--font-mono);
	font-weight: var(--fw-medium, 500);
	white-space: nowrap;
}

.vluchtlog-table.flight-table thead th:nth-child(1),
.vluchtlog-table.flight-table thead th:nth-child(2),
.vluchtlog-table.flight-table thead th:nth-child(3) {
	white-space: nowrap;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
}

.vluchtlog-table.flight-table tbody td.col-icao,
.vluchtlog-table.flight-table tbody td.col-date,
.vluchtlog-table.flight-table tbody td.col-reg {
	white-space: nowrap;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vluchtlog-table.flight-table tbody td.col-type {
	overflow: hidden;
	word-break: break-word;
	vertical-align: middle;
}

.vluchtlog-table.flight-table tbody td.col-operator {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vluchtlog-table.flight-table tbody td.col-icao {
	font-family: var(--font-mono);
	font-weight: var(--fw-semibold, 600);
}

.vluchtlog-table.flight-table .reg-link {
	color: var(--clr-amber, #c2410c);
	font-weight: var(--fw-semibold, 600);
}

.vluchtlog-table.flight-table .reg-link:hover {
	color: var(--clr-orange, #ea580c);
	text-decoration: underline;
}

.vluchtlog-table.flight-table .vluchtlog-icao-link {
	font-family: var(--font-mono);
	font-weight: var(--fw-semibold, 600);
	color: var(--clr-amber, #c2410c);
	text-decoration: none;
}

.vluchtlog-table.flight-table .vluchtlog-icao-link:hover {
	color: var(--clr-orange, #ea580c);
	text-decoration: underline;
}

.vluchtlog-th.sortable {
	cursor: pointer;
	user-select: none;
}

.vluchtlog-th.sortable:hover {
	color: var(--clr-orange, #ea580c);
}

.vluchtlog-th.sorted {
	color: var(--clr-amber, #d97706);
}

/* Overschrijf globale .flight-table th.sorted::after op deze pagina */
.vluchtlog-table.flight-table th.vluchtlog-th.sorted::after {
	content: none;
}

.vluchtlog-table.flight-table th.vluchtlog-th.sorted.sort-asc::after {
	content: ' ↑';
	font-size: 0.65em;
	margin-left: 0.25em;
	vertical-align: middle;
	color: var(--clr-amber, #d97706);
}

.vluchtlog-table.flight-table th.vluchtlog-th.sorted.sort-desc::after {
	content: ' ↓';
	font-size: 0.65em;
	margin-left: 0.25em;
	vertical-align: middle;
	color: var(--clr-amber, #d97706);
}

.flight-table .col-operator {
	font-size: var(--fs-xs);
	color: #0a0a0a;
}

.vluchtlog-table.flight-table td.col-remarks {
	font-size: 0.75rem;
	color: #1e293b;
	white-space: normal;
	word-break: break-word;
	line-height: 1.35;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.vluchtlog-empty {
	text-align: center;
	padding: var(--sp-8) var(--sp-4);
	color: #64748b;
}

.vluchtlog-pagination {
	margin-top: var(--sp-5);
	padding: var(--sp-4);
	border: 1px solid var(--clr-border);
	border-radius: var(--r-md);
	background: var(--clr-fuselage, #f8fafc);
}

.vluchtlog-pagination__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
}

.vluchtlog-pagination__sizes {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.vluchtlog-pagination__label {
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	color: var(--clr-amber, #b45309);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.vluchtlog-pagination__select {
	min-width: 5rem;
}

.vluchtlog-pagination__nav {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.vluchtlog-pagination__info {
	font-size: var(--fs-xs);
	color: #0a0a0a;
	min-width: 10rem;
	text-align: center;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
