/* Locations composition on ScheidingsWijze UI System v1.1. */
.sw-locations-page {
  color: var(--sw-color-ink-strong);
}

.sw-locations-hero {
  position: relative;
}

.sw-locations-hero__inner {
  grid-template-columns: minmax(0, 1.32fr) minmax(250px, 0.68fr);
  gap: 44px;
  padding-top: 52px;
  padding-bottom: 42px;
}

.sw-locations-hero__copy {
  max-width: 820px;
}

.sw-locations-kicker {
  margin-bottom: 8px;
}

.sw-locations-hero h1 {
  max-width: 760px;
}

.sw-locations-hero__intro {
  max-width: 720px;
}

.sw-location-search {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  max-width: 860px;
  margin-top: 26px;
}

.sw-location-search__field {
  position: relative;
  min-width: 0;
}

.sw-location-search__field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 50px;
  border-color: #D9E0ED;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(20, 35, 63, 0.07);
}

.sw-location-search__field input:focus,
.sw-location-search__field input:focus-visible {
  border-color: var(--sw-color-brand);
  box-shadow: 0 10px 28px rgba(55, 66, 250, 0.10);
}

.sw-location-search__icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 18px;
  color: var(--sw-color-brand);
  line-height: 1;
}

.sw-location-search__submit {
  min-width: 190px;
  min-height: 58px;
}

.sw-location-use-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--sw-color-brand);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.sw-location-use-current:hover {
  text-decoration-color: currentColor;
}

.sw-location-use-current[aria-busy="true"] {
  color: var(--sw-color-muted);
  cursor: progress;
}

.sw-location-suggestions {
  position: absolute;
  z-index: 30;
  top: 64px;
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--sw-color-border);
  border-radius: var(--sw-radius-card);
  background: #FFF;
  box-shadow: 0 18px 45px rgba(20, 35, 63, 0.16);
}

.sw-location-suggestion {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  background: #FFF;
  color: var(--sw-color-ink-strong);
  text-align: left;
  cursor: pointer;
}

.sw-location-suggestion:hover,
.sw-location-suggestion[aria-selected="true"] {
  background: var(--sw-color-cool);
}

.sw-locations-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 18px;
  color: #344054;
  font-size: 14px;
}

.sw-locations-trustline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sw-locations-trustline b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E9F8F0;
  color: var(--sw-color-success);
  font-size: 11px;
}

.sw-locations-hero__visual {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-locations-hero__circle {
  position: absolute;
  width: 330px;
  height: 330px;
  top: -52px;
  right: -70px;
  border: 30px solid rgba(55, 66, 250, 0.07);
  border-radius: 50%;
}

.sw-locations-hero__visual p {
  position: relative;
  z-index: 1;
  max-width: 220px;
  margin-left: auto;
  font-size: 25px;
  line-height: 1.35;
  font-style: italic;
  transform: rotate(-4deg);
}

.sw-nearby {
  padding-top: var(--sw-section-space-md);
  padding-bottom: var(--sw-section-space-sm);
}

.sw-nearby[hidden] {
  display: none;
}

.sw-nearby__heading,
.sw-directory__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.sw-nearby__heading p,
.sw-directory__heading p {
  margin: 6px 0 0;
  color: var(--sw-color-muted);
}

.sw-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--sw-color-brand);
  font-weight: 700;
  text-decoration: none;
}

.sw-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sw-nearby-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sw-nearby-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.sw-nearby-card--primary {
  grid-column: 1 / -1;
  padding: 26px;
  border-color: #CFD7FF;
  background: linear-gradient(115deg, #FFF 0%, #FFF 60%, #F7F8FF 100%);
  box-shadow: 0 14px 38px rgba(55, 66, 250, 0.10);
}

.sw-nearby-card--secondary {
  min-height: 178px;
}

.sw-nearby-card__badge {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sw-color-brand);
  color: #FFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.sw-nearby-card__image {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: var(--sw-radius-card);
  object-fit: cover;
  background: var(--sw-color-cool);
}

.sw-nearby-card--primary .sw-nearby-card__image {
  width: 178px;
  height: 134px;
  flex-basis: 178px;
  aspect-ratio: 4 / 3;
}

