/* Moduł: MAPA (Obszar Działania) - DARK PREMIUM */

/* Resetowanie domyślnych stylów */
.bottom-4-section * {
    box-sizing: border-box;
}

/* Ogólne style dla sekcji */
.bottom-4-section {
    width: 100%;
    background-color: var(--bg-color, #0d0e12);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 416px;
    font-family: var(--font-family, Inter, sans-serif);
}

/* Stylizacja sekcji z mapką */
.location-map {
    flex: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Stylizacja obrazka mapki */
.location-map-image {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.15)); /* Złota poświata dla mapki */
}

/* Stylizacja sekcji z napisami i akordeonem */
.accordion-section {
    flex: 7;
    display: flex;
    flex-direction: column;
}

/* Stylizacja sekcji z nagłówkiem */
.location-header {
    margin-bottom: 30px;
    text-align: left;
}

/* Stylizacja tytułu */
.location-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-title, #ffffff);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Stylizacja podtytułu */
.location-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-color, #d4af37);
    margin-bottom: 15px;
}

/* Stylizacja accordion */
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid var(--border-color, #1f222e);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-section, #14161c);
}

.accordion-header {
    background-color: transparent;
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title, #ffffff);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--accent-color, #d4af37);
}

.accordion-header::after {
    content: '\25BC';
    position: absolute;
    right: 20px;
    font-size: 12px;
    color: var(--accent-color, #d4af37);
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color, #1f222e);
}

.accordion-header[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
    background-color: var(--bg-section, #14161c);
    padding: 0 20px;
}

.accordion-content.active {
    max-height: 3000px; /* Musi wystarczyć na długie listy miast */
    padding: 20px;
}

/* Stylizacja zakładek (tabs) */
.tabs-section {
    margin-top: 5px;
}

.tabs-nav {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-link {
    display: block;
    padding: 10px 24px;
    text-decoration: none;
    color: var(--text-main, #b2b5be);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, #1f222e);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-title, #ffffff);
}

.tabs-nav li.active .tab-link {
    background-color: var(--accent-color, #d4af37);
    color: #000;
    border-color: var(--accent-color, #d4af37);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stylizacja listy miast */
.city-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-list ul li {
    margin-bottom: 12px;
}

.city-list ul li a {
    text-decoration: none;
    color: var(--text-main, #b2b5be);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.city-list ul li a:hover {
    color: var(--accent-color, #d4af37);
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 980px) {
    .bottom-4-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .location-map {
        flex: none;
        width: 100%;
    }

    .accordion-section {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .location-header {
        text-align: center;
    }

    .location-title {
        font-size: 1.4rem;
    }

    .tabs-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .tabs-nav li {
        width: 100%;
    }
    
    .tab-link {
        text-align: center;
    }

    .city-list {
        flex-direction: column;
        gap: 0;
    }
}
