:root {
  --ymca-colour-grey-dark: #36383a;
  --ymca-colour-orange: #ed8c01;
  --ymca-colour-orange-slightly-transparent: rgba(237, 140, 1, 0.95);
  --ymca-colour-white-slightly-transparent: rgba(255, 255, 255, 0.9);
  --ymca-colour-yellow: #f7bf1f;
}

body {
  background-size: cover;
  background-position: -200px top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-image: url(https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/2193/ymca-general-01-2025-ESUR-009.jpg?v=1768389024000);
}

@media only screen and (min-width: 640px) {
  body {
    background-position: center 0px;
  }
}

a.button {
  border-radius: 10px;
}

.arrow-back-to-top {
  cursor: pointer;
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: 40px;
  font-style: normal;
  margin-bottom: 7px;
  vertical-align: middle;
}

.arrow-down {
  -webkit-animation: fadeInOutAnimation 3s infinite;
  -moz-animation: fadeInOutAnimation 3s infinite;
  -o-animation: fadeInOutAnimation 3s infinite;
  animation: fadeInOutAnimation 3s infinite;
  cursor: pointer;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: 40px;
  text-align: center;
}

.arrow-down i {
  font-style: normal;
}

.autocomplete__dropdown-arrow-down {
  z-index: 0;
}

.autocomplete__input {
  &::placeholder {
    opacity: 1; /* Firefox */
  }
}

.autocomplete__menu--overlay {
  background-color: #fdf9ed;
  border: solid 1px #f7bf1f;
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
  border-top: none;
  max-height: 147px;
  overflow-y: scroll;
  width: calc(100% - 1.5px);
}

@media only screen and (min-width: 768px) {
  .autocomplete__menu--overlay {
    max-height: 157px;
  }
}

.autocomplete__option--focused,
.autocomplete__option {
  background-color: #fdf9ed;
  color: #333333;
  font-size: 16px;
  font-weight: bold;
  padding: 20px 20px;
}

.autocomplete__option--focused,
.autocomplete__option:hover {
  background-color: #f7bf1f;
  color: #333333;
}

.autocomplete__option--focused:not(:last-child),
.autocomplete__option:not(:last-child) {
  border-bottom: 1px solid #f6e8bf;
}

.autocomplete__option--no-results {
  background-color: inherit;
  color: #555555;
  font-style: italic;
  font-weight: normal;
}

.autocomplete__option--no-results:hover {
  background-color: inherit;
}

.btn-menu {
  display: none !important;
}

.container--map-search {
  width: 100% !important;
}

.cta-button {
  text-decoration: none;
}

section.content {
  padding-top: 20px;
}

.data-text {
  display: none;
}

#en__pagebuilder .data-text {
  display: block;
}

details {
  margin: 0 0 27px;
}

.en__component--column--2 {
  background: var(--ymca-colour-white-slightly-transparent);
  border-radius: 10px;
  padding: 1rem 2rem;
}

@media screen and (max-width: 639.99px) {
  .en__component--column--2 {
    margin-top: 12rem;
  }
}

@media screen and (min-width: 640px) {
  #ymca .en__component--column--1 {
    width: 50%;
  }
  #ymca .en__component--column--2 {
    margin-left: 0;
    width: 50%;
  }
}

.en__component--column--2 h1 {
  color: #ed8c01;
  font-weight: bold;
  margin-top: 1rem !important;
}

.en__component--row:last-child .en__component--column {
  background: var(--ymca-colour-white-slightly-transparent);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 600px;
  padding: 1rem 2rem;
}

.en__component--row--2 .en__component--column--1 {
  background-color: transparent;
}

@media screen and (max-width: 768px), screen and (max-device-width: 768px) {
  .en__component--row--2,
  header {
    width: 100%;
  }
}

.en__component--copyblock,
.en__component--row--2,
.en__component--contactblock,
.en__component--formblock,
.en__component--imageblock,
.header-logo-container,
.map-search__data-table,
.map-search__error,
.map-search__key,
.map-search__loading,
.map-search__search,
.map-search__skip-to-table {
  margin: 0 auto;
}

