/* ──────────────────────────────────────────────────────────
   Geo Posty – Style frontendu
   ────────────────────────────────────────────────────────── */

/* Kontener mapy */
.geoposty-kontener {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Nagłówek */
.geoposty-naglowek {
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.geoposty-ikona {
    font-size: 20px;
}

.geoposty-licznik {
    margin-left: auto;
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 400;
}

/* Mapa */
.geoposty-mapa {
    width: 100%;
    display: block;
}

/* Brak wpisów */
.geoposty-brak {
    background: #f8fafc;
    padding: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
}

/* ── Pinezka własna ────────────────────────────────────── */
.geoposty-pin-ikona {
    background: transparent !important;
    border: none !important;
}

.geoposty-pin {
    width: 26px;
    height: 38px;
    background: #2563eb;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.geoposty-pin::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    top: 8px;
    left: 8px;
}

.geoposty-pin:hover {
    background: #1d4ed8;
    transform: rotate(-45deg) scale(1.15);
}

/* ── Popup ─────────────────────────────────────────────── */
.geoposty-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    border: none;
}

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

.geoposty-popup .leaflet-popup-tip {
    background: #fff;
}

.geoposty-popup-tresc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.geoposty-popup-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.geoposty-popup-body {
    padding: 14px 16px 16px;
}

.geoposty-popup-tytul {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.geoposty-popup-tytul a {
    color: #1e293b;
    text-decoration: none;
}

.geoposty-popup-tytul a:hover {
    color: #2563eb;
}

.geoposty-popup-opis {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.geoposty-popup-adres {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.geoposty-popup-data {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.geoposty-popup-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.geoposty-popup-btn:hover {
    background: #1d4ed8;
}

/* ── Responsywność ─────────────────────────────────────── */
@media (max-width: 600px) {
    .geoposty-naglowek {
        font-size: 13px;
        padding: 12px 14px;
    }
    .geoposty-popup .leaflet-popup-content {
        width: 200px !important;
    }
}
