.nzgcm {
  --accent: #1e73be;
  --ink: #111111;
  --muted: #666666;
  --soft: #f7f7f7;
  --line: #d7d7d7;
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  overflow: hidden;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  font-family: Montserrat, Verdana, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.nzgcm *,
.nzgcm *::before,
.nzgcm *::after {
  box-sizing: border-box;
}

.nzgcm__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 32px 32px;
  color: var(--ink);
  background: #ffffff;
  text-align: center;
}

.nzgcm__brand {
  display: block;
  width: min(340px, 78vw);
  margin: 0 auto;
}

.nzgcm__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nzgcm__title {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: Montserrat, Verdana, sans-serif;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.nzgcm__toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) auto;
  min-width: 0;
  align-items: stretch;
  gap: 16px;
  padding: 24px 28px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nzgcm__toolbar > label { min-width: 0; margin: 0; }
.nzgcm__details-notice { margin: 20px 0 0; color: #666; font-size: 12px; line-height: 1.5; }
.nzgcm__details-dialog .nzgcm__popup h3 { padding-right: 40px; }

.nzgcm input,
.nzgcm select,
.nzgcm textarea {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 15px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
}

.nzgcm input::placeholder {
  color: #777777;
  opacity: 1;
}

.nzgcm button,
.nzgcm__card-actions a,
.nzgcm__popup-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 11px 14px;
  color: #666666;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  box-shadow: none;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nzgcm button:hover,
.nzgcm button:focus-visible,
.nzgcm__card-actions a:hover,
.nzgcm__card-actions a:focus-visible,
.nzgcm__popup-links a:hover,
.nzgcm__popup-links a:focus-visible {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.nzgcm button:focus-visible,
.nzgcm a:focus-visible,
.nzgcm input:focus-visible,
.nzgcm select:focus-visible,
.nzgcm textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nzgcm__locate {
  min-width: 112px;
  white-space: nowrap;
}

.nzgcm__workspace {
  display: grid;
  grid-template-columns: minmax(330px, 37%) 1fr;
  height: var(--nzgcm-map-height);
  min-height: 520px;
}

.nzgcm__results {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.nzgcm__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.nzgcm__results-head strong {
  font-family: Montserrat, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nzgcm__results-head button {
  min-height: auto;
  padding: 7px 10px;
}

.nzgcm__list {
  padding: 18px;
  overflow-y: auto;
  scrollbar-color: #a5a5a5 #f1f1f1;
  scrollbar-width: thin;
}

.nzgcm__card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}

.nzgcm__card:hover,
.nzgcm__card:focus {
  border-color: #999999;
  transform: translateY(-1px);
}

.nzgcm__card > img,
.nzgcm__placeholder {
  width: 104px;
  height: 104px;
  background: var(--soft);
  border-radius: 0;
  object-fit: cover;
}

.nzgcm__placeholder {
  display: grid;
  place-items: center;
}

.nzgcm__placeholder img {
  width: 46%;
  height: 46%;
  object-fit: contain;
  opacity: .9;
}

.nzgcm__card h3 {
  margin: 5px 0 5px;
  color: var(--ink);
  font-family: Montserrat, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.nzgcm__card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nzgcm__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #777777;
  font-family: Montserrat, Verdana, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nzgcm__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.nzgcm__tags span {
  padding: 4px 7px;
  color: #555555;
  background: var(--soft);
  border: 1px solid #e3e3e3;
  border-radius: 0;
  font-size: 10px;
}

.nzgcm__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.nzgcm__card-actions button,
.nzgcm__card-actions a {
  min-height: 32px;
  padding: 8px 9px;
  font-size: 10px;
}

.nzgcm__map {
  min-height: 520px;
  height: 100%;
  background: #dce8ec;
}

.nzgcm-marker {
  background: transparent !important;
  border: 0 !important;
}

.nzgcm-marker span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 7px;
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.nzgcm-marker span::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 0;
  content: "";
  border-top: 8px solid var(--ink);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transform: translateX(-50%);
}

.nzgcm-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nzgcm__popup img {
  width: 100%;
  height: 110px;
  margin-bottom: 7px;
  border-radius: 0;
  object-fit: cover;
}

.nzgcm__popup h3 {
  margin: 6px 0;
  color: var(--ink);
  font-family: Montserrat, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.nzgcm__popup p {
  margin: 4px 0 10px;
  color: #555555;
  font-size: 12px;
}

.nzgcm__popup-note {
  padding: 9px 10px;
  background: #f7f7f7;
  border-left: 2px solid var(--accent);
  font-size: 11px !important;
  line-height: 1.45;
}

.nzgcm__popup-contact {
  display: grid;
  gap: 4px;
  margin: 9px 0 11px;
}

.nzgcm__popup-contact a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.nzgcm__popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nzgcm__popup-links a,
.nzgcm__popup-links button {
  min-height: 31px;
  padding: 8px 9px;
  font-size: 10px;
}

.nzgcm__status {
  padding: 30px 12px;
  color: #666666;
  text-align: center;
}

.nzgcm__dialog {
  width: min(560px, calc(100% - 28px));
  padding: 30px;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.nzgcm__dialog::backdrop {
  background: rgba(0, 0, 0, .68);
}

.nzgcm__dialog h3 {
  margin: 0 45px 20px 0;
  color: var(--ink);
  font-family: Montserrat, Verdana, sans-serif;
  font-size: 21px;
  font-weight: 500;
}

.nzgcm__dialog label {
  display: block;
  margin: 0 0 14px;
  font-family: Montserrat, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nzgcm__dialog label input,
.nzgcm__dialog label textarea {
  margin-top: 7px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.nzgcm__dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  min-width: 36px;
  padding: 7px 10px;
  color: var(--ink) !important;
  background: #ffffff !important;
  font-size: 20px !important;
}

.nzgcm__consent {
  display: flex !important;
  gap: 9px;
  align-items: flex-start;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
}

.nzgcm__consent input {
  width: auto !important;
  min-height: 0 !important;
  margin-top: 3px !important;
}

.nzgcm__honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.nzgcm__submit {
  width: 100%;
}

.nzgcm__form-status {
  min-height: 1.5em;
  text-align: center;
  font-weight: 600;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .nzgcm__toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .nzgcm__search {
    grid-column: 1 / -1;
  }

  .nzgcm__workspace {
    grid-template-columns: 42% 58%;
  }

  .nzgcm__card {
    grid-template-columns: 80px 1fr;
  }

  .nzgcm__card > img,
  .nzgcm__placeholder {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 680px) {
  .nzgcm {
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .nzgcm__intro {
    padding: 28px 20px 24px;
  }

  .nzgcm__brand {
    width: min(280px, 80vw);
  }

  .nzgcm__title {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: .22em;
  }

  .nzgcm__toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .nzgcm__search {
    grid-column: auto;
  }

  .nzgcm__locate {
    width: 100%;
  }

  .nzgcm__workspace {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .nzgcm__map {
    order: 1;
    height: 54vh;
    min-height: 390px;
  }

  .nzgcm__results {
    order: 2;
    border-right: 0;
  }

  .nzgcm__list {
    max-height: none;
    overflow: visible;
  }

  .nzgcm__card {
    grid-template-columns: 86px 1fr;
  }

  .nzgcm__card > img,
  .nzgcm__placeholder {
    width: 86px;
    height: 86px;
  }

  .nzgcm__dialog {
    padding: 25px 18px;
  }
}
