/* Comcast Outage Tracker — shared styles
   Loaded once per page via Custom HTML block wherever COT features appear. */

.cot-map {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin: 16px 0;
}

/* Leaflet pin colors by report age — matches the red/blue/green convention */
.cot-pin-red    { background: #e0342a; }
.cot-pin-blue   { background: #2a7de0; }
.cot-pin-green  { background: #2ea043; }
.cot-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0,0,0,.4);
}

.cot-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin: 8px 0 16px;
  color: #444;
}
.cot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cot-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.cot-legend .dot.red   { background: #e0342a; }
.cot-legend .dot.blue  { background: #2a7de0; }
.cot-legend .dot.green { background: #2ea043; }

/* Report cards */
.cot-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.cot-report-card {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
.cot-report-card .cot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cot-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
}
.cot-badge.red   { background: #e0342a; }
.cot-badge.blue  { background: #2a7de0; }
.cot-badge.green { background: #2ea043; }
.cot-report-card .cot-service {
  font-weight: 600;
  font-size: 14px;
}
.cot-report-card .cot-meta {
  font-size: 12px;
  color: #777;
}
.cot-report-card .cot-comment {
  font-size: 13px;
  color: #333;
  margin-top: 6px;
}
.cot-empty-state {
  font-size: 14px;
  color: #777;
  padding: 20px 0;
  text-align: center;
}

/* Report form */
.cot-form {
  max-width: 420px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}
.cot-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 4px;
}
.cot-form select,
.cot-form textarea,
.cot-form input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}
.cot-form textarea { resize: vertical; min-height: 60px; }
.cot-form button {
  margin-top: 14px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #1a3ea1;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.cot-form button:disabled { opacity: .6; cursor: not-allowed; }
.cot-form-msg {
  font-size: 13px;
  margin-top: 10px;
}
.cot-form-msg.error   { color: #e0342a; }
.cot-form-msg.success { color: #2ea043; }

/* Nearby-city status cards */
.cot-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.cot-nearby-card {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cot-nearby-card .cot-city-name { font-weight: 600; font-size: 14px; }
.cot-nearby-card .cot-city-count { font-size: 12px; color: #777; margin-top: 4px; }
