.cm-header-actions { display: flex; align-items: center; gap: 10px; }
.cm-btn-miarea { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #edf7ee !important; color: #53a654 !important; border-radius: 50%; font-size: 1.3rem; text-decoration: none !important; transition: background 0.2s, color 0.2s; border: 1px solid #b8ddb9; }
.cm-btn-miarea:hover { background: #53a654 !important; color: #fff !important; }
.page_content_wrap { padding-top: 20px !important; }

#cm-mapa-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

#cm-mapa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#cm-mapa-header h1 {
    color: #53a654;
    font-size: 2rem;
    margin: 0;
}

.cm-btn-alta {
    background: #53a654;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.cm-btn-alta:hover { background: #3d8a3e; }

#cm-mapa-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* FILTROS */
#cm-filtros {
    width: 280px;
    flex-shrink: 0;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
}

.cm-filter-group { margin-bottom: 20px; }
.cm-filter-group h3 {
    color: #53a654;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #53a654;
}

.cm-filter-block { margin-bottom: 8px; }

.cm-filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    user-select: none;
    transition: background 0.15s;
}
.cm-filter-label:hover { background: #f0f0f0; }
.cm-arrow { font-size: 0.75rem; color: #53a654; }

.cm-filter-items {
    display: none;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 220px;
    overflow-y: auto;
}
.cm-filter-items.open { display: block; }

.cm-filter-items label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.82rem;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
}

#cm-btn-reset {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: #53a654;
    border: 1px solid #53a654;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
#cm-btn-reset:hover { background: #3d8a3e; border-color: #3d8a3e; }

/* CONTENIDO */
#cm-content { flex: 1; min-width: 0; }

#cm-map {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 24px;
}

