/* Interactive Australia and New Zealand coverage map plus searchable A to Z directory. */

main>section.locations-map-section{
  padding:clamp(78px,8vw,118px) var(--gutter);
  background:var(--mist);
  color:var(--ink);
}

.locations-map-head,
.locations-map-toolbar,
.locations-map-shell,
.locations-map-help,
.locations-map-source{
  width:min(100%,var(--max));
  margin-inline:auto;
}

.locations-map-head{
  margin-bottom:34px;
  display:grid;
  grid-template-columns:1.08fr 1fr;
  align-items:end;
  gap:48px;
}

.locations-map-head h2,
.locations-index__head h2{
  margin:0;
  max-width:12ch;
  font-size:clamp(3rem,4.5vw,5rem);
  line-height:.98;
  letter-spacing:-.04em;
  text-wrap:balance;
}

.locations-map-head p,
.locations-index__head p{
  max-width:62ch;
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

.locations-map-toolbar{
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.locations-map-toolbar[hidden],
.locations-search[hidden]{display:none}





.locations-map-toolbar>a:focus-visible,
.locations-search input:focus-visible,
.locations-search button:focus-visible,
.locations-letters a:focus-visible,
.locations-letter a:focus-visible{
  outline:3px solid var(--signal-blue,#01b2fd);
  outline-offset:3px;
}

.locations-map-toolbar>a{
  color:var(--deep-violet,#4c1d95);
  font-size:14px;
  font-weight:750;
  text-underline-offset:4px;
}

.locations-map-shell{
  position:relative;
  min-height:clamp(520px,60vw,720px);
  overflow:hidden;
  border:1px solid rgb(76 29 149 / .16);
  border-radius:16px;
  background:#e4f4fa;
  isolation:isolate;
}

.locations-map{
  min-height:clamp(520px,60vw,720px);
  background:#e4f4fa;
  font-family:inherit;
}

.locations-map-scroll-hint{
  position:absolute;
  z-index:850;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgb(25 23 28 / .45);
  color:#fff;
  font-size:15px;
  font-weight:650;
  opacity:0;
  pointer-events:none;
  transition:opacity 160ms ease-out;
}
.locations-map-scroll-hint.is-visible{opacity:1}
.locations-map-scroll-hint span{
  padding:10px 18px;
  border-radius:999px;
  background:rgb(25 23 28 / .82);
}

.locations-map-loading,
.locations-map-error,
.locations-map-noscript{
  position:absolute;
  z-index:900;
  inset:50% auto auto 50%;
  width:min(88%,390px);
  padding:24px;
  transform:translate(-50%,-50%);
  border-radius:16px;
  background:#fff;
  color:var(--ink);
  text-align:center;
}

.locations-map-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.locations-map-loading[hidden],
.locations-map-error[hidden]{display:none}

.locations-map-loading span{
  width:18px;
  height:18px;
  flex:none;
  border:2px solid rgb(76 29 149 / .18);
  border-top-color:var(--action-violet,#7c3aed);
  border-radius:50%;
  animation:locations-spin .9s linear infinite;
}

@keyframes locations-spin{to{transform:rotate(360deg)}}

.locations-map-loading strong{font-size:14px}

.locations-map-error strong,
.locations-map-error span{
  display:block;
}

.locations-map-error span{
  margin-top:7px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.locations-map-error a{
  min-height:44px;
  margin-top:16px;
  padding:11px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--action-violet,#7c3aed);
  color:#fff;
  font-size:14px;
  font-weight:750;
  text-decoration:none;
}

.locations-map-shell.has-error .locations-map{opacity:.22}

.locations-map-activate{
  position:absolute;
  z-index:1000;
  left:50%;
  bottom:14px;
  min-height:44px;
  padding:10px 17px;
  transform:translateX(-50%);
  border:0;
  border-radius:999px;
  background:var(--deep-violet,#4c1d95);
  box-shadow:0 8px 24px rgb(25 23 28 / .18);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}

.locations-map-activate[aria-pressed="true"]{
  background:var(--signal-yellow,#f5ff63);
  color:var(--ink);
}

.locations-map-activate:focus-visible{
  outline:3px solid var(--signal-blue,#01b2fd);
  outline-offset:3px;
}

.locations-map-help{
  margin-top:16px;
  max-width:var(--max);
  color:#4d4856;
  font-size:14px;
  line-height:1.55;
}

.locations-map-source{
  margin-top:6px;
  color:#706a78;
  font-size:12px;
  line-height:1.5;
}

/* Leaflet is self-hosted and used without remote tiles. */
.locations-map .leaflet-control-zoom{
  margin:18px;
  overflow:hidden;
  border:0;
  border-radius:12px;
  box-shadow:0 8px 24px rgb(25 23 28 / .14);
}

.locations-map .leaflet-control-zoom a{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:0;
  background:#fff;
  color:var(--deep-violet,#4c1d95);
  font-family:inherit;
  font-size:24px;
  line-height:1;
}

.locations-map .leaflet-control-zoom a+a{
  border-top:1px solid rgb(25 23 28 / .1);
}

.locations-map .leaflet-control-zoom a:hover{
  background:var(--signal-yellow,#f5ff63);
  color:var(--ink);
}

.locations-map .leaflet-control-zoom a:focus-visible,
.locations-map .leaflet-marker-icon:focus-visible{
  outline:3px solid var(--signal-blue,#01b2fd);
  outline-offset:3px;
}

.location-marker-wrap,
.map-place-label{
  border:0;
  background:transparent;
}

.location-marker{
  cursor:pointer;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border:3px solid #fff;
  border-radius:50%;
  background:var(--action-violet,#7c3aed);
  box-shadow:0 5px 14px rgb(45 19 87 / .28);
}

.location-marker i{
  width:7px;
  height:7px;
  display:block;
  border-radius:50%;
  background:#fff;
}

.location-marker--region{
  width:30px;
  height:30px;
  border:3px solid var(--deep-violet,#4c1d95);
  background:var(--signal-yellow,#f5ff63);
}

.location-marker--region i{
  width:9px;
  height:9px;
  border:2px solid var(--deep-violet,#4c1d95);
  background:transparent;
}

.location-cluster{
  border:0;
  border-radius:50%;
  background:rgb(76 29 149 / .18);
}

.location-cluster__count{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:3px solid #fff;
  border-radius:50%;
  background:var(--signal-yellow,#f5ff63);
  box-shadow:0 6px 18px rgb(45 19 87 / .24);
  color:var(--ink);
  font-size:13px;
  font-weight:800;
}

.location-cluster--large .location-cluster__count{
  background:var(--action-violet,#7c3aed);
  color:#fff;
}

.location-cluster__label{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.map-place-label span{
  width:110px;
  display:block;
  color:#6d6678;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
  pointer-events:none;
}

.map-place-label--country span{
  color:rgb(76 29 149 / .48);
  font-size:14px;
  letter-spacing:.12em;
}

/* Searchable directory */
main>section.locations-index{
  padding:clamp(88px,9vw,132px) var(--gutter);
  background:var(--cloud);
  color:var(--ink);
  scroll-margin-top:110px;
}

.locations-index__head{
  width:min(100%,var(--max));
  margin:0 auto 46px;
  display:grid;
  grid-template-columns:1.08fr 1fr;
  align-items:end;
  gap:48px;
}

.locations-search{
  width:min(100%,var(--max));
  margin:0 auto 44px;
  padding-bottom:30px;
  border-bottom:1px solid rgb(25 23 28 / .12);
}

.locations-search>label{
  display:block;
  margin-bottom:10px;
  color:var(--deep-violet,#4c1d95);
  font-size:14px;
  font-weight:750;
}

.locations-search__field{
  min-height:64px;
  padding:0 10px 0 20px;
  display:flex;
  align-items:center;
  gap:14px;
  border:1px solid rgb(25 23 28 / .16);
  border-radius:16px;
  background:#fff;
}

.locations-search__field:focus-within{
  border-color:var(--action-violet,#7c3aed);
  box-shadow:0 7px 22px rgb(76 29 149 / .1);
}

.locations-search__field svg{
  width:22px;
  height:22px;
  flex:none;
  fill:none;
  stroke:var(--deep-violet,#4c1d95);
  stroke-width:1.8;
  stroke-linecap:round;
}

.locations-search input{
  min-width:0;
  min-height:62px;
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:18px;
}

.locations-search input::placeholder{
  color:#706a78;
  opacity:1;
}

.locations-search input::-webkit-search-cancel-button{display:none}

.locations-search button{
  min-width:64px;
  min-height:44px;
  padding:8px 12px;
  border:0;
  border-radius:999px;
  background:var(--mist);
  color:var(--deep-violet,#4c1d95);
  font:inherit;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}

.locations-search__meta{
  margin-top:16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.locations-search__meta>span{
  padding-top:12px;
  color:var(--muted);
  font-size:14px;
  font-weight:650;
  white-space:nowrap;
}

.locations-letters{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px;
}

.locations-letters a{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:var(--deep-violet,#4c1d95);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.locations-letters a:hover{
  background:var(--signal-yellow,#f5ff63);
  color:var(--ink);
}

.locations-empty{
  width:min(100%,var(--max));
  margin:0 auto 36px;
  padding:24px 0;
  border-top:1px solid rgb(25 23 28 / .1);
  border-bottom:1px solid rgb(25 23 28 / .1);
  color:var(--muted);
  font-size:17px;
}

.locations-index__grid{
  width:min(100%,var(--max));
  margin-inline:auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:58px clamp(34px,5vw,74px);
}

.locations-letter{
  scroll-margin-top:120px;
}

.locations-letter h3{
  margin:0 0 14px;
  padding-bottom:12px;
  border-bottom:2px solid var(--deep-violet,#4c1d95);
  color:var(--deep-violet,#4c1d95);
  font-size:32px;
  line-height:1;
  letter-spacing:-.03em;
}

.locations-letter ul{
  margin:0;
  padding:0;
  list-style:none;
}

.locations-letter li{
  border-bottom:1px solid rgb(25 23 28 / .09);
}

.locations-letter a{
  min-height:70px;
  padding:12px 2px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--ink);
  text-decoration:none;
  transition:color .2s ease,transform .2s ease;
}

.locations-letter a:hover{
  color:var(--action-violet,#7c3aed);
  transform:translateX(4px);
}

.locations-letter strong{
  font-size:17px;
  font-weight:700;
  line-height:1.25;
}

.locations-letter span{
  margin-top:4px;
  color:#6b6571;
  font-size:12px;
  line-height:1.3;
}

@media(max-width:1050px){
  .locations-map-head,
  .locations-index__head{
    grid-template-columns:1fr;
    gap:20px;
  }

  .locations-map-head h2,
  .locations-index__head h2{max-width:14ch}

  .locations-map-head,
  .locations-map-toolbar,
  .locations-map-shell,
  .locations-map-help,
  .locations-map-source,
  .locations-index__head,
  .locations-search,
  .locations-empty,
  .locations-index__grid{
    width:min(calc(100% - 40px),var(--max));
  }

  .locations-index__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .locations-search__meta{
    flex-direction:column;
  }

  .locations-letters{justify-content:flex-start}
}

@media(max-width:720px){
  .locations-map-section,
  .locations-index{
    padding-left:20px;
    padding-right:20px;
  }

  .locations-map-head,
  .locations-index__head{
    margin-bottom:32px;
  }

  .locations-map-head h2,
  .locations-index__head h2{
    font-size:clamp(2.4rem,11vw,3.5rem);
  }

  .locations-map-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  /* Australia + New Zealand is a landscape shape, so a 520px-tall shell on a
     narrow screen fits to width and leaves dead grey above and below the map. */
  .locations-map-shell,
  .locations-map{
    min-height:clamp(320px,88vw,520px);
  }

  .locations-map .leaflet-control-zoom{margin:12px}

  .locations-map-help{font-size:13px}

  .locations-search{
    margin-bottom:36px;
    padding-bottom:24px;
  }

  .locations-search__field{
    min-height:58px;
    padding-left:16px;
  }

  .locations-search input{
    min-height:56px;
    font-size:16px;
  }

  .locations-search__meta>span{padding-top:0}

  .locations-letters{
    width:100%;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:2px;
  }

  .locations-letters a{
    width:100%;
  }

  .locations-index__grid{
    grid-template-columns:1fr;
    gap:42px;
  }
}

@media(max-width:390px){
  .locations-letters{grid-template-columns:repeat(5,1fr)}
  .locations-search__field{gap:8px}
  .locations-search button{min-width:58px;padding-inline:10px}
}

@media(prefers-reduced-motion:reduce){
  .locations-map-loading span{animation:none}
  .locations-map *,
  .locations-letter a{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}
