#ce-mapa-wrap {
    font-family: inherit;
    margin: 0;
}

/* Barra de busca */
#ce-mapa-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#ce-btn-gps {
    background: #3AAFC8;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
#ce-btn-gps:hover { background: #1F7A90; }

#ce-input-busca {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
#ce-input-busca:focus {
    outline: none;
    border-color: #3AAFC8;
    box-shadow: 0 0 0 3px rgba(58,175,200,.12);
}

#ce-btn-busca {
    background: #fff;
    color: #3AAFC8;
    border: 1px solid #3AAFC8;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}
#ce-btn-busca:hover { background: #E8F6FA; }

/* Barra de filtros por serviço */
#ce-filtros-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
#ce-filtros-wrap::-webkit-scrollbar { display: none; }

#ce-filtros {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.ce-filtro-btn {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.ce-filtro-btn:hover { border-color: #3AAFC8; color: #3AAFC8; }
.ce-filtro-btn.active { background: #3AAFC8; color: #fff; border-color: #3AAFC8; }
/* IDs elevam a especificidade: o tema (Hello Elementor) pinta button:hover/:focus de #c36 */
#ce-filtros .ce-filtro-btn:hover,
#ce-filtros .ce-filtro-btn:focus { background: #fff; border-color: #3AAFC8; color: #3AAFC8; outline: none; }
#ce-filtros .ce-filtro-btn:focus-visible { outline: 2px solid #1F7A90; outline-offset: 2px; }
#ce-filtros .ce-filtro-btn.active,
#ce-filtros .ce-filtro-btn.active:hover,
#ce-filtros .ce-filtro-btn.active:focus { background: #3AAFC8; color: #fff; border-color: #3AAFC8; }
#ce-filtros .ce-filtro-btn.active:hover { background: #1F7A90; border-color: #1F7A90; }
#ce-mapa-wrap button:focus:not(:focus-visible) { outline: none; }

#ce-filtros-limpar {
    background: none;
    border: none;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 6px;
    flex-shrink: 0;
    font-family: inherit;
}
#ce-filtros-limpar:hover { color: #555; }

/* Container: mapa 50% | lista 50% */
#ce-mapa-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    height: 520px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

#ce-mapa {
    width: 50%;
    flex-shrink: 0;
    height: 100%;
    z-index: 1;
}

/* Painel direito */
#ce-lista-proximos {
    width: 50%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    height: 100%;
    box-sizing: border-box;
}

#ce-lista-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
#ce-lista-header h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 2px;
}
#ce-lista-count {
    font-size: 12px;
    color: #aaa;
}

