/**
 * Style dla interaktywnej mapy województwa lubelskiego
 * 
 * @package MapaLubelskie
 */

/* =====================================================
   GŁÓWNY KONTENER
   ===================================================== */

   



    .fil0 {fill:#c0c0c0}

    .fil4 {fill:#F8F9FB}
    .fil1 {fill:#FBFCFD}

    .fil7 {fill:#FEFEFE;fill-rule:nonzero}
    
.mapa-lubelskie-container {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    padding: 20px;
}

/* =====================================================
   LEWA STRONA - LISTA OGŁOSZEŃ
   ===================================================== */

.mapa-ogloszenia-sidebar {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}



.mapa-ogloszenia-lista {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 700px;
}

/* Placeholder - domyślny widok */
.mapa-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mapa-placeholder p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Single ogłoszenie */
.mapa-ogloszenie-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mapa-ogloszenie-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-left-color: #4CAF50;
}

.ogloszenie-thumbnail {
    flex: 0 0 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.ogloszenie-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ogloszenie-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ogloszenie-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.ogloszenie-content h4 a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.2s;
}

.ogloszenie-content h4 a:hover {
    color: #1e3a6f;
}

.ogloszenie-excerpt {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.ogloszenie-link {
    align-self: flex-start;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.ogloszenie-link:hover {
    color: #2e7d32;
}

/* Brak wyników */
.mapa-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mapa-no-results p {
    font-size: 16px;
}

/* Loader */
.mapa-loading {
    text-align: center;
    padding: 60px 20px;
}

.mapa-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.mapa-loading p {
    color: #666;
    font-size: 16px;
}

/* Błąd */
.mapa-error {
    text-align: center;
    padding: 40px 20px;
    color: #d32f2f;
}

.mapa-error p {
    font-size: 16px;
}

/* =====================================================
   PRAWA STRONA - MAPA
   ===================================================== */

.mapa-lubelskie-wrapper {

}

.mapa-header {
    text-align: center;
    margin-bottom: 20px;
}


/* SVG Mapa */
#mapa-lubelskiego {
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 8px;
    display: block;
}

#mapa-lubelskiego path {
    cursor: pointer;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

#mapa-lubelskiego path:hover {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


/* =====================================================
   BOXY produktÓW
   ===================================================== */

.produkt-box {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.produkt-image {
    flex: 0 0 130px;
    height: 130px;
    width:130px;
}
.produkt-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.produkt-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #999;
    font-size: 14px;
}

.produkt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.produkt-title {
    font-weight: 600;
    color: var(--contrast);
    opacity:0.5;
    margin-bottom:10px;

}

.produkt-kontakty {
    display: flex;
    flex-direction: column;
        max-height: 150px;
        overflow-y:auto;
}

.kontakt-item {
    display:flex;
    padding:5px 0;
    justify-content:space-between;
    flex-direction: row;
    gap:15px;
}

.kontakt-name, .kontakt-phone {
    font-weight: 500;
    font-size:1.2rem;
}


/* =====================================================
   RESPONSYWNOŚĆ
   ===================================================== */

@media screen and (max-width: 1024px) {
    .mapa-lubelskie-container {
        flex-direction: column-reverse;
    }
    
    .mapa-ogloszenia-sidebar,
    .mapa-lubelskie-wrapper {
        flex: 1 1 100%;
    }
    
    .mapa-ogloszenia-lista {
        max-height: 500px;
    }
}

@media screen and (max-width: 768px) {
    .mapa-lubelskie-container {
        padding: 10px;
        gap: 20px;
    }
    
    .mapa-ogloszenie-item {
        flex-direction: column;
    }
    
    .ogloszenie-thumbnail {
        flex: 0 0 200px;
        height: 200px;
        width: 100%;
    }
    
    .mapa-header h2 {
        font-size: 22px;
    }
    
    .mapa-legenda {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */

.mapa-ogloszenia-lista::-webkit-scrollbar {
    width: 8px;
}

.mapa-ogloszenia-lista::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.mapa-ogloszenia-lista::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 4px;
}

.mapa-ogloszenia-lista::-webkit-scrollbar-thumb:hover {
    background: #1e3a6f;
}
