/* Office documents and location: extension of the existing Al Khaber identity.
   Uses the site's original license-facts layout without replacing its rules. */

.office-license {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.office-license .license-layout {
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.office-license .license-card {
  min-width: 0;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.office-license .license-card-top {
  background: var(--navy);
  border-bottom-color: var(--copper);
}

.office-license-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0 30px 26px;
}

.office-license-actions .btn {
  max-width: 100%;
  min-height: 48px;
  white-space: normal;
  text-align: center;
}

.office-map-section {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.office-map-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.office-map-layout > * {
  min-width: 0;
}

.office-map-heading {
  color: var(--navy);
  text-align: start;
}

.office-map-heading h2,
.office-map-heading h3 {
  color: var(--navy);
  margin-block: 0 16px;
}

.office-map-heading .eyebrow {
  margin-bottom: 16px;
}

.office-map-address {
  display: block;
  margin-block: 18px;
  color: var(--ink);
  font-style: normal;
  font-size: 1.04rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.office-map-address strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-weight: 700;
}

.office-map-note {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.office-map-heading > .office-map-note {
  margin-block: 16px;
}

.office-map-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Supports either a wrapper around the iframe or the class on the iframe. */
.office-map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  background: var(--soft);
}

.office-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.office-map-card > .office-map-note {
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.office-map-section .btn:focus-visible,
.office-license-actions .btn:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .office-map-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .office-license .license-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .office-license-actions {
    padding: 0 23px 23px;
    gap: 10px;
  }

  .office-map-frame {
    height: 300px;
  }

  .office-map-card {
    border-radius: 16px;
  }

  .office-map-address {
    font-size: 1rem;
  }

  .office-map-card > .office-map-note {
    padding: 15px 18px;
  }
}

@media (max-width: 380px) {
  .office-license-actions .btn {
    flex: 1 1 100%;
    padding-inline: 14px;
  }
}

@media print {
  .office-license,
  .office-map-section {
    background: white;
    color: var(--ink);
    border-color: var(--line);
    padding-block: 20px;
  }

  .office-license .license-layout,
  .office-map-layout {
    display: block;
  }

  .office-license .license-card,
  .office-map-card {
    margin-top: 16px;
    box-shadow: none;
    break-inside: avoid;
  }

  .office-license-actions {
    padding: 0 20px 18px;
  }

  .office-license-actions .btn,
  .office-map-section .btn {
    min-height: 0;
    padding: 6px 10px;
    color: var(--navy);
    background: white;
    border: 1px solid var(--line);
    box-shadow: none;
    transform: none;
  }

  /* The textual address and directions link remain available in print. */
  .office-map-frame {
    display: none !important;
  }

  .office-map-address,
  .office-map-note {
    font-size: 10pt;
  }

  .office-map-heading h2,
  .office-map-heading h3 {
    break-after: avoid;
  }
}
