.cobmap-frontend {
    max-width: 100%;
    margin: 0 auto;
}
.cobmap-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.cobmap-search-box input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.servicio-badge.radio {
    background: #e67e22;
}
.cobmap-search-box input:focus {
    border-color: #3388ff;
}
.cobmap-search-box button {
    padding: 12px 24px;
    background: #3388ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.cobmap-search-box button:hover { background: #2266cc; }
.cobmap-search-box button:disabled { background: #99c; cursor: wait; }
.cobmap-result {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
}
.cobmap-result.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.cobmap-result.error { background: #C3D9FF; color: #721c24; border: 1px solid #f5c6cb; }
.cobmap-result.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.cobmap-result .result-details { margin-top: 8px; font-weight: 400; font-size: 14px; }
#cobmap-front-map {
    border-radius: 6px;
    border: 2px solid #ddd;
    z-index: 1;
}

.cobmap-btn-contratar,
.cobmap-btn-sin-cobertura {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}
.cobmap-open-popup-btn {
    animation: latido 1s ease-in-out infinite;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.cobmap-btn-contratar {
    background: #2474C8;
}
.cobmap-btn-contratar-wimax {
    background: #ff9800;
}
.cobmap-btn-sin-cobertura {
    background: #2474C8;
}
.cobmap-btn-contratar:hover,
.cobmap-btn-sin-cobertura:hover {
    opacity: 0.85;
    color: white;
    transform: translateY(-2px);
}
.cobmap-marker-pulse {
    width: 14px;
    height: 14px;
    background: #e74c3c;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 0 rgba(231,76,60,.6);
    animation: cobmap-pulse 1.5s ease-out 3;
}
@keyframes cobmap-pulse {
    0% { box-shadow: 0 0 0 0 rgba(231,76,60,.6); }
    100% { box-shadow: 0 0 0 20px rgba(231,76,60,0); }
}
.cobmap-point-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
@media (max-width: 600px) {
    .cobmap-search-box { flex-direction: column; }
}

/* Filtros Fibra/WiMAX */
.cobmap-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.cobmap-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.cobmap-filter-btn:hover {
    border-color: #bbb;
}
.cobmap-filter-btn.active {
    border-color: currentColor;
    background: currentColor;
    color: #fff;
}
.cobmap-filter-btn.active span {
    color: #fff;
}
.cobmap-filter-btn[data-filter="fibra"] {
    color: #2ecc71;
}
.cobmap-filter-btn[data-filter="fibra"].active {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}
.cobmap-filter-btn[data-filter="wimax"] {
    color: #3498db;
}
.cobmap-filter-btn[data-filter="wimax"].active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}
.cobmap-filter-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}
.cobmap-filter-btn.active .cobmap-filter-dot {
    background: #fff;
}

/* Badges de servicios */
.servicios-disponibles {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.servicio-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.servicio-badge.fibra {
    background: #2ecc71;
}
.servicio-badge.wimax {
    background: #3498db;
}
.servicio-badge.otro {
    background: #95a5a6;
}

/* Iconos resultado */
.cobmap-success-icon,
.cobmap-error-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
}
.cobmap-success-icon {
    background: #27ae60;
    color: #fff;
}
.cobmap-error-icon {
    background: #e74c3c;
    color: #fff;
}
.cobmap-btn-contratar {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 30px;
    background: #2474C8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}
.cobmap-btn-contratar:hover {
    background: #aee4f9;
    color: white;
    transform: translateY(-2px);
}

/* Popup Modal */
.cobmap-open-popup-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: #2474C8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}
.cobmap-open-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
.cobmap-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.cobmap-popup-overlay.active {
    display: flex;
}
.cobmap-popup-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cobmap-popup-in 0.3s ease;
}
@keyframes cobmap-popup-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.cobmap-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f1f1;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    z-index: 10;
}
.cobmap-popup-close:hover {
    background: #e74c3c;
    color: #fff;
}
.cobmap-popup-title {
    margin: 0;
    padding: 25px 30px 15px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #eee;
}
.cobmap-in-popup {
    padding: 20px 30px 30px;
}
.cobmap-in-popup #cobmap-front-map {
    border-radius: 12px;
}

@media (max-width: 600px) {
    .cobmap-popup-modal {
        max-height: 95vh;
        border-radius: 12px;
    }
    .cobmap-popup-title {
        padding: 20px 20px 12px;
        font-size: 18px;
    }
    .cobmap-in-popup {
        padding: 15px 15px 20px;
    }
}

/* === Operadores Externos === */
.servicio-badge.ext-operator {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 4px 4px 0;
}

/* Spinner para carga operadores externos */
.cobmap-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #3388ff;
    border-radius: 50%;
    animation: cobmap-spin 0.6s linear infinite;
}
@keyframes cobmap-spin {
    to { transform: rotate(360deg); }
}

/* Hint debajo del buscador */
.cobmap-map-hint {
    margin: -8px 0 12px 0;
    padding: 0;
    font-size: 13px;
    color: #777;
    font-style: italic;
    line-height: 1.4;
}

/* Tooltip del heatmap */
.cobmap-heat-tooltip {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    position: absolute;
    z-index: 1000;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}