/* ============================================================
   Dashdrop — Locations page
   ============================================================ */

.locations-main {
  background: #fff;
}

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

.locations-intro {
  padding: 96px 0 72px;
}

.locations-intro .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 9vw, 150px);
  align-items: start;
}

.locations-intro h1 {
  font-size: clamp(48px, 5.8vw, 78px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.locations-intro p {
  color: var(--ink-700);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
  max-width: 690px;
  margin: 0;
}

.locations-splash {
  max-width: 1860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.locations-splash image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  border-radius: 30px;
  overflow: hidden;
}

.nearby-ride {
  padding: 122px 0 92px;
  text-align: center;
}

.nearby-ride h2 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 28px;
}

.nearby-ride p {
  color: var(--ink-700);
  font-size: clamp(17px, 1.25vw, 20px);
  margin: 0 0 36px;
}

.btn-black {
  background: #000;
  color: #fff;
}

.btn-black:hover {
  background: #242424;
}

.locations-directory {
  padding: 24px 0 114px;
}

.directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 54px;
}

.directory-search {
  position: relative;
  max-width: 680px;
}

.directory-search input {
  width: 100%;
  height: 64px;
  border: 1px solid #dedede;
  border-radius: 999px;
  padding: 0 64px 0 26px;
  color: var(--ink-900);
  font: 500 18px/1 var(--font);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.directory-search input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(1, 145, 255, 0.12);
}

.directory-search svg {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 23px;
  height: 23px;
  transform: translateY(-50%);
  color: var(--ink-500);
  pointer-events: none;
}

.directory-count {
  color: var(--ink-500);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.locations-list {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
}

.location-group {
  border-bottom: 1px solid transparent;
}

.location-group summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #000;
  cursor: pointer;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  padding: 32px 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: color .2s var(--ease);
}

.location-group summary::-webkit-details-marker {
  display: none;
}

.location-group summary::before {
  content: '';
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease), color .2s var(--ease);
  flex: none;
}

.location-group summary:hover,
.location-group[open] summary {
  color: var(--lime);
}

.location-group[open] summary::before {
  transform: rotate(-135deg) translate(-2px, -1px);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 26px;
  padding: 2px 0 36px 42px;
}

.city-link {
  color: var(--ink-700);
  font-size: 18px;
  line-height: 1.45;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.city-link:hover {
  color: var(--lime);
  transform: translateX(4px);
}

.directory-empty {
  display: none;
  color: var(--ink-500);
  font-size: 22px;
  padding: 54px 0;
}

.locations-list.is-empty + .directory-empty {
  display: block;
}

.bring-city {
  background: #000;
  color: #fff;
  min-height: 680px;
  display: flex;
  align-items: center;
  text-align: center;
}

.bring-city .wrap {
  display: flex;
  justify-content: center;
}

.city-request {
  width: min(100%, 560px);
}

.city-request h2 {
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 42px;
}

.city-request .mark {
  width: 58px;
  height: 58px;
  color: var(--lime);
  margin: 0 auto 52px;
}

.city-request p {
  color: #f1f1f1;
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1.22;
  margin: 0 auto 72px;
}

.request-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9b9b9;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
}

.request-time svg {
  width: 16px;
  height: 16px;
}

.request-start {
  width: min(100%, 520px);
  height: 58px;
  border-radius: 9px;
  color: #fff;
}

.locations-download {
  background: #222;
  color: #fff;
  overflow: hidden;
}

.locations-download .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  min-height: 720px;
}

.locations-app-art {
  display: flex;
  justify-content: center;
  align-self: stretch;
  position: relative;
}

.locations-app-art image-slot {
  display: block;
  width: min(100%, 610px);
  height: 700px;
  margin-top: -16px;
}

.locations-download h2 {
  color: #fff;
  font-size: clamp(44px, 4.6vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 44px;
}

.locations-download .store-badge {
  border-color: rgba(255,255,255,.38);
}

@media (max-width: 1024px) {
  .locations-intro .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .locations-intro {
    padding: 62px 0 42px;
  }

  .locations-splash image-slot {
    aspect-ratio: 4 / 3.1;
    border-radius: 20px;
  }

  .nearby-ride {
    padding: 76px 0 54px;
  }

  .directory-tools {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .directory-count {
    white-space: normal;
  }

  .location-group summary {
    padding: 24px 0;
  }

  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 32px;
  }

  .bring-city {
    min-height: 620px;
  }

  .locations-download .wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 0;
    text-align: center;
  }

  .locations-download .store-badges {
    justify-content: center;
  }

  .locations-app-art {
    order: 2;
  }

  .locations-download-copy {
    order: 1;
  }
}

@media (max-width: 520px) {
  .directory-search input {
    height: 58px;
    font-size: 16px;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .city-link {
    font-size: 17px;
  }
}
