/**
 * Mierbeek Map - Frontend CSS
 *
 * Stijlen voor de kaartcontainer, sidebar, popup en lijst.
 *
 * @package Mierbeek_Mapbox
 */

/* === Container === */
.mierbeek-map-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* === Sidebar === */
.mierbeek-sidebar {
    flex: 0 0 320px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    overflow-y: auto;
}

/* === Zoekveld === */
.mierbeek-search {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.mierbeek-search:focus {
    outline: none;
    border-color: #007f20;
}

/* === Filter dropdowns === */
.mierbeek-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
}

.mierbeek-filter-select:focus {
    outline: none;
    border-color: #007f20;
}

.mierbeek-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

/* === Filter knoppen === */
.mierbeek-filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mierbeek-filter-btn {
    flex: 1;
    padding: 8px 12px;
    background: #007f20;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
}

.mierbeek-filter-btn:hover {
    background: #006018;
}

.mierbeek-filter-btn.secondary {
    background: #999;
}

.mierbeek-filter-btn.secondary:hover {
    background: #777;
}

/* === Lijst header === */
.mierbeek-list-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* === Lijst === */
.mierbeek-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === Lijst items === */
.mierbeek-item {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mierbeek-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.mierbeek-item.active {
    border-left-color: #007f20;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 127, 32, 0.2);
}

/* === Item logo === */
.mierbeek-item-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #f9f9f9;
    flex-shrink: 0;
}

/* === Item info === */
.mierbeek-item-info {
    flex: 1;
    min-width: 0;
}

.mierbeek-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mierbeek-item-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* === Tags === */
.mierbeek-item-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mierbeek-item-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
}

.mierbeek-item-tag.category {
    background: #007f20;
    color: white;
}

.mierbeek-item-tag.subcategory {
    background: #4caf50;
    color: white;
}

/* === Geen resultaten === */
.mierbeek-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* === Popup stijlen === */
.mierbeek-popup-logo {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
}

.mierbeek-popup-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.mierbeek-popup-address,
.mierbeek-popup-phone {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.mierbeek-popup-phone a {
    color: #007f20;
    text-decoration: none;
}

.mierbeek-popup-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    margin-top: 8px;
}

/* === Kaart container === */
.mierbeek-map-canvas {
    flex: 1;
    min-height: 300px;
    border-radius: 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .mierbeek-map-container {
        flex-direction: column;
    }
    .mierbeek-sidebar {
        flex: 1;
        max-height: 300px;
    }
}
