/*
 * cobertura.css
 * Depende de: base.css + /pregunta/ask.css
 * ------------------------------------------------------------------ */

.cob-input-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.cob-input-hint {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

/* ------------------------------------------------------------------ */
/* RESULTADO                                                            */
/* ------------------------------------------------------------------ */

.cob-result-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-light);
}

.cob-addr-interpreted-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.cob-addr-interpreted {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/* STATUS BADGE — alert pill con punch                                 */
/* ------------------------------------------------------------------ */

.cob-status-wrap {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.cob-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid;
  line-height: 1.3;
}

.cob-status-ok {
  background: #edf7f1;
  color: #1a7a4a;
  border-color: #6fcf97;
}

.cob-status-no {
  background: #fdf0ef;
  color: #c0392b;
  border-color: #f5c0bb;
}

.cob-status-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* PRÓXIMA VISITA + DÍAS — misma row en desktop                       */
/* ------------------------------------------------------------------ */

.cob-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
}

.cob-next-visit {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border-light);
}

.cob-next-visit-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cob-next-visit-icon i {
  font-size: 18px;
  color: var(--accent);
}

.cob-next-visit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.cob-next-visit-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Días de visita */
.cob-days-section {
  padding: 14px 18px;
}

.cob-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.cob-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cob-day-chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-border);
  border-radius: 6px;
  padding: 4px 11px;
}

/* ------------------------------------------------------------------ */
/* ZONA — discreta                                                      */
/* ------------------------------------------------------------------ */

.cob-zona-section {
  padding: 8px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cob-zona-label { font-size: 12px; color: var(--text-3); }
.cob-zona-value { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ------------------------------------------------------------------ */
/* MAPA                                                                 */
/* ------------------------------------------------------------------ */

.cob-map-wrap {
  position: relative;
  height: 200px;
  background: #f0ede8;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.cob-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,.06) 39px, rgba(0,0,0,.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(0,0,0,.06) 59px, rgba(0,0,0,.06) 60px),
    #e8e2d8;
}

.cob-map-pin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pinDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pinDrop {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.cob-map-pin {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

.cob-map-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 16px;
}

.cob-map-coords {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,.85);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.cob-map-gmaps-btn {
  position: absolute;
  bottom: 10px;
  right: 40px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}

.cob-map-gmaps-btn:hover { background: #fff; color: var(--accent); }

#mapboxMap { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ */
/* SIN COBERTURA                                                        */
/* ------------------------------------------------------------------ */

.cob-no-msg {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.cob-no-msg strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* FOOTER                                                               */
/* ------------------------------------------------------------------ */

.cob-result-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
  .cob-info-row {
    grid-template-columns: 1fr;
  }

  .cob-next-visit {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .cob-result-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------ */
/* ERROR STATE                                                          */
/* ------------------------------------------------------------------ */

.cob-error-area {
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cob-error-icon-wrap {
  width: 56px;
  height: 56px;
  background: #fff3f2;
  border: 2px solid #fecdca;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cob-error-icon-wrap i {
  font-size: 26px;
  color: #e03a2f;
}

.cob-error-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 380px;
}

.cob-error-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cob-error-msg {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: left;
}

.cob-error-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}

.cob-error-retry-btn:hover {
  background: #333;
}