/* MARCADORES */
.cm-marker-inner {
    width: 16px;
    height: 16px;
    background: #53a654;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cm-popup { min-width: 200px; max-width: 260px; }
.cm-popup img { max-width: 100%; max-height: 70px; object-fit: contain; margin-bottom: 8px; display: block; border-radius: 4px; }
.cm-popup strong { display: block; font-size: 0.95rem; font-weight: 700; color: #1a2e3b; margin-bottom: 6px; }
.cm-popup-addr, .cm-popup-phone { display: block; font-size: 0.8rem; color: #555; margin-bottom: 3px; }
.cm-popup-web { display: block; font-size: 0.8rem; color: #53a654; margin-top: 4px; word-break: break-all; text-decoration: none; }
.cm-popup-web:hover { text-decoration: underline; }
.cm-popup-addr i, .cm-popup-phone i, .cm-popup-web i { color: #53a654; margin-right: 4px; width: 14px; }
.cm-popup img { width: 100%; max-height: 130px; object-fit: cover; margin-bottom: 8px; display: block; border-radius: 4px; }
.cm-popup-ficha { display: inline-block; margin-top: 8px; padding: 5px 14px; background: #53a654; color: #fff !important; border-radius: 4px; font-size: 0.78rem; font-weight: 600; text-decoration: none !important; }
.cm-popup-ficha:hover { background: #3d8a3e; }

/* LISTA */
#cm-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.cm-proyecto-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cm-proyecto-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: #53a654; }

.cm-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}
.cm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-card-img--empty { width: 100%; height: 100%; background: #e8e8e8; }
.cm-card-location { color: #666; font-size: 0.78rem; margin: 2px 0 !important; }
.cm-card-location i { color: #53a654; margin-right: 4px; }
.cm-card-uso { font-size: 0.78rem; color: #888; margin: 2px 0 4px !important; font-style: italic; }
.cm-card-footer { margin-top: 8px; }
.cm-card-ficha {
    display: inline-block;
    padding: 5px 14px;
    background: #53a654;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}
.cm-card-ficha:hover { background: #3d8a3e; }

.cm-card-info { flex: 1; min-width: 0; padding: 10px 12px 12px; }
.cm-card-info h3 { margin: 0 0 4px; font-size: 0.9rem; color: #1a2e3b; }
.cm-card-info p { margin: 1px 0; font-size: 0.78rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-card-info p i { color: #53a654; margin-right: 4px; width: 12px; }
.cm-card-info a { color: #53a654; text-decoration: none; }
.cm-card-info a:hover { text-decoration: underline; }

.cm-no-results { color: #888; font-style: italic; padding: 20px 0; }

@media (max-width: 768px) {
    #cm-mapa-layout { flex-direction: column; }
    #cm-filtros { width: 100%; }
    #cm-map { height: 320px; }
    #cm-lista { grid-template-columns: 1fr; }
}

#cm-cargar-mas-container { grid-column: 1 / -1; text-align: center; margin-top: 16px; }
.cm-btn-cargar-mas {
    display: inline-block;
    background: #53a654;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(83,166,84,0.18);
    letter-spacing: 0.01em;
}
.cm-btn-cargar-mas:hover { background: #3d8a3e; }

/* Forzar visibilidad checkboxes filtros */
#cm-filtros input[type=checkbox] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    accent-color: #53a654;
    flex-shrink: 0;
    pointer-events: auto !important;
}

/* Chips de filtros activos */
#cm-active-filters { display: none; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0; }
.cm-chips-label { font-size: 0.82rem; color: #718096; font-weight: 600; }
.cm-chip-active { display: inline-flex; align-items: center; gap: 6px; background: #53a654; color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.cm-chip-active:hover { background: #3d8a3e; }
.cm-chip-active i { font-size: 0.7rem; }

/* Grupos acordeón */
.cm-filter-group .cm-filter-block { display: none; }
.cm-filter-group.open .cm-filter-block { display: block; margin-top: 10px; }
.cm-group-arrow { font-size: 0.75rem; color: #53a654; float: right; }
.cm-group-count { background: #53a654; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 0.75rem; font-weight: 700; margin-right: 4px; display: none; }

/* ============================================================
   MALAGABIO OVERRIDES  (body[data-site="malagabio"])
   Principal: #1c1463  |  Secundario: #559b54
   ============================================================ */

body[data-site="malagabio"] #cm-mapa-header { flex-direction: row-reverse; }

body[data-site="malagabio"] #cm-mapa-header h1 { color: #1c1463; }

body[data-site="malagabio"] .cm-btn-alta { background: #1c1463; }
body[data-site="malagabio"] .cm-btn-alta:hover { background: #13093e; }

body[data-site="malagabio"] .cm-filter-group h3 { color: #1c1463; border-bottom-color: #559b54; }
body[data-site="malagabio"] .cm-arrow,
body[data-site="malagabio"] .cm-group-arrow { color: #559b54; }

body[data-site="malagabio"] #cm-btn-reset { background: #559b54; border-color: #559b54; }
body[data-site="malagabio"] #cm-btn-reset:hover { background: #3d7a3d; border-color: #3d7a3d; }

body[data-site="malagabio"] .cm-filter-items input[type=checkbox]:checked + .cm-cb { background: #559b54; border-color: #559b54; }
body[data-site="malagabio"] #cm-filtros input[type=checkbox] { accent-color: #559b54; }

body[data-site="malagabio"] .cm-marker-inner { background: #1c1463; }

body[data-site="malagabio"] .cm-popup-web,
body[data-site="malagabio"] .cm-popup-addr i,
body[data-site="malagabio"] .cm-popup-phone i,
body[data-site="malagabio"] .cm-popup-web i { color: #559b54; }
body[data-site="malagabio"] .cm-popup-ficha { background: #1c1463; }
body[data-site="malagabio"] .cm-popup-ficha:hover { background: #13093e; }

body[data-site="malagabio"] .cm-proyecto-card:hover { border-color: #559b54; }
body[data-site="malagabio"] .cm-card-location i,
body[data-site="malagabio"] .cm-card-info i,
body[data-site="malagabio"] .cm-card-info a { color: #559b54; }
body[data-site="malagabio"] .cm-card-ficha { background: #1c1463; }
body[data-site="malagabio"] .cm-card-ficha:hover { background: #13093e; }
body[data-site="malagabio"] .cm-card-info h3 { color: #1c1463; }

body[data-site="malagabio"] .cm-btn-cargar-mas { background: #1c1463; box-shadow: 0 2px 6px rgba(28,20,99,0.18); }
body[data-site="malagabio"] .cm-btn-cargar-mas:hover { background: #13093e; }

body[data-site="malagabio"] .cm-chip-active { background: #559b54; }
body[data-site="malagabio"] .cm-chip-active:hover { background: #3d7a3d; }
body[data-site="malagabio"] .cm-group-count { background: #559b54; }
