/**
 * Frontend styles for Pielgrzymka Lublin
 */

/* ========================================
   GENERAL STYLES
   ======================================== */

.pielgrzymka-mapa-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
}

.pielgrzymka-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pielgrzymka-btn:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a3c61 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    color: #fff;
}

.pielgrzymka-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.pielgrzymka-btn-outline {
    background: transparent;
    border: 2px solid #2271b1;
    color: #2271b1;
}

.pielgrzymka-btn-outline:hover {
    background: #2271b1;
    color: #fff;
}

.pielgrzymka-empty {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* ========================================
   FILTERS
   ======================================== */

.pielgrzymka-filtry {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filtr-group {
    flex: 1;
    min-width: 200px;
}

.filtr-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtr-group select,
.pielgrzymka-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filtr-group select:focus,
.pielgrzymka-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* Wyszarzone dni w dropdownie */
.filtr-dzien option.dzien-disabled,
.filtr-dzien option:disabled {
    color: #999;
    background-color: #f5f5f5;
    font-style: italic;
}

.reset-filtry {
    white-space: nowrap;
}

/* ========================================
   MAP WRAPPER
   ======================================== */

.pielgrzymka-mapa-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pielgrzymka-mapa {
    width: 100%;
    z-index: 1;
    border-radius: 12px;
}

/* ========================================
   LEGEND
   ======================================== */

.pielgrzymka-legenda {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 200px;
    backdrop-filter: blur(10px);
}

.pielgrzymka-legenda h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.legenda-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legenda-color {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legenda-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.legenda-icon-start {
    color: #27ae60;
}

.legenda-icon-end {
    color: #e74c3c;
}

/* ========================================
   DAYS LIST
   ======================================== */

.pielgrzymka-dni-lista {
    margin-top: 30px;
}

.pielgrzymka-dni-lista h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.pielgrzymka-dni-lista h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #2271b1, #135e96);
    border-radius: 2px;
}

.dni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.dzien-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.dzien-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.dzien-card.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

.dzien-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.dzien-numer {
    font-weight: 700;
    font-size: 18px;
    color: #2271b1;
}

.dzien-data {
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.dzien-trasa {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dzien-trasa strong {
    color: #333;
}

.dzien-arrow {
    color: #2271b1;
    font-size: 20px;
}

.dzien-punkty {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.dzien-punkty .punkt {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
}

.punkt-posilek {
    background: #fff3cd !important;
    color: #856404 !important;
}

.punkt-msza {
    background: #d4edda !important;
    color: #155724 !important;
}

.punkt-nocleg {
    background: #cce5ff !important;
    color: #004085 !important;
}

.punkt-odpoczynek {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

.dzien-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dzien-km {
    font-weight: 600;
    color: #2271b1;
    font-size: 15px;
}

.dzien-kolumny-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.kolumna-badge,
.kolumna-badge-sm {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pokaz-na-mapie {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   TRASY PER KOLUMNA IN DAY CARDS
   ======================================== */

.dzien-trasy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.trasa-item {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.trasa-item.trasa-hidden {
    display: none;
}

.trasa-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.trasa-header .kolumna-badge {
    font-size: 11px;
    padding: 2px 8px;
}

.wspolna-info {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.trasa-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.trasa-route .route-start,
.trasa-route .route-end {
    font-weight: 600;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
}

.trasa-route .route-start {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.trasa-route .route-end {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.trasa-route .route-arrow {
    color: #666;
    font-size: 16px;
    font-weight: bold;
}

.trasa-route .route-km {
    margin-left: auto;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.trasa-punkty {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.trasa-punkty .punkt {
    font-size: 10px;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 3px;
    color: #666;
}

/* ========================================
   INACTIVE DAYS (when column doesn't walk)
   ======================================== */

.dzien-card.dzien-inactive {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.dzien-card.dzien-inactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.15);
    border-radius: 12px;
    z-index: 1;
}

.dzien-inactive-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
}

.inactive-message {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: block;
}

.dzien-card.dzien-active {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* ========================================
   GROUP INFO INLINE
   ======================================== */

.grupa-info-inline {
    display: none;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e8f7 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #2271b1;
    font-size: 14px;
}

.grupa-info-inline.show {
    display: block;
}

.grupa-info-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.grupa-info-content strong {
    color: #333;
}

.grupa-kolor-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .grupa-info-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .dzien-inactive-overlay {
        min-width: 150px;
        padding: 10px 15px;
    }

    .inactive-message {
        font-size: 12px;
    }
}

/* ========================================
   COLUMNS LIST
   ======================================== */

.pielgrzymka-kolumny {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.pielgrzymka-kolumny .kolumna-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid;
    transition: transform 0.3s ease;
}

.pielgrzymka-kolumny .kolumna-card:hover {
    transform: translateY(-5px);
}

.kolumna-header {
    padding: 20px;
    color: #fff;
}

.kolumna-header h3 {
    margin: 0;
    font-size: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kolumna-numer {
    font-size: 28px;
    font-weight: 700;
    opacity: 0.8;
}

.kolumna-body {
    padding: 20px;
}

.kolumna-data {
    color: #666;
    margin-bottom: 15px;
}

.kolumna-grupy h4 {
    margin: 20px 0 12px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grupy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grupa-badge-large {
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.grupa-badge-numer {
    font-weight: 700;
}

.grupa-badge-kolor {
    font-size: 11px;
    opacity: 0.9;
}

.grupa-badge-polaczona {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ========================================
   GROUPS LIST
   ======================================== */

.pielgrzymka-grupy {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grupa-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 5px solid;
    transition: transform 0.3s ease;
}

.grupa-card:hover {
    transform: translateY(-3px);
}

.grupa-header {
    padding: 15px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grupa-numer {
    font-weight: 700;
    font-size: 16px;
}

.grupa-nazwa-koloru {
    font-size: 13px;
    opacity: 0.9;
}

.grupa-body {
    padding: 20px;
}

.grupa-kolumna {
    margin-bottom: 10px;
    color: #666;
}

.grupa-prowadzacy {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.grupa-prowadzacy a {
    color: #2271b1;
    text-decoration: none;
}

.grupa-prowadzacy a:hover {
    text-decoration: underline;
}

/* ========================================
   SCHEDULE / HARMONOGRAM
   ======================================== */

.pielgrzymka-harmonogram {
    margin: 20px 0;
}

.harmonogram-timeline {
    position: relative;
    padding-left: 60px;
}

.harmonogram-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2271b1 0%, #27ae60 100%);
    border-radius: 2px;
}

.harmonogram-dzien {
    position: relative;
    padding: 20px 0;
    margin-bottom: 10px;
}

.dzien-marker {
    position: absolute;
    left: -47px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.dzien-marker-numer {
    font-size: 18px;
}

.dzien-content {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-left: 20px;
}

.dzien-date {
    margin-bottom: 10px;
}

.date-full {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.date-weekday {
    color: #666;
    margin-left: 8px;
}

.dzien-route {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.route-start,
.route-end {
    font-weight: 600;
    color: #333;
}

.route-arrow {
    color: #2271b1;
    font-size: 20px;
}

.route-km {
    margin-left: auto;
    background: #2271b1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.dzien-punkty-list {
    margin: 15px 0;
}

.punkt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

.punkt-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.punkt-przejscie .punkt-icon { background: #95a5a6; }
.punkt-posilek .punkt-icon { background: #f39c12; }
.punkt-msza .punkt-icon { background: #27ae60; }
.punkt-nocleg .punkt-icon { background: #3498db; }
.punkt-odpoczynek .punkt-icon { background: #9b59b6; }

.punkt-nazwa {
    flex: 1;
    color: #333;
}

.punkt-godzina {
    color: #666;
    font-size: 12px;
}

.punkt-typ {
    font-size: 11px;
    color: #888;
}

.dzien-opis {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.dzien-kolumny-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.harmonogram-summary {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
}

/* Trasy w harmonogramie - nowa struktura */
.harmonogram-trasy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.harmonogram-trasa {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.trasa-kolumna-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.trasa-kolumna-header .kolumna-badge-sm {
    font-size: 11px;
    padding: 3px 10px;
}

/* Single day - trasy */
.dzien-single-trasy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.dzien-single-trasa {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.dzien-single-trasa .trasa-kolumna-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dzien-single-trasa .kolumna-badge {
    font-size: 13px;
    padding: 5px 15px;
}

/* ========================================
   SELECT GROUP FORM
   ======================================== */

.pielgrzymka-wybierz-grupe {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.pielgrzymka-wybierz-grupe h3 {
    margin: 0 0 25px;
    text-align: center;
    color: #333;
    font-size: 22px;
}

.wybierz-grupe-form .form-group {
    margin-bottom: 20px;
}

.wybierz-grupe-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.grupa-info-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2271b1;
}

/* ========================================
   SINGLE DAY
   ======================================== */

.pielgrzymka-dzien-single {
    max-width: 800px;
    margin: 20px auto;
}

.dzien-single-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border-radius: 15px;
}

.dzien-single-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.dzien-single-data {
    font-size: 18px;
    opacity: 0.9;
}

.dzien-single-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.route-box {
    flex: 1;
    min-width: 200px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.route-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.route-place {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.route-start {
    border-left: 4px solid #27ae60;
}

.route-end {
    border-left: 4px solid #e74c3c;
}

.route-arrow-box {
    text-align: center;
    padding: 20px;
}

.route-km-value {
    display: inline-block;
    padding: 10px 25px;
    background: #2271b1;
    color: #fff;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
}

.dzien-single-punkty {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.dzien-single-punkty h4 {
    margin: 0 0 15px;
    color: #333;
}

.punkty-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.punkty-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.punkty-list li::before {
    content: counter(list-item);
    counter-increment: list-item;
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.punkty-list .punkt-special::before {
    background: #2271b1;
    color: #fff;
}

.punkt-badge {
    margin-left: auto;
    font-size: 12px;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 20px;
}

.dzien-single-opis {
    background: #fffbeb;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
    margin-bottom: 25px;
}

.dzien-single-kolumny {
    margin-bottom: 25px;
}

/* ========================================
   STATISTICS
   ======================================== */

.pielgrzymka-statystyki {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 25px 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-width: 140px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item-dates .stat-value {
    font-size: 20px;
}

/* ========================================
   LEAFLET CUSTOMIZATIONS
   ======================================== */

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 15px;
}

.pielgrzymka-popup {
    min-width: 200px;
}

.pielgrzymka-popup h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 16px;
}

.pielgrzymka-popup p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}

.pielgrzymka-popup .popup-km {
    font-weight: 600;
    color: #2271b1;
}

/* Custom markers */
.custom-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #2271b1;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.marker-number {
    position: absolute;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .pielgrzymka-filtry {
        flex-direction: column;
    }

    .filtr-group {
        width: 100%;
    }

    .pielgrzymka-legenda {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 15px;
        max-width: none;
    }

    .dni-grid {
        grid-template-columns: 1fr;
    }

    .harmonogram-timeline {
        padding-left: 45px;
    }

    .dzien-marker {
        width: 40px;
        height: 40px;
        left: -37px;
    }

    .dzien-marker-numer {
        font-size: 14px;
    }

    .dzien-single-route {
        flex-direction: column;
    }

    .route-box {
        width: 100%;
    }

    .pielgrzymka-kolumny {
        grid-template-columns: 1fr;
    }

    .pielgrzymka-grupy {
        grid-template-columns: 1fr;
    }

    .pielgrzymka-statystyki {
        gap: 15px;
    }

    .stat-item {
        min-width: 100px;
        padding: 15px 20px;
    }

    .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .dzien-trasa {
        flex-direction: column;
        align-items: flex-start;
    }

    .harmonogram-timeline::before {
        left: 18px;
    }

    .harmonogram-timeline {
        padding-left: 35px;
    }

    .dzien-marker {
        width: 35px;
        height: 35px;
        left: -27px;
    }

    .dzien-content {
        margin-left: 10px;
        padding: 15px;
    }
}
