/* =========================================================
   Location Finder module
   ========================================================= */

.location_finder_module [hidden] {
  display: none !important;
}

/* =========================================================
   HEAD
   ========================================================= */

.location_finder_module__head {
  text-align: center;
  margin-bottom: 30px;
}

.location_finder_module__head .ib-kicker {
  justify-content: center;
}

.location_finder_module__head h2 {
  margin-top: 12px;
}

/* Theme divider, centered under the title */
.location_finder_module__head .ib-divider {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   FILTER PANEL
   ========================================================= */

.location_finder_module__panel {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 2px;
  box-shadow: 0 14px 36px rgba(0, 21, 52, 0.08);
}

.location_finder_module__bar {
  display: flex;
  align-items: stretch;
}

.location_finder_module__cell {
  flex: 1;
  padding: 16px 24px;
}

.location_finder_module__cell + .location_finder_module__cell {
  border-left: 1px solid #e4e4e4;
}

.location_finder_module__cell--btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.location_finder_module__label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #ae8b1b;
  margin-bottom: 4px;
}

.location_finder_module__select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #001534;
  cursor: pointer;
}

.location_finder_module__select:focus {
  outline: none;
}

.location_finder_module__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lf-accent, #001534);
  background: var(--lf-accent, #001534);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--lf-accent-text, #fff);
  cursor: pointer;
}

.location_finder_module__more:hover,
.location_finder_module__more[aria-expanded="true"] {
  opacity: .9;
}

.location_finder_module__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  /* Inverted colors so it stands out inside the colored button */
  background: var(--lf-accent-text, #fff);
  color: var(--lf-accent, #001534);
  font-size: 11px;
}

.location_finder_module__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 24px 20px;
  border-top: 1px solid #e4e4e4;
  background: #fafafa;
}

.location_finder_module__chip {
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #001534;
  cursor: pointer;
}

.location_finder_module__chip[aria-pressed="true"] {
  background: var(--lf-accent, #001534);
  border-color: var(--lf-accent, #001534);
  color: var(--lf-accent-text, #fff);
}

/* =========================================================
   STATUS
   ========================================================= */

.location_finder_module__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.location_finder_module__count {
  font-size: 13.5px;
  font-weight: 700;
  color: #001534;
}

.location_finder_module__clear {
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ib-muted-green);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

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

.location_finder_module__list {
  display: grid;
  grid-template-columns: repeat(var(--lf-columns, 3), 1fr);
  gap: 22px;
  margin-top: 16px;
}

.location_finder_module__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 2px;
  overflow: hidden;
  color: #001534;
  text-decoration: none;
}

.location_finder_module__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  overflow: hidden;
}

.location_finder_module__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location_finder_module__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
  flex: 1;
}

.location_finder_module__eyebrow {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #ae8b1b;
}

.location_finder_module__title {
  font-family: var(--ib-heading-font);
  font-size: 24px;
  font-weight: inherit;
  line-height: 1.2;
  color: inherit;
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e4e4;
}

.location_finder_module__title a {
  color: inherit;
  text-decoration: none;
}

/* Keep the card's own colors (theme heading/link colors don't apply here) */
.location_finder_module__card a,
.location_finder_module__card a:hover,
.location_finder_module__card a:focus,
.location_finder_module__card a:visited {
  color: inherit;
}

.location_finder_module__title a:hover {
  text-decoration: underline;
}

.location_finder_module__address {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ib-muted-green);
}

.location_finder_module__description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ib-muted-green);
}

.location_finder_module__description p {
  margin: 0 0 8px;
}

.location_finder_module__description p:last-child {
  margin-bottom: 0;
}

.location_finder_module__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e4e4e4;
}

.location_finder_module__card_amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ib-muted-green);
}

.location_finder_module__card_amenity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Amenity icons (chips + cards) */
.location_finder_module__icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.location_finder_module__icon.dashicons {
  font-size: 16px;
  line-height: 16px;
}

.location_finder_module__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Image icons turn white on a selected chip */
.location_finder_module__chip[aria-pressed="true"] img.location_finder_module__icon {
  filter: brightness(0) invert(1);
}

.location_finder_module__link {
  align-self: flex-start; /* clickable only on the text, not the full row */
  font-size: 13.5px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 10px;
  color: inherit;
  text-decoration: none;
}

.location_finder_module__link:hover {
  text-decoration: underline;
}

.location_finder_module__empty {
  padding: 40px 0 10px;
  text-align: center;
  font-size: 15px;
  color: var(--ib-muted-green);
}

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

@media (max-width: 1024px) {
  .location_finder_module__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .location_finder_module__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .location_finder_module__bar {
    flex-direction: column;
  }

  .location_finder_module__cell + .location_finder_module__cell {
    border-left: 0;
    border-top: 1px solid #e4e4e4;
  }

  .location_finder_module__more {
    width: 100%;
    justify-content: center;
  }
}
