/* =========================================================
   NEATLY CLIP — LOCATIONS PAGE
   ========================================================= */

.locations-page {
  --loc-black: #101010;
  --loc-white: #ffffff;
  --loc-muted: #666666;
  --loc-border: #e7e7e7;
  --loc-surface: #f7f7f7;

  color: var(--loc-black);
  background: var(--loc-white);
  font-family: "Inter", Arial, sans-serif;
}

.locations-page *,
.locations-page *::before,
.locations-page *::after {
  box-sizing: border-box;
}

.locations-container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.locations-page h1,
.locations-page h2,
.locations-page h3,
.locations-page p {
  margin-top: 0;
}

.locations-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 1.6;
  color: #c7c7c7;
}

.locations-eyebrow-dark {
  color: #777;
}

.locations-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;
}

/* =========================================================
   HERO
   ========================================================= */

.locations-hero {
  background: #111;
  color: #fff;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 95px 0;
  position: relative;
  overflow: hidden;
}

.locations-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  right: -110px;
  top: -110px;
  pointer-events: none;
}

.locations-hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.locations-hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(43px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: -3px;
  font-weight: 650;
}

.locations-hero p {
  color: #c6c6c6;
  font-size: 17px;
  line-height: 1.85;
  max-width: 540px;
}

.locations-hero-button,
.locations-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  padding: 17px 24px;
  transition: 0.25s ease;
}

.locations-hero-button {
  background: #fff;
  color: #111;
  margin-top: 20px;
}

.locations-hero-button:hover {
  background: #dedede;
  transform: translateY(-2px);
}

/* =========================================================
   INTRO
   ========================================================= */

.locations-intro {
  padding: 95px 0 65px;
  text-align: center;
}

.locations-intro h2,
.locations-promise h2 {
  margin: 14px 0 20px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -1.7px;
  line-height: 1.15;
}

.locations-intro p,
.locations-promise-heading p {
  color: var(--loc-muted);
  max-width: 660px;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.9;
}

/* =========================================================
   DIRECTORY
   ========================================================= */

.locations-directory {
  padding: 40px 0 110px;
}

.locations-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.locations-directory-heading h2 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -1.2px;
  margin: 10px 0 0;
}

#locations-count {
  color: var(--loc-muted);
  font-size: 13px;
  margin: 0;
}

/* =========================================================
   FILTERS
   ========================================================= */

.locations-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 190px;
  gap: 14px;
  margin-bottom: 30px;
}

.locations-search {
  position: relative;
}

.locations-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.locations-search input,
.locations-filter select {
  width: 100%;
  height: 54px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  color: #222;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.locations-search input {
  padding: 0 16px 0 46px;
}

.locations-filter select {
  padding: 0 14px;
  cursor: pointer;
}

.locations-search input:focus,
.locations-filter select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   LOCATION CARDS
   ========================================================= */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.location-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--loc-border);
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.07);
}

.location-card-image {
  height: 220px;
  flex-shrink: 0;
  background: #eee;
  position: relative;
  overflow: hidden;
}

.location-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.location-card:hover .location-card-image img {
  transform: scale(1.04);
}

.location-card-image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #888;
  background: linear-gradient(135deg, #eee, #ddd);
  font-size: 32px;
}

.location-card-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 9px 12px;
}

.location-card-badge.soon {
  background: #222;
  color: #fff;
}

/* CARD BODY */

.location-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.location-card-country {
  display: block;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.location-card-body h3 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}

.location-card-description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--loc-muted);
  margin-bottom: 24px;
}

/* =========================================================
   VIEW PROVIDERS BUTTON
   ========================================================= */

.location-card-actions {
  margin-top: auto;
  padding-top: 10px;
}

.location-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid #111;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.location-card-button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

.location-card-button:focus-visible {
  outline: 3px solid #888;
  outline-offset: 3px;
}

.location-card-button i {
  font-size: 12px;
}

.location-card-button.is-disabled {
  background: #f3f3f3;
  border-color: #e2e2e2;
  color: #999;
  cursor: not-allowed;
}

.location-card-button.is-disabled:hover {
  background: #f3f3f3;
  border-color: #e2e2e2;
  color: #999;
  transform: none;
}

/* =========================================================
   STATES
   ========================================================= */

.locations-message {
  text-align: center;
  padding: 45px 15px;
  color: #777;
  font-size: 14px;
}

.locations-message[hidden],
.locations-empty[hidden] {
  display: none;
}

.locations-empty {
  text-align: center;
  padding: 65px 20px;
  border: 1px solid var(--loc-border);
}

.locations-empty > i {
  font-size: 29px;
  color: #888;
  margin-bottom: 18px;
}

.locations-empty h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.locations-empty p {
  color: #777;
  font-size: 14px;
}

.locations-empty button {
  margin-top: 15px;
  padding: 13px 22px;
  border: none;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.locations-promise {
  padding: 100px 0;
  background: var(--loc-surface);
}

.locations-promise-heading {
  text-align: center;
  margin-bottom: 55px;
}

.locations-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.locations-benefit {
  padding: 38px 30px;
  background: #fff;
  border: 1px solid #eee;
}

.locations-benefit > i {
  font-size: 25px;
  margin-bottom: 27px;
}

.locations-benefit h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.locations-benefit p {
  color: #777;
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 0;
}

/* =========================================================
   CTA
   ========================================================= */

.locations-cta {
  background: #111;
  color: #fff;
  padding: 105px 0;
  text-align: center;
}

.locations-cta h2 {
  max-width: 700px;
  margin: 18px auto;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.14;
  letter-spacing: -1.8px;
}

.locations-cta p {
  color: #bbb;
  font-size: 15px;
  line-height: 1.8;
  max-width: 550px;
  margin-inline: auto;
}

.locations-cta-button {
  background: #fff;
  color: #111;
  margin-top: 24px;
}

.locations-cta-button:hover {
  background: #ddd;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
  .locations-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .locations-search {
    grid-column: 1 / -1;
  }

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

@media (max-width: 650px) {
  .locations-container {
    width: min(100% - 30px, 1200px);
  }

  .locations-hero {
    min-height: 410px;
    padding: 75px 0;
  }

  .locations-hero h1 {
    letter-spacing: -1.8px;
  }

  .locations-intro {
    padding: 75px 0 45px;
  }

  .locations-directory {
    padding-bottom: 75px;
  }

  .locations-directory-heading {
    align-items: start;
    flex-direction: column;
  }

  .locations-toolbar {
    grid-template-columns: 1fr;
  }

  .locations-search {
    grid-column: auto;
  }

  .locations-grid,
  .locations-benefits {
    grid-template-columns: 1fr;
  }

  .location-card-image {
    height: 230px;
  }

  .locations-promise,
  .locations-cta {
    padding: 75px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locations-page *,
  .locations-page *::before,
  .locations-page *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}