#inat-map-container {
    width: 100%;
    height: 600px;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #262626 !important; /* Pasujące ciemne tło zamiast jasnoszarego */
    position: relative;
}

#inat-map {
    width: 100% !important;
    height: 100% !important;
    background: #262626 !important;
}

/* Wymuszenie ciemnego tła dla samego Leafleta */
.leaflet-container {
    background-color: #262626 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Karta Popup */
.leaflet-popup-content-wrapper {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
    border: 1px solid #2a2a2a;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}

.leaflet-popup-tip {
    background: #1a1a1a !important;
}

.inat-card {
    display: flex;
    flex-direction: column;
}

.inat-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #111;
}

.inat-card-body {
    padding: 14px;
}

.inat-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.inat-card-latin {
    font-size: 13px;
    font-style: italic;
    color: #74AC00;
    margin-bottom: 10px;
    display: block;
}

.inat-card-meta {
    font-size: 12px;
    color: #aaaaaa;
    margin-bottom: 12px;
    line-height: 1.4;
}

.inat-card-meta div {
    margin-bottom: 3px;
}

.inat-card-btn {
    display: block;
    text-align: center;
    background: #74AC00;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.inat-card-btn:hover {
    background: #5d8a00;
}

/* Własny styl markera na mapie */
.custom-map-pin {
    background-color: #74AC00;
    border: 1px solid #dbdbdb;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.custom-map-pin:hover {
    transform: scale(1.3);
    background-color: #5d8a00;
    cursor: pointer;
}

/* Pasek statystyk nad mapą */
.inat-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.inat-stat-card {
    flex: 1;
    min-width: 120px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inat-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #74AC00;
    line-height: 1.2;
}

.inat-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaaaaa;
    margin-top: 4px;
}