/* Office map: Brisbane, Ipswich and Coffs Harbour */
.df-office-map {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  margin: 26px auto 0;
  max-width: var(--df-content);
  /* Breathing room before the shared CTA band that follows the section. */
  padding-bottom: 56px;
}

#top .df-office-map-section .content {
  padding-bottom: 88px;
  padding-top: 30px;
}

#top .df-office-map-section .av_textblock > p {
  color: var(--df-slate);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 660px;
}

.df-office-map__canvas-wrap {
  background: var(--df-white);
  border: 1px solid var(--df-line);
  box-shadow: var(--df-shadow);
  min-height: 460px;
  position: relative;
}

.df-office-map__canvas {
  height: 460px;
  width: 100%;
}

.df-office-map__canvas.maplibregl-map {
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

.df-office-map__fallback {
  background: rgba(255, 255, 255, 0.94);
  color: var(--df-slate);
  inset: 0;
  margin: 0;
  padding: 28px;
  position: absolute;
  text-align: center;
}

.df-office-map__panel {
  align-content: start;
  display: grid;
  gap: 12px;
}

.df-office-map__panel-eyebrow {
  align-items: center;
  color: var(--df-slate);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 2px 0;
  text-transform: uppercase;
}

.df-office-map__panel-rule {
  background: var(--df-orange);
  display: inline-block;
  height: 2px;
  margin-right: 12px;
  width: 34px;
}

/* #top prefix: Enfold's base.min.css applies list-style disc to
 * .entry-content-wrapper ul at higher specificity than a bare class. */
#top .df-office-map__list,
#top .df-office-map__list li {
  list-style: none;
}

#top .df-office-map__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.df-office-card {
  background: var(--df-white);
  border: 1px solid var(--df-line);
  border-left: 3px solid transparent;
  box-shadow: 0 10px 26px rgba(3, 22, 34, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.df-office-card:hover {
  box-shadow: 0 14px 32px rgba(3, 22, 34, 0.14);
}

.df-office-card.is-active {
  border-left-color: var(--df-orange);
  box-shadow: 0 14px 32px rgba(3, 22, 34, 0.16);
}

.df-office-card__button {
  align-items: start;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 15px 16px;
  text-align: left;
  width: 100%;
}

.df-office-card__icon .df-icon {
  color: var(--df-orange);
  height: 24px;
  margin-top: 1px;
  width: 24px;
}

.df-office-card__copy {
  display: grid;
  gap: 2px;
}

.df-office-card__copy strong {
  color: var(--df-ink);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.df-office-card__button:hover .df-office-card__copy strong,
.df-office-card__button:focus-visible .df-office-card__copy strong {
  color: var(--df-blue);
}

.df-office-card__region {
  color: var(--df-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.df-office-card__address {
  color: var(--df-slate);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 3px;
}

/* ---- MapLibre GL styling for the theme palette ---- */

/* Custom teardrop pin: orange with a white core, soft shadow, subtle
 * idle pulse on the selected pin. */
.df-map-pin {
  background: none;
  border: 0;
  cursor: pointer;
  display: block;
  height: 34px;
  padding: 0;
  position: relative;
  width: 24px;
}

.df-map-pin__shape {
  display: block;
  fill: var(--df-orange);
  filter: drop-shadow(0 4px 8px rgba(3, 22, 34, 0.35));
  height: 34px;
  transition: transform 180ms ease;
  width: 24px;
}

.df-map-pin:hover .df-map-pin__shape,
.df-map-pin:focus-visible .df-map-pin__shape {
  transform: scale(1.12) translateY(-2px);
}

.df-map-pin:focus-visible {
  outline: none;
}

.df-map-pin:focus-visible .df-map-pin__shape {
  filter: drop-shadow(0 0 0 rgba(3, 22, 34, 0.35)) drop-shadow(0 4px 8px rgba(3, 22, 34, 0.35));
  stroke: var(--df-navy-900);
  stroke-width: 1.5;
}

.df-map-pin__label {
  background: var(--df-navy-900);
  box-shadow: 0 4px 12px rgba(3, 22, 34, 0.24);
  color: var(--df-white);
  font-size: 9.5px;
  font-weight: 700;
  left: 100%;
  letter-spacing: 0.09em;
  margin-left: 6px;
  padding: 3px 8px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: -4px;
  white-space: nowrap;
}

.df-map-pin--label-left .df-map-pin__label {
  left: auto;
  margin-left: 0;
  margin-right: 6px;
  right: 100%;
}

/* Zoom control: brand navy, square, top-right, unified block */
.df-office-map__canvas .maplibregl-ctrl-group {
  background: var(--df-navy-900);
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(3, 22, 34, 0.24);
}

.df-office-map__canvas .maplibregl-ctrl-group button {
  background-color: transparent;
  border-radius: 0;
}

.df-office-map__canvas .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.df-office-map__canvas .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}

.df-office-map__canvas .maplibregl-ctrl-group button:hover {
  background: var(--df-navy-850);
}

/* Attribution: quiet, compact */
.df-office-map__canvas .maplibregl-ctrl-attrib {
  background: rgba(255, 255, 255, 0.75);
  color: var(--df-slate);
  font-size: 9.5px;
}

.df-office-map__canvas .maplibregl-ctrl-attrib a {
  color: var(--df-blue);
}

.df-office-map__canvas .maplibregl-ctrl-attrib-button {
  background-color: rgba(255, 255, 255, 0.75);
}

/* Popup: navy card, square corners to match the brand */
.df-map-popup-wrapper .maplibregl-popup-content {
  background: var(--df-navy-900);
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(3, 22, 34, 0.36);
  color: rgba(255, 255, 255, 0.82);
  padding: 14px 18px;
}

.df-map-popup-wrapper .maplibregl-popup-tip {
  border-top-color: var(--df-navy-900);
}

.df-map-popup-wrapper.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: var(--df-navy-900);
  border-top-color: transparent;
}

.df-map-popup-wrapper .maplibregl-popup-close-button {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  padding: 2px 6px;
  right: 2px;
  top: 2px;
}

.df-map-popup-wrapper .maplibregl-popup-close-button:hover,
.df-map-popup-wrapper .maplibregl-popup-close-button:focus {
  background: none;
  color: var(--df-orange);
}

.df-map-popup strong {
  color: var(--df-white);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  padding-right: 14px;
}

.df-map-popup strong span {
  color: var(--df-cyan);
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-top: 3px;
  text-transform: uppercase;
}

.df-map-popup p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 0;
}

@media only screen and (max-width: 989px) {
  .df-office-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .df-office-map__canvas,
  .df-office-map__canvas-wrap {
    height: 380px;
    min-height: 0;
  }

  .df-office-map__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 767px) {
  #top .df-office-map-section .content {
    padding-bottom: 56px;
  }

  .df-office-map__canvas,
  .df-office-map__canvas-wrap {
    height: 320px;
  }

  .df-office-map__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
