/* Nea Styra Ferries — schedule display */
.nsf-wrap {
	--nsf-blue: #17337a;
	--nsf-blue-dark: #0f2456;
	--nsf-blue-light: #eef2fb;
	--nsf-border: #e3e7ef;
	--nsf-text: #1f2a44;
	--nsf-muted: #6b7488;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nsf-text);
	max-width: 1200px;
	margin: 0 auto;
}

/* Notice banner */
.nsf-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--nsf-blue-light);
	border: 1px solid #d6def3;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 24px;
}
.nsf-notice-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--nsf-blue);
	color: #fff;
	font-style: italic;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.nsf-notice strong { color: var(--nsf-blue); display: block; margin-bottom: 4px; }
.nsf-notice p { margin: 0; color: var(--nsf-text); font-size: 14px; line-height: 1.5; }

/* Day selector — horizontal scroll strip */
.nsf-daybar-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--nsf-blue);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 12px;
}
.nsf-strip-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin-bottom: 28px;
}
.nsf-days {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;          /* Firefox */
	padding: 2px;
	flex: 1 1 auto;
	cursor: grab;
	scroll-snap-type: x proximity;
}
.nsf-days::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.nsf-days.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.nsf-days.is-dragging .nsf-day { pointer-events: none; } /* don't fire clicks mid-drag */

.nsf-day {
	position: relative;
	flex: 0 0 auto;
	width: 92px;
	background: #fff;
	border: 1px solid var(--nsf-border);
	border-radius: 10px;
	padding: 12px 8px;
	cursor: pointer;
	text-align: center;
	transition: all .15s ease;
	display: flex;
	flex-direction: column;
	gap: 2px;
	scroll-snap-align: center;
	font-family: inherit;
}
.nsf-day:hover { border-color: var(--nsf-blue); }
.nsf-day.is-active {
	background: var(--nsf-blue);
	border-color: var(--nsf-blue);
	color: #fff;
}
.nsf-day-name { font-size: 13px; color: var(--nsf-muted); }
.nsf-day.is-active .nsf-day-name { color: #cdd8f4; }
.nsf-day-num { font-size: 15px; font-weight: 700; }
/* subtle marker for "today" when it isn't the selected day */
.nsf-day.is-today:not(.is-active) .nsf-day-num::after {
	content: "";
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--nsf-blue);
	margin: 3px auto 0;
}

/* Prev / next arrows */
.nsf-nav {
	flex: 0 0 auto;
	width: 38px;
	border: 1px solid var(--nsf-border);
	background: #fff;
	border-radius: 10px;
	color: var(--nsf-blue);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: all .15s ease;
}
.nsf-nav:hover { background: var(--nsf-blue); color: #fff; border-color: var(--nsf-blue); }
.nsf-nav:disabled { opacity: .35; cursor: default; }
.nsf-nav:disabled:hover { background: #fff; color: var(--nsf-blue); border-color: var(--nsf-border); }

/* Route blocks */
.nsf-route { margin-bottom: 34px; }
.nsf-route-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--nsf-blue);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
}
.nsf-ship-ico { font-size: 20px; }

/* Table */
.nsf-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--nsf-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.nsf-table thead th {
	background: #f6f8fc;
	color: var(--nsf-muted);
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	padding: 14px 18px;
	border-bottom: 1px solid var(--nsf-border);
}
.nsf-table tbody td {
	padding: 14px 18px;
	border-bottom: 1px solid #f0f2f7;
	font-size: 15px;
	vertical-align: middle;
}
.nsf-table tbody tr:last-child td { border-bottom: none; }
.nsf-table tbody tr:hover { background: #fafbfe; }
.nsf-time { font-weight: 700; color: var(--nsf-blue-dark); }
.nsf-arrow { color: var(--nsf-muted); margin: 0 4px; }
.nsf-duration { color: var(--nsf-muted); }
.nsf-duration::before { content: "🕐"; margin-right: 5px; font-size: 13px; }
.nsf-dash, .nsf-empty, .nsf-error { color: var(--nsf-muted); }
.nsf-empty, .nsf-error { padding: 20px; text-align: center; font-size: 14px; }
.nsf-error { color: #b3261e; }

/* Vessel + hover card */
.nsf-vessel-name {
	position: relative;
	color: var(--nsf-blue);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.nsf-vessel-card {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	z-index: 20;
	width: 220px;
	background: #fff;
	border: 1px solid var(--nsf-border);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(23, 51, 122, .18);
	padding: 12px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: all .15s ease;
	text-align: left;
}
.nsf-vessel-name:hover .nsf-vessel-card,
.nsf-vessel-name:focus .nsf-vessel-card {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nsf-vessel-card-photo {
	display: block;
	width: 100%;
	height: 96px;
	border-radius: 8px;
	background: linear-gradient(135deg, #dbe5fb, #eef2fb);
	margin-bottom: 8px;
	object-fit: contain;
	background-color: #fff;
}
.nsf-vessel-card-name {
	display: block;
	font-weight: 700;
	color: var(--nsf-blue-dark);
	text-decoration: none;
	font-size: 14px;
}
.nsf-vessel-card-meta {
	display: block;
	color: var(--nsf-muted);
	font-size: 12px;
	text-decoration: none;
	margin-top: 2px;
}

.nsf-footnote {
	color: var(--nsf-muted);
	font-size: 13px;
	margin-top: 8px;
}
.nsf-footnote::before { content: "ⓘ "; }

/* Loading */
.nsf-loading { padding: 24px; text-align: center; color: var(--nsf-muted); font-size: 14px; }

@media (max-width: 640px) {
	.nsf-day { width: 76px; padding: 10px 6px; }
	.nsf-table thead { display: none; }
	.nsf-table, .nsf-table tbody, .nsf-table tr, .nsf-table td { display: block; width: 100%; }
	.nsf-table tr { border-bottom: 1px solid var(--nsf-border); padding: 8px 0; }
	.nsf-table td { border: none; padding: 4px 18px; }
	.nsf-vessel-card { left: auto; right: 0; }
}
