.mb-first-party-map {
  position: relative;
}

.mb-map-preview {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(46, 31, 24, 0.14);
  background: #f4ece4;
  isolation: isolate;
}

.mb-map-preview-grid {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background:
    linear-gradient(18deg, transparent 0 35%, rgba(200, 100, 74, 0.34) 35% 38%, transparent 38% 100%),
    linear-gradient(103deg, transparent 0 21%, rgba(46, 31, 24, 0.12) 21% 23%, transparent 23% 54%, rgba(46, 31, 24, 0.10) 54% 56%, transparent 56%),
    linear-gradient(0deg, transparent 0 26%, rgba(46, 31, 24, 0.08) 26% 28%, transparent 28% 68%, rgba(46, 31, 24, 0.08) 68% 70%, transparent 70%);
}

.mb-map-preview-grid::before,
.mb-map-preview-grid::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.mb-map-preview-grid::before {
  width: 110%;
  height: 28px;
  left: -5%;
  top: 46%;
  transform: rotate(-8deg);
}

.mb-map-preview-grid::after {
  width: 30px;
  height: 120%;
  left: 61%;
  top: -10%;
  transform: rotate(12deg);
}

.mb-map-preview-card {
  position: absolute;
  z-index: 2;
  left: 7%;
  bottom: 10%;
  max-width: 230px;
  padding: 14px 16px;
  border-radius: 15px;
  background: rgba(255, 252, 248, 0.96);
  box-shadow: 0 12px 35px rgba(46, 31, 24, 0.12);
}

.mb-map-preview-card strong,
.mb-map-preview-card small {
  display: block;
}

.mb-map-preview-card strong {
  color: #2e1f18;
  font-size: 0.95rem;
}

.mb-map-preview-card small {
  margin-top: 4px;
  color: rgba(46, 31, 24, 0.72);
  line-height: 1.35;
}

.mb-map-preview-transit {
  left: auto;
  right: 7%;
  top: 11%;
  bottom: auto;
}

.mb-map-open {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.mb-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fffaf6;
  color: #2e1f18;
  box-shadow: 0 28px 80px rgba(46, 31, 24, 0.28);
}

.mb-dialog::backdrop {
  background: rgba(46, 31, 24, 0.56);
  backdrop-filter: blur(5px);
}

.mb-dialog-panel {
  position: relative;
  padding: clamp(26px, 5vw, 52px);
  overflow: auto;
  max-height: min(86vh, 760px);
}

.mb-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(46, 31, 24, 0.16);
  border-radius: 999px;
  background: #fffaf6;
  color: #2e1f18;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.mb-dialog-close:hover,
.mb-dialog-close:focus-visible {
  border-color: #c8644a;
}

.mb-map-interactive {
  min-height: 430px;
  margin: 22px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  background: #f4ece4;
}

.mb-map-interactive iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  display: block;
}

.mb-secondary-external {
  opacity: 0.8;
  font-size: 0.92rem;
}

.mb-review-section {
  background: #f4ece4;
}

.mb-review-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 34px;
  align-items: end;
}

.mb-review-bridge h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

.mb-review-bridge p:not(.mb-eyebrow) {
  max-width: 720px;
}

.mb-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
  margin-top: 28px;
}

.mb-help-section {
  background: #fffaf6;
}

.mb-help-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.mb-help-intro {
  position: sticky;
  top: 110px;
}

.mb-faq-list {
  border-top: 1px solid rgba(46, 31, 24, 0.15);
}

.mb-faq-list details {
  border-bottom: 1px solid rgba(46, 31, 24, 0.15);
}

.mb-faq-list summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 22px 46px 22px 0;
  font-weight: 700;
  color: #2e1f18;
}

.mb-faq-list summary::-webkit-details-marker {
  display: none;
}

.mb-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #c8644a;
  font-size: 1.5rem;
  font-weight: 400;
}

.mb-faq-list details[open] summary::after {
  content: "−";
}

.mb-faq-list details p {
  margin: -4px 0 24px;
  max-width: 780px;
}

.mb-privacy-inline {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-left: 3px solid #c8644a;
  background: rgba(244, 236, 228, 0.62);
  font-size: 0.88rem;
  line-height: 1.55;
}

.mb-privacy-inline a {
  font-weight: 700;
}

.mb-form-row-2 > label:only-child {
  grid-column: 1 / -1;
}

.mb-legal-data-secondary,
.mb-legal-muted {
  opacity: 0.86;
}

.mb-legal-muted {
  font-size: 0.9rem;
}

.mb-dialog :focus-visible,
.mb-faq-list summary:focus-visible,
.mb-map-open:focus-visible {
  outline: 3px solid rgba(200, 100, 74, 0.5);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .mb-review-bridge,
  .mb-help-layout {
    grid-template-columns: 1fr;
  }

  .mb-help-intro {
    position: static;
  }

  .mb-dialog {
    width: 100vw;
    max-width: none;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .mb-dialog-panel {
    max-height: 92vh;
    padding: 30px 22px 34px;
  }

  .mb-map-interactive,
  .mb-map-interactive iframe {
    min-height: 52vh;
  }

  .mb-map-preview {
    min-height: 280px;
  }

  .mb-map-preview-card {
    left: 5%;
    right: 5%;
    bottom: 7%;
    max-width: none;
  }

  .mb-map-preview-transit {
    left: 5%;
    right: 5%;
    top: 7%;
    bottom: auto;
  }

  .mb-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mb-dialog-actions .mb-btn,
  .mb-dialog-actions .mb-text-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-dialog,
  .mb-dialog::backdrop {
    scroll-behavior: auto;
  }
}
