/* Google Maps & site survey location widgets */

.ot-map {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
  background: var(--color-surface, rgba(0, 0, 0, 0.2));
}

.ot-map--office {
  min-height: 280px;
  aspect-ratio: 21 / 9;
}

.ot-map--preview {
  min-height: 180px;
  margin-top: 0.75rem;
}

.ot-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.ot-map__static {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.ot-map__directions {
  margin-top: 0.75rem;
}

.ot-survey-location {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
  background: var(--color-surface-elevated, rgba(255, 255, 255, 0.03));
}

.ot-survey-location__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.ot-survey-location__hint {
  font-size: 0.85rem;
  color: var(--muted, rgba(255, 255, 255, 0.65));
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.ot-survey-location__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.ot-survey-location__toggle input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ot-survey-location__fields[hidden] {
  display: none !important;
}

.ot-survey-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.ot-survey-location__status {
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
}

.ot-survey-location__status.is-error {
  color: var(--color-danger, #f87171);
}

.ot-survey-location__status.is-success {
  color: var(--color-success, #4ade80);
}

.contact-map-section .ot-map--office {
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .ot-map--office {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}
