.imagine-centre-search-card,
.imagine-centre-results-panel {
  background: #ffffff;
  color: #1d2630;
}

.imagine-centre-search-card {
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  padding: 18px 32px 22px;
  border: 6px solid rgba(220, 220, 214, .78);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 18px rgba(33, 91, 132, .06);
}

.imagine-centre-results-panel {
  border: 10px solid #f7f7f7;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(33, 91, 132, .08), -10px 10px 0 #4083A0;
}

.imagine-centre-search-form {
  margin: 0;
}

.imagine-centre-search-label {
  display: block;
  margin: 0;
  color: #2b7faf;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.imagine-centre-search-card-input {
  position: relative;
  display: block;
  width: 100%;
  border-bottom: 1px solid #2b7faf;
}

.imagine-centre-search-card-input::before {
  content: "Find a Centre Near you";
  display: block;
  margin-bottom: 4px;
  color: #4083A0;
  font-size: 12px;
  line-height: 1.2;
}

.imagine-centre-search-card .imagine-centre-search-input {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b7faf;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.25;
}

.imagine-centre-search-card .imagine-centre-search-input::placeholder {
  color: #2b7faf;
  opacity: 1;
}

.imagine-centre-card-submit,
.launch-search-btn {
  --btn-bg: #1ea8e1;
  --btn-bg-hover: #8cd2ee;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 46px;
  margin-top: 14px;
  padding: 7px 20px 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1;
  text-decoration: none;
  transition: background .25s ease;
}

.imagine-centre-card-submit:hover,
.imagine-centre-card-submit:focus,
.launch-search-btn:hover,
.launch-search-btn:focus {
  background: var(--btn-bg-hover);
  color: #ffffff;
}

.launch-search-btn__text {
  white-space: nowrap;
  color: #ffffff;
  font-family: Lato, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.launch-search-btn__rocket {
  position: relative;
  width: 35px;
  height: 35px;
  background: url("https://sharedmarketing.net.au/clients/imagineelc/wp-content/uploads/2026/06/Rocket-icon.png") center/contain no-repeat;
}

.imagine-centre-eyebrow {
  display: block;
  margin-bottom: 22px;
  color: #24304d;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.imagine-centre-input-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #2f3032;
  padding-bottom: 10px;
}

.imagine-centre-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  outline: 0;
}

.imagine-centre-search-input::placeholder {
  color: #6d727b;
  opacity: 1;
}

.imagine-centre-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #1FA9E1;
  color: #ffffff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}

.imagine-centre-submit:hover,
.imagine-centre-submit:focus {
  background: #8CD2EE;
  color: #ffffff;
  transform: translateX(2px);
}

.imagine-centre-view-all,
.imagine-centre-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 0 30px;
  border: 1px solid #1FA9E1;
  border-radius: 999px;
  background: #1FA9E1;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.imagine-centre-button:hover,
.imagine-centre-button:focus {
  background: #8CD2EE;
  color: #ffffff;
}

.imagine-centre-button-secondary {
  background: #ffffff;
  border-width: 2px;
  border-color: #1FA9E1;
  color: #1FA9E1;
}

.imagine-centre-button-secondary:hover,
.imagine-centre-button-secondary:focus {
  border-color: #8CD2EE;
  color: #8CD2EE;
}

.imagine-centre-locator {
  position: relative;
  height: min(680px, calc(100vh - 170px));
  min-height: 560px;
  overflow: hidden;
  background: #f4efe6;
  border-radius: 20px;
}

.imagine-centre-map {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background: #e9e2d7;
  border-radius: 20px;
  overflow: hidden;
}

.imagine-centre-results-panel {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 50px));
  max-height: calc(100% - 50px);
  margin: 25px 0 25px clamp(25px, 9vw, 190px);
  padding: clamp(22px, 2.5vw, 30px);
  overflow: auto;
}

.imagine-centre-results-search .imagine-centre-search-input {
  font-size: 21px;
}

.imagine-centre-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 14px 0 24px;
  font-size: 16px;
}

.imagine-centre-actions a,
.imagine-centre-use-location,
.imagine-centre-directions {
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.imagine-centre-location-status {
  min-height: 20px;
  margin: -18px 0 22px;
  color: #506150;
  font-size: 14px;
}

.imagine-centre-results {
  display: grid;
  gap: 14px;
}

.imagine-centre-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  min-height: 130px;
  padding: 20px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f6f2e8;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.imagine-centre-result.is-active,
.imagine-centre-result.is-hovered,
.imagine-centre-result:hover {
  border-color: #0098aa;
  box-shadow: 0 8px 18px rgba(33, 91, 132, .10);
  transform: translateY(-1px);
}

.imagine-centre-result h3 {
  margin: 0;
  color: #4083A0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.imagine-centre-result p {
  margin: 6px 0 0;
  color: #4083A0;
  font-size: 14px;
  line-height: 1.35;
}

.imagine-centre-result-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.imagine-centre-distance,
.imagine-centre-badge {
  display: inline-flex;
  width: max-content;
  margin-top: 4px;
  color: #5a6c52;
  font-size: 13px;
  font-weight: 700;
}

.imagine-centre-result-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.imagine-centre-result-actions .imagine-centre-button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  background: #1FA9E1 !important;
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.2;
  opacity: 1;
  text-indent: 0;
  text-shadow: none;
}