.en__component--formblock {
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.en__component--imageblock {
  margin-bottom: 20px;
}

.en__component--socialshareblock {
  display: none;
  max-width: 550px;
  margin: 0 auto;
  padding: 25px;
  background: white;
}

#en__pagebuilder .en__component--socialshareblock {
  display: block;
}

.en__socialShare {
  text-decoration: none;
  color: white;
  font-weight: 500;
  border-radius: 0px;
  max-width: 550px;
  margin-bottom: 25px !important;
  padding: 13px !important;
  font-size: 18px;
}

.en__socialShare:hover {
  color: white;
  text-decoration: none;
}

#footer {
  margin-top: 100px;
}

.gm-style .gm-style-iw {
  max-height: 550px !important;
}

.gm-style-iw-chr button {
  width: 32px !important;
}

.gm-style-iw-chr button span {
  height: 32px !important;
  margin: 0 !important;
  width: 32px !important;
}

.gm-style .gm-style-iw-t::after {
  display: none;
}

/* Little downwards-pointing arrow at the bottom of the pop-up window */
.gm-style .gm-style-iw-tc::after {
  display: none;
}

button.gm-ui-hover-effect {
  right: 0 !important;
  top: 0 !important;
}

header {
  background: transparent;
}

.header::after {
  height: 0 !important;
}

.header-logo-container {
  text-align: center;
}

.image--preload {
  height: 1px;
  opacity: 0;
  width: 1px;
}

.logo img {
  background: white;
  padding: 10px;
  border-radius: 10px;
}

main {
  margin: 0 auto;
  width: 100%;
}

#main-nav {
  display: none;
}

@media only screen and (min-width: 900px) {
  nav#main-nav {
    display: block;
    margin: 20px 0;
  }
}

@media only screen and (min-width: 992px) {
  nav#main-nav {
    margin: 0;
  }
}

.map-preview {
  background-color: black;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 15px 15px 5px;
}

@media screen and (min-width: 709px) {
  .map-preview {
    background-color: #00000099;
    margin-top: max(150px, 40vh);
  }
}

.map-preview__graphic {
  height: auto;
  width: 100%;
}

.map-preview__text {
  border-radius: 10px;
  color: var(--ymca-colour-orange);
  font-weight: bold;
  margin: 10px 0;
}

.map-preview__text strong {
  background-color: var(--ymca-colour-orange);
  border-radius: 5px;
  color: black;
  padding: 7px 10px 5px;
  text-transform: uppercase;
}

.map-preview__text strong::before {
  content: url(chevron-black.svg);
  display: inline-block;
  margin-right: 5px;
}

.map-search__data-table {
  background-color: var(--ymca-colour-orange-slightly-transparent);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--ymca-colour-grey-dark);
  display: none;
  margin-bottom: 40px;
  padding: 20px;
}

.map-search__data-table details,
.map-search__data-table summary {
  margin-bottom: 0;
}

.map-search__data-table table {
  width: 100%;
}

.map-search__data-table td,
.map-search__data-table th {
  padding: 10px;
  text-align: left;
}

.map-search__error {
  display: none;
}

.map-search__key {
  background-color: var(--ymca-colour-orange-slightly-transparent);
  color: var(--ymca-colour-grey-dark);
  display: none;
  justify-content: center;
  padding: 15px 20px 20px;
}

.map-search__key__inner {
  display: flex;
  justify-content: center;
}

@media only screen and (min-width: 900px) {
  .map-search__key__inner {
    max-width: 600px;
    width: 100%;
  }
}

.map-search__key__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
}

.map-search__key__item--colour-block {
  border: solid 2px #fca221;
  max-height: 30px;
  min-height: 30px;
  max-width: 30px;
  min-width: 30px;
}

.map-search__key__item--colour-block:not(:nth-last-child(2)) {
  border-right-width: 0;
}

