/*
 * Map interface and location-related styles
 */

/* Map Interface Styles */
.location-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.location-section h4 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-note {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.service-area-info {
  background: #e8f5e8;
  border: 1px solid #c3e6c3;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.service-area-info p {
  margin: 0;
  color: #2c3e50;
  font-size: 0.9rem;
}

.map-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.location-status {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
}

.location-status.status-success {
  color: #10b981;
  background: #e8f5e8;
  border: 1px solid #c3e6c3;
}

.location-status.status-error {
  color: #dc2626;
  background: #fdf2f2;
  border: 1px solid #fecaca;
}

.location-status.status-loading {
  color: #f59e0b;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.location-status.status-info {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.current-location {
  margin-top: 1rem;
  padding: 1rem;
  background: #e8f5e8;
  border: 1px solid #c3e6c3;
  border-radius: 6px;
}

.current-location p {
  margin: 0;
  color: #2c3e50;
  font-size: 0.9rem;
}

/* Map specific styles */
#delivery-map {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Google Maps specific styles */
.gm-style {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif !important;
}

.gm-style-iw {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif !important;
}

.gm-style-iw-d {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif !important;
}

/* Mobile responsiveness for map */
@media (max-width: 768px) {
  .location-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .location-actions .btn {
    width: 100%;
    margin: 0.25rem 0;
  }

  #delivery-map {
    height: 300px !important;
  }
}
