/**
 * Kayak Deals Block — styl frontendu i edytora.
 * Prefix klas: skd- (skytravi kayak deals)
 * Paleta: navy #0A3152 / #1b2d4b, koral #f2676b, błękit #00adef
 */

/* ── Placeholder (edytor bez treści) ───────────────────────────────── */

.skd-placeholder {
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	color: #555;
}

.skd-placeholder code {
	background: #e8e8e8;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 12px;
}

/* ── Kontener bloku ─────────────────────────────────────────────────── */

.skd-wrap {
	margin: 1.5rem 0;
	clear: both;
}

/* ── Wariant ciemny (domyślna paleta granatowa) ─────────────────────── */

.skd-inner--dark {
	position: relative;
	background: linear-gradient( 135deg, #0a3152 0%, #1b2d4b 100% );
	color: #fff;
	border-radius: 8px;
	padding: 14px 18px 10px;
	box-shadow: 0 3px 14px rgba( 10, 49, 82, 0.18 );
}

/* ── Wariant jasny (białe tło) ──────────────────────────────────────── */

.skd-inner--light {
	position: relative;
	background: #fff;
	color: #0a3152;
	border-radius: 8px;
	padding: 14px 18px 10px;
	box-shadow: 0 2px 12px rgba( 10, 49, 82, 0.10 );
	border: 1px solid #dce6f0;
}

/* Backwards-compat: stary .skd-inner (bez modyfikatora) = ciemny */
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) {
	position: relative;
	background: linear-gradient( 135deg, #0a3152 0%, #1b2d4b 100% );
	color: #fff;
	border-radius: 8px;
	padding: 14px 18px 10px;
	box-shadow: 0 3px 14px rgba( 10, 49, 82, 0.18 );
}

/* ── Nagłówek (ikona, trasa, kicker) ────────────────────────────────── */

.skd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.skd-header-left {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.skd-plane-icon {
	font-size: 15px;
	color: #f2676b;
	flex-shrink: 0;
}

/* Ciemny wariant — kolory tekstu */
.skd-inner--dark .skd-route,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-route {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: rgba( 255, 255, 255, 0.85 );
	font-family: monospace, monospace;
	white-space: nowrap;
}

.skd-inner--dark .skd-kicker,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-kicker {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba( 255, 255, 255, 0.55 );
	white-space: nowrap;
	flex-shrink: 0;
}

/* Jasny wariant — kolory tekstu */
.skd-inner--light .skd-route {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #0a3152;
	font-family: monospace, monospace;
	white-space: nowrap;
}

.skd-inner--light .skd-kicker {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba( 10, 49, 82, 0.5 );
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Wyróżniony (pierwszy) termin — ciemny ──────────────────────────── */

.skd-inner--dark .skd-featured,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba( 255, 255, 255, 0.09 );
	border: 1px solid rgba( 255, 255, 255, 0.17 );
	border-radius: 6px;
	padding: 11px 14px 11px 12px;
	text-decoration: none !important;
	color: #fff !important;
	transition: background 0.18s ease, border-color 0.18s ease;
	margin-bottom: 14px;
}

.skd-inner--dark .skd-featured:hover,
.skd-inner--dark .skd-featured:focus,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured:hover,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured:focus {
	background: rgba( 255, 255, 255, 0.16 );
	border-color: rgba( 255, 255, 255, 0.3 );
	text-decoration: none !important;
	color: #fff !important;
	outline: none;
}

/* ── Wyróżniony (pierwszy) termin — jasny ───────────────────────────── */

.skd-inner--light .skd-featured {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f0f5fb;
	border: 1px solid #c8d9ec;
	border-radius: 6px;
	padding: 11px 14px 11px 12px;
	text-decoration: none !important;
	color: #0a3152 !important;
	transition: background 0.18s ease, border-color 0.18s ease;
	margin-bottom: 14px;
}

.skd-inner--light .skd-featured:hover,
.skd-inner--light .skd-featured:focus {
	background: #e3eef8;
	border-color: #a5c0da;
	text-decoration: none !important;
	color: #0a3152 !important;
	outline: none;
}

/* Ikona kalendarza */
.skd-inner--dark .skd-cal-icon,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-cal-icon {
	font-size: 13px;
	color: rgba( 255, 255, 255, 0.5 );
	flex-shrink: 0;
}

.skd-inner--dark .skd-featured:hover .skd-cal-icon,
.skd-inner--dark .skd-featured:focus .skd-cal-icon,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured:hover .skd-cal-icon,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured:focus .skd-cal-icon {
	color: rgba( 255, 255, 255, 0.8 );
}

.skd-inner--light .skd-cal-icon {
	font-size: 13px;
	color: rgba( 10, 49, 82, 0.4 );
	flex-shrink: 0;
}

.skd-inner--light .skd-featured:hover .skd-cal-icon,
.skd-inner--light .skd-featured:focus .skd-cal-icon {
	color: rgba( 10, 49, 82, 0.7 );
}

/* Data — wyróżniona */
.skd-date {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	font-family: system-ui, sans-serif;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* Pill z ceną — ta sama w obu wariantach */
.skd-price-pill {
	background: #f2676b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1.4;
}

/* Ikona zewnętrznego linku */
.skd-inner--dark .skd-ext-icon,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-ext-icon {
	margin-left: auto;
	color: rgba( 255, 255, 255, 0.4 );
	font-size: 12px;
	flex-shrink: 0;
	transition: color 0.18s;
}

.skd-inner--dark .skd-featured:hover .skd-ext-icon,
.skd-inner--dark .skd-featured:focus .skd-ext-icon,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured:hover .skd-ext-icon,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured:focus .skd-ext-icon {
	color: rgba( 255, 255, 255, 0.85 );
}

.skd-inner--light .skd-ext-icon {
	margin-left: auto;
	color: rgba( 10, 49, 82, 0.3 );
	font-size: 12px;
	flex-shrink: 0;
	transition: color 0.18s;
}

.skd-inner--light .skd-featured:hover .skd-ext-icon,
.skd-inner--light .skd-featured:focus .skd-ext-icon {
	color: rgba( 10, 49, 82, 0.7 );
}

/* ── Separator "Inne terminy" ───────────────────────────────────────── */

.skd-other-terms {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.skd-other-terms::after {
	content: '';
	flex: 1;
	height: 1px;
}

.skd-other-terms-icon {
	font-size: 10px;
	flex-shrink: 0;
}

.skd-inner--dark .skd-other-terms,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-other-terms {
	color: rgba( 255, 255, 255, 0.45 );
}

.skd-inner--dark .skd-other-terms::after,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-other-terms::after {
	background: rgba( 255, 255, 255, 0.12 );
}

.skd-inner--light .skd-other-terms {
	color: rgba( 10, 49, 82, 0.4 );
}

.skd-inner--light .skd-other-terms::after {
	background: rgba( 10, 49, 82, 0.1 );
}

/* ── Siatka pozostałych terminów ────────────────────────────────────── */

.skd-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 7px;
	margin-bottom: 8px;
}

/* Separator co 3 wiersze (6 elementów po 2 kolumny) — zajmuje pełną szerokość */
.skd-grid-sep {
	grid-column: 1 / -1;
	height: 10px;
}

/* Siatka — ciemny wariant */
.skd-inner--dark .skd-item,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item {
	display: flex;
	align-items: center;
	gap: 5px;
	background: rgba( 255, 255, 255, 0.07 );
	border: 1px solid rgba( 255, 255, 255, 0.12 );
	border-radius: 5px;
	padding: 6px 10px;
	text-decoration: none !important;
	color: rgba( 255, 255, 255, 0.82 ) !important;
	font-size: 12px;
	font-weight: 600;
	font-family: system-ui, sans-serif;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	line-height: 1.3;
}

.skd-inner--dark .skd-item:hover,
.skd-inner--dark .skd-item:focus,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item:hover,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item:focus {
	background: rgba( 255, 255, 255, 0.15 );
	border-color: rgba( 255, 255, 255, 0.28 );
	color: #fff !important;
	text-decoration: none !important;
	outline: none;
}

/* Siatka — jasny wariant */
.skd-inner--light .skd-item {
	display: flex;
	align-items: center;
	gap: 5px;
	background: #f0f5fb;
	border: 1px solid #c8d9ec;
	border-radius: 5px;
	padding: 6px 10px;
	text-decoration: none !important;
	color: #1b2d4b !important;
	font-size: 12px;
	font-weight: 600;
	font-family: system-ui, sans-serif;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	transition: background 0.15s ease, border-color 0.15s ease;
	line-height: 1.3;
}

.skd-inner--light .skd-item:hover,
.skd-inner--light .skd-item:focus {
	background: #e3eef8;
	border-color: #a5c0da;
	color: #0a3152 !important;
	text-decoration: none !important;
	outline: none;
}

/* Mini pill z ceną w siatce — ta sama w obu wariantach */
.skd-item-price {
	background: rgba( 242, 103, 107, 0.85 );
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 10px;
	white-space: nowrap;
	font-family: system-ui, sans-serif;
}

.skd-inner--dark .skd-item-ext,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item-ext {
	font-size: 9px;
	color: rgba( 255, 255, 255, 0.3 );
	flex-shrink: 0;
}

.skd-inner--dark .skd-item:hover .skd-item-ext,
.skd-inner--dark .skd-item:focus .skd-item-ext,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item:hover .skd-item-ext,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item:focus .skd-item-ext {
	color: rgba( 255, 255, 255, 0.6 );
}

.skd-inner--light .skd-item-ext {
	font-size: 9px;
	color: rgba( 10, 49, 82, 0.25 );
	flex-shrink: 0;
}

.skd-inner--light .skd-item:hover .skd-item-ext,
.skd-inner--light .skd-item:focus .skd-item-ext {
	color: rgba( 10, 49, 82, 0.55 );
}

/* ── Stopka — watermark ─────────────────────────────────────────────── */

.skd-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
}

.skd-inner--dark .skd-watermark,
.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-watermark {
	font-size: 10px;
	font-style: italic;
	color: rgba( 255, 255, 255, 0.28 );
	letter-spacing: 0.04em;
	user-select: none;
}

.skd-inner--light .skd-watermark {
	font-size: 10px;
	font-style: italic;
	color: rgba( 10, 49, 82, 0.28 );
	letter-spacing: 0.04em;
	user-select: none;
}

/* ── Tryb single (jeden termin) — usuń margines pod featured ───────── */

.skd-wrap--single .skd-featured {
	margin-bottom: 0;
}

/* ── Responsywność ──────────────────────────────────────────────────── */

@media ( max-width: 540px ) {
	.skd-grid {
		grid-template-columns: 1fr;
	}

	.skd-inner--dark,
	.skd-inner--light,
	.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) {
		padding: 12px 14px 8px;
	}

	.skd-date {
		font-size: 13px;
	}

	.skd-inner--dark .skd-featured,
	.skd-inner--light .skd-featured,
	.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-featured {
		padding: 9px 12px 9px 10px;
		gap: 8px;
	}

	.skd-inner--dark .skd-item,
	.skd-inner--light .skd-item,
	.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-item {
		font-size: 11px;
		padding: 5px 8px;
	}

	.skd-price-pill {
		font-size: 11px;
		padding: 2px 8px;
	}

	.skd-inner--dark .skd-kicker,
	.skd-inner--light .skd-kicker,
	.skd-inner:not(.skd-inner--light):not(.skd-inner--dark) .skd-kicker {
		display: none;
	}
}

@media ( max-width: 380px ) {
	.skd-date {
		font-size: 12px;
	}
}