.map-search__key__item--colour-block--best {
  background-color: #e0a147;
}
.map-search__key__item--colour-block--better {
  background-color: #b18c39;
}
.map-search__key__item--colour-block--medium {
  background-color: #a38a41;
}
.map-search__key__item--colour-block--worse {
  background-color: #656033;
}
.map-search__key__item--colour-block--worst {
  background-color: #4e522f;
}

.map-search__key__item__icon {
  height: auto;
  margin-bottom: 5px;
  width: 20px;
}

.map-search__key__item__image {
  height: auto;
  margin-bottom: 5px;
  width: 35px;
}

@media only screen and (min-width: 768px) {
  .map-search__key__item__image {
    margin-bottom: 0;
    margin-right: 10px;
    width: 45px;
  }
}

.map-search__key__item__label {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .map-search__key__item__label {
    text-align: left;
  }
}

.map-search__key__title {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  justify-content: center;
  margin-right: 10px;
}

.map-search__loading {
  align-items: center;
  display: flex;
}

.map-search__loading__spinner {
  height: auto;
  margin-right: 5px;
  width: 30px;
}

.map-search__map {
  height: 80vh;
  max-height: 800px;
  min-height: 550px;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .map-search__map {
    flex: 1;
    width: 67%;
  }
}

.gm-style-iw-c {
  padding-inline-end: 12px !important;
}

.gm-style-iw-d {
  overflow: auto !important;
  scrollbar-color: black var(--ymca-colour-orange);
}

.gm-style .gm-style-iw,
.gm-style .gm-style-iw-d {
  background-color: var(--ymca-colour-orange);
  max-width: 100%;
}

@media only screen and (min-width: 440px) {
  .gm-style .gm-style-iw,
  .gm-style .gm-style-iw-d {
    max-width: 400px;
  }
}

.map-search__map__info-window {
  color: black;
  font-size: 14px;
  padding: 5px !important;
  z-index: 1000;
}

.map-search__map__info-window__comparison {
  background-color: var(--ymca-colour-yellow);
  border-radius: 5px;
  color: black;
  font-size: 16px;
  margin-top: 25px;
  padding: 5px 10px;
  text-align: center;
  width: calc(100% - 20px);
}

.map-search__map__info-window__comparison__headline {
  font-weight: bold;
}

.map-search__map__info-window__heading {
  font-size: 2em;
  font-weight: bold;
  margin-top: 0;
}

@media only screen and (min-width: 768px) {
  .map-search__map__info-window__heading {
    font-size: 2.5em;
  }
}

