/* English-only overrides for location.css */

/* Keep long English route descriptions inside the route card. */
body.is-lang-en .sub-page .hico-location__route-list > div {
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) minmax(96px, .8fr);
  gap: 8px;
}
body.is-lang-en .sub-page .hico-location__route-list strong,
body.is-lang-en .sub-page .hico-location__route-list em,
body.is-lang-en .sub-page .hico-location__route-list span,
body.is-lang-en .sub-page .hico-location__route-list b {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
body.is-lang-en .sub-page .hico-location__route-list b {
  text-align: right;
}
@media (max-width: 640px) {
  body.is-lang-en .sub-page .hico-location__route-list > div {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) minmax(72px, .7fr);
    gap: 4px 8px;
  }
}

/* Let English route details use the full row without leading inset. */
body.is-lang-en .sub-page .hico-location__route-list span,
body.is-lang-en .sub-page .hico-location__route-list b {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  padding-left: 0;
  justify-self: stretch;
  box-sizing: border-box;
}

/* Place the route note and duration on full-width rows. */
body.is-lang-en .sub-page .hico-location__route-list:not(.hico-location__route-list--bus) > div {
  grid-template-columns: max-content 20px minmax(0, 1fr);
  align-items: baseline;
}
body.is-lang-en .sub-page .hico-location__route-list:not(.hico-location__route-list--bus) > div > span,
body.is-lang-en .sub-page .hico-location__route-list:not(.hico-location__route-list--bus) > div > b {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
body.is-lang-en .sub-page .hico-location__route-list:not(.hico-location__route-list--bus) > div > span { grid-row: 2; }
body.is-lang-en .sub-page .hico-location__route-list:not(.hico-location__route-list--bus) > div > b { grid-row: 3; }

/* Give the English address block more horizontal room. */
body.is-lang-en .sub-page .hico-location__address > address {
  width: 150%;
  max-width: none;
}
@media (max-width: 640px) {
  body.is-lang-en .sub-page .hico-location__address > address {
    width: 100%;
  }
}

/* Widen the English address column at the map level. */
body.is-lang-en .sub-page .hico-location__map {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
}
body.is-lang-en .sub-page .hico-location__address > address {
  width: 100%;
}

/* Google Maps embed: fill the full English map column instead of viewport-height width. */
body.is-lang-en .sub-page .hico-location__map-frame {
  overflow: hidden;
}
body.is-lang-en .sub-page .hico-location__google-map {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 650px;
  border: 0;
}
@media (max-width: 900px) {
  body.is-lang-en .sub-page .hico-location__google-map {
    min-height: 520px;
  }
}
@media (max-width: 640px) {
  body.is-lang-en .sub-page .hico-location__google-map {
    min-height: 440px;
  }
}
@media (max-width: 1100px) {
  body.is-lang-en .sub-page .hico-location__map {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  }
}
@media (max-width: 900px) {
  body.is-lang-en .sub-page .hico-location__map {
    grid-template-columns: 1fr;
  }
}
