```css
.aecv-campo {
    margin-bottom: 16px;
}

.aecv-campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.aecv-campo input,
.aecv-campo select,
.aecv-campo textarea {
    width: 100%;
    max-width: 600px;
}

#aecv_mapa_admin {
    width: 100%;
    max-width: 900px;
    height: 400px;
    border: 1px solid #ccc;
}

.aecv-cabecera-mapa {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.aecv-filtros-mapa,
.aecv-leyenda-eventos {
    flex-grow: 1;
}

.aecv-filtro {
    background: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
    border: 1px solid #ddd;
}

.aecv-filtro.activo,
.aecv-filtro:hover {
    color: var(--ast-global-color-2);
    background-color: var(--ast-global-color-7);
    border-color: var(--ast-global-color-7);
}

.aecv-layout-mapa {
    position: relative;
    align-items: center;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
}

#aecv_mapa_publico {
    width: 100%;
    height: 750px;
    overflow: hidden;
}

#aecv_lista_eventos {
    height: 600px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
}

.aecv-listado-eventos h3 {
    margin-top: 0;
}

.aecv-evento-card {
    border-left: 6px solid #003DA5;
    padding: 12px;
    margin-bottom: 12px;
    background: #f7f9fc;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}

.aecv-evento-card:hover {
    transform: scale(1.015);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 2;
}

.aecv-evento-card.futuro {
    border-left-color: #00843D;
}

.aecv-evento-card.hoy {
    border-left-color: #003DA5;
}

.aecv-evento-card.pasado {
    border-left-color: #777;
    opacity: .75;
}

.aecv-evento-card strong {
    display: block;
    margin-bottom: 5px;
}

.aecv-evento-card a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

.aecv-evento-vacio {
    padding: 20px;
    text-align: center;
    color: #666;
}

.aecv-evento-tipo,
.aecv-evento-fecha,
.aecv-evento-horario {
    margin-top: 4px;
    font-size: 14px;
}

.aecv-evento-fecha {
    font-weight: 600;
}

.aecv-evento-descripcion {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.aecv-evento-direccion {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.aecv-leyenda-titulo {
    font-weight: 700;
    margin-bottom: 8px;
}

.aecv-leyenda-items {
    padding-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.aecv-leyenda-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 5px 9px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: .2s;
}

.aecv-leyenda-item.activa {
    border-color: var(--aecv-tipo-color);
    box-shadow: 0 0 0 2px var(--aecv-tipo-color);
    background: #fff;
    font-weight: 700;
}

.aecv-leyenda-color,
.aecv-punto-tipo {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 11px;
}

.aecv-evento-tipo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aecv-leyenda-mapa {
    display: flex;
    flex-direction: row;
}

.leaflet-control-attribution {
    display: none !important;
}

#aecv_mapa_publico .leaflet-control-zoom a,
#aecv_mapa_admin .leaflet-control-zoom a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: normal !important;
    font-family: Arial, sans-serif !important;
    color: #000 !important;
    background: #fff !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#aecv_mapa_publico .leaflet-control-zoom-in,
#aecv_mapa_publico .leaflet-control-zoom-out,
#aecv_mapa_admin .leaflet-control-zoom-in,
#aecv_mapa_admin .leaflet-control-zoom-out {
    text-indent: 0 !important;
}

#aecv_mapa_publico .leaflet-bar a:hover,
#aecv_mapa_admin .leaflet-bar a:hover {
    background: #f4f4f4 !important;
    color: #000 !important;
}

.aecv-marker {
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.aecv-marker-activo {
    width: 34px;
    height: 34px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, .15), 0 4px 16px rgba(0, 0, 0, .35);
    animation: aecv-pulso-marker 1s infinite;
}

.aecv-evento-card-activo {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .10), 0 6px 18px rgba(0, 0, 0, .14);
    transform: scale(1.015);
    position: relative;
    z-index: 2;
}

@keyframes aecv-pulso-marker {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

.aecv-sugerencias-direccion {
    display: none;
    width: 100%;
    max-width: 600px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    max-height: 260px;
    overflow-y: auto;
    position: relative;
    z-index: 99999;
}

.aecv-sugerencia-direccion {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #1d2327;
    line-height: 1.35;
}

.aecv-sugerencia-direccion:last-child {
    border-bottom: 0;
}

.aecv-sugerencia-direccion:hover,
.aecv-sugerencia-direccion.activa {
    background: #f0f6fc;
    color: #000;
}

.aecv-evento-detalle {
    max-width: 100% !important;
    margin: 0 auto;
}

.aecv-evento-header {
    margin-bottom: 28px;
}

.aecv-evento-tipo-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--aecv-tipo-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.aecv-evento-titulo {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.1;
}

.aecv-evento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 15px;
    opacity: .85;
}

.aecv-evento-imagen-principal {
    margin: 30px 0;
}

.aecv-evento-imagen-principal img {
    width: 100%;
	max-width:500px;
    /*max-height: 520px;*/    
    border-radius: 18px;
}

.aecv-evento-descripcion-corta {
    font-size: 22px;
    line-height: 1.5;
    margin: 30px 0;
    padding-left: 22px;
    border-left: 5px solid var(--ast-global-color-0, #004457);
}

.aecv-evento-contenido {
    margin-top: 30px;
    line-height: 1.7;
}

.aecv-evento-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.aecv-evento-galeria-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.aecv-evento-galeria-item button{
	background:none !important;
}

.aecv-evento-galeria-item button:hover {
    background:none !important;
}

.aecv-filtro-anio {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: end;
}

.aecv-filtro-anio label {
    font-weight: 600;
}

.aecv-filtro-anio select {
    min-width: 120px;
    padding: 7px 10px;
}

.aecv-loading {
    position: absolute;
    inset: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: #003DA5;
    backdrop-filter: blur(2px);
}

.aecv-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #d7e2f4;
    border-top-color: #003DA5;
    border-radius: 50%;
    animation: aecv-spin 0.8s linear infinite;
}

@keyframes aecv-spin {
    to {
        transform: rotate(360deg);
    }
}

.single-aecv_evento .entry-header {
    display: none !important;
}

@media (max-width: 900px) {

    .aecv-layout-mapa {
        grid-template-columns: 1fr;
    }

    #aecv_mapa_publico {
        height: 750px;
    }

    .aecv-listado-eventos {
        height: 100%;
    }
}

@media (max-width: 768px) {

    .aecv-evento-titulo {
        font-size: 30px;
    }

    .aecv-evento-imagen-principal img {
        max-height: 320px;
    }

    .aecv-evento-descripcion-corta {
        font-size: 18px;
    }
}

.post-type-archive-aecv_evento .entry-meta {
    display: none !important;
}

.post-type-archive-aecv_evento .aecv-archive-meta-evento {
    margin: 10px 0 14px;
}

.post-type-archive-aecv_evento .aecv-archive-dato {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.aecv-archive-filtro-anio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
}

.aecv-archive-filtro-anio label {
    font-weight: 700;
}

.aecv-archive-filtro-anio select {
    min-width: 120px;
    padding: 7px 10px;
}

.post-type-archive-aecv_evento .aecv-archive-filtro-anio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 36px 0;
    padding-left: 0;
}

.post-type-archive-aecv_evento .aecv-archive-filtro-anio label {
    font-weight: 700;
    color: var(--ast-global-color-0);
}

.post-type-archive-aecv_evento .aecv-archive-filtro-anio select {
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.post-type-archive-aecv_evento .aecv-archive-filtro-wrapper {    
    margin: 0 auto 36px;
    padding: 0 3em;
	justify-items: end;
}

.aecv-columna-eventos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 750px;
    min-height: 0;
}
.aecv-bloque-eventos {
    min-height: 0;
	;
}

.aecv-bloque-eventos-normales,
.aecv-bloque-eventos-fijos {   
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.aecv-bloque-eventos-fijos {
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.aecv-bloque-eventos-fijos h3 {
    margin: 0 0 12px;
}

.aecv-bloque-eventos-normales {
    flex: 2 1 0;
}

.aecv-bloque-eventos-fijos {
    flex: 1 1 0;
}

.aecv-listado-eventos {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#aecv_lista_eventos,
#aecv_lista_eventos_fijos {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
}

.aecv-galeria-boton {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none !important;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 14px;
}

.aecv-galeria-boton img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .35s ease, filter .35s ease;
}

.aecv-galeria-boton:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.aecv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
    background: rgba(5, 10, 20, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(0);
    transition: opacity .28s ease, visibility .28s ease, background .28s ease, backdrop-filter .28s ease;
}

.aecv-lightbox.activo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(5, 10, 20, .92);
    backdrop-filter: blur(6px);
}

.aecv-lightbox-img {
    position: relative;
    z-index: 2;
    max-width: calc(100vw - 220px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    transform: scale(.94) translateY(12px);
    opacity: 0;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .20s ease;
}

.aecv-lightbox.activo .aecv-lightbox-img {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.aecv-lightbox-cerrar,
.aecv-lightbox-nav {
    position: fixed;
    z-index: 99999999;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity .25s ease, background .2s ease, transform .2s ease;
}

.aecv-lightbox.activo .aecv-lightbox-cerrar,
.aecv-lightbox.activo .aecv-lightbox-nav {
    opacity: 1;
}

.aecv-lightbox-cerrar {
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 46px;
    text-align: center;
}

.aecv-lightbox-nav {
    top: 50%;
    width: 56px;
    height: 72px;
    padding: 0;
    border-radius: 14px;
    font-size: 54px;
    line-height: 72px;
    text-align: center;
    transform: translateY(-50%);
}

.aecv-lightbox-prev {
    left: 24px;
}

.aecv-lightbox-next {
    right: 24px;
}

.aecv-lightbox-cerrar:hover,
.aecv-lightbox-nav:hover {
    background: rgba(255, 255, 255, .28);
}

.aecv-lightbox-cerrar:hover {
    transform: scale(1.08);
}

.aecv-lightbox-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.aecv-lightbox-next:hover {
    transform: translateY(-50%) translateX(4px);
}

@media (max-width: 768px) {
    .aecv-lightbox {
        padding: 20px 64px;
    }

    .aecv-lightbox-img {
        max-width: calc(100vw - 140px);
        max-height: 86vh;
    }

    .aecv-lightbox-nav {
        width: 44px;
        height: 60px;
        font-size: 42px;
        line-height: 60px;
    }

    .aecv-lightbox-prev {
        left: 10px;
    }

    .aecv-lightbox-next {
        right: 10px;
    }

    .aecv-lightbox-cerrar {
        top: 12px;
        right: 12px;
    }
}


input[type='checkbox']#aecv_evento_externo {
	width:auto !important;
} 

.aecv-columna-eventos {
    position: relative;
}

.aecv-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
}