/* Lista de itens — ocupa espaço restante sem scroll (paginação controla) */
#ce-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow: hidden;
}
#ce-lista li {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}
#ce-lista li:hover { background: #EBF7FA; }
#ce-lista li:hover .ce-lista-nome { color: #3AAFC8; }
.ce-lista-nome {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 2px;
}
.ce-lista-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
.ce-lista-dist    { color: #3AAFC8; font-weight: 600; }
.ce-lista-tel     { color: #555; }
.ce-lista-horarios { color: #777; }
.ce-lista-obs     { color: #999; font-style: italic; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.ce-lista-horarios, .ce-lista-tel { white-space: normal; overflow-wrap: anywhere; }

#ce-lista-loading {
    padding: 32px 16px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

#ce-lista-vazio {
    padding: 32px 16px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* Paginação */
#ce-lista-paginacao {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fafafa;
}
#ce-lista-paginacao button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}
#ce-lista-paginacao button:hover:not(:disabled) {
    border-color: #3AAFC8;
    color: #3AAFC8;
}
#ce-lista-paginacao button:disabled { opacity: 0.35; cursor: default; }
#ce-pagina-info { font-size: 12px; color: #999; }

/* Popup (InfoWindow) */
.ce-popup { min-width: 220px; }
.ce-popup h4 { margin: 0 0 8px; font-size: 15px; color: #1a1a1a; }
.ce-popup p  { margin: 4px 0; font-size: 13px; color: #444; line-height: 1.5; }
.ce-popup a  { color: #3AAFC8; }
.ce-popup .ce-btn-chegar {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 14px;
    background: #3AAFC8;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.ce-popup .ce-btn-chegar:hover { background: #1F7A90; }

/* ── Preview (homepage) ─────────────────────────────────────────────────────── */
#ce-preview-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
#ce-preview-mapa {
    width: 100%;
    height: 100%;
    z-index: 1;
}
#ce-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    pointer-events: none;
}
#ce-preview-badge {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(58,175,200,.85);
    border-radius: 20px;
    padding: 5px 14px;
}

.ce-popup-status {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin: 0 0 6px !important;
}

/* Mobile */
@media (max-width: 700px) {
    #ce-mapa-container {
        flex-direction: column;
        height: auto;
    }
    #ce-mapa { width: 100%; height: 300px; }
    #ce-lista-proximos { width: 100%; height: auto; border-left: none; border-top: 1px solid #e5e5e5; }
    #ce-lista { overflow: visible; }
}

/* Foco/clique: neutraliza o vermelho (#c36) que o tema aplica a button:focus/:active */
#ce-btn-gps:focus, #ce-btn-gps:active { background: #1F7A90; color: #fff; }
#ce-btn-busca:focus, #ce-btn-busca:active { background: #E8F6FA; color: #3AAFC8; }
#ce-filtros-limpar:focus, #ce-filtros-limpar:active { background: none; color: #555; }
#ce-lista-paginacao button:focus:not(:disabled), #ce-lista-paginacao button:active:not(:disabled) { background: #E8F6FA; color: #1F7A90; }

/* ── Mais próximos de mim: botão dividido com menu de raio ──────────────── */
#ce-gps-wrap { position: relative; display: inline-flex; }
#ce-gps-wrap #ce-btn-gps { border-radius: 4px 0 0 4px; }
#ce-gps-wrap #ce-btn-raio {
    background: #3AAFC8;
    color: #fff;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
#ce-gps-wrap #ce-btn-raio:hover,
#ce-gps-wrap #ce-btn-raio:focus,
#ce-gps-wrap #ce-btn-raio:active { background: #1F7A90; color: #fff; outline: none; }
#ce-gps-wrap #ce-btn-gps:focus,
#ce-gps-wrap #ce-btn-gps:active { background: #1F7A90; color: #fff; }
#ce-raio-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1000;
    min-width: 190px;
    padding: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
#ce-raio-menu[hidden] { display: none; }
#ce-raio-menu .ce-raio-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    font-family: inherit;
}
#ce-raio-menu .ce-raio-item:hover,
#ce-raio-menu .ce-raio-item:focus { background: #EBF7FA; color: #1F7A90; outline: none; }
#ce-raio-menu .ce-raio-item.active { background: #EBF7FA; color: #1F7A90; font-weight: 600; }
#ce-raio-menu .ce-raio-outro {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px 4px;
    margin-top: 4px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
}
#ce-raio-menu #ce-proximo-custom { width: 62px; height: 28px; padding: 0 6px; font-size: 12px; border: 1px solid #ddd; border-radius: 4px; }
#ce-raio-menu #ce-proximo-ok {
    background: #3AAFC8; color: #fff; border: none; border-radius: 4px;
    padding: 4px 10px; font-size: 12px; cursor: pointer;
}
#ce-raio-menu #ce-proximo-ok:hover,
#ce-raio-menu #ce-proximo-ok:focus { background: #1F7A90; color: #fff; outline: none; }

#ce-proximo-aviso {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #EBF7FA;
    color: #1F7A90;
    font-size: 13px;
    line-height: 1.5;
}
#ce-proximo-aviso.ce-aviso-alerta { background: #FFF4DB; color: #7a5200; }
#ce-proximo-aviso a { color: inherit; text-decoration: underline; font-weight: 600; }
#ce-proximo-aviso .ce-aviso-fechar {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
#ce-proximo-aviso .ce-aviso-fechar:hover,
#ce-proximo-aviso .ce-aviso-fechar:focus { background: rgba(0, 0, 0, 0.08); color: inherit; outline: none; }
.ce-lista-dist { white-space: nowrap; }
