@media (max-width: 700px) {
    .compass-container {
        display: block !important;
        width: 100%;
        max-width: 400px;
        height: 400px;
        margin: 2rem auto;
        background: white;
        border-radius: 20px;
        padding: 20px;
        position: relative;
    }
    .compass-direction {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 0;
        min-width: 0;
        margin: 0 2vw !important;
    }
    .compass-dir-label {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 2px !important;
        letter-spacing: 0.04em;
    }
    .compass-dir-label.n { color: #1976d2 !important; }
    .compass-dir-label.e { color: #388e3c !important; }
    .compass-dir-label.s { color: #d32f2f !important; }
    .compass-dir-label.w { color: #f57c00 !important; }
    .compass-city-label {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #222 !important;
        text-align: center;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Hide diagonal/extra arrows and labels on mobile */
    .compass-direction.diagonal, .route-arrow.diagonal, .route-label.diagonal {
        display: none !important;
    }
    /* Wind indicators row at top, more visible */
    .wind-indicators {
        margin-bottom: 0.7rem !important;
        justify-content: center !important;
        gap: 0.3rem !important;
    }
}

/* Hero: 3 główne rzeczy na górze */
.wtr-hero { margin-bottom: 1.5rem; }
.wtr-hero-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--wtr-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}
.wtr-hero-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}
.wtr-hero-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.wtr-hero-desc { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); margin-top: 0.25rem; }
.wtr-hero-meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.35rem; }
.wtr-hero-ride { border-left: 4px solid var(--wtr-red); }
.wtr-hero-status .badge { font-size: 0.7rem; font-weight: 600; }
.wtr-hero-comment { font-style: italic; }
.wtr-hero-wind { border-left: 4px solid #4caf50; }
.wtr-hero-gpx { border-left: 4px solid #2196f3; }
.wtr-wind-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.wtr-wind-big small { font-size: 0.5em; font-weight: 600; opacity: 0.9; }
#heroBestDirection { color: var(--wtr-yellow); }

:root {
    --wtr-red: #ff4500;
    --wtr-red-light: #ff6347;
    --wtr-red-dark: #e63900;
    --wtr-orange: #ff8c00;
    --wtr-yellow: #ffd700;
    --wtr-dark: #0a0e27;
    --wtr-dark-card: #151a30;
    --wtr-light: #f7f7f7;
    --wtr-gray: #a0a0a0;
    --wtr-border: #2a2f45;
    --wtr-max-width: 1400px;
    --wtr-radius: 16px;
    --wtr-shadow: 0 20px 60px rgba(0,0,0,0.3);
    --wtr-glow: 0 0 30px rgba(255, 69, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 69, 0, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, rgba(255, 69, 0, 0.02) 0px, transparent 1px, transparent 80px, rgba(255, 69, 0, 0.02) 81px),
        repeating-linear-gradient(0deg, rgba(255, 69, 0, 0.02) 0px, transparent 1px, transparent 80px, rgba(255, 69, 0, 0.02) 81px);
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--wtr-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--wtr-red);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.container {
    position: relative;
    z-index: 1;
}

.shell {
    max-width: var(--wtr-max-width);
    margin: 0 auto;
    padding: 0 0rem 0rem;
    position: relative;
    z-index: 1;
}

header.site-header {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 69, 0, 0.5);
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

header.site-header .navbar {
    background-color: transparent !important;
}

header.site-header .brand-title {
    color: #ffffff;
    font-weight: 700;
}

header.site-header .brand-subtitle {
    color: var(--wtr-orange) !important;
}

.container-custom {
    max-width: var(--wtr-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar .container-custom {
    flex-wrap: wrap;
}

.navbar-brand {
    margin-right: 0 !important;
}

.navbar-collapse {
    flex-grow: 0;
}

/* Stylowe przyciski w menu */
.nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-btn i {
    font-size: 1.1rem;
}

.nav-btn:hover {
    background: rgba(255, 140, 0, 0.15);
    color: var(--wtr-orange) !important;
    text-decoration: none;
    border-color: rgba(255, 140, 0, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--wtr-red), var(--wtr-orange));
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}

.nav-btn-app {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.3);
    color: var(--wtr-orange) !important;
}

.nav-btn-app:hover {
    background: rgba(255, 140, 0, 0.25);
    border-color: rgba(255, 140, 0, 0.5);
}
   

.nav-btn-login {
    background: rgba(34, 34, 34, 0.05);
    border-color: rgba(34, 34, 34, 0.15);
    color: var(--wtr-dark) !important;
}

.nav-btn-login:hover {
    background: var(--wtr-dark);
    color: #ffffff !important;
    border-color: var(--wtr-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: var(--wtr-max-width);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 42px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--wtr-gray);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

nav.main-nav {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

nav.main-nav a {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: var(--wtr-dark);
    font-weight: 500;
}

nav.main-nav a.active,
nav.main-nav a:hover {
    background: rgba(229,57,53,0.08);
    color: var(--wtr-red);
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.hero-main {
    background: linear-gradient(135deg, rgba(21, 26, 48, 0.7) 0%, rgba(21, 26, 48, 0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
}

.hero-main:hover {
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 69, 0, 0.2);
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(229,57,53,0.06);
    color: var(--wtr-red);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-pill .fs-6 {
    font-size: 0.85rem !important;
    font-weight: 600;
    flex: 1;
}

.expand-btn-hero {
    margin-left: auto;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wtr-red);
    flex-shrink: 0;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    color: #ffffff;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
}

.hero strong {
    color: #ffffff;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.7);
}

.hero-meta {
    color: rgba(255, 255, 255, 0.8);
}

.hero-lead {
    margin: 0 0 1.5rem;
    color: var(--wtr-gray);
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.12s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--wtr-red) 0%, var(--wtr-orange) 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(255, 69, 0, 0.4), 0 0 20px rgba(255, 69, 0, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.5), 0 0 30px rgba(255, 140, 0, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 140, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--wtr-gray);
}

.hero-meta strong {
    color: var(--wtr-dark);
    display: block;
    font-size: 0.95rem;
}

.hero-side {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.card {
    background: rgba(21, 26, 48, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 18px;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 69, 0, 0.3);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 69, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.4);
}

.card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.card .fs-5 {
    font-size: 1.25rem !important;
    display: block;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card h6 {
    color: #ffffff;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--wtr-light);
    color: var(--wtr-gray);
}

.dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43a047;
}

.rides-today {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.95rem;
}

.rides-today li + li {
    margin-top: 0.6rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.55rem;
    font-size: 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(0,0,0,0.04);
    color: var(--wtr-gray);
    margin-left: 0.3rem;
}

.badge.hot {
    background: rgba(229,57,53,0.09);
    color: var(--wtr-red);
}

.metrics {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.metric-label {
    color: var(--wtr-gray);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--wtr-light);
}

main {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: start;
}

main > div {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

main > section {
    /* Trasy GPX - pojedyncza sekcja w prawej kolumnie */
    height: fit-content;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title-row h2 {
    margin: 0;
    font-size: 1.25rem;
}

.section-title-row a {
    font-size: 0.95rem;
    color: var(--wtr-gray);
}

.section-title-row .fs-5 {
    font-size: 1.25rem !important;
}

.section-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
}

.section-title-pill .section-link {
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.0rem;
    margin-left: auto;
}

.section-title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wtr-red);
    flex-shrink: 0;
}

/* Panel pod mapą województw – dopasowany do ciemnego motywu */
.wtr-map-panel {
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(13,110,253,0.15) 0%, rgba(13,110,253,0.05) 100%);
    border: 1px solid rgba(13,110,253,0.35);
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    flex: 1;
}

.list-item {
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-primary {
    font-weight: 500;
    font-size: 1rem;
}

.list-secondary {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

footer.site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--wtr-border);
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.footer-brand img {
    width: 32px;
    height: auto;
}

.footer-brand-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.footer-brand-subtitle {
    font-size: 0.8rem;
    color: var(--wtr-gray);
}

.footer-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--wtr-gray);
    line-height: 1.5;
    text-align: right;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.08);
    color: var(--wtr-red);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--wtr-red);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

footer.site-footer a {
    color: var(--wtr-gray);
}

@media (min-width: 1400px) {
    body {
        font-size: 18px;
    }
    
    .card {
        padding: 3rem 3.5rem;
        min-height: 250px;
    }
    
    .hero-main {
        padding: 3rem 3.5rem;
    }
    
    main {
        gap: 3rem;
    }
    
    main > div {
        gap: 3rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .card {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 900px) {
    /* Container - mniejsze marginesy na mobile */
    .container {
        --bs-gutter-x: 0.5rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .hero {
        /* Na mobile sekcja hero w jednej kolumnie, ale z priorytetem dla hero-side */
        display: flex;
        flex-direction: column;
        grid-template-columns: minmax(0,1fr);
    }
    .hero-side {
        order: 1;
    }
    .hero-main {
        order: 2;
    }
    main {
        grid-template-columns: minmax(0,1fr);
        gap: 2rem;
    }
    
    main > div {
        gap: 2rem;
    }
    
    main > section {
        position: static;
    }
    
    .card {
        min-height: auto;
        padding: 1.5rem 0.75rem;
    }
    
    .weather-section {
        padding: 1rem 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Kompaktowy kalkulator na małych ekranach */
    .calc-row-compact {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .calc-group-small label {
        font-size: 0.65rem;
    }
    
    .calc-group-small select,
    .calc-group-small input {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    :root {
        --wtr-max-width: 1100px;
    }
}

@media (max-width: 700px) {
    /* Container - jeszcze mniejsze marginesy na bardzo małych ekranach */
    .container {
        --bs-gutter-x: 0.25rem !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        max-width: 100% !important;
    }
    
    .card,
    .weather-section {
        padding: 1rem 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Shell bez padding na mobile */
    .shell {
        padding-inline: 0rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Expand buttons - naprawione pozycjonowanie */
    .section-expand-row {
        margin-right: 0 !important;
        margin-top: 0.1rem !important;
        padding: 0 0.5rem !important;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .expand-btn,
    .refresh-weather-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .expand-btn i,
    .refresh-weather-btn i {
        font-size: 13px !important;
    }
    
    /* Zmniejszona animacja expand na mobile */
    .expandable-section {
        transition: all 0.25s ease !important;
    }
    
    .expandable-section.expanded {
        animation: expandFromCenterMobile 0.25s ease !important;
        top: 60px !important;
        width: calc(100% - 1rem) !important;
        height: calc(100vh - 80px) !important;
    }
    
    @keyframes expandFromCenterMobile {
        0% {
            transform: translateX(-50%) scale(0.9);
            opacity: 0;
        }
        100% {
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }
    }
    
    body.section-expanded .expandable-section:not(.expanded) {
        transition: all 0.2s ease !important;
    }
    
    header.site-header {
        position: static;
    }

    .container-custom {
        padding: 0 1rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    nav.main-nav {
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.4rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem !important;
    }

    .hero-main {
        padding: 1.6rem 1.4rem;
        position: relative;
    }
    
    .hero .section-expand-row {
        margin-right: 0 !important;
        margin-top: 0.1rem !important;
        padding: 0 0.5rem;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .hero-pill {
        font-size: 0.6rem;
        padding: 0.12rem 0.5rem;
        letter-spacing: 0.08em;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .hero-pill span.fs-6 {
        font-size: 0.65rem !important;
        line-height: 1.3;
    }
    
    .hero-pill-dot {
        width: 6px;
        height: 6px;
    }
    
    .section-title-pill {
        font-size: 0.9rem;
        padding: 0.15rem 0.6rem;
        letter-spacing: 0.08em;
        gap: 0.3rem;
    }
    
    .section-title-dot {
        width: 6px;
        height: 6px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-lead {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.25rem 1rem;
    }

    .shell {
        padding-inline: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .footer-center {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-text {
        text-align: left;
    }
    
    .footer-social {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Responsywność kompasu na telefonie */
    .route-compass {
        padding: 0.3rem 0.2rem 0.5rem 0.2rem !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
        margin: 0.5rem 0.1rem 0.7rem 0.1rem !important;
        position: relative;
    }
    .compass-wrapper {
        padding: 2px 2px 6px 2px !important;
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: hidden !important;
        position: relative;
        border-radius: 8px !important;
        background: #fafbfc !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.03) !important;
        margin: 0 auto !important;
    }
    .compass-container {
        max-width: 100vw !important;
        width: 100vw !important;
        height: 80px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        position: relative;
        border-radius: 6px !important;
        background: none !important;
    }
    .compass-center {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
    }
    .compass-center i {
        font-size: 8px !important;
    }
    .compass-label {
        font-size: 7px !important;
    }
    .route-arrow {
        width: 18px !important;
        min-width: 18px !important;
        margin: 0 1px !important;
    }
    .arrow-line {
        height: 6px !important;
        width: 1.2px !important;
        background: #bbb !important;
        margin: 0 auto !important;
        border-radius: 1.5px !important;
    }
    .arrow-head {
        font-size: 8px !important;
        line-height: 1 !important;
        margin: 0 auto !important;
        color: #c62828 !important;
        font-weight: 700 !important;
    }
    .route-label {
        font-size: 6px !important;
        padding: 0 1px !important;
        white-space: nowrap !important;
        max-width: 28px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
        vertical-align: middle;
        background: none !important;
    }
    .route-label br {
        display: none;
    }
    .route-label small {
        font-size: 6px !important;
        margin-left: 2px !important;
    }
    .route-label small::before {
        content: " - ";
    }
    .arrow-head {
        font-size: 16px;
    }
    
    /* Wskaźniki wiatru mniejsze */
    .wind-indicators {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.1rem !important;
        margin-bottom: 0.3rem !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100vw !important;
        overflow-x: hidden !important;
        margin-left: calc(-50vw + 50%) !important;
        box-sizing: border-box;
    }
    .wind-indicator {
        padding: 2px 4px !important;
        min-width: 32px !important;
        font-size: 7px !important;
        gap: 2px !important;
        border-radius: 8px !important;
    }
    .wind-indicator i {
        font-size: 12px !important;
    }
    .wind-indicator small {
        font-size: 6px !important;
    }
    .wind-lines {
        gap: 1px !important;
    }
    .wind-lines span {
        width: 8px !important;
        height: 1px !important;
    }
    
    /* Kalkulator - jedna kolumna na telefonie */
    .calc-row-compact {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .calc-group-small {
        gap: 0.25rem;
        width: 100% !important;
    }
    
    .calc-group-small label {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .calc-group-small select,
    .calc-group-small input {
        padding: 14px;
        font-size: 1.05rem;
        border-radius: 10px;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Przyciski kalkulatora */
    .calc-buttons {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.5rem;
    }
    
    .calc-buttons button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
    
    /* Tytuł suggested routes */
    .suggested-routes h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Tabela tras - UKŁAD KART NA MOBILE */
    .table-scroll-wrapper {
        display: none; /* Ukryj wrapper ze strzałkami */
    }
    
    .routes-table {
        display: none !important; /* Ukryj tabelę na mobile */
    }
    
    /* Karty tras - tylko na mobile */
    .routes-cards-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .route-card-mobile {
        background: white;
        border: 1px solid rgba(229, 57, 53, 0.15);
        border-radius: 12px;
        padding: 0.75rem;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
        align-items: start;
    }
    
    .route-card-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(229, 57, 53, 0.08);
        border-radius: 8px;
        color: var(--wtr-red);
    }
    
    .route-card-content {
        flex: 1;
    }
    
    .route-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .route-card-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--wtr-dark);
    }
    
    .route-card-distance {
        font-size: 0.85rem;
        color: var(--wtr-gray);
    }
    
    .route-card-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .route-card-stat {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
    
    .route-card-stat-label {
        font-size: 0.65rem;
        color: var(--wtr-gray);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    
    .route-card-stat-value {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--wtr-dark);
    }
    
    /* Ukryj karty na desktop */
    .routes-cards-mobile {
        display: none;
    }
    
    .route-difficulty {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
        white-space: nowrap;
        display: inline-block;
    }
    
    .route-direction-icon {
        font-size: 0.85rem;
        margin-right: 2px;
    }
    
    /* Kompas legend */
    .compass-legend {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        font-size: 0.7rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .legend-item i {
        font-size: 0.9rem;
    }
    
    /* Wind directions boxes - w jednej linii na mobile */
    .wind-dir-items {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    
    .wind-dir-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .wind-dir-item i {
        font-size: 1rem;
    }
    
    .wind-dir-item span {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .wind-dir-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Weather section - lepsze odstępy */
    .weather-content {
        padding: 0;
        gap: 1rem;
    }
    
    .weather-main {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .weather-details {
        grid-template-columns: 1fr !important;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .weather-item {
        min-width: auto;
        padding: 0.5rem;
    }
    
    /* Wind directions */
    .wind-directions {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Przyciski w sekcjach - NAPRAWIONE */
    .section-expand-row {
        margin-right: 0 !important;
        margin-top: 0.1rem !important;
        padding: 0 0.5rem;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .expand-btn,
    .refresh-weather-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .expand-btn i,
    .refresh-weather-btn i {
        font-size: 14px;
    }
    
    /* Modal info */
    .calc-info-modal .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .calc-info-modal h3 {
        font-size: 1.25rem;
    }
    
    .calc-info-modal h4 {
        font-size: 1rem;
    }
    
    .calc-info-modal p,
    .calc-info-modal li {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .calc-info-modal code {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Bardzo małe telefony */
@media (max-width: 400px) {
    .compass-container {
        height: 230px;
    }
    
    .route-arrow {
        width: 65px;
    }
    
    .compass-center {
        width: 40px;
        height: 40px;
    }
    
    .compass-center i {
        font-size: 16px;
    }
    
    .route-label {
        font-size: 8px;
    }
    
    .route-label small {
        font-size: 6px;
    }
    
    .routes-table th,
    .routes-table td {
        padding: 6px 3px;
        font-size: 0.6rem;
    }
    
    .route-difficulty {
        font-size: 0.55rem !important;
        padding: 1px 3px !important;
    }
    
    .wind-indicator {
        padding: 4px 6px;
    }
    
    .wind-indicator i {
        font-size: 14px;
    }
}

/* APP PROTOTYPE */

body.app {
    background: #111111;
    color: #ffffff;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.75rem;
}

.phone {
    width: 380px;
    max-width: 100%;
    background: #000000;
    border-radius: 32px;
    padding: 0.75rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.05);
}

.phone-inner {
    border-radius: 26px;
    background: radial-gradient(circle at top left, #2b0505, #050608 58%, #050608);
    padding: 1rem 1.1rem 1.2rem;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    border-radius: 999px;
    background: rgba(0,0,0,0.85);
}

.phone-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    opacity: 0.6;
    margin-bottom: 0.6rem;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.app-logo-dot {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.9);
}

.app-brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.app-tag {
    font-size: 0.65rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.8;
}

.app-hero {
    margin-bottom: 1rem;
}

.app-hero h1 {
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
}

.app-hero p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

.app-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.app-chip {
    font-size: 0.63rem;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.82);
}

.app-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.7));
    border-radius: 16px;
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    color: rgba(255,255,255,0.75);
}

.app-card-title {
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.app-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

.app-card-meta strong {
    font-size: 0.8rem;
    color: #ffffff;
}

.app-badge {
    font-size: 0.6rem;
    padding: 0.12rem 0.5rem;
    border-radius: 99px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-badge.hot {
    background: rgba(229,57,53,0.75);
    border-color: rgba(255,255,255,0.7);
}

.app-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 0.65rem;
}

.app-nav-btn {
    border-radius: 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 0.3rem;
    text-align: center;
    color: rgba(255,255,255,0.78);
    cursor: pointer;
}

.app-nav-btn strong {
    display: block;
    margin-bottom: 0.08rem;
    font-size: 0.7rem;
    color: #ffffff;
}

.app-nav-btn span {
    opacity: 0.7;
}

.app-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
}

.app-cta {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #e53935;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    border: none;
}

/* Section links */
.section-link {
    color: var(--wtr-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.section-link:hover {
    color: #c62828;
    transform: translateX(3px);
}

/* Weather Section */
.weather-section {
    margin-bottom: 2rem;
}

.weather-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(229, 57, 53, 0.03);
    border-radius: 12px;
}

.weather-icon {
    font-size: 3rem;
    color: var(--wtr-red);
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.weather-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.weather-item i {
    font-size: 1.5rem;
    color: var(--wtr-red);
}

.weather-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weather-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.wind-directions {
    padding: 1rem;
    background: rgba(229, 57, 53, 0.03);
    border-radius: 12px;
}

.wind-dir-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wind-dir-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wind-dir-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.wind-dir-item.with-wind {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.wind-dir-item.against-wind {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.wind-dir-item i {
    font-size: 1.25rem;
}

.wind-dir-item strong {
    font-weight: 600;
}

/* Route Compass */
.route-compass {
    display: none !important; /* tymczasowo ukryty – zostaje tylko mapa Windy */
}

    .compass-toggle-btn {
        background: var(--wtr-red);
        color: white;
        border: none;
        border-radius: 50%;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem !important;
        margin-left: 0.2rem !important;
        margin-right: 0.1rem !important;
        box-shadow: 0 1px 4px rgba(229,57,53,0.08);
    }
    .compass-toggle-btn i {
        font-size: 1rem !important;
        line-height: 1 !important;
    }

.compass-toggle-btn:hover {
    background: #c62828;
    transform: scale(1.1);
}

.compass-toggle-btn i {
    font-size: 1rem;
}

.compass-wrapper {
    animation: slideDown 0.3s ease;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compass-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 460px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    padding: 20px;
}

/* Osadzona mapa Windy */
.windy-embed {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.windy-embed-inner {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.windy-embed-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .windy-embed {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* Etykiety globalnych kierunków świata wokół kompasu */
.global-dir-label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    width: 24px;
    z-index: 1;
}

.global-dir-n {
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
}

.global-dir-s {
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
}

.global-dir-e {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.global-dir-w {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 700px) {
    .global-dir-label {
        display: none;
    }
}

/* Minimalistyczna igła wiatru (obracana JS) */
.compass-wrapper.minimal-compass .wind-needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 140px;
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.95), rgba(229, 57, 53, 0.15));
    border-radius: 999px;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.25);
    pointer-events: none;
    z-index: 3;
}

.compass-wrapper.minimal-compass .wind-needle::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid rgba(229, 57, 53, 0.95);
}

.compass-wrapper.minimal-compass .compass-center {
    z-index: 4;
}

/* Wind Animation */
.wind-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
}

.wind-line {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.9), rgba(229, 57, 53, 0.5), transparent);
    animation: windBlow 2.5s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
}

.wind-line:nth-child(1) {
    top: 25%;
    width: 180px;
    animation-delay: 0s;
}

.wind-line:nth-child(2) {
    top: 50%;
    width: 140px;
    animation-delay: 0.8s;
}

.wind-line:nth-child(3) {
    top: 75%;
    width: 200px;
    animation-delay: 1.6s;
}

@keyframes windBlow {
    0% {
        left: -220px;
        opacity: 0;
        transform: translateX(0);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 20px);
        opacity: 0;
        transform: translateX(0);
    }
}

/* Wind Indicators - wskaźniki wiatru dla każdego kierunku */
.wind-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.wind-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    opacity: 0.4;
}

.wind-indicator i {
    font-size: 24px;
    color: #666;
    transition: all 0.4s ease;
}

.wind-indicator small {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.wind-indicator.tailwind {
    opacity: 1;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.wind-indicator.tailwind i,
.wind-indicator.tailwind small {
    color: #4caf50;
}

    .wind-indicator.headwind {
        opacity: 1;
        background: rgba(244, 67, 54, 0.1);
        border: 0 !important;
        box-shadow: 0 2px 4px rgba(244, 67, 54, 0.12);
    }

.wind-indicator.headwind i,
.wind-indicator.headwind small {
    color: #f44336;
}

.wind-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wind-lines span {
    display: block;
    height: 2px;
    width: 20px;
    background: currentColor;
    border-radius: 1px;
    opacity: 0;
}

.wind-indicator.tailwind .wind-lines span,
.wind-indicator.headwind .wind-lines span {
    animation: windFlow 1.5s ease-in-out infinite;
}

.wind-indicator.tailwind .wind-lines span:nth-child(1),
.wind-indicator.headwind .wind-lines span:nth-child(1) {
    animation-delay: 0s;
}

.wind-indicator.tailwind .wind-lines span:nth-child(2),
.wind-indicator.headwind .wind-lines span:nth-child(2) {
    animation-delay: 0.3s;
}

.wind-indicator.tailwind .wind-lines span:nth-child(3),
.wind-indicator.headwind .wind-lines span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes windFlow {
    0% {
        opacity: 0;
        transform: translateX(-5px);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(5px);
    }
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--wtr-red);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
    z-index: 10;
}

.compass-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.route-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.arrow-line {
    width: 50px;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.arrow-head {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.route-label {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wtr-dark);
    white-space: nowrap;
    text-align: center;
}

.route-label small {
    font-size: 0.7rem;
    color: var(--wtr-gray);
    font-weight: 400;
}

.route-north {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
}

.route-north .arrow-line {
    height: 28px;
    width: 3px;
    margin-top: 36px;
}

.route-north .route-label {
    top: -18px;
}

.route-northeast {
    top: 15%;
    right: 15%;
    transform: rotate(45deg);
}

.route-northeast .arrow-line {
    margin-right: 15px;
    margin-top: 15px;
}

.route-northeast .route-label {
    transform: rotate(-45deg);
    right: -80px;
    top: -25px;
}

.route-east {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.route-east .arrow-line {
    margin-right: 20px;
}

.route-east .route-label {
    right: -80px;
}

.route-southeast {
    bottom: 22%;
    right: 15%;
    transform: rotate(135deg);
}

.route-southeast .arrow-line {
    margin-right: 15px;
    margin-bottom: 15px;
}

.route-southeast .route-label {
    transform: rotate(-135deg);
    right: -80px;
    bottom: -10px;
}

.route-south {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.route-south .arrow-line {
    height: 28px;
    width: 3px;
    margin-bottom: 24px;
}

.route-south .route-label {
    bottom: -28px;
}

.route-southwest {
    bottom: 22%;
    left: 15%;
    transform: rotate(225deg);
}

.route-southwest .arrow-line {
    margin-left: 15px;
    margin-bottom: 15px;
}

.route-southwest .route-label {
    transform: rotate(-225deg);
    left: -80px;
    bottom: -10px;
}

.route-west {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

.route-west .arrow-line {
    margin-left: 20px;
}

.route-west .route-label {
    left: -80px;
}

.route-northwest {
    top: 15%;
    left: 15%;
    transform: rotate(315deg);
}

.route-northwest .arrow-line {
    margin-left: 15px;
    margin-top: 15px;
}

.route-northwest .route-label {
    transform: rotate(-315deg);
    left: -80px;
    top: -25px;
}

.route-arrow.with-wind .arrow-line {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.route-arrow.with-wind .arrow-head {
    color: #4caf50;
}

.route-arrow.against-wind .arrow-line {
    background: linear-gradient(90deg, #f44336, #e57373);
}

.route-arrow.against-wind .arrow-head {
    color: #f44336;
}

.compass-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.legend-item.with-wind-route {
    color: #2e7d32;
}

.legend-item.against-wind-route {
    color: #c62828;
}

/* Suggested Routes Table */
.suggested-routes {
    margin-top: 1.5rem;
}

.suggested-routes h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Czytelniejsze sugerowane kierunki pod mapą Windy */
.suggested-routes {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0.75rem;
}
.suggested-routes h4 {
    color: #ffffff;
}
.suggested-routes li {
    color: #ffffff;
    font-size: 0.95rem;
}
.suggested-routes li strong {
    color: var(--wtr-red);
}

/* Advanced Calculator */
.advanced-calculator {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.03), rgba(229, 57, 53, 0.06));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(229, 57, 53, 0.1);
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.calc-row-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-group-small {
    gap: 0.3rem;
}

.calc-group-small label {
    font-size: 0.7rem;
    white-space: nowrap;
}

.calc-group-small select,
.calc-group-small input[type="number"],
.calc-group-small input[type="text"] {
    padding: 6px 8px;
    font-size: 0.85rem;
    min-width: 0;
}

.calc-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wtr-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.calc-group select,
.calc-group input {
    padding: 10px 12px;
    border: 2px solid rgba(229, 57, 53, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--wtr-dark);
    background: white;
    transition: all 0.3s ease;
}

/* Lepszy kontrast dla wszystkich SELECT (także rozwijanej listy) */
select,
.form-select,
select option,
.form-select option {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Dodatkowe wzmocnienie dla kluczowych pól kalkulatora */
#calcRideDirection,
#riderGroup,
#wizardStartLocation,
#wizardRideDirection,
#calcStartLocation {
    background-color: #ffffff !important;
    color: #111111 !important;
}

#wizardRideDirection {
    background-color: #ffffff !important;
    color: #111111 !important;
}

.calc-group select:focus,
.calc-group input:focus {
    outline: none;
    border-color: var(--wtr-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.calc-group input:disabled {
    background: rgba(0,0,0,0.05);
    cursor: not-allowed;
}

/* Slider styles */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(229, 57, 53, 0.2), var(--wtr-red));
    border-radius: 2px;
    outline: none;
    margin-top: 2px;
    cursor: pointer;
    min-width: 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--wtr-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
}

.calc-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--wtr-red);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
}

.calc-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-btn {
    padding: 10px 20px;
    background: white;
    color: var(--wtr-red);
    border: 2px solid var(--wtr-red);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(229, 57, 53, 0.05);
    transform: translateY(-2px);
}

/* Calculation Info – jako sekcja pod kalkulatorem, bez overlay */
.calc-info-modal {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
}

.calc-info-modal .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.6) !important;
}

/* Mapa kierunków / punktów – większa wysokość, klikalne punkty */
#viaMapContainer #viaMap {
    min-height: 480px;
}
#viaMapContainer #viaMap .leaflet-marker-icon,
#viaMapContainer #viaMap .leaflet-interactive {
    cursor: pointer;
}

/* Pełnoekranowy widok mapy kierunków w kreatorze (gdy browser fullscreen nie zadziała) */
#viaMapContainer.via-map-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: #000;
    padding: 0.75rem;
    border-radius: 0;
}

#viaMapContainer.via-map-fullscreen #viaMap {
    height: calc(100vh - 3rem) !important;
    width: 100% !important;
    border-radius: 0.75rem;
}

#viaMapContainer.via-map-fullscreen .form-text {
    color: #ffffff;
}

/* Strzałka wiatru na mapie checkboxów */
.wind-tooltip-bold {
    font-weight: 700;
    font-size: 0.9rem;
}
.wind-arrow-head {
    background: none !important;
    border: none !important;
}

/* Checkboxy punktów pośrednich – lepsze na mobile */
.form-check-label {
    cursor: pointer;
}
@media (max-width: 768px) {
    .via-point-checkbox {
        width: 1.4rem;
        height: 1.4rem;
    }
    .via-point-checkbox + .form-check-label {
        font-size: 1rem;
        padding-left: 0.35rem;
    }
    #viaMapContainer .form-check {
        padding: 0.25rem 0;
    }
}

/* Przyciski nawigacji w kreatorze – jeden pod drugim na mobile */
.wizard-nav-buttons {
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .wizard-nav-buttons .btn {
        width: 50%;
    }
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--wtr-red);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    border-left: 4px solid var(--wtr-red);
}

.info-section h4 {
    font-size: 1rem;
    color: var(--wtr-dark);
    margin-bottom: 0.75rem;
}

.info-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.info-section ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-section li {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #666;
}

.info-section code {
    display: block;
    background: rgba(229, 57, 53, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--wtr-red);
    margin: 0.5rem 0;
}

.info-section em {
    color: var(--wtr-red);
    font-style: normal;
    font-weight: 600;
}

/* Speed Calculator */
.speed-calculator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(229, 57, 53, 0.03);
    border-radius: 12px;
}

.speed-calculator label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wtr-dark);
}

.speed-calculator input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid rgba(229, 57, 53, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--wtr-red);
    transition: all 0.3s ease;
}

.speed-calculator input:focus {
    outline: none;
    border-color: var(--wtr-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.recalc-btn {
    padding: 8px 16px;
    background: var(--wtr-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.recalc-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.recalc-btn i {
    font-size: 1rem;
}

/* Wrapper tabeli – blok kolorystyczny w stylu kalkulatora (ciemny motyw) */
.table-scroll-wrapper {
    position: relative;
    background: rgba(21, 26, 48, 0.95);
    border: 1px solid var(--wtr-border);
    border-radius: var(--wtr-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-indicator {
    display: none;
}

/* Nadpisanie Bootstrap .table – ciemny motyw, bez zielonego #d1e7dd */
.table-scroll-wrapper .table,
.routes-table.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-active-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

/* Wyzerowanie koloru tła Bootstrap table-success (zielony #d1e7dd) wewnątrz tabeli tras */
.table-scroll-wrapper .table-success,
.routes-table .table-success {
    --bs-table-bg: transparent;
    background-color: transparent !important;
}

.routes-table {
    width: 100%;
    min-width: 960px;
    table-layout: fixed;
    font-size: 0.8rem;
    border-collapse: collapse;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.routes-table th {
    white-space: nowrap;
}

.routes-table th:nth-child(1),
.routes-table td:nth-child(1) { width: 10%; min-width: 72px; }
.routes-table th:nth-child(2),
.routes-table td:nth-child(2) { width: 12%; min-width: 80px; }
.routes-table th:nth-child(3),
.routes-table td:nth-child(3) { width: 8%; min-width: 56px; }
.routes-table th:nth-child(4),
.routes-table td:nth-child(4) { width: 9%; min-width: 64px; }
.routes-table th:nth-child(5),
.routes-table td:nth-child(5) { width: 8%; min-width: 58px; }
.routes-table th:nth-child(6),
.routes-table td:nth-child(6) { width: 7%; min-width: 44px; }
.routes-table th:nth-child(7),
.routes-table td:nth-child(7) { width: 10%; min-width: 68px; }   /* Trudność */
.routes-table th:nth-child(8),
.routes-table td:nth-child(8) { width: 15%; min-width: 100px; }  /* Wiatr */
.routes-table th:nth-child(9),
.routes-table td:nth-child(9) { width: 14%; min-width: 90px; }   /* Trasa */

/* Nagłówek – wyraźny blok kolorystyczny (czerwień WTR) */
.routes-table thead {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.25) 0%, rgba(229, 57, 53, 0.15) 100%);
    border-bottom: 2px solid rgba(255, 69, 0, 0.4);
}

.routes-table thead tr {
    border: none;
}

.routes-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.routes-table th:last-child {
    border-right: none;
}

/* Wiersze – naprzemienne bloki tylko dla wierszy z danymi (nie mapą) */
.routes-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.routes-table tbody tr.route-main-row:nth-child(4n+1) {
    background: rgba(255, 255, 255, 0.02);
}

.routes-table tbody tr.route-main-row:nth-child(4n+3) {
    background: rgba(255, 255, 255, 0.05);
}

.routes-table tbody tr.route-map-row {
    background: rgba(10, 14, 39, 0.5);
}

.routes-table tbody tr.route-map-row td {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    vertical-align: top;
}

.routes-table tbody tr.route-main-row:hover {
    background: rgba(255, 69, 0, 0.08) !important;
}

.routes-table td {
    padding: 10px 12px;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: middle;
}

.routes-table td:last-child {
    border-right: none;
}

/* Wyróżnienie trasy w tabeli (wybrana / przez punkty via) */
.routes-table .route-main-row.highlighted {
    outline: 2px solid var(--wtr-red);
    outline-offset: -2px;
    background: rgba(255, 69, 0, 0.15) !important;
}

/* Trasa rekomendowana – delikatny blok w tonie pomarańczowym */
.routes-table .route-main-row.table-success {
    background: rgba(255, 193, 7, 0.12) !important;
    color: rgba(255, 255, 255, 0.95);
}

.routes-table .route-main-row.table-success:hover {
    background: rgba(255, 193, 7, 0.18) !important;
}

/* Wyróżnienie karty trasy na mobile */
.route-card.highlighted {
    border: 2px solid var(--wtr-red-light);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.4);
}

/* Route map row styles */
/* .route-map-row {
    background: #f8f9fa !important;
}

.route-map-row:hover {
    background: #f8f9fa !important;
} */

.route-map-container {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.route-map {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(229, 57, 53, 0.2);
    box-sizing: border-box;
}

.route-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.route-status.easy {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.route-status.hard {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.route-direction-icon {
    font-size: 1.1rem;
    margin-right: 5px;
    font-weight: 400;
}

.route-direction-easy {
    color: #2e7d32;
}

.route-direction-hard {
    color: #c62828;
}

.time-cell {
    font-weight: 400;
    color: #666;
}

.power-cell {
    font-weight: 400;
}

.power-easy {
    color: #2e7d32;
    font-weight: 400;
}

.power-normal {
    color: #f57c00;
    font-weight: 400;
}

.power-hard {
    color: #c62828;
    font-weight: 400;
}

.speed-cell {
    font-weight: 400;
    color: #555;
}

.energy-cell {
    font-weight: 400;
    color: #666;
}

.route-difficulty {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.diff-very-easy {
    background: rgba(76, 175, 80, 0.15);
    color: #1b5e20;
}

.diff-easy {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.diff-normal {
    background: rgba(255, 193, 7, 0.15);
    color: #f57f17;
}

.diff-hard {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.diff-very-hard {
    background: rgba(244, 67, 54, 0.2);
    color: #b71c1c;
}

/* Expand/Collapse functionality */
.section-expand-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
    margin-right: 0;
    min-height: 36px;
    padding: 0 0.5rem;
    gap: 0.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-link {
    color: var(--wtr-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.section-link:hover {
    color: #c62828;
}

.expand-btn,
.expand-btn-hero {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(229, 57, 53, 0.1);
                 color: var(--wtr-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.refresh-weather-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    color: #4caf50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.refresh-weather-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.refresh-weather-btn:active {
    animation: refreshSpin 0.6s ease;
}

@keyframes refreshSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.expand-btn:hover,
.expand-btn-hero:hover {
    background-color: var(--wtr-red);
    color: white;
    transform: scale(1.1);
}

.expand-btn i,
.expand-btn-hero i {
    font-size: 16px;
}


.form-select, .form-input{ 
  background: transparent;
  color: #767171;
  border: 1px solid rgba(255, 69, 0, 0.2);
}

.navbar-toggler {
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid white;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1); /* szybki hack */
}


/* Expanded section state */
.expandable-section {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center center;
}

body.section-expanded .expandable-section:not(.expanded) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(0.9);
}

.expandable-section.expanded {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(1) !important;
    width: calc(100% - 3rem) !important;
    max-width: 1400px !important;
    height: calc(100vh - 100px) !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    animation: expandFromCenter 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes expandFromCenter {
    0% {
        transform: translateX(-50%) scale(0.3);
        opacity: 0;
        border-radius: 50%;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        border-radius: 18px;
    }
}

.hero.expanded {
    display: block !important;
    animation: expandFromCenter 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero.expanded .hero-main {
    width: 100% !important;
}

.hero.expanded .hero-side {
    display: none !important;
}

.expandable-section.expanded .card-body {
    max-height: none;
}

/* Backdrop for expanded state */
body.section-expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.routes-cards-mobile {
    display: none;
}
@media (max-width: 900px) {
    .routes-table {
        display: none;
    }
    .routes-cards-mobile {
        display: block;
    }
}

/* Kalendarz - styl kartowy na mobile */
@media (max-width: 900px) {
    #kalendarz .list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    #kalendarz .list-item {
        display: flex;
        align-items: center;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(229,57,53,0.07);
        padding: 1rem 1.2rem;
        gap: 1.2rem;
        border: none;
        min-height: 64px;
    }
    #kalendarz .calendar-card-time {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--wtr-red);
        min-width: 54px;
        text-align: center;
        letter-spacing: 0.02em;
    }
    #kalendarz .calendar-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
    #kalendarz .calendar-card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--wtr-dark);
        margin-bottom: 0.1rem;
    }
    #kalendarz .calendar-card-subtitle {
        font-size: 0.85rem;
        color: var(--wtr-gray);
        font-weight: 400;
    }
}

/* Uproszczony kompas na mobile */
@media (max-width: 700px) {
    .compass-container {
        display: none !important;
    }
    .simple-compass-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        justify-content: center;
        margin: 1.2rem 0 0.5rem 0;
    }
    .simple-compass-row {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }
    .simple-arrow {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
        font-weight: bold;
        border-radius: 16px;
        padding: 0.7rem 1.2rem;
        min-width: 90px;
        min-height: 70px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    }
    .simple-arrow.with-wind {
        background: #e8f5e9;
        color: #388e3c;
    }
    .simple-arrow.against-wind {
        background: #ffebee;
        color: #d32f2f;
    }
    .simple-arrow-label {
        font-size: 1rem;
        font-weight: 600;
        margin-top: 0.5rem;
        text-align: center;
    }
    .simple-arrow-city {
        font-size: 0.9rem;
        color: #666;
        margin-top: 0.2rem;
        text-align: center;
    }
}
@media (min-width: 701px) {
    .simple-compass-mobile {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .wind-indicator i {
        font-size: 2.2rem !important;
    }
}


/* Etykiety trudności wiatru - tylko kolorowy tekst bez background */
.route-wind-label {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 700;
    white-space: nowrap;
}

.route-wind-label.w-plecy {
    color: #4CAF50;
}

.route-wind-label.boczny-w-plecy-lewy,
.route-wind-label.boczny-w-plecy-prawy {
    color: #8BC34A;
}

.route-wind-label.boczny-lewy,
.route-wind-label.boczny-prawy {
    color: #F57C00;
}

.route-wind-label.boczny-pod-wiatr-lewy,
.route-wind-label.boczny-pod-wiatr-prawy {
    color: #FF6F00;
}

.route-wind-label.pod-wiatr {
    color: #F44336;
}


#tooltip{
  position:fixed;
  display:none;
  padding:8px 10px;
  border-radius:10px;
  background:#111;
  color:#fff;
  font:14px system-ui, sans-serif;
  pointer-events:none;
  z-index:9999;
}