/**
 * SIMBA Representatives - Front CSS
 * Style dla mapy przedstawicieli
 */

/* Kontener mapy */
#simba-representatives {
    background: #f8f9fa;
}

#simba-representatives .wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Sekcje z danymi przedstawicieli */
#sekcjemapy {
    min-height: 200px;
}

.representative-section {
    padding: 15px 0;
}

.representative-section.hideme {
    display: none;
}

.representative-section .mapa-details {
    padding: 5px 0;
    font-size: 14px;
}

.representative-section .mapa-details i {
    width: 20px;
    color: #007bff;
    margin-right: 8px;
}

.representative-section .mapa-details a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.representative-section .mapa-details a:hover {
    color: #007bff;
}

.mapdetp1 {
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Domyślna sekcja */
#section-default {
    display: block !important;
}

#section-default.hidden {
    display: none !important;
}

/* Mapa Polski - kontener */
.poland-map-container {
    position: relative;
}

.poland-map {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.poland-map .voivodeship-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.poland-map .voivodeship-item:hover,
.poland-map .voivodeship-item.active {
    opacity: 0.8;
}

.poland-map .voivodeship-item a {
    display: block;
    text-decoration: none;
}

/* Lista przedstawicieli */
#simba-representatives-list {
    background: #fff;
}

.representative-card {
    margin-bottom: 30px;
}

.representative-card .vc_column-inner {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.representative-card .vc_column-inner:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.representative-card .representative-photo {
    margin-bottom: 15px;
    text-align: center;
}

.representative-card .representative-photo img {
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fff;
    background: #fff;
}

.representative-card h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.representative-card p {
    margin-bottom: 5px;
    font-size: 14px;
}

.representative-card em {
    color: #666;
    font-style: italic;
}

.representative-card .member-position {
    color: #007bff;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 10px;
}

.representative-card .member-email {
    word-break: break-word;
}

.representative-card .member-email a {
    color: #333;
    text-decoration: none;
}

.representative-card .member-email a:hover {
    color: #007bff;
}

/* Responsywność */
@media (max-width: 768px) {
    #simba-representatives .col-2-wrap {
        flex-direction: column-reverse;
    }

    #simba-representatives .vc_col-sm-6 {
        width: 100%;
    }

    .poland-map-container {
        margin-bottom: 30px;
    }

    .representative-card {
        width: 100%;
    }
}

/* Animacje */
.representative-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geolokalizacja - komunikat o wykrytej lokalizacji */
.location-detected-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.4s ease;
}

.location-detected-info i {
    font-size: 20px;
    flex-shrink: 0;
}

.location-detected-info strong {
    font-weight: 700;
}

.location-detected-info.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Responsywność dla komunikatu */
@media (max-width: 768px) {
    .location-detected-info {
        font-size: 13px;
        padding: 10px 14px;
    }

    .location-detected-info i {
        font-size: 18px;
    }
}