.map-search__map__info-window__scorecard {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

@media only screen and (min-width: 768px) {
  .map-search__map__info-window__scorecard {
    gap: 30px;
  }
}

.map-search__map__info-window__scorecard__ranking {
  flex-basis: 50%;
  text-align: center;
}

.map-search__map__info-window__scorecard__ranking__figure {
  align-items: center;
  aspect-ratio: 1;
  background-color: black;
  border-radius: 50%;
  color: var(--ymca-colour-orange);
  display: flex;
  flex-direction: column;
  font-weight: bold;
  justify-content: center;
  margin-bottom: 10px;
  padding: 22px;
  text-align: center;
}

.map-search__map__info-window__scorecard__ranking__figure__number {
  font-size: 44px;
}

@media only screen and (min-width: 768px) {
  .map-search__map__info-window__scorecard__ranking__figure__number {
    font-size: 64px;
  }
}

.map-search__map__info-window__scorecard__ranking__figure__word {
  font-size: 25px;
}

@media only screen and (min-width: 768px) {
  .map-search__map__info-window__scorecard__ranking__figure__word {
    font-size: 32px;
  }
}

.map-search__map__info-window__scorecard__spending {
  display: flex;
  flex-basis: 50%;
  flex-direction: column;
  justify-content: flex-end;
}

.map-search__map__info-window__scorecard__spending__amount {
  display: flex;
  margin-bottom: 10px;
}

.map-search__map__info-window__scorecard__spending__amount__figure,
.map-search__map__info-window__scorecard__spending__change__figure {
  font-size: 24px;
  font-weight: bold;
}

@media only screen and (min-width: 768px) {
  .map-search__map__info-window__scorecard__spending__amount__figure,
  .map-search__map__info-window__scorecard__spending__change__figure {
    font-size: 30px;
  }
}

.map-search__map__info-window__scorecard__spending__amount__icon {
  background-image: url(coins.svg);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  height: 75px;
  margin-right: 10px;
  width: 60px;
}

@media only screen and (min-width: 390px) {
  .map-search__map__info-window__scorecard__spending__amount__icon {
    width: 80px;
  }
}

.map-search__map__info-window__scorecard__spending__amount__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.map-search__map__info-window__scorecard__spending__change {
  display: flex;
}

.map-search__map__info-window__scorecard__spending__change__icon {
  background-image: url(arrow-down.svg);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  height: 75px;
  margin-right: 10px;
  width: 60px;
}

@media only screen and (min-width: 390px) {
  .map-search__map__info-window__scorecard__spending__amount__icon {
    width: 80px;
  }
}

.map-search__map__info-window__scorecard__spending__change__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.map-search__map__info-window__share {
  margin-top: 30px;
}

.map-search__map__info-window__share__buttons {
  display: flex;
  justify-content: center;
  margin-left: -12px;
}

.map-search__map__info-window__share__buttons__button {
  margin-right: 10px;
}

.map-search__map__info-window__share__text {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.map-search__map__info-window__sign-up {
  margin-top: 30px;
}

.map-search__map__info-window__sign-up__buttons {
  display: flex;
  justify-content: center;
  margin-left: -12px;
}

.map-search__map__info-window__sign-up__buttons__button {
  border-radius: 10px;
  margin-right: 10px;
}

.map-search__map__info-window__sign-up__text {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.map-search__map__container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .map-search__map__container {
    flex-direction: row;
  }
}

.map-search__search {
  background-color: var(--ymca-colour-orange-slightly-transparent);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  color: var(--ymca-colour-grey-dark);
  display: none;
  justify-content: center;
  margin-top: 40px;
  padding: 20px;
}

.map-search__search__inner {
  width: 100%;
}

@media only screen and (min-width: 900px) {
  .map-search__search__inner {
    max-width: 600px;
  }
}

.map-search__search__input {
  font-size: 18px;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .map-search__search__input {
    padding: 10px 20px;
  }
}

.map-search__search__input:focus {
  border-color: lightgrey;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.map-search__search__input--showing-results {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.map-search__search__input--showing-results:focus {
  border-bottom-color: #ccc;
}

.map-search__search__input-container,
.map-search__search__input-container .autocomplete__wrapper {
  width: 100%;
}

.map-search__search__title {
  font-size: 18px;
  font-weight: bold;
  line-height: 40px;
  margin-bottom: 0.25em;
}

.map-search__skip-to-table a {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.map-search__skip-to-table a:focus {
  height: auto;
  position: static;
  width: auto;
}

.show-hide {
  color: #e87722;
  cursor: pointer;
  font-size: 11px;
  line-height: 12px;
  margin-top: 5px;
}

@media only screen and (min-width: 768px) {
  .show-hide {
    font-size: 12px;
    line-height: 14px;
  }
}

summary {
  cursor: pointer;
  display: block;
  list-style-image: none;
  margin: 0 0 12.5px;
}

summary:focus {
  outline: solid 1px #ebecec;
  outline-offset: 5px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: url(chevron-black.svg);
  display: inline-block;
  margin-left: 12px;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

details[open] > summary {
  margin-bottom: 15px;
}

details[open] > summary::after {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

.wrapper {
  width: 100%;
}
@media screen and (min-width: 900px) {
  .wrapper {
    width: 92%;
  }
}

@keyframes fadeInOutAnimation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fadeInOutAnimation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fadeInOutAnimation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeInOutAnimation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
