/* Polish Map Styles */
.polish-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-with-counters {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.map-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.map-counter-left,
.map-counter-right {
    flex-shrink: 0;
}

.counter-number {
    font-size: 72px;
    font-weight: bold;
    color: #ffcf00;
    line-height: 1;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    text-transform: uppercase;
}

.map-wrapper {
    flex: 0 1 auto;
    width: 100%;
    max-width: 700px;
}

#poland-map {
    width: 100%;
    height: auto;
    display: block;
}

#poland-map path {
    fill: #e0e0e0;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

#poland-map path:hover {
    fill: #ffcf00;
    transform: scale(1.02);
    transform-origin: center;
}

#poland-map path.active {
    fill: #ffcf00;
}

.voivodeship-data {
    flex: 1;
    width:100% !important;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.data-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-btn {
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: none;
}

.close-btn:hover {
    background: #d32f2f;
}

.data-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.mapka-category-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mapka-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 15px 20px;
    font-size: 22px !important;
    color: #333;
    background: #f5f5f5;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mapka-category-header:hover {
    background: #ebebeb;
}

.mapka-category-header .category-title {
    flex: 1;
}

.mapka-category-header .chevron {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #ffcf00;
}

.mapka-category-header .chevron.rotated {
    transform: rotate(-180deg);
}

.mapka-items-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-text {
    color: #999;
    font-size: 16px;
}

.mapka-item {
    border:2px solid #ffcf00;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mapka-item:hover {

    transform: translateY(-2px);
}

.mapka-item h3,
.mapka-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px !important;
}

.mapka-category {
    display: inline-block;
    padding: 4px 12px;
    background: #2196F3;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.mapka-location {
    color: #666;
    margin: 8px 0 20px;
    font-size: 14px;
}

.mapka-logo {
    max-width: 150px;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.mapka-link {
    display: inline-block;
    margin-top: auto !important;
    width: fit-content;
    padding: 8px 16px;
    background-color: #ffcf00;
    color: #3A3831 !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mapka-gallery-btn {
    display: inline-block !important;
    margin-top: 16px !important;
    width: fit-content !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.mapka-gallery-btn:hover {
    background-color: #1976D2;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ffcf00;
}

.lightbox-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 500px) {
    .lightbox-navigation {
        flex-direction: column;
        gap: 10px;
    }
}

.lightbox-prev,
.lightbox-next {
    padding: 10px 20px;
    background-color: #ffcf00;
    color: #3A3831;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.lightbox-prev:hover:not(:disabled),
.lightbox-next:hover:not(:disabled) {
    background-color: #e6ba00;
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-counter {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .map-with-counters {
        flex-direction: column;
        gap: 20px;
    }
    
    .map-counter {
        width: 100%;
        padding: 15px;
    }
    
    .counter-number {
        font-size: 48px;
    }
    
    .counter-label {
        font-size: 14px;
    }
    
    .map-wrapper {
        width: 100%;
        order: 1;
    }
    
    .map-counter-left {
        order: 0;
    }
    
    .map-counter-right {
        order: 2;
    }
    
    .voivodeship-data {
        width: 100%;
    }
    
    .mapka-items-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mapka-items-container {
        grid-template-columns: repeat(2, 1fr);
    }
}