.sw-nearby-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sw-color-brand);
  font-weight: 900;
}

.sw-nearby-card__body {
  min-width: 0;
  flex: 1;
}

.sw-nearby-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.sw-nearby-card h3 {
  margin: 0;
  color: var(--sw-color-ink-strong);
  font: 700 21px/1.2 var(--sw-font-heading);
}

.sw-nearby-card--primary h3 {
  font-size: 24px;
}

.sw-nearby-card__address {
  margin: 6px 0;
  color: var(--sw-color-muted);
  font-size: 15px;
}

.sw-nearby-card__distance {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  text-align: right;
}

.sw-nearby-card__distance strong {
  color: var(--sw-color-ink-strong);
  font-size: 19px;
}

.sw-nearby-card__distance span {
  margin-top: 2px;
  color: var(--sw-color-muted);
  font-size: 12px;
}

.sw-nearby-card__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 13px 0;
  color: #344054;
  font-size: 13px;
}

.sw-nearby-card__benefits span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #F7F9FC;
}

.sw-nearby-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-top: 14px;
}

.sw-nearby-card--secondary .sw-nearby-card__actions .sw-button {
  min-height: 44px;
  padding: 10px 14px;
}

.sw-nearby__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.sw-location-status {
  margin: 10px 0 0;
}

.sw-location-status.is-error {
  color: var(--sw-color-error);
}

.sw-why {
  margin-top: 18px;
  margin-bottom: var(--sw-section-space-md);
  padding: 28px;
  border-color: #E0E7FF;
  background: linear-gradient(90deg, #F4F8FF, #EDF4FF);
}

.sw-why__header {
  margin-bottom: 20px;
}

.sw-why__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.sw-why__item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  min-width: 0;
}

.sw-why__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E8EDFF;
  color: var(--sw-color-brand);
  font-size: 8px;
}

.sw-why__item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sw-why__item strong {
  font-size: 15px;
}

.sw-why__item span:not(.sw-why__icon) {
  color: var(--sw-color-muted);
  font-size: 14px;
  line-height: 1.45;
}

.sw-why > .sw-button {
  min-width: 230px;
}

.sw-directory {
  padding-top: 6px;
  padding-bottom: 48px;
}

.sw-directory__count {
  white-space: nowrap;
  color: var(--sw-color-muted);
  font-weight: 700;
}

.sw-directory-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 250px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

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

.sw-directory-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 48px 0 15px;
}

.sw-directory-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--sw-color-brand);
  font-size: 20px;
  cursor: pointer;
}

.sw-province-select-wrap {
  display: none;
}

.sw-province-select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 14px;
  font-weight: 700;
}

.sw-provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 16px;
  margin-bottom: 8px;
}

.sw-province-pill {
  white-space: nowrap;
}

.sw-province-pill span {
  opacity: 0.72;
}

.sw-province-more {
  font-family: inherit;
}

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

.sw-directory-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 11px 42px 11px 12px;
  color: var(--sw-color-ink-strong);
  text-decoration: none;
}

.sw-directory-card__media {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.sw-directory-card__image,
.sw-directory-card__placeholder {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  object-fit: cover;
}

.sw-directory-card__placeholder {
  background: var(--sw-color-cool);
  color: var(--sw-color-brand);
  font-weight: 800;
}

.sw-directory-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-directory-card__content strong {
  color: var(--sw-color-ink-strong);
  font: 700 16px/1.25 var(--sw-font-heading);
}

.sw-directory-card__content span {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sw-directory-card__content small {
  color: var(--sw-color-muted);
  font-size: 12px;
}

.sw-directory-card__arrow {
  position: absolute;
  right: 15px;
  color: var(--sw-color-brand);
  font-size: 22px;
}

.sw-directory__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.sw-directory__more .facetwp-load-more {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid rgba(55, 66, 250, 0.26);
  border-radius: var(--sw-radius-control);
  background: #FFF;
  color: var(--sw-color-brand);
  font: 700 15px/1.3 var(--sw-font-sans);
}

.sw-directory__more .facetwp-load-more:hover {
  border-color: var(--sw-color-brand);
  background: #F8F9FF;
}

.sw-directory-pagination-fallback {
  margin-top: 18px;
}

.sw-directory-pagination-fallback a,
.sw-directory-pagination-fallback span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sw-color-border);
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--sw-color-ink-strong);
  text-decoration: none;
}

