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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.5;
}

nav {
    background: #4c1d95;
    padding: 0 24px;
}
.nav-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 8px;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f5c907;
    border-radius: 1px;
    transition: transform 0.2s;
}

/* Mobile menu - hidden on desktop */
.nav-mobile {
    display: none;
}
.nav-mobile-link {
    display: block;
    color: #f5c907;
    text-decoration: none;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile-link:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 8px;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    nav { padding: 0 16px; }
    .nav-links { display: none !important; }
    .hamburger { display: flex; }
    .nav-mobile.open {
        display: block;
        padding-bottom: 8px;
    }
    .logo-img { height: 36px; }
}

nav .logo {
    color: #f5c907;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-img {
    height: 48px;
    width: auto;
}

.nav-links { display: flex; gap: 4px; }
.nav-link {
    color: #f5c907;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}
.nav-link:hover { background: rgba(255,255,255,0.2); }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-btn--active { color: #f5c907; background: rgba(255,255,255,0.15); }

main {
    max-width: 1200px;
    width: 100%;
    margin: 24px auto;
    flex: 1;
    padding: 0 16px;
}

h1 { font-size: 1.6rem; margin-bottom: 16px; }
h2 { font-size: 1.2rem; margin-bottom: 12px; }

/* Breadcrumbs */
.subtitle { color: #666; margin-bottom: 20px; }
.subtitle a { color: #7c3aed; text-decoration: none; }
.subtitle a:hover { text-decoration: underline; }

/* Global status bar */
.global-status {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.global-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.global-badge--running {
    background: #16a34a;
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}
.global-badge--progress {
    background: #e5e7eb;
    color: #555;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 16px 16px;
}
.hero-slider .hero-deal {
    display: none;
    animation: heroFadeIn 0.5s ease;
}
.hero-slider .hero-deal--active {
    display: block;
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -42px;
    padding-bottom: 10px;
    position: relative;
    z-index: 2;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot--active {
    background: #f5c907;
}

/* Hero deal */
.hero-deal {
    background: #7c3aed;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
}
.hero-deal-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 4px;
}
.hero-deal-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.hero-deal-route { font-size: 1.2rem; font-weight: 600; }
.hero-deal-dates { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }
.hero-deal-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #fde047;
    color: #3b0764;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
}
.hero-deal-cta:hover { background: #ffd60a; }

/* Home grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 16px;
}

.home-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s;
}
.home-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.home-card-header {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: #fff;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.home-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.home-card-title:hover { text-decoration: underline; }
.home-card-iata {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.home-card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 4px;
}

.home-card-body { padding: 12px 16px 16px; }

.home-deals { display: flex; flex-direction: column; }

.home-deal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.home-deal-row:last-child { border-bottom: none; }
.home-deal-row:hover { background: #f8f9fa; margin: 0 -16px; padding: 8px 16px; border-radius: 4px; }

.home-deal-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.home-deal-img--placeholder {
    background: linear-gradient(135deg, #7c3aed, #16a34a);
    border-radius: 6px;
}

.home-deal-info { flex: 1; min-width: 0; }
.home-deal-city { font-weight: 600; font-size: 0.95rem; display: block; }
.home-deal-dates { font-size: 0.78rem; color: #666; }
.home-deal-price {
    font-weight: 700;
    font-size: 1rem;
    color: #0b8a0b;
    white-space: nowrap;
}

.home-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0; padding-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.home-card-link {
    color: #7c3aed;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.home-card-link:hover { text-decoration: underline; }

/* Scan status */
.scan-info { font-size: 0.75rem; color: #555; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Destinations filters */
.dest-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dest-country-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

/* Country sections */
.country-section { margin-bottom: 28px; }
.country-name {
    font-size: 1.1rem;
    color: #7c3aed;
    border-bottom: 2px solid #7c3aed;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.origin-tag {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 4px;
}

/* Origin picker — airport selection */
.origin-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-wrap: wrap;
}
.origin-picker-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    white-space: nowrap;
}
.origin-picker-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.origin-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
    user-select: none;
}
.origin-option:hover {
    border-color: #7c3aed;
    background: #eff6ff;
}
.origin-option input:checked + .origin-option-text {
    color: #7c3aed;
    font-weight: 600;
}
.origin-option:has(input:checked) {
    border-color: #7c3aed;
    background: #dbeafe;
}
.origin-option input {
    accent-color: #7c3aed;
    margin: 0;
}
.origin-option--multi-toggle {
    border-style: dashed;
    background: #f1f5f9;
}
.origin-option--multi-toggle:has(input:checked) {
    border-color: #7c3aed;
    background: #dbeafe;
    border-style: solid;
}
.calendar-body {
    transition: opacity 0.2s;
}
.cal-empty-msg {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 1.1rem;
}

/* Sort bar */
.sort-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #666;
}
.sort-btn {
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #7c3aed;
    background: #e5e7eb;
    font-size: 0.85rem;
}
.sort-btn:hover { background: #d1d5db; }
.sort-btn--active {
    background: #7c3aed;
    color: #fff;
}

/* City page — destination grid */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.dest-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.dest-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.15); }

.dest-card-img {
    height: 100px;
    background-size: cover;
    background-position: center;
}
.dest-card-img--placeholder {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.dest-card-body { padding: 12px 16px 16px; }
.dest-city { font-weight: 600; font-size: 1.05rem; }
.dest-country { color: #666; font-size: 0.85rem; margin-bottom: 8px; }
.dest-price { font-weight: 700; color: #0b8a0b; }
.dest-price--na { color: #aaa; font-weight: 400; }
.dest-flights { color: #666; font-size: 0.8rem; margin-top: 4px; }

.dest-origins { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dest-origin-price {
    font-size: 0.75rem;
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 3px;
    color: #333;
}
.dest-origin-price--best {
    background: #16a34a;
    color: #fff;
    font-weight: 600;
}

.dest-card--multi { border-left: 3px solid #7c3aed; }
.dest-airports { display: flex; gap: 6px; margin-top: 0; padding-top: 8px; }
.dest-airport-link {
    background: #7c3aed;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}
.dest-airport-link:hover { background: #6d28d9; }
.dest-airport-link--all { background: #15803d; }
.dest-airport-link--all:hover { background: #166534; }

/* Destination airport switcher */
.dest-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}
.dest-switch-link {
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #7c3aed;
}
.dest-switch-link:hover { background: #d1d5db; }
.dest-switch-link--active { background: #7c3aed; color: #fff; }
.dest-switch-link--all { background: #16a34a; color: #fff; }
.dest-switch-link--all:hover { background: #15803d; }

/* Calendar layout */
.cal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.cal-legend { display: flex; gap: 16px; font-size: 0.85rem; color: #666; }
.cal-legend-item { display: flex; align-items: center; gap: 4px; }
.cal-legend-box { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.cal-legend-box--top { background: #7c3aed; }
.cal-legend-box--cheap { background: linear-gradient(135deg, #22c55e, #4ade80); }
.cal-legend-box--mid { background: linear-gradient(135deg, #eab308, #facc15); }
.cal-legend-box--expensive { background: linear-gradient(135deg, #dc2626, #ef4444); }
.cal-view-toggle {
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.cal-view-toggle:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #eff6ff;
}

/* Heatmap calendar */
.cal-day--heatmap {
    text-align: center;
    padding: 4px 2px;
    cursor: default;
    border-radius: 3px;
    min-height: 48px;
    vertical-align: top;
    background: #f8fafc;
}
.cal-heatmap-flight--best {
    background: #7c3aed !important;
    color: #fff !important;
    border-radius: 4px;
}
.cal-heatmap-flight--best .cal-heatmap-label,
.cal-heatmap-flight--best .cal-heatmap-hour {
    color: rgba(255,255,255,0.85) !important;
    opacity: 1 !important;
}
.cal-day--heatmap:hover .cal-heatmap-flights { opacity: 1 !important; }
.cal-day--heatmap .cal-day-num {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    line-height: 1;
}
.cal-heatmap-flights {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 1px;
}
.cal-heatmap-flight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 3px;
    padding: 1px 2px;
}
.cal-heatmap-price {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.cal-heatmap-label {
    font-size: 0.5rem;
    opacity: 0.75;
    font-weight: 600;
    line-height: 1;
}
.cal-heatmap-hour {
    font-size: 0.55rem;
    opacity: 0.8;
    line-height: 1;
}
@media (min-width: 900px) {
    .cal-day--heatmap { min-height: 60px; padding: 4px 2px; }
    .cal-heatmap-price { font-size: 0.9rem; }
    .cal-day--heatmap .cal-day-num { font-size: 0.75rem; }
    .cal-heatmap-hour { font-size: 0.6rem; }
    .cal-heatmap-label { font-size: 0.55rem; }
}

.cal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.cal-col { min-width: 0; }

.cal-month {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cal-month-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px;
}
.cal-direction { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-month-name { font-weight: 700; font-size: 1.05rem; }
.cal-month-range { font-size: 0.8rem; color: #666; }

.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-table th {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    padding: 4px 2px;
    text-align: center;
}

.cal-empty { padding: 4px; }

.cal-day {
    text-align: center;
    padding: 3px 1px;
    vertical-align: top;
    min-height: 52px;
    border-radius: 4px;
    position: relative;
}

.cal-day-num { font-size: 0.7rem; color: #666; line-height: 1; }

.cal-flight { line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 1px; }
.cal-flight-price { font-size: 0.7rem; font-weight: 600; }
.cal-flight-label { font-size: 0.4rem; color: rgba(0,0,0,0.35); line-height: 1; }
.cal-flight--cheapest .cal-flight-label,
.cal-flight--expensive .cal-flight-label { color: rgba(255,255,255,0.8); }
.cal-flight-hour { font-size: 0.4rem; color: rgba(255,255,255,0.8); display: none; }

/* Desktop: bigger calendar, show hours */
@media (min-width: 900px) {
    .cal-day { min-height: 60px; padding: 4px 3px; }
    .cal-flight-hour { display: inline; font-size: 0.6rem; }
    .cal-flight-label { display: inline; margin-right: 1px; font-size: 0.6rem; }
    .cal-flight-price { font-size: 0.8rem; }
    .cal-day-num { font-size: 0.75rem; }
}

/* No-price day hours in dark text */
.cal-day:not(.cal-day--has-price) .cal-flight-hour { color: #aaa; }

/* Days with flights — light background */
.cal-day--has-flights {
    background: #e8eef7;
}
.cal-day--has-flights .cal-day-num { color: #444; }

/* Individual flight color badges */
.cal-flight--cheapest {
    background: #16a34a !important;
    color: #fff !important;
    border-radius: 3px;
    padding: 1px 3px;
    margin: 1px 0;
}
.cal-flight--cheapest .cal-flight-price { color: #fff; }
.cal-flight--cheapest .cal-flight-label,
.cal-flight--cheapest .cal-flight-hour { color: rgba(255,255,255,0.7) !important; }

.cal-flight--expensive {
    background: #dc2626 !important;
    color: #fff !important;
    border-radius: 3px;
    padding: 1px 3px;
    margin: 1px 0;
}
.cal-flight--expensive .cal-flight-price { color: #fff; }
.cal-flight--expensive .cal-flight-label,
.cal-flight--expensive .cal-flight-hour { color: rgba(255,255,255,0.7) !important; }

.cal-day--past { opacity: 0.4; }

/* No flight days — lighter than days with flights */
.cal-day:not(.cal-day--has-flights):not(.cal-empty) {
    background: #f3f4f6;
    color: #ccc;
}
.cal-day:not(.cal-day--has-flights):not(.cal-empty) .cal-day-num {
    color: #ccc;
}

/* Deals page */
.deals-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.deals-suggestion {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    transition: opacity 0.15s;
}
.deals-suggestion:hover { opacity: 0.85; }

.deals-filters { margin-bottom: 20px; padding-top: 4px; }
.deals-filter-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.deals-filter-group { display: flex; flex-direction: column; gap: 3px; }
.deals-filter-group--checkbox { justify-content: flex-end; padding-bottom: 4px; }
.deals-filter-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}
.deals-filter-bar select, .deals-search {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}
.deals-search {
    min-width: 150px;
    cursor: text;
    border-right: none;
    border-radius: 6px 0 0 6px;
}
.deals-search-wrap { display: flex; }
.deals-search-btn {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: #7c3aed;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}
.deals-search-btn:hover { background: #6d28d9; }

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
}
.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}
.autocomplete-item:hover {
    background: #eff6ff;
    color: #7c3aed;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.deal-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.deal-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.15); }

.deal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0b8a0b;
    margin-bottom: 2px;
}
.deal-route { margin-bottom: 2px; }
.deal-dest { font-weight: 600; font-size: 1.05rem; }
.deal-country-label { color: #666; font-size: 0.8rem; margin-left: 4px; }

.deal-origin-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    flex-wrap: wrap;
    min-height: 28px;
}
.deal-origin-tag {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.deal-nights-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.deal-onsite-line { margin-top: 4px; margin-bottom: 8px; }
.deal-onsite {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.deal-flights {
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
    margin-top: auto;
}
.deal-flight-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    line-height: 1.8;
}
.deal-arrow { color: #666; font-size: 0.8rem; min-width: 14px; }
.deal-flight-date { color: #333; font-weight: 500; }
.deal-flight-arr { color: #666; font-size: 0.78rem; }
.deal-flight-price { margin-left: auto; color: #0b8a0b; font-weight: 600; text-align: right; line-height: 1.2; }
.deal-flight-price-orig { color: #6b7280; font-size: 0.7rem; font-weight: 400; display: block; text-align: right; }

.deal-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.deal-weekend-badge {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.deal-card--weekend { border-left: 3px solid #7c3aed; }
.deal-card--multi { border-left: 3px solid #ea580c; }
.deal-card--weekend.deal-card--multi { border-left: 3px solid #ea580c; }

.deal-mix-badge {
    display: inline-block;
    background: #c2410c;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
    line-height: 1.4;
    cursor: help;
}
.deal-return-tag {
    display: inline-block;
    background: #fed7aa;
    color: #9a3412;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
}

.deals-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
}
.deals-checkbox input { cursor: pointer; }

/* --- Combined Routes (Trasy łączone) --- */
.cr-filters {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cr-filter-group { display: flex; flex-direction: column; gap: 6px; }
.cr-filter-label { font-size: 0.82rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.cr-group-picker, .cr-origin-picker, .cr-stay-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cr-group-option { cursor: pointer; }
.cr-group-option input { display: none; }
.cr-group-text {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: #f3f4f6;
    color: #333;
    border: 2px solid transparent;
    transition: all 0.15s;
}
.cr-group-option input:checked + .cr-group-text {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.cr-group-text:hover { border-color: #7c3aed; }
.cr-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cr-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid #e5e7eb;
    transition: box-shadow 0.15s;
}
.cr-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
.cr-card--best { border-left-color: #7c3aed; background: linear-gradient(135deg, #faf5ff, #fff 40%); }
.cr-card--mix { border-left-color: #ea580c; }
.cr-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.cr-total-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #7c3aed;
}
.cr-card--best .cr-total-price { color: #4c1d95; }
.cr-total-label { font-size: 0.82rem; color: #666; }
.cr-nights-badge {
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}
.cr-openjaw-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.cr-card-flights { margin-bottom: 10px; }
.cr-flight-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.cr-arrow { font-size: 1.1rem; width: 20px; text-align: center; }
.cr-arrow--out { color: #7c3aed; }
.cr-arrow--ret { color: #0891b2; }
.cr-flight-route { font-weight: 600; font-size: 0.85rem; color: #1e293b; flex: 1; }
.cr-flight-price { font-weight: 700; color: #0b8a0b; font-size: 0.92rem; }
.cr-flight-detail {
    font-size: 0.8rem;
    color: #666;
    padding-left: 28px;
    margin-bottom: 4px;
}
.cr-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cr-book-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: #f3f4f6;
    color: #4c1d95;
    transition: all 0.15s;
}
.cr-book-btn:hover { background: #7c3aed; color: #fff; }
@media (max-width: 600px) {
    .cr-card { padding: 12px 14px; }
    .cr-total-price { font-size: 1.2rem; }
    .cr-flight-route { font-size: 0.82rem; }
    .cr-book-btn { font-size: 0.78rem; padding: 5px 10px; }
}

/* Filter row */
.cr-filter-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.cr-filter-row .cr-filter-group { flex: 1; min-width: 200px; }

/* Direction groups */
.cr-directions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 0; padding-top: 8px;
}
.cr-directions--4 { grid-template-columns: repeat(4, 1fr); }
.cr-directions--3 { grid-template-columns: repeat(3, 1fr); }
.cr-directions--1 { grid-template-columns: 1fr; }
.cr-direction-group { min-width: 0; }
.cr-direction-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #7c3aed;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cr-dir-label { display: flex; align-items: center; gap: 4px; }
.cr-dir-arrow { color: #7c3aed; font-size: 1rem; }
@media (max-width: 1200px) {
    .cr-directions--4 { grid-template-columns: repeat(2, 1fr); }
    .cr-directions--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .cr-directions { grid-template-columns: 1fr !important; gap: 16px; }
    .cr-filter-row { flex-direction: column; gap: 12px; }
}

/* Price disclaimer */
.price-disclaimer {
    font-size: 0.78rem;
    color: #475569;
    margin: 12px 0 8px;
    line-height: 1.4;
}

.cr-flight-row .cr-price-col { display: flex !important; flex-direction: column !important; align-items: center; gap: 0; min-width: 80px; }
.cr-orig-price { color: #6b7280 !important; font-size: 0.7rem; font-weight: 400; line-height: 1; display: block; }

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 32px 20px 24px;
    max-width: 600px;
    margin: 0 auto;
}
.hero-h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}
.hero-sub {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.hero-cta {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.hero-cta:hover {
    background: #6d28d9;
}

/* --- Footer --- */
.site-footer {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0;
    flex-wrap: wrap;
    background: #eee;
    color: #555;
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;

}
.site-footer svg { color: #777; }
.footer-sep { color: #555; }
.footer-social { color: #666; display: inline-flex; align-items: center; transition: color .2s; }
.footer-social:hover { color: #333; }
.footer-social--disabled { color: #999; cursor: default; opacity: .6; }
.footer-social--disabled:hover { color: #999; }

/* Airline badges */
.airline-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}
.airline-badge.airline-fr {
    background: #073590;
    color: #f7c948;
}
.airline-badge.airline-w6 {
    background: #e40084;
    color: #fff;
}
.airline-badge.airline-mix {
    background: linear-gradient(90deg, #073590 50%, #e40084 50%);
    color: #fff;
}

/* Airline badges on dest cards - top right corner */
.dest-card {
    position: relative;
}
.dest-card-airlines {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    gap: 3px;
}

/* Deal booking buttons */
.deal-booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0; padding-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.deal-book-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.deal-book-btn:hover { opacity: 0.85; }
.deal-book-btn--fr {
    background: #073590;
    color: #f7c948;
}
.deal-book-btn--w6 {
    background: #e40084;
    color: #fff;
}
.deal-card {
    cursor: default;
}

/* Rotate phone overlay for calendar pages */
.rotate-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    padding: 20px;
}
.rotate-overlay .rotate-icon {
    font-size: 48px;
    animation: rotate-nudge 2s ease-in-out infinite;
}
.rotate-overlay .rotate-text {
    font-weight: 600;
    max-width: 260px;
    line-height: 1.5;
}
.rotate-overlay .rotate-dismiss {
    margin-top: 12px;
    padding: 8px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}
.rotate-overlay .rotate-dismiss:hover {
    background: rgba(255,255,255,0.1);
}
@keyframes rotate-nudge {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(90deg); }
    75% { transform: rotate(0deg); }
}
@media (orientation: landscape) {
    .rotate-overlay { display: none !important; }
}
@media (orientation: portrait) and (max-width: 768px) {
    .rotate-overlay.active { display: flex; }
}

/* Calendar mobile: hide hours, labels, simplify */
@media (max-width: 768px) {
    .cal-flight-hour, .cal-heatmap-hour,
    .cal-flight-label, .cal-heatmap-label {
        display: none !important;
    }
    .cal-flight-price, .cal-heatmap-price {
        font-size: 11px;
    }
    .cal-flight, .cal-heatmap-flight {
        padding: 1px 2px;
        margin: 1px 0;
    }
    .cal-table th, .cal-table td {
        padding: 2px;
        font-size: 11px;
    }
    .cal-day-num {
        font-size: 10px;
    }
    .airline-badge {
        font-size: 7px !important;
        padding: 0 2px !important;
    }
}

/* ====== DARK MODE ====== */
body.dark {
    background: #0f0f0f;
    color: #e0e0e0;
}
.dark .subtitle { color: #777; }
.dark .subtitle a { color: #a78bfa; }
.dark .scan-info { color: #666; }
.dark .price-disclaimer { color: #666; }

/* Cards */
.dark .dest-card,
.dark .deal-card,
.dark .cr-card,
.dark .city-card {
    background: #1a1a2e;
    border-color: #2a2a3e;
    color: #e0e0e0;
}
.dark .dest-card:hover,
.dark .deal-card:hover { border-color: #7c3aed; }

.dark .dest-card-body { color: #e0e0e0; }
.dark .dest-country { color: #777; }
.dark .dest-price { color: #22c55e; }
.dark .dest-flights { color: #666; }

/* Deal cards */
.dark .deal-price { color: #22c55e; }
.dark .deal-dest { color: #e0e0e0; }
.dark .deal-country-label { color: #94a3b8; }
.dark .deal-origin-tag { background: #2a2a3e; color: #a78bfa; border-color: #3a3a4e; }
.dark .deal-return-tag { background: #2a2a3e; color: #f59e0b; border-color: #3a3a4e; }
.dark .deal-nights-badge { background: #1e3a5f; color: #60a5fa; border-color: #2a4a6f; }
.dark .deal-onsite { background: #78350f; color: #fcd34d; }
.dark .deal-flight-row { color: #e5e7eb; }
.dark .deal-flight-date { color: #e5e7eb; font-weight: 500; }
.dark .deal-flight-arr { color: #cbd5e1; }
.dark .deal-flight-price { color: #22c55e; }
.dark .deal-flight-price-orig { color: #94a3b8; }
.dark .deal-arrow { color: #a78bfa; }
.dark .deal-booking-buttons { border-color: #2a2a3e; }

/* Combined routes */
.dark .cr-card { background: #1a1a2e; border-color: #2a2a3e; }
.dark .cr-card--best { border-color: #22c55e; }
.dark .cr-total-price { color: #22c55e; }
.dark .cr-flight-price { color: #22c55e; }
.dark .cr-flight-route { color: #e0e0e0; }
.dark .cr-flight-detail { color: #777; }
.dark .cr-orig-price { color: #666; }
.dark .cr-book-btn { background: #1a1a2e; border-color: #3a3a4e; color: #a78bfa; }
.dark .cr-book-btn:hover { background: #2a2a3e; }

/* Filters */
.dark select,
.dark input[type="text"] {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #3a3a4e;
}
.dark .deals-search { background: #1a1a2e; color: #e0e0e0; border-color: #3a3a4e; }
.dark .dest-country-select { background: #1a1a2e; color: #e0e0e0; border-color: #3a3a4e; }
.dark .sort-btn { background: #1a1a2e; color: #777; border-color: #3a3a4e; }
.dark .sort-btn--active { background: #7c3aed; color: #fff; }

/* Calendar */
.dark .cal-table { border-color: #2a2a3e; }
.dark .cal-table th { color: #666; border-color: #2a2a3e; }
.dark .cal-table td { border-color: #2a2a3e; }
.dark .cal-day { background: #1a1a2e; }
.dark .cal-day--past { opacity: 0.3; }
.dark .cal-day-num { color: #666; }
.dark .cal-flight { background: #1e3a1e; }
.dark .cal-flight--cheapest { background: #1e4a1e; }
.dark .cal-flight--expensive { background: #4a1e1e; }
.dark .cal-flight-price { color: #e0e0e0; }
.dark .cal-heatmap-flight { background: #1e3a1e; }
.dark .cal-legend { color: #666; }

/* Dest card image overlay */
.dark .dest-card-img { opacity: 0.85; }

/* Filter groups */
.dark .cr-filters { background: #1a1a2e; border-color: #2a2a3e; }
.dark .cr-filter-label { color: #666; }
.dark .origin-option { color: #ccc; }
.dark .origin-option-text { color: #ccc; }
.dark .cr-stay-picker { border-color: #2a2a3e; }
.dark .cr-group-option { border-color: #2a2a3e; }

/* Deals suggestions */
.dark .deals-suggestion { background: #2a2a3e; color: #a78bfa; }
.dark .deals-suggestion:hover { background: #3a3a4e; }

/* Direction groups */
.dark .cr-direction-title { color: #e0e0e0; border-color: #2a2a3e; }
.dark .cr-dir-label { color: #a78bfa; }

/* Mix badge */
.dark .deal-mix-badge { background: #ea580c; }
.dark .deal-weekend-badge { background: #2563eb; }

/* Footer */
.dark .site-footer { background: #0f172a; border-top: 1px solid #2a2a3e; color: #9ca3af; }
.dark .footer-sep { color: #374151; }
.dark .footer-link { color: #9ca3af; }
.dark .footer-link:hover { color: #a78bfa; }
.dark .site-footer svg { color: #9ca3af; }
.dark .footer-social { color: #9ca3af; }
.dark .footer-social:hover { color: #e0e0e0; }

/* Home cards */
.dark .home-card { background: #1a1a2e; border-color: #2a2a3e; }
.dark .home-card-city { color: #e0e0e0; }
.dark .home-card-stats span { color: #777; }
.dark .home-card-price { color: #22c55e; }

/* Country sections */
.dark .country-name { color: #a78bfa; border-color: #2a2a3e; }

/* Autocomplete */
.dark .autocomplete-list { background: #1a1a2e; border-color: #3a3a4e; }
.dark .autocomplete-item { color: #e0e0e0; }
.dark .autocomplete-item:hover { background: #2a2a3e; }

/* Hero section */
.dark .hero { background: #1a1a2e; }

/* Rotate overlay already dark */

/* Scrollbar */
.dark ::-webkit-scrollbar { background: #1a1a2e; }
.dark ::-webkit-scrollbar-thumb { background: #3a3a4e; }

/* ====== DARK MODE FIXES ====== */

/* Origin picker (radio/checkbox buttons) */
.dark .origin-option {
    background: #1a1a2e;
    border-color: #3a3a4e;
}
.dark .origin-option input:checked + .origin-option-text {
    background: #7c3aed;
    color: #fff;
}
.dark .origin-picker,
.dark .cr-stay-picker {
    background: #1a1a2e;
}

/* Filter sections / boxes */
.dark .dest-filters,
.dark .deals-filters,
.dark .deals-filter-bar {
    background: #0f0f0f;
}
.dark .deals-filter-label,
.dark .cr-filter-label {
    color: #555;
}

/* Checkbox and radio in dark */
.dark input[type="checkbox"],
.dark input[type="radio"] {
    accent-color: #7c3aed;
}

/* Deals filter bar */
.dark .deals-filter-group select,
.dark .deals-filter-group input {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #3a3a4e;
}

/* Price labels on dest cards */
.dark .dest-origin-price {
    background: #2a2a3e;
    color: #ccc;
    border-color: #3a3a4e;
}
.dark .dest-origin-price--best {
    background: #1e4a1e;
    color: #22c55e;
}

/* Calendar month title */
.dark .cal-month-title,
.dark .cal-month-header {
    color: #e0e0e0;
}
.dark .cal-price-range {
    color: #666;
}

/* Hero section on home */
.dark .hero-section,
.dark .hero {
    background: #1a1a2e;
}
.dark .hero h1,
.dark .hero h2,
.dark .hero-title {
    color: #f5c907;
}
.dark .hero-sub,
.dark .hero p {
    color: #ccc;
}

/* Home stats */
.dark .home-stats {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

/* CTA button */
.dark .cta-btn,
.dark .hero-cta {
    background: #7c3aed;
    color: #fff;
}

/* Best deal card on home */
.dark .best-deal,
.dark .deal-of-day {
    background: #2a1a4e;
    border-color: #7c3aed;
}

/* Slider/carousel */
.dark .hero-slider,
.dark .hero-slide {
    background: #1a1a2e;
}

/* Combined routes - filter group boxes */
.dark .cr-filter-group {
    background: #1a1a2e;
    border-color: #2a2a3e;
}
.dark .cr-group-option {
    background: #1a1a2e;
    border-color: #3a3a4e;
    color: #ccc;
}
.dark .cr-group-text {
    color: #ccc;
}
.dark input[name="group"]:checked + .cr-group-text {
    color: #fff;
}

/* Combined routes nights picker */
.dark .cr-nights-badge {
    background: #1e3a5f;
    color: #60a5fa;
}

/* Destination calendar picker */
.dark .origin-picker {
    background: #1a1a2e;
    border-color: #2a2a3e;
}
.dark .origin-picker label {
    color: #ccc;
}
.dark .picker-label {
    color: #ccc;
}

/* Calendar table borders */
.dark .cal-table,
.dark .cal-table th,
.dark .cal-table td {
    border-color: #2a2a3e;
}

/* Calendar direction labels */
.dark .cal-direction {
    color: #a78bfa;
}

/* Weekend badge */
.dark .deal-weekend-badge {
    background: #1e40af;
}

/* Checkbox label text */
.dark .deals-checkbox,
.dark .deals-checkbox label {
    color: #ccc;
}

/* Search button */
.dark .deals-search-btn {
    background: #7c3aed;
}

/* H1, H2 headings */
.dark h1 { color: #f0f0f0; }
.dark h2 { color: #a78bfa; }

/* Disclaimer text */
.dark .price-disclaimer { color: #666; }

/* Links in content */
.dark a { color: #a78bfa; }
.dark a:hover { color: #c4b5fd; }
/* But not nav links */
.dark .nav-link, .dark .nav-mobile-link { color: #f5c907; }
.dark .logo { color: #f5c907; }

/* Dark mode: global status bar */
.dark .global-status { background: #1a1a2e; border-color: #2a2a3e; }
.dark .global-badge { background: #1a1a2e; color: #ccc; border-color: #2a2a3e; }
.dark .global-badge--progress { background: #1a1a2e; color: #22c55e; }

/* Dark mode: calendar month containers */
.dark .cal-month,
.dark .cal-container,
.dark .cal-wrapper,
.dark .calendar-month,
.dark [class*=cal] {
    background-color: inherit;
    color: inherit;
}

/* Calendar boxes with white bg */
.dark .cal-table { background: #1a1a2e; }
.dark .cal-day { background: #1a1a2e; }
.dark .cal-legend { color: #666; }

/* Any remaining white boxes in calendar area */
.dark main div {
    border-color: #2a2a3e;
}

/* Dest calendar full page */
.dark .dest-cal-section,
.dark .dest-calendar {
    background: #0f0f0f;
}

/* Toggle button */
.dark .toggle-btn,
.dark .view-toggle {
    background: #1a1a2e;
    color: #ccc;
    border-color: #3a3a4e;
}

/* Price range text */
.dark .cal-price-range,
.dark .cal-month-range {
    color: #666;
}

/* Zaawansowany button */
.dark button,
.dark .btn {
    background: #1a1a2e;
    color: #ccc;
    border-color: #3a3a4e;
}
.dark button:hover {
    background: #2a2a3e;
}
/* But keep colored buttons */
.dark .cta-btn,
.dark .hero-cta,
.dark .cr-book-btn,
.dark .deal-book-btn--fr,
.dark .deal-book-btn--w6,
.dark .deals-search-btn {
    color: inherit;
}

/* Dark mode: combined routes radio/checkbox labels */
.dark .origin-option,
.dark label.origin-option {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}
.dark input:checked + .origin-option-text,
.dark input:checked + span {
    background: #7c3aed;
    color: #fff;
}

/* Direction group headers */
.dark .cr-direction-group {
    background: #1a1a2e;
    border-color: #2a2a3e;
}
.dark .cr-direction-title {
    background: #1a1a2e;
    border-color: #2a2a3e;
}
.dark .cr-dir-label {
    color: #a78bfa;
}

/* Filter section container */
.dark .cr-filters {
    background: #1a1a2e !important;
    border-color: #2a2a3e !important;
}

/* All form labels in dark */
.dark label {
    color: #ccc;
}

/* Dark mode: calendar cells - force dark on ALL states */
.dark td,
.dark .cal-table td,
.dark .cal-table th {
    background: #1a1a2e !important;
    color: #ccc;
}
.dark .cal-table td.cal-day--past {
    background: #111 !important;
    opacity: 0.4;
}

/* Calendar header row (Pn Wt Sr Cz Pt So Nd) */
.dark .cal-table thead th {
    background: #0f0f1a !important;
    color: #666;
}

/* Weekend columns slightly different */
.dark .cal-table td:nth-child(6),
.dark .cal-table td:nth-child(7) {
    background: #1f1f2e !important;
}

/* Selected origin highlight fix */
.dark .origin-selected,
.dark input[type=radio]:checked + span,
.dark input[type=radio]:checked + .origin-option-text {
    background: #7c3aed !important;
    color: #fff !important;
}

/* Calendar day numbers */
.dark .cal-day-num {
    color: #666;
}

/* Empty calendar days */
.dark td:empty,
.dark .cal-table td:not(.cal-day) {
    background: #0f0f1a !important;
}

/* Dark mode: origin picker FORCE */
.dark .origin-picker,
.dark .origin-picker--multi {
    background: #1a1a2e !important;
    border-color: #2a2a3e !important;
}
.dark .origin-picker-label {
    color: #999 !important;
}
.dark .origin-picker-options label {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}

/* Dark mode: combined routes group buttons (Porto & Lizbona etc) */
.dark .cr-group-option,
.dark .cr-group-picker label,
.dark label.cr-group-option {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}
.dark .cr-group-option input:checked + .cr-group-text,
.dark .cr-group-option input:checked + span {
    background: #7c3aed !important;
    color: #fff !important;
}

/* Combined routes origin checkboxes */
.dark .cr-origin-picker label,
.dark #origin-picker label {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}
.dark .cr-origin-picker input:checked + span,
.dark #origin-picker input:checked + span {
    background: #7c3aed !important;
    color: #fff !important;
}

/* Stay picker (nights) */
.dark .cr-stay-picker label,
.dark .cr-stay-picker .origin-option {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}

/* ALL label elements inside cr-filters */
.dark .cr-filters label {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}
.dark .cr-filters input:checked + span,
.dark .cr-filters input:checked + .cr-group-text,
.dark .cr-filters input:checked + .origin-option-text {
    background: #7c3aed !important;
    color: #fff !important;
}

/* Section labels like DESTYNACJA, LECI Z, POBYT */
.dark .cr-filter-label {
    color: #888 !important;
}

/* Dark mode: FORCE dark on specific elements with light backgrounds */
.dark .cr-group-text {
    background: #2a2a3e !important;
    color: #ccc !important;
    border-color: #3a3a4e !important;
}
.dark .cr-group-option input:checked + .cr-group-text {
    background: #7c3aed !important;
    color: #fff !important;
    border-color: #7c3aed !important;
}

/* Dark mode: checked checkboxes/radios - full purple fill */
.dark .origin-option:has(input:checked) {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}
.dark .origin-option:has(input:checked) .origin-option-text {
    color: #fff !important;
}

/* Also for non-:has browsers (fallback) */
.dark .origin-option input:checked + .origin-option-text {
    color: #fff !important;
    background: #7c3aed !important;
    border-radius: 6px;
    padding: 4px 10px;
}

/* Nights/stay picker checked */
.dark .cr-stay-picker .origin-option:has(input:checked) {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}

/* Airline filter checked */  
.dark .cr-filters .origin-option:has(input:checked) {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}

/* Dark mode: mobile menu stays on purple nav background */
.dark .nav-mobile {
    background: transparent !important;
}
.dark .nav-mobile-link {
    border-color: rgba(255,255,255,0.15) !important;
}

/* Dark mode: ALL origin-option elements forced dark */
.dark .origin-option {
    background: #2a2a3e !important;
    border-color: #3a3a4e !important;
    color: #ccc !important;
}
.dark .origin-option .origin-option-text {
    color: #ccc !important;
}

/* Dark mode: calendar legend fixes */
.dark .cal-legend-box--top { background: #7c3aed !important; }
.dark .cal-legend-box--cheap { background: linear-gradient(135deg, #22c55e, #4ade80) !important; }
.dark .cal-legend-box--mid { background: linear-gradient(135deg, #eab308, #facc15) !important; }
.dark .cal-legend-box--expensive { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }

/* Legend wrap on mobile */
.cal-legend {
    flex-wrap: wrap;
}

/* Dark mode: nav purple, specific elements transparent */
.dark nav {
    background: #4c1d95 !important;
}
.dark .nav-top,
.dark .nav-right,
.dark .nav-links,
.dark .nav-mobile {
    background: transparent;
}

/* Dark mode: hamburger button must be transparent */
.dark .hamburger {
    background: none !important;
    border: none !important;
}

/* Dark mode toggle button */
.dark-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1;
    color: #f5c907;
    transition: transform 0.3s;
}
.dark-toggle:hover {
    transform: scale(1.2);
}

/* Dark mode slider toggle */
.dark-slider {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0 4px;
}
.dark-slider input { display: none; }
.dark-slider-track {
    width: 40px;
    height: 22px;
    background: rgba(255,255,255,0.3);
    border-radius: 11px;
    position: relative;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.dark-slider input:checked + .dark-slider-track {
    background: #5b21b6;
    border-color: #7c3aed;
}
.dark-slider-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.dark-slider-thumb::after {
    content: '\2600';
}
.dark-slider input:checked + .dark-slider-track .dark-slider-thumb {
    left: 19px;
    background: #1a1a2e;
}
.dark-slider input:checked + .dark-slider-track .dark-slider-thumb::after {
    content: '\263D';
    color: #f5c907;
}

/* Language dropdown */
.lang-dropdown {
    position: relative;
}
.lang-current {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #f5c907;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.lang-current:hover {
    background: rgba(255,255,255,0.25);
}
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #4c1d95;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    z-index: 100;
    min-width: 50px;
}
.lang-dropdown.open .lang-dropdown-menu {
    display: block;
}
.lang-dropdown-item {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}
.lang-dropdown-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.lang-dropdown-item--active {
    color: #f5c907;
    background: rgba(255,255,255,0.1);
}

/* Dark mode fixes for dropdown */
.dark .lang-dropdown-menu {
    background: #1a1a2e;
    border-color: #3a3a4e;
}
.dark .lang-current {
    background: rgba(255,255,255,0.1);
}

/* Hide old lang-switch on mobile (keep for desktop fallback) */
@media (max-width: 768px) {
    .lang-switch { display: none !important; }
}

/* Close lang dropdown when clicking outside */

.lang-arrow {
    font-size: 8px;
    margin-left: 2px;
    opacity: 0.7;
}

/* Language flags via CSS */
.lang-flag {
    display: inline-block;
    width: 22px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    border-radius: 2px;
    margin-right: 2px;
}
.lang-flag[data-lang="en"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath fill='%23FFF' d='m0 0 60 30m0-30L0 30' stroke='%23FFF' stroke-width='6'/%3E%3Cpath d='m0 0 60 30m0-30L0 30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath fill='%23FFF' d='M25 0h10v30H25zM0 10h60v10H0z'/%3E%3Cpath fill='%23C8102E' d='M27 0h6v30h-6zM0 12h60v6H0z'/%3E%3C/svg%3E"); }
.lang-flag[data-lang="pl"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Crect fill='%23fff' width='16' height='5'/%3E%3Crect fill='%23dc143c' y='5' width='16' height='5'/%3E%3C/svg%3E"); }
.lang-flag[data-lang="ua"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Crect fill='%230057B7' width='16' height='5'/%3E%3Crect fill='%23FFD700' y='5' width='16' height='5'/%3E%3C/svg%3E"); }

/* Lang button: flag + arrow inline */
.lang-current {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
.lang-arrow {
    font-size: 8px;
    opacity: 0.7;
    line-height: 1;
}

/* Dropdown menu solid purple background */
.lang-dropdown-menu {
    background: #4c1d95 !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.dark .lang-dropdown-menu {
    background: #2d1a4e !important;
    border-color: #7c3aed !important;
}
.lang-dropdown-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px !important;
}
.lang-dropdown-item:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Airports dropdown - desktop */
.nav-airports-dropdown {
    position: relative;
    display: inline-block;
}
.nav-link--airports {
    cursor: pointer;
}
.nav-arrow {
    font-size: 8px;
    opacity: 0.7;
}
.nav-airports-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0; padding-top: 8px;
    background: #4c1d95;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    columns: 2;
    column-gap: 0;
}
.nav-airports-dropdown:hover .nav-airports-menu {
    display: block;
}
.nav-airport-item {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    break-inside: avoid;
    transition: background 0.15s;
}
.nav-airport-item:hover {
    background: rgba(255,255,255,0.15);
}
.nav-airport-city {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline;
}
.nav-airport-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-left: 4px;
}

/* Airports dropdown - mobile */
.nav-mobile-airports-list {
    display: none;
    padding-left: 16px;
}
.nav-mobile-airports.open .nav-mobile-airports-list {
    display: block;
}
.nav-mobile-airports-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.nav-mobile-airport {
    display: block;
    padding: 10px 0;
    color: #f5c907;
    text-decoration: none;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-airport:hover {
    color: #fff;
}

/* Dark mode airports menu */
.dark .nav-airports-menu {
    background: #1a1a2e !important;
    border-color: #3a3a4e;
}
.dark .nav-airport-item:hover {
    background: rgba(255,255,255,0.1);
}

/* Hide airports dropdown on mobile, show in hamburger */
@media (max-width: 768px) {
    .nav-airports-dropdown { display: none !important; }
}

/* Airports menu fixes */
.nav-link--airports {
    cursor: pointer;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
}
.nav-airports-menu {
    background: #3b0d7a !important;
}
.dark .nav-airports-menu {
    background: #1a1a2e !important;
    border-color: #7c3aed !important;
}

/* Mobile airports toggle - no black bg */
.nav-mobile-airports-toggle {
    color: #f5c907 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* FORCE airports dropdown background - all modes */
.nav-airports-menu {
    background: #3b0d7a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.dark .nav-airports-menu {
    background: #0f0f1a !important;
    border: 1px solid #7c3aed !important;
}
/* Also fix any transparent children */
.nav-airport-item {
    background: transparent !important;
}

/* Airports nav link - match other links exactly */
.nav-link--airports {
    color: #f5c907 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.nav-link--airports:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Airports dropdown SOLID bg */
.nav-airports-menu {
    background: #3b0d7a !important;
}
body.dark .nav-airports-menu {
    background: #0f0f1a !important;
}

.nav-airport-item {
    white-space: nowrap !important;
}

/* Airports dropdown hover fix - no gap */
.nav-airports-dropdown .nav-airports-menu {
    top: 100%;
    margin-top: 0;
    padding-top: 8px;
    background-clip: padding-box;
}
.nav-airports-dropdown:hover .nav-airports-menu {
    display: block !important;
}

/* Dest card images as <img> tags */
img.dest-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 3/2;
}

/* City picker popup */
#city-picker-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.city-picker-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.dark .city-picker-box {
    background: #1a1a2e;
    color: #e0e0e0;
}
.city-picker-box h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #4c1d95;
}
.dark .city-picker-box h2 {
    color: #a78bfa;
}
.city-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.city-picker-grid button {
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #333;
}
.dark .city-picker-grid button {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #e0e0e0;
}
.city-picker-grid button:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #7c3aed;
}
.dark .city-picker-grid button:hover {
    background: #3a3a4e;
    color: #a78bfa;
}
.city-picker-skip { background:none; border:none; cursor:pointer; font:inherit;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Privacy policy page */
.privacy-content { max-width: 800px; line-height: 1.7; }
.privacy-content h2 { color: #4c1d95; margin-top: 28px; font-size: 1.2rem; }
.dark .privacy-content h2 { color: #a78bfa; }
.privacy-content ul { padding-left: 20px; }
.privacy-content li { margin-bottom: 6px; }
.privacy-updated { color: #666; font-size: 0.9rem; margin-bottom: 20px; }
.privacy-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.privacy-table th, .privacy-table td { padding: 8px 12px; border: 1px solid #ddd; text-align: left; font-size: 0.9rem; }
.privacy-table th { background: #f5f5f5; font-weight: 600; }
.dark .privacy-table th { background: #2a2a3e; }
.dark .privacy-table td, .dark .privacy-table th { border-color: #3a3a4e; }
.privacy-email-placeholder { color: #666; font-style: italic; }
.footer-link { color: #666; text-decoration: none; font-size: 0.75rem; }
.footer-link:hover { color: #7c3aed; }

/* Page intro descriptions */
.page-intro {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 700px;
}
.dark .page-intro { color: #999; }

/* Contact form */
.contact-content { max-width: 600px; }
.contact-form { margin: 20px 0; }
.contact-field { margin-bottom: 16px; }
.contact-field label { display: block !important; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: #333; }
.contact-field input, .contact-field textarea {
    width: 100%; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 8px;
    font-size: 1rem; font-family: inherit; display: block;
    transition: border-color 0.2s;
}
.contact-field input:focus, .contact-field textarea:focus {
    outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.contact-field textarea { resize: vertical; }
.dark .contact-field input, .dark .contact-field textarea {
    background: #1a1a2e; color: #e0e0e0; border-color: #3a3a4e;
}
.dark .contact-field label { color: #ccc; }
.dark .contact-field input:focus, .dark .contact-field textarea:focus {
    border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.contact-submit {
    background: #7c3aed; color: #fff; border: none; padding: 12px 28px;
    border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.contact-submit:hover { background: #6d28d9; }
.contact-success { background: #dcfce7; border: 1px solid #22c55e; border-radius: 8px; padding: 24px; text-align: center; margin: 20px 0; }
.contact-success h2 { color: #16a34a; margin-bottom: 8px; }
.dark .contact-success { background: #1a3a1e; border-color: #22c55e; }
.dark .contact-success h2 { color: #22c55e; }
.contact-back { display: inline-block; margin-top: 12px; color: #7c3aed; font-weight: 600; }
.contact-error { background: #fef2f2; border: 1px solid #ef4444; color: #dc2626; border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.dark .contact-error { background: #3a1a1a; }
.contact-info { margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; }
.dark .contact-info { border-color: #2a2a3e; }
.contact-info h3 { margin-bottom: 8px; }

/* Hamburger animation to X */
nav.menu-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.hamburger span { transition: transform 0.2s, opacity 0.2s; }

/* Menu slide down */
.nav-mobile { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; position: relative; }
.nav-mobile.open { max-height: 600px; overflow-y: auto; }

/* Cooperation page */
.cooperation-content { max-width: 800px; margin: 0 auto; }
.coop-hero { text-align: center; margin-bottom: 32px; }
.coop-hero h2 { color: #4c1d95; font-size: 1.5rem; margin-bottom: 8px; }
.dark .coop-hero h2 { color: #a78bfa; }
.coop-hero p { font-size: 1.1rem; color: #555; }
.dark .coop-hero p { color: #999; }

.coop-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 768px) { .coop-features { grid-template-columns: 1fr; } }
.coop-feature { text-align: center; padding: 20px; background: #f8fafc; border-radius: 12px; }
.dark .coop-feature { background: #1a1a2e; }
.coop-feature-icon { font-size: 2rem; margin-bottom: 8px; }
.coop-feature h3 { margin-bottom: 6px; font-size: 1rem; }

.coop-preview { display: flex; justify-content: center; margin: 16px 0 32px; }
.coop-preview-widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; width: 280px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark .coop-preview-widget { background: #1a1a2e; border-color: #3a3a4e; }
.coop-preview-header { font-weight: 700; color: #4c1d95; margin-bottom: 12px; font-size: 0.95rem; }
.dark .coop-preview-header { color: #a78bfa; }
.coop-preview-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.dark .coop-preview-row { border-color: #2a2a3e; }
.coop-preview-price { color: #16a34a; font-weight: 600; }
.coop-preview-footer { text-align: center; margin-top: 10px; font-size: 0.75rem; color: #999; }

.coop-usecases { margin-bottom: 32px; }
.coop-usecases ul { padding-left: 20px; }
.coop-usecases li { margin-bottom: 8px; line-height: 1.6; }

.coop-cta { background: #f5f3ff; border-radius: 12px; padding: 24px; text-align: center; }
.dark .coop-cta { background: #1a1a2e; }
.coop-cta h2 { color: #4c1d95; margin-bottom: 8px; }
.dark .coop-cta h2 { color: #a78bfa; }
.coop-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.coop-input { padding: 10px 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; min-width: 200px; }
.dark .coop-input { background: #2a2a3e; color: #e0e0e0; border-color: #3a3a4e; }
.coop-submit { background: #7c3aed; color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.coop-submit:hover { background: #6d28d9; }

/* a11y: touch target for range sliders */
input[type=range]#f-nights-min,
input[type=range]#f-nights-max,
input[type=range]#f-cr-nights-min,
input[type=range]#f-cr-nights-max { min-height: 28px; }

/* Narrow phones (<=400px): tighten header to prevent horizontal overflow */
@media (max-width: 400px) {
    nav { padding: 0 10px; }
    .nav-top { gap: 4px; }
    .nav-right { gap: 4px; }
    .logo-img { height: 30px; }
    .dark-slider { transform: scale(0.85); transform-origin: right center; }
}
/* Global safeguard: never scroll horizontally */
html, body { overflow-x: hidden; }

/* nights slider: compact row layout to match select height */
.nights-slider-group { flex: 0 0 210px; max-width: 210px; }
.nights-slider-group .nights-display-value { color: #7c3aed; font-weight: 700; }
.nights-slider-group .nights-slider-wrap {
    display: flex; flex-direction: row; gap: 8px;
    align-items: center;
    height: 32px; padding: 0 2px;
    border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
}
.nights-slider-group .nights-slider-wrap input[type=range] {
    flex: 1; min-width: 0;
    accent-color: #7c3aed; cursor: pointer;
    height: 4px; margin: 0;
    -webkit-appearance: none; appearance: none;
    background: #e5e7eb; border-radius: 2px;
}
.nights-slider-group .nights-slider-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: #7c3aed; cursor: pointer; border: none;
}
.nights-slider-group .nights-slider-wrap input[type=range]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #7c3aed; cursor: pointer; border: none;
}
@media (max-width: 600px) {
    .nights-slider-group { flex: 1 1 100%; max-width: 100%; }
}
.dark .nights-slider-group .nights-slider-wrap {
    background: #1e293b;
    border-color: #334155;
}
.dark .nights-slider-group .nights-slider-wrap input[type=range] {
    background: #334155;
}
.dark .nights-slider-group .nights-display-value { color: #a78bfa; }

/* Combined hint banner (deals link on calendar, combined routes hint on deals) */
.combined-hint-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin: 14px 0 18px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-left: 4px solid #7c3aed;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    max-width: 600px;
}
.combined-hint-banner:hover { background: rgba(124, 58, 237, 0.14); }
.combined-hint-icon { font-size: 1rem; color: #7c3aed; }
.combined-hint-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.combined-hint-text strong { font-size: 0.9rem; color: var(--text-primary); font-weight: 700; }
.combined-hint-text small { color: var(--text-secondary); font-size: 0.78rem; margin-top: 2px; }
.combined-hint-arrow { font-size: 1rem; color: #7c3aed; }
@media (max-width: 768px) {
    .combined-hint-banner { max-width: 100%; }
}
.dark .combined-hint-banner { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.4); }
.dark .combined-hint-banner:hover { background: rgba(124, 58, 237, 0.2); }

/* Deals hint banner on calendar pages */
.deals-hint-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 16px 0;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-left: 4px solid #7c3aed;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, box-shadow 0.2s;
    max-width: 600px;
    cursor: pointer;
}
.deals-hint-banner:hover {
    background: rgba(124, 58, 237, 0.14);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}
.deals-hint-icon {
    font-size: 1.3rem;
    color: #7c3aed;
    flex-shrink: 0;
}
.deals-hint-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.deals-hint-content strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}
.deals-hint-content small {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.3;
}
.deals-hint-arrow {
    font-size: 1.2rem;
    color: #7c3aed;
    font-weight: 700;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .deals-hint-banner { max-width: 100%; }
}
.dark .deals-hint-banner {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.4);
}
.dark .deals-hint-banner:hover {
    background: rgba(124, 58, 237, 0.22);
}

/* Calendar hints row - deals banner + how to use side by side */
.cal-hints-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin: 16px 0;
}
.cal-hints-row .deals-hint-banner {
    flex: 1;
    margin: 0;
    max-width: none;
}
.cal-how-to-use {
    flex: 1;
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cal-how-to-use strong {
    color: var(--text-primary);
    font-size: 0.82rem;
}
@media (max-width: 768px) {
    .cal-hints-row {
        flex-direction: column;
    }
}
.dark .cal-how-to-use {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

/* ====== /promocje-ryanair - Flashsale page ====== */
.promo-page { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.promo-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    margin: 40px auto;
    max-width: 920px;
}
.promo-empty h1 { font-size: 1.6rem; margin-bottom: 12px; color: #1e293b; }
.promo-empty p { color: #475569; margin: 8px 0; }

.promo-last-info {
    margin: 24px auto;
    max-width: 520px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    border-radius: 12px;
    color: #fff;
    text-align: left;
    box-shadow: 0 4px 16px rgba(76, 29, 149, 0.2);
}
.promo-last-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 6px;
}
.promo-last-with-code {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 14px;
}
.promo-last-code {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    background: rgba(245, 201, 7, 0.2);
    color: #f5c907;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 1px;
    vertical-align: middle;
}
.promo-last-timer {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(245, 201, 7, 0.3);
}
.promo-last-timer-label { font-size: 0.85rem; opacity: 0.9; }
.promo-last-timer-value {
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
    font-size: 1.05rem;
    color: #f5c907;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .promo-last-timer {
        display: block;
        text-align: center;
        padding: 10px 12px;
    }
    .promo-last-timer-label {
        display: block;
        margin-bottom: 4px;
    }
    .promo-last-timer-suffix {
        margin-left: 4px;
    }
}
.promo-last-travel {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Siatka dwoch ostatnich promocji (z kodem + bez kodu) */
.promo-last-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px auto;
    max-width: 860px;
}
@media (max-width: 640px) {
    .promo-last-grid { grid-template-columns: 1fr; }
}
.promo-last-grid .promo-last-info {
    margin: 0;
    max-width: none;
}
.promo-last-info--nocode {
    background: linear-gradient(135deg, #0f4c81 0%, #1d6fa0 100%);
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.2);
}
.promo-last-type-badge {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(245, 201, 7, 0.2);
    color: #f5c907;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 700;
}
.promo-last-type-badge--sale {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}
.promo-last-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.promo-last-dates {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 10px;
}
.dark .promo-empty h1 { color: #e2e8f0; }
.dark .promo-empty p { color: #94a3b8; }

/* Hero */
.promo-hero {
    margin: 24px 0 40px;
    padding: 28px 24px;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 60%, #a855f7 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.25);
    position: relative;
    overflow: hidden;
}
.promo-hero::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245, 201, 7, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.promo-mascot {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}
.promo-mascot img {
    height: 300px;
    width: auto;
    display: block;
    filter: drop-shadow(-4px 4px 12px rgba(0,0,0,0.3));
}
@media (max-width: 767px) { .promo-mascot { display: none; } }
.promo-hero-badge {
    display: inline-block;
    background: #f5c907;
    color: #4c1d95;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.promo-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.promo-hero-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    border: 1px dashed rgba(245, 201, 7, 0.4);
}
.promo-hero-code-label { opacity: 0.85; }
.promo-hero-code-value {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-weight: 800;
    font-size: 1.05rem;
    color: #f5c907;
    letter-spacing: 1.5px;
}
.promo-hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.promo-stat { display: flex; flex-direction: column; }
.promo-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f5c907;
    line-height: 1;
}
.promo-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-top: 4px;
}

/* Timer */
.promo-timer {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
    transition: all 0.3s;
}
.promo-timer-label { font-size: 0.85rem; opacity: 0.9; white-space: nowrap; }
.promo-timer-value {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-weight: 800;
    font-size: 1.2rem;
    color: #f5c907;
    min-width: 180px;
}
.promo-timer--warning { background: rgba(234, 88, 12, 0.4); border-color: #f97316; }
.promo-timer--warning .promo-timer-value { color: #fdba74; }
.promo-timer--alarm {
    background: rgba(220, 38, 38, 0.5);
    border-color: #ef4444;
    animation: promo-pulse 1.2s infinite;
}
.promo-timer--alarm .promo-timer-value { color: #fee2e2; }
.promo-timer--ended { background: rgba(100, 116, 139, 0.4); border-color: #475569; }
.promo-timer--ended .promo-timer-value { color: #cbd5e1; animation: none; }
@keyframes promo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

.promo-travel-window {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.promo-freshness {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #22c55e;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.92;
}
.promo-freshness-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: promo-dot-pulse 2s infinite;
    vertical-align: middle;
}
@keyframes promo-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.promo-freshness-note {
    display: block;
    margin-top: 6px;
    opacity: 0.8;
    font-style: italic;
}

/* Filter */
.promo-filter-row {
    background: #fff;
    color: #1e293b;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 20px 0 18px;
    display: flex;
    align-items: center;
    gap: 20px 28px;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 8px;
    z-index: 50;
}
.promo-filter-row.is-stuck {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.15);
}
.promo-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.promo-filter-label {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    color: #1e293b;
}
.promo-filter-select {
    min-width: 140px;
    max-width: 220px;
    padding: 6px 10px;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #1e293b;
}
.promo-radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    color: #1e293b;
}
.promo-radio span { color: #1e293b; }
.promo-radio:hover { background: rgba(124, 58, 237, 0.08); }
.promo-radio input[type="radio"] {
    accent-color: #7c3aed;
    cursor: pointer;
}
.promo-radio input:checked + span { color: #7c3aed; font-weight: 700; }

.promo-visible-count {
    font-size: 0.9rem;
    color: #64748b;
    margin: 8px 0 12px;
    font-weight: 500;
}
.promo-visible-count-value {
    font-weight: 700;
    color: #4c1d95;
}
.dark .promo-visible-count { color: #94a3b8; }
.dark .promo-visible-count-value { color: #c4b5fd; }

/* Coupons grid - 4 kolumny na desktop, wyjustowane do lewej */
.promo-coupons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 8px;
    justify-content: start;
}
@media (max-width: 1100px) {
    .promo-coupons { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 850px) {
    .promo-coupons { grid-template-columns: repeat(2, 1fr); }
}
.promo-coupon {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #c4b5fd;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    overflow: hidden;
}
.promo-coupon::before {
    content: "";
    position: absolute;
    left: -8px; top: 50%;
    width: 16px; height: 16px;
    background: #4c1d95;
    border-radius: 50%;
    transform: translateY(-50%);
}
.promo-coupon::after {
    content: "";
    position: absolute;
    right: -8px; top: 50%;
    width: 16px; height: 16px;
    background: #4c1d95;
    border-radius: 50%;
    transform: translateY(-50%);
}
.promo-coupon:hover {
    transform: translateY(-2px);
    border-color: #7c3aed;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.18);
}
.promo-coupon-discount {
    align-self: flex-start;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}
.promo-coupon-route {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #4c1d95;
}
.promo-coupon-arrow { color: #a855f7; font-size: 1.1rem; }
.promo-coupon-city {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}
.promo-coupon-date {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}
.promo-coupon-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}
.promo-coupon-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #4c1d95;
    line-height: 1;
    white-space: nowrap;
}
.promo-coupon-currency { font-size: 1rem; font-weight: 700; }
.promo-coupon-prev {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.promo-coupon-actions {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #e0e7ff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.promo-coupon-cta {
    display: block;
    padding: 7px 10px;
    font-size: 0.83rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, transform 0.15s;
}
.promo-coupon-cta--primary {
    background: #7c3aed;
    color: #fff;
}
.promo-coupon-cta--primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}
.promo-coupon-cta--secondary {
    background: transparent;
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}
.promo-coupon-cta--secondary:hover {
    background: rgba(124, 58, 237, 0.08);
}

/* Mobile */
@media (max-width: 600px) {
    .promo-hero { padding: 20px 18px; }
    .promo-hero-title { font-size: 1.5rem; }
    .promo-stat-value { font-size: 1.5rem; }
    .promo-hero-stats { gap: 18px; }
    .promo-timer { gap: 4px; padding: 8px 14px; flex-direction: column; align-items: center; text-align: center; }
    .promo-timer-label { font-size: 0.75rem; }
    .promo-timer-value { font-size: 0.9rem; min-width: auto; }
    .promo-coupons { grid-template-columns: 1fr; }
}

/* Dark mode */
.dark .promo-filter-row { background: #0f0f1a; color: #e2e8f0; }
.dark .promo-filter-label { color: #e2e8f0; }
.dark .promo-filter-select { background: #060610; border-color: #334155; color: #e2e8f0; }
.dark .promo-radio { color: #e2e8f0; }
.dark .promo-radio span { color: #e2e8f0; }
.dark .promo-radio:hover { background: rgba(124, 58, 237, 0.2); }
.dark .promo-radio input:checked + span { color: #c4b5fd; }
.dark .promo-coupon { background: #0f0f1a; border-color: #7c3aed; }
.dark .promo-coupon::before,
.dark .promo-coupon::after { background: #1a1a2e; }
.dark .promo-coupon-route,
.dark .promo-coupon-price { color: #c4b5fd; }
.dark .promo-coupon-date { color: #94a3b8; }
.dark .promo-coupon-actions { border-top-color: rgba(124, 58, 237, 0.3); }
.dark .promo-coupon-cta--secondary { color: #c4b5fd; border-color: rgba(124, 58, 237, 0.4); }
.dark .promo-coupon-cta--secondary:hover { background: rgba(124, 58, 237, 0.2); }


/* === P1 breadcrumb - subtelny, w nurcie contentu (nie przejmuje nav {} tla) === */
.breadcrumb {
  background: transparent !important;
  padding: 0;
  margin: 4px 0 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b7280;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: #cbd5e1;
  font-size: 0.95em;
}
.breadcrumb a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: #5b21b6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb li[aria-current="page"] {
  color: #1f2937;
  font-weight: 500;
}
.dark .breadcrumb { color: #9ca3af; background: transparent !important; }
.dark .breadcrumb a { color: #c084fc; }
.dark .breadcrumb a:hover { color: #e9d5ff; }
.dark .breadcrumb li:not(:last-child)::after { color: #4b5563; }
.dark .breadcrumb li[aria-current="page"] { color: #f3f4f6; }
@media (max-width: 480px) {
  .breadcrumb { font-size: 0.78rem; margin: 2px 0 14px; }
}

/* === P1.C route cross-links (deals.html + dest_calendar.html) === */
.route-crosslinks {
  display: flex;
  gap: 14px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}
.route-crosslinks .deals-hint-banner {
  flex: 1 1 280px;
  margin: 0;
  max-width: none;
}
.route-silo-link {
  margin: 12px 0 18px !important;
  max-width: 600px;
}
@media (max-width: 768px) {
  .route-crosslinks { flex-direction: column; gap: 10px; }
  .route-crosslinks .deals-hint-banner { flex: none; }
}


/* === P1.C route siblings - siostrzane linki do tras z innych origin-ów === */
.route-siblings {
  margin: 24px 0 18px;
}
.route-siblings-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0 0 12px;
}
.route-siblings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.route-sibling-chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.05);
  border-radius: 999px;
  color: #7c3aed;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.route-sibling-chip:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.5);
  text-decoration: underline;
}
.dark .route-siblings-title { color: #f3f4f6; }
.dark .route-sibling-chip {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.4);
  color: #c084fc;
}
.dark .route-sibling-chip:hover {
  background: rgba(124, 58, 237, 0.26);
}

/* Route content SEO blocks */
.route-content-wrapper {
  margin-top: 2.5rem;
}
.route-content-block {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--card-bg, #fff);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e5e7eb);
}
.route-content-block h2 {
  margin-top: 0;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.route-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.route-table th, .route-table td {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-color, #e5e7eb);
  text-align: left;
}
.route-table th {
.route-table td.day-cell { vertical-align: middle; font-weight: 600; background: var(--table-header-bg, #f3f4f6); }
  background: var(--table-header-bg, #f3f4f6);
}
.table-responsive {
  overflow-x: auto;
}
.route-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.route-facts li {
  padding: 0.25rem 0;
}
.route-airlines {
  list-style: none;
  padding: 0;
}
.route-airlines li {
  padding: 0.25rem 0;
}
.route-cta {
  margin: 1.5rem 0;
  text-align: center;
}
.route-content-note {
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  margin-top: 0.5rem;
}
.faq-list dt {
  font-weight: 600;
  margin-top: 0.75rem;
}
.faq-list dd {
  margin-left: 0;
  color: var(--text-secondary, #374151);
}
@media (max-width: 480px) {
  .route-table { font-size: 0.78rem; }
  .route-table th, .route-table td { padding: 0.3rem 0.4rem; }
}

/* === Akordeon rozkladow lotow (details/summary) === */
.route-content-block details {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}
.route-content-block details[open] {
  border-color: #7c3aed;
}
.route-content-block summary {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary, #1f2937);
  background: var(--table-header-bg, #f9fafb);
  user-select: none;
  list-style: none;
  gap: 8px;
}
.route-content-block summary::-webkit-details-marker { display: none; }
.route-content-block summary::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #7c3aed;
  transition: transform 0.18s;
  flex-shrink: 0;
}
.route-content-block details[open] > summary::before {
  transform: rotate(90deg);
}
.route-content-block summary:hover {
  background: rgba(124, 58, 237, 0.06);
}
.route-content-block details .table-responsive {
  padding: 0 2px 2px;
}
.dark .route-content-block details {
  border-color: rgba(255,255,255,0.1);
  background: var(--card-bg, #1f2937);
}
.dark .route-content-block details[open] { border-color: #a78bfa; }
.dark .route-content-block summary {
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
}
.dark .route-content-block summary:hover { background: rgba(124,58,237,0.15); }
.dark .route-content-block summary::before { border-left-color: #a78bfa; }


/* === Dark mode: route page - brakujace reguly === */
.dark .route-content-block {
  background: #1a1a2e;
  border-color: #2a2a3e;
  color: #e0e0e0;
}
.dark .route-content-block h2 { color: #e0e0e0; }
.dark .route-content-block p,
.dark .route-content-block .route-content-note { color: #9ca3af; }
.dark .route-table th,
.dark .route-table td.day-cell {
  background: #0f172a;
  color: #9ca3af;
}
.dark .route-table th,
.dark .route-table td {
  border-color: #2a2a3e;
  color: #e0e0e0;
}
.dark .route-table th { color: #9ca3af; }
.dark .route-table tr:hover td { background: rgba(124,58,237,0.08); }
.dark .faq-list dd { color: #9ca3af; }
.dark .faq-list dt { color: #e0e0e0; }
.dark .route-facts li,
.dark .route-airlines li { color: #e0e0e0; }


/* Promo listing grid - hero cards side by side on desktop */
.promo-listing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 768px) {
    .promo-listing-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}
.promo-listing-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 16px;
}
.promo-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124,58,237,0.25);
}
.promo-hero--listing {
    min-height: auto;
    cursor: pointer;
}
.promo-listing-cta {
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f5c907;
    letter-spacing: 0.5px;
}
.promo-back-link {
    margin-bottom: 16px;
}
.promo-back-link a {
    color: var(--text-secondary, #aaa);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.promo-back-link a:hover {
    color: var(--accent, #7c3aed);
}

/* === Homepage V2 Redesign 2026-05-22 === */

/* Hero Row - slider + bento side by side */
.hero-row {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 16px 16px 0;
    align-items: stretch;
    min-height: 360px;
}
.hero-left {
    flex: 0 0 40%;
    min-width: 0;
}
.hero-left .hero-slider {
    margin: 0;
    height: 100%;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}
.hero-left .hero-deal {
    margin-bottom: 0;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    padding: 0;
}
.hero-left .hero-slider .hero-deal { display: none; }
.hero-left .hero-slider .hero-deal--active { display: block; }
.hero-deal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px 36px;
    color: #fff;
}
.hero-right {
    flex: 0 0 calc(60% - 20px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Slider overlay text styles */
.hero-deal-overlay .hero-deal-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 2px;
}
.hero-deal-overlay .hero-deal-price {
    font-size: 2rem;
    font-weight: 800;
    color: #fde047;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0;
}
.hero-deal-overlay .hero-deal-route {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero-deal-overlay .hero-deal-dates {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 2px;
}
.hero-deal-overlay .hero-deal-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: #fde047;
    color: #1e1b4b;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.hero-deal-overlay .hero-deal-cta:hover { background: #fbbf24; }

/* Dots repositioned to bottom of slider */
.hero-left .hero-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
    margin-top: 0;
    padding-bottom: 0;
}
.hero-left .hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}
.hero-left .hero-dot--active {
    background: #fde047;
}

/* Bento Grid Header */
.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.bento-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}
.bento-link {
    font-size: 0.85rem;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}
.bento-link:hover { text-decoration: underline; }

/* Bento Grid Layout */
.bento-grid {
    display: flex;
    gap: 12px;
    flex: 1;
    height: 100%;
}

/* Photo cards - shared */
.bento-card {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background-color: #7c3aed;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.bento-card:hover::before {
    transform: scale(1.05);
}

/* Card overlay - text at bottom */
.bento-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
}
.bento-card-city {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 0;
}
.bento-card-from {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 3px;
}
.bento-card-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.bento-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fde047;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.bento-price-old {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-decoration: line-through;
    white-space: nowrap;
}
.bento-card-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* Drop badge - top left corner */
.bento-drop-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    text-shadow: none;
}

/* Large bento card */
.bento-card-large {
    flex: 1;
    min-height: 0;
}
.bento-card-large .bento-card-city {
    font-size: 1.3rem;
}
.bento-card-large .bento-price {
    font-size: 1.5rem;
}

/* Small bento cards - 2x2 grid */
.bento-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex: 1;
}
.bento-card-small {
    min-height: 0;
}
.bento-card-small .bento-card-city {
    font-size: 0.9rem;
}
.bento-card-small .bento-price {
    font-size: 1.05rem;
}
.bento-card-small .bento-card-overlay {
    padding: 10px;
}
.bento-card-small .bento-card-from {
    font-size: 0.65rem;
}
.bento-card-small .bento-drop-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    top: 8px;
    left: 8px;
}

/* Empty state */
.bento-empty {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
}

/* Status Bar */
.status-bar {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 10px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #4b5563;
}

/* Compact Airport Cards */
.airports-section {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 16px;
}
.airports-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
}
.airports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.airport-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.airport-card:hover {
    box-shadow: 0 4px 16px rgba(124,58,237,0.15);
    border-color: #c4b5fd;
    transform: translateY(-2px);
}
.airport-card--active {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}
.airport-card-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.airport-card-img--placeholder {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    flex-shrink: 0;
}
.airport-card-info {
    flex: 1;
    min-width: 0;
}
.airport-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.2;
}
.airport-card-iata {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.airport-card-stats {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}
.airport-card-price {
    color: #16a34a;
    font-weight: 700;
}

/* New Routes Section */
.new-routes-section {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 16px;
}
.new-routes-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.new-routes-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}
.new-routes-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}
.new-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.new-route-card {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background-color: #7c3aed;
    background-size: cover;
    background-position: center;
    min-height: 180px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.new-route-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.new-route-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #16a34a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    z-index: 2;
}
.new-route-airline-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.new-route-airline--ryan { background: #073590; color: #fde047; }
.new-route-airline--wizz { background: #c3007a; color: #fff; }
.new-route-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
}
.new-route-city {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.new-route-from {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 4px;
}
.new-route-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.new-route-price {
    font-size: 1rem;
    font-weight: 800;
    color: #fde047;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.new-route-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

/* Homepage V2 Mobile */
@media (max-width: 768px) {
    .hero-row {
        flex-direction: column;
        gap: 16px;
        min-height: auto;
    }
    .hero-left, .hero-right {
        flex: 1 1 auto;
    }
    .hero-left .hero-deal {
        min-height: 280px;
    }
    .bento-grid {
        flex-direction: column;
    }
    .bento-card-large {
        min-height: 200px;
    }
    .bento-small-grid {
        grid-template-rows: auto auto;
    }
    .bento-card-small {
        min-height: 130px;
    }
    .airports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-route-card {
        min-height: 150px;
    }
}

@media (max-width: 380px) {
    .bento-small-grid {
        grid-template-columns: 1fr;
    }
    .bento-card-small {
        min-height: 120px;
    }
    .airports-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage V2 - Dark Mode */
body.dark .bento-title,
body.dark .airports-title { color: #e5e7eb; }
body.dark .bento-link { color: #a78bfa; }
body.dark .bento-empty { color: #9ca3af; border-color: #374151; }
body.dark .status-bar { background: #1f2937; color: #9ca3af; }
body.dark .airport-card { background: #1f2937; border-color: #374151; }
body.dark .airport-card:hover { border-color: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,0.2); }
body.dark .airport-card--active { background: linear-gradient(135deg, #2d2055 0%, #1f1640 100%); border-color: #a78bfa; }
body.dark .airport-card-name { color: #e5e7eb; }
body.dark .airport-card-stats { color: #9ca3af; }
body.dark .new-routes-title { color: #e5e7eb; }
body.dark .new-routes-sub { color: #6b7280; }
