/* Mapa Kempingów w Polsce - kompaktowe filtry na górze */

/* Full width layout - SUPER STRONG RULES */
.mapa-page #secondary,
.mapa-page .ct-sidebar-wrapper,
.page-id-1244 #secondary,
.page-id-1244 .ct-sidebar-wrapper,
.page-id-1244 aside,
.page-id-1244 .sidebar,
.page-id-1244 .widget-area {
    display: none !important;
}

.mapa-page #primary,
.mapa-page .content-area,
.page-id-1244 #primary,
.page-id-1244 .content-area,
.page-id-1244 .site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mapa-page .site-content,
.page-id-1244 .site-content {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Remove any theme-specific padding/margin */
.page-id-1244 .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Main layout - vertical (filters on top, map below) */
.mapa-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 700px;
    margin: 0 auto;
    padding: 0;
}

/* Filters panel - COMPACT on top */
.mapa-sidebar {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 !important;
    max-height: none !important;
}

/* HIDE Stats panel - nie potrzebne */
.mapa-stats {
    display: none !important;
}

/* Filters - COMPACT horizontal card */
.mapa-filters {
    position: relative;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
}
.mapa-filters h4 {
    margin: 0 0 8px 0;
    color: #2c5530;
    font-size: 13px;
    font-weight: 600;
}

/* Filter groups - horizontal layout */
.mapa-filter-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    vertical-align: top;
}
.mapa-filter-group:last-child {
    margin-right: 0;
}
.mapa-filter-group label {
    display: inline-block;
    font-size: 11px;
    color: #333;
    margin-right: 5px;
    margin-bottom: 0;
    font-weight: 600;
}
.mapa-filter-group select {
    display: inline-block;
    width: auto;
    min-width: 120px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}
.mapa-filter-group select:focus {
    border-color: #2c5530;
    outline: none;
}

/* Amenity filters section */
#amenity-filter-group {
    display: block !important;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

#amenity-filter-group label {
    display: block;
    font-size: 11px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Amenity filters - COMPACT BUTTONS with BLACK TEXT */
.mapa-amenity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mapa-amenity-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    color: #000 !important;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}
.mapa-amenity-btn:hover {
    border-color: #2c5530;
    background: #f0f7f0;
    color: #000 !important;
}
.mapa-amenity-btn.active {
    background: #2c5530;
    border-color: #2c5530;
    color: #fff !important;
}

/* Map - full width below filters */
#mapa-kempingow {
    height: 700px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1;
    width: 100%;
}

/* Hide list and submit */
.mapa-lista,
.mapa-submit {
    display: none !important;
}

/* Custom markers */
.kemping-marker {
    background: #2c5530;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}
.kemping-popup {
    font-family: Inter, -apple-system, sans-serif;
}
.kemping-popup-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}
.kemping-popup-content {
    padding: 20px;
}
.kemping-popup-name {
    font-size: 16px;
    font-weight: 700;
    color: #292b40;
    margin: 0 0 5px 0;
}
.kemping-popup-address {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px 0;
}
.kemping-popup-rating {
    display: inline-flex;
    align-items: center;
    background: #2c5530;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.kemping-popup-rating svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    fill: #ffd700;
}
.kemping-popup-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.kemping-popup-amenity {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
}
.kemping-popup-links {
    display: flex;
    gap: 8px;
}
.kemping-popup-link {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.kemping-popup-link.primary {
    background: #2c5530;
    color: #fff;
}
.kemping-popup-link.primary:hover {
    background: #1a3a1f;
}
.kemping-popup-link.secondary {
    background: #f0f0f0;
    color: #333;
}
.kemping-popup-link.secondary:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 1024px) {
    .mapa-filter-group {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .mapa-filter-group label {
        display: block;
        margin-bottom: 3px;
    }
    .mapa-filter-group select {
        display: block;
        width: 100%;
    }
    #mapa-kempingow {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-id-1244 .site-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .mapa-amenity-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 600px) {
    .page-id-1244 .site-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    #mapa-kempingow {
        height: 400px;
        border-radius: 8px;
    }
    .mapa-filters {
    margin-bottom: 10px;
        padding: 10px 12px;
    }
}

/* Hide page title */

/* SUPER STRONG - Hide page title */
.page-id-1244 .entry-title,
.page-id-1244 h1.entry-title,
.page-id-1244 .entry-header .entry-title,
body.page-id-1244 h1,
body.page-id-1244 .page-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Reduce space between menu and map */
.page-id-1244 .entry-content {
    padding-top: 10px !important;
}
.mapa-container {
    margin-top: -20px !important;
}

/* SUPER reduce space between menu and map section */
.page-id-1244 .entry-content,
.page-id-1244 article.page,
.page-id-1244 .site-main,
.page-id-1244 .content-area {
    padding-top: 0 !important;
    margin-top: -20px !important;
}

.page-id-1244 .entry-header {
    margin-bottom: 5px !important;
}

/* ===== MOBILE VERSION ===== */
@media (max-width: 768px) {
    /* Hide title on mobile */
    .mapa-filters h3 {
        display: none !important;
    }
    
    /* Reverse order - MAP first, FILTERS second */
    .mapa-container {
        display: flex;
        flex-direction: column-reverse !important;
    }
    
    /* Minimalistic filters on mobile */
    .mapa-filters {
        padding: 6px 10px !important;
        margin-bottom: 0 !important;
    }
    
    /* Compact amenity buttons */
    .mapa-amenity-btn {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    /* Smaller type buttons */
    .mapa-type-btn {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
    
    /* Compact selects */
    .mapa-filter-group select {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
    
    .mapa-filter-group label {
        font-size: 10px !important;
    }
}