.sw-directory-pagination-fallback .current {
  border-color: var(--sw-color-brand);
  background: var(--sw-color-brand);
  color: #FFF;
}

.sw-locations-js .sw-directory-pagination-fallback {
  display: none;
}

.sw-location-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  padding: 24px 28px;
}

.sw-location-bottom-cta strong {
  color: var(--sw-color-ink-strong);
  font: 700 21px/1.2 var(--sw-font-heading);
}

.sw-location-bottom-cta p {
  margin: 5px 0 0;
  color: var(--sw-color-muted);
}

@media (max-width: 1023px) {
  .sw-locations-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .sw-locations-hero__visual {
    display: none;
  }

  .sw-location-search {
    grid-template-columns: 1fr auto;
  }

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

  .sw-directory-tools {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 767px) {
  .sw-locations-hero__inner {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .sw-location-search {
    display: flex;
    flex-direction: column;
  }

  .sw-location-search__field input {
    min-height: 56px;
    padding-right: 14px;
    font-size: 16px;
  }

  .sw-location-search__submit {
    width: 100%;
    min-height: 54px;
  }

  .sw-location-use-current {
    margin-top: 6px;
  }

  .sw-locations-trustline {
    gap: 8px 14px;
    margin-top: 16px;
  }

  .sw-nearby {
    padding-top: 28px;
  }

  .sw-nearby__heading,
  .sw-directory__heading {
    align-items: flex-start;
  }

  .sw-nearby-results {
    grid-template-columns: 1fr;
  }

  .sw-nearby-card {
    grid-column: auto;
  }

  .sw-nearby-card--primary {
    display: block;
    padding: 20px;
  }

  .sw-nearby-card--primary .sw-nearby-card__image {
    width: 100%;
    height: auto;
    max-height: 210px;
    margin-bottom: 15px;
    aspect-ratio: 16 / 9;
  }

  .sw-nearby-card--secondary {
    min-height: auto;
    padding: 14px;
  }

  .sw-nearby-card--secondary .sw-nearby-card__image {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .sw-nearby-card--secondary .sw-nearby-card__benefits,
  .sw-nearby-card--secondary .sw-nearby-card__actions .sw-button {
    display: none;
  }

  .sw-nearby-card h3 {
    font-size: 18px;
  }

  .sw-nearby-card--primary h3 {
    font-size: 21px;
  }

  .sw-nearby-card__topline {
    display: block;
  }

  .sw-nearby-card__distance {
    margin-top: 5px;
    text-align: left;
  }

  .sw-nearby-card__distance span {
    display: none;
  }

  .sw-nearby-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sw-nearby-card__actions .sw-button,
  .sw-nearby__more-wrap .sw-button {
    width: 100%;
  }

  .sw-nearby-card__benefits {
    gap: 6px;
  }

  .sw-why {
    margin-bottom: 30px;
    padding: 22px;
  }

  .sw-why__items {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .sw-why > .sw-button {
    width: 100%;
    min-width: 0;
  }

  .sw-directory-tools {
    grid-template-columns: 1fr;
  }

  .sw-directory-search {
    max-width: none;
  }

  .sw-province-select-wrap {
    display: block;
  }

  .sw-provinces {
    display: none;
  }

  .sw-directory-grid {
    grid-template-columns: 1fr;
  }

  .sw-directory__count {
    display: none;
  }

  .sw-directory-card {
    min-height: 82px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .sw-location-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .sw-location-bottom-cta .sw-button {
    width: 100%;
  }

  .sw-locations-js .sw-directory:not(.is-mobile-expanded) .facetwp-template [data-location-card]:nth-child(n+7) {
    display: none;
  }
}

@media (max-width: 389px) {
  .sw-nearby-card--secondary {
    align-items: flex-start;
  }

  .sw-nearby-card--secondary .sw-nearby-card__image {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .sw-location-search__field input {
    padding-left: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-locations-hero__visual p {
    transform: none;
  }
}
