/* Google Maps InfoWindow — School Mapping popup */
.gm-style .gm-style-iw-c {
  max-width: 420px !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
  max-height: 360px !important;
}

.gm-style .gm-style-iw-chr {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;
}

.map-info-window {
  min-width: 380px;
  max-width: 440px;
  padding: 14px 16px 12px;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  color: #1b2838;
  line-height: 1.45;
}

.map-info-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-right: 24px;
}

.map-info-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid #d9e3ec;
  background: #fff;
}

.map-info-heading {
  min-width: 0;
  flex: 1;
}

.map-info-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.35;
}

.map-info-title a {
  color: #0b4f6c;
  text-decoration: none;
}

.map-info-title a:hover {
  color: #f7b32b;
}

.map-info-code {
  font-size: 12px;
  color: #5c6b7a;
}

.map-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 12px;
}

.map-info-table th {
  background: linear-gradient(135deg, #0a3d53, #0b4f6c);
  color: #fff;
  padding: 7px 8px;
  text-align: center;
  font-weight: 600;
  border: none;
}

.map-info-table th:first-child {
  text-align: left;
}

.map-info-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #d9e3ec;
  text-align: center;
  vertical-align: middle;
}

.map-info-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.map-info-table td:first-child a {
  color: #0b4f6c;
  text-decoration: none;
  font-weight: 600;
}

.map-info-table td:first-child a:hover {
  color: #f7b32b;
}

.map-info-table .map-info-best {
  width: 44px;
  text-align: center;
}

.map-best-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 79, 108, 0.1);
  color: #0b4f6c;
  font-size: 12px;
}

.map-info-table tfoot td {
  font-weight: 700;
  background: rgba(11, 79, 108, 0.07);
  border-bottom: none;
}

.map-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.map-level-excellent {
  background: #28a745;
  color: #fff;
}

.map-level-good {
  background: #ffc107;
  color: #1b2838;
}

.map-level-developing {
  background: #dc3545;
  color: #fff;
}

.map-level-wait,
.map-level-error {
  background: #6c757d;
  color: #fff;
}

.map-info-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #d9e3ec;
  text-align: right;
}

.map-info-footer a {
  color: #0b4f6c;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

.map-info-footer a:hover {
  color: #f7b32b;
}
