/* --- Podstawowe style strony --- */
body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 100%; 
}

/* --- Style dla własnych ikonek na mapie --- */
.marker {
    background-size: cover;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    z-index: 5; 
}

.marker-polecane {
    z-index: 10; 
    width: 38px;
    height: 38px;
    border: 2px solid #ffc107;
}

/* --- ULEPSZONE STYLE DLA OKIENKA POPUP --- */
.mapboxgl-popup {
    max-width: 500px; 
    font-family: 'Outfit', sans-serif;
    z-index: 15;
}

/* ZMIANA: Usunięcie domyślnego paddingu, aby zdjęcie przylegało do krawędzi */
.mapboxgl-popup-content {
    padding: 0; 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* Zapobiega "wystawaniu" zaokrąglonych rogów */
}

/* --- NOWE STYLE DLA POLECANEGO ARTYKUŁU --- */
.popup-featured-article {
    display: block;
    text-decoration: none;
    position: relative; /* Potrzebne do pozycjonowania tytułu */
    color: white;
}

.featured-image {
    width: 100%;
    height: 180px; /* Wysokość zdjęcia */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.popup-featured-article:hover .featured-image {
    transform: scale(1.05); /* Efekt lekkiego powiększenia zdjęcia */
}

.featured-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* Gradient dla lepszej czytelności */
}

/* --- Kontener na resztę informacji --- */
.popup-details {
    padding: 20px;
}

.popup-details h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-right: 40px; 
    box-sizing: border-box;
}

.popup-details p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #34495e;
    font-size: 15px;
}

.popup-details p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* --- Kontener na przyciski --- */
.popup-buttons-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.popup-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #202F7B; 
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
    margin-right: 10px;
    margin-bottom: 5px; /* Dodatkowy margines na wypadek zawijania linii */
}

.popup-button:hover {
    background-color: #2f45b4; 
    transform: translateY(-1px);
}

.popup-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* --- Przycisk zamykania "X" --- */
.mapboxgl-popup-close-button {
    font-size: 24px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    padding: 0;
    right: 8px;
    top: 8px;
}
