/* Contractor-facing read-only map. Layers on top of styles.css. */

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gate-card {
  width: 100%;
  max-width: 360px;
  padding: 1.5rem;
  border: 1px solid #374151;
  border-radius: 0.9rem;
  background: #1f2937;
}

.gate-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}

.gate-sub {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.gate-card button {
  width: 100%;
  margin-top: 0.5rem;
}

.gate-error {
  margin: 0.75rem 0 0;
  color: #fecaca;
  font-size: 0.88rem;
}

/* Ranked site list */
.site-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #374151;
  border-radius: 0.6rem;
  background: #111827;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.site-item:hover {
  background: #0b1220;
  border-color: #4b5563;
}

.site-item.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}

.site-rank {
  flex: 0 0 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0369a1;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.site-item-body {
  flex: 1;
  min-width: 0;
}

.site-item-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-item-sub {
  color: #9ca3af;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Notes (site + parcel) */
.note-entry {
  margin: 0.3rem 0;
  padding: 0.4rem 0.55rem;
  border-left: 2px solid #0284c7;
  background: #0b1220;
  border-radius: 0.3rem;
  font-size: 0.85rem;
}

.note-entry .note-when {
  display: block;
  color: #6b7280;
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.notes-empty {
  color: #6b7280;
  font-size: 0.82rem;
  margin: 0.3rem 0;
}

textarea {
  width: 100%;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: #030712;
  color: #f9fafb;
  font: inherit;
  resize: vertical;
}

/* InfoWindow parcel popup — force readable dark text on Google's white bg */
.parcel-popup {
  color: #0b1220;
  min-width: 240px;
  max-width: 300px;
}

.parcel-popup h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.parcel-popup .parcel-row {
  font-size: 0.85rem;
  margin: 0.15rem 0;
}

.parcel-popup textarea {
  background: #f8fafc;
  color: #0b1220;
  border-color: #cbd5e1;
}

.parcel-popup label {
  color: #334155;
}

.parcel-popup .note-entry {
  background: #eef2f7;
  color: #0b1220;
}

.parcel-popup .note-entry .note-when {
  color: #64748b;
}