.imagine-centre-result-actions .imagine-centre-button:hover,
.imagine-centre-result-actions .imagine-centre-button:focus {
  background: #8CD2EE !important;
  color: #ffffff !important;
}

.imagine-centre-result-actions .imagine-centre-button-secondary,
.imagine-centre-result-actions .imagine-centre-button-secondary:hover,
.imagine-centre-result-actions .imagine-centre-button-secondary:focus {
  background: #ffffff !important;
  color: #1FA9E1 !important;
}

.imagine-centre-result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.imagine-centre-infowindow {
  width: 220px;
  min-height: 96px;
  padding: 10px 8px 8px;
  color: #4083A0;
  line-height: 1.35;
}

.imagine-centre-infowindow strong {
  display: block;
  margin-bottom: 5px;
  color: #4083A0;
  font-size: 14px;
  font-weight: 600;
}

.imagine-centre-infowindow p {
  margin: 0 0 6px;
  color: #4083A0;
  font-size: 12px;
}

.imagine-centre-infowindow a {
  color: #1FA9E1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.imagine-centre-infowindow a:hover,
.imagine-centre-infowindow a:focus {
  text-decoration: underline;
}

.imagine-centre-directions-button {
  gap: 8px;
  min-height: 38px;
}

.imagine-centre-empty {
  margin: 0;
  padding: 24px;
  background: #f6f2e8;
}

.pac-container {
  z-index: 999999;
}

.imagine-centre-mega-stage {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 0 0 0 -50vw;
  padding: 20px 32px;
  box-sizing: border-box;
}

.imagine-centre-mega-menu {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.6fr) minmax(300px, 1fr);
  width: min(1480px, calc(100vw - 64px));
  height: 540px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d8e0df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(33, 91, 132, .14);
  color: #2b7faf;
}

.imagine-centre-mega-states {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d8e0df;
  background: #eef8fc;
}

.imagine-centre-mega-state {
  width: 100%;
  padding: 18px 32px;
  border: 0;
  background: transparent;
  color: #2b7faf;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.imagine-centre-mega-state.is-active,
.imagine-centre-mega-state:hover,
.imagine-centre-mega-state:focus {
  background: #ffffff;
  color: #1f6f95;
}

.imagine-centre-mega-centres {
  padding: 26px 32px;
  overflow: visible;
}

.imagine-centre-mega-state-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 28px 44px;
  min-height: 100%;
}

.imagine-centre-mega-state-panel.is-active {
  display: grid;
}

.imagine-centre-mega-region h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2aa7df;
  color: #2b7faf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.1;
}

.imagine-centre-mega-region ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.imagine-centre-mega-region a {
  color: #2b7faf;
  font-size: 17px;
  line-height: 1.25;
  text-decoration: none;
}

.imagine-centre-mega-region a:hover,
.imagine-centre-mega-region a:focus {
  color: #0098aa;
  text-decoration: underline;
}

.imagine-centre-mega-map-wrap {
  padding: 20px 22px 20px 0;
  min-height: 0;
}

.imagine-centre-mega-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #a9d9df;
}

@media (max-width: 900px) {
  .imagine-centre-locator {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }

  .imagine-centre-map {
    position: relative;
    min-height: 420px;
  }

  .imagine-centre-results-panel {
    width: auto;
    max-height: none;
    margin: 24px 20px 40px;
  }

  .imagine-centre-result {
    grid-template-columns: 1fr;
  }

  .imagine-centre-mega-stage {
    left: auto;
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

  .imagine-centre-mega-menu {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    max-height: min(72vh, 620px);
    overflow: auto;
  }

  .imagine-centre-mega-states {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #d8e0df;
  }

  .imagine-centre-mega-state {
    width: auto;
    flex: 0 0 auto;
    padding: 14px 20px;
    font-size: 20px;
  }

  .imagine-centre-mega-centres {
    padding: 22px;
  }

  .imagine-centre-mega-map-wrap {
    display: none;
  }
}

@media (max-width: 560px) {
  .imagine-centre-search-card {
    padding: 22px 16px;
    border-width: 8px;
  }

  .imagine-centre-input-row {
    grid-template-columns: 1fr 48px;
    gap: 10px;
  }

  .imagine-centre-submit {
    width: 48px;
    height: 48px;
  }

  .imagine-centre-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .imagine-centre-result {
    padding: 24px 20px;
  }

  .imagine-centre-card-submit {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    padding-right: 20px;
  }

  .launch-search-btn__text {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .launch-search-btn__rocket {
    width: 34px;
    height: 34px;
  }

  .imagine-centre-mega-state-panel.is-active {
    grid-template-columns: 1fr;
  }

  .imagine-centre-mega-region h3 {
    font-size: 22px;
  }
}
