/* Initiatives Montoises - Frontend */

.im-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Filters */
.im-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.im-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 180px;
}

.im-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.im-filter-group select,
.im-filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    transition: border-color 0.2s;
}

.im-filter-group select:focus,
.im-filter-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.im-filter-count {
    display: flex;
    align-items: flex-end;
    font-size: 14px;
    color: #6b7280;
    padding-bottom: 8px;
    white-space: nowrap;
}

.im-filter-count span {
    font-weight: 700;
    color: #1f2937;
    margin-right: 4px;
}

/* Map */
#im-map {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    z-index: 1;
}

/* Custom marker */
.im-custom-marker {
    background: none !important;
    border: none !important;
}

/* Popup card */
.im-popup-wrapper .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
}

.im-popup-wrapper .leaflet-popup-content {
    margin: 0;
    width: auto !important;
}

.im-popup-wrapper .leaflet-popup-tip {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.im-popup-card {
    padding: 16px 20px;
    min-width: 260px;
    max-width: 320px;
}

.im-popup-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.im-popup-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.im-popup-subcategory {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.im-popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.im-popup-desc {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.im-popup-address,
.im-popup-contact,
.im-popup-hours {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.im-popup-address p,
.im-popup-contact p,
.im-popup-hours p {
    margin: 4px 0;
}

.im-popup-contact a {
    color: #2563eb;
    text-decoration: none;
}

.im-popup-contact a:hover {
    text-decoration: underline;
}

.im-popup-hours {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
    .im-filters {
        flex-direction: column;
    }

    .im-filter-group {
        min-width: 100%;
    }

    .im-popup-card {
        min-width: 220px;
        max-width: 280px;
        padding: 12px 14px;
    }
}
