/**
 * Contact Map Block Styles — Formulário e Mapa lado a lado
 */

/* ─── Section wrapper ─────────────────────────────────────── */
.contact-map-block {
  background: #ffffff;
  padding: 80px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ─── Inner wrapper (max-width centering) ─────────────────── */
.contact-map-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section title (above both columns) ─────────────────── */
.contact-map-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--color-heading, #222);
  text-align: center;
}

/* ─── Two-column flex container ───────────────────────────── */
.contact-map-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* ─── Form column (left) ──────────────────────────────────── */
.contact-map-form-col {
  flex: 1;
  display: flex;
}

.contact-map-form-inner {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
}

/* Re-use existing .contact-content styles from contact-form-block.css */
.contact-map-form-inner .contact-content {
  max-width: 100%;
}

/* ─── Map column (right) ──────────────────────────────────── */
.contact-map-map-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 450px;
}

/* ─── Contact info (above map) ────────────────────────────── */
.contact-map-info {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-map-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text, #333);
  line-height: 1.5;
}

.contact-map-info li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary, #7db83a);
}

.contact-map-info li a {
  color: var(--color-text, #333);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-map-info li a:hover {
  color: var(--color-primary, #7db83a);
}

/* Phone / Tel sub-label */
.contact-map-info-group {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.contact-map-info-number {
  font-size: 15px;
  color: var(--color-text, #333);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-map-info-number:hover {
  color: var(--color-primary, #7db83a);
}

.contact-map-info-label {
  font-size: 11px;
  opacity: 0.6;
}

/* ─── Map itself fills remaining height ───────────────────── */
.contact-map-map-container {
  flex: 1;
  width: 100%;
  min-height: 300px;
}

.contact-map-map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 30px;
}

/* Placeholder when no map is configured */
.contact-map-placeholder {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100, #f5f5f5);
  color: var(--color-gray-600, #666);
  font-size: 16px;
  text-align: center;
  padding: 40px 20px;
}

.contact-map-placeholder p {
  margin: 0;
  max-width: 400px;
}

/* ─── Mobile — stacked: form on top, map on bottom ───────── */
@media (max-width: 768px) {
  .contact-map-block {
    padding: 50px 0;
  }

  .contact-map-title {
    font-size: 1.8rem;
    margin-bottom: 28px;
  }

  .contact-map-container {
    flex-direction: column;
    gap: 24px;
  }

  .contact-map-form-inner {
    padding: 32px 24px;
  }

  .contact-map-map-col {
    min-height: 320px;
  }

  .contact-map-map-container,
  .contact-map-map-container iframe {
    min-height: 260px;
  }

  .contact-map-placeholder {
    min-height: 260px;
  }
}
