/* finder.css - "Find your room": filter panel, results bar, room cards.
   Same language as the hero, questionnaire and pricing: white panels, thin borders,
   soft shadows, small uppercase labels, gold focus rings. Loaded after owners.css. */

#finder {
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
#finder .sh {
  margin-bottom: 26px;
}
.finder {
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

/* ---------- filter panel ---------- */
.filters {
  top: 90px;
  padding: 20px;
  gap: 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(10, 47, 115, 0.07);
}
.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.f-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}
.f-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--goldink);
  font:
    800 12px Figtree,
    system-ui,
    sans-serif;
  text-align: center;
}
.f-clear {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--brand);
  font:
    700 13px Figtree,
    system-ui,
    sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.f-toggle {
  display: none;
}
.f-body {
  display: grid;
  gap: 18px;
  padding-top: 14px;
}
.f-field {
  display: grid;
  gap: 8px;
}
.filters label.f-field {
  font-weight: 400;
}
.f-lab,
.filters .f-lab {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mute);
}

/* search box with icon */
.f-search {
  position: relative;
  display: block;
}
.f-search .ic {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  width: 17px;
  height: 17px;
  color: var(--mute);
  pointer-events: none;
}
.filters input[type="text"] {
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  font:
    500 14px Figtree,
    system-ui,
    sans-serif;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.filters input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.35);
}

/* price slider: same look as the questionnaire */
.f-range-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.f-range output {
  padding: 3px 10px;
  border-radius: 99px;
  background: #eef4fd;
  color: var(--brand);
  font:
    800 14px "Bricolage Grotesque",
    sans-serif;
  white-space: nowrap;
}
.f-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 8px 0 0;
  border-radius: 99px;
  cursor: pointer;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0 / var(--fill, 100%) 100% no-repeat,
    var(--line);
}
.f-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 2px 6px rgba(10, 47, 115, 0.3);
}
.f-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.f-range input[type="range"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.f-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--mute);
}

/* option pills (room type, must have) */
.filters .chips {
  gap: 6px;
}
.filters .chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font:
    600 13px Figtree,
    system-ui,
    sans-serif;
  color: var(--ink);
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.filters .chip:hover {
  border-color: var(--brand);
}
.filters .chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 71, 169, 0.25);
}
.filters .chip:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* "Near" + "Sort by": the search bar's custom dropdown, as a field */
.f-dd.dd {
  position: relative;
}
.f-dd .dd-btn {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.f-dd.dd-open .dd-btn,
.f-dd .dd-btn:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.35);
}
.f-dd .dd-list {
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  min-width: 0;
}

/* ---------- results bar ---------- */
.bar {
  margin-bottom: 16px;
  color: var(--mute);
  font-size: 14px;
}
#res b {
  font:
    800 18px "Bricolage Grotesque",
    sans-serif;
  color: var(--ink);
  margin-right: 2px;
}
.sort.dd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}
.sort .pl {
  white-space: nowrap;
}
.sort .dd-btn {
  width: auto;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-size: 14px;
}
.sort.dd-open .dd-btn,
.sort .dd-btn:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.35);
}
.sort .dd-list {
  left: auto;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
}

/* ---------- room cards ---------- */
.grid {
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 47, 115, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 47, 115, 0.13);
  border-color: var(--line);
}
.card.feat {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 10px 28px rgba(184, 138, 0, 0.15);
}
.card .ph {
  height: 160px;
}
.card .cb {
  padding: 16px 18px 18px;
  gap: 6px;
}
.c-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.c-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.c-head .star,
.c-head .meta {
  flex: none;
  margin-top: 2px;
  font-size: 13px;
}
.c-meta {
  font-size: 13.5px;
  color: var(--mute);
}
.c-dist {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--mute);
}
.c-dist .ic {
  width: 15px;
  height: 15px;
  color: var(--brand);
}
.card .price {
  margin-top: 6px;
  font-size: 21px;
}
.card .price .np {
  font-size: 15px;
}
.card .acts {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card .cb > .price + .acts {
  margin-top: 12px;
}
.card .acts .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 9px 14px;
}
.card .acts .btn .ic {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
.card .acts .btn:hover .ic {
  transform: translateX(3px);
}
/* Compare as a toggle pill */
.cmp {
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.cmp input {
  margin: 0;
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
}
.cmp:hover {
  border-color: var(--brand);
}
.cmp:has(input:checked) {
  background: #eef4fd;
  border-color: var(--brand);
  color: var(--brand);
}

/* no results */
.f-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--mute);
}
.f-empty b {
  color: var(--ink);
  font-size: 17px;
}
.f-empty-i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef4fd;
  color: var(--brand);
}
.f-empty-i .ic {
  width: 22px;
  height: 22px;
}
.f-empty .btn {
  margin-top: 6px;
}

/* ---------- phones: filters fold behind a button ---------- */
@media (max-width: 820px) {
  .finder {
    grid-template-columns: 1fr;
    gap: 18px;
  } /* stack: this file overrides base.css's phone rule otherwise */
  .filters {
    padding: 14px 16px;
  }
  .f-head {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
  .f-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    font:
      700 13px Figtree,
      system-ui,
      sans-serif;
    cursor: pointer;
  }
  .f-toggle .ic {
    width: 16px;
    height: 16px;
  }
  .f-head h3 {
    font-size: 16px;
  }
  .f-body {
    display: none;
  }
  .filters.open .f-body {
    display: grid;
  }
  .filters.open .f-head {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .sort .pl {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

/* comment count on a card (shared/js/listings/comments.js keeps it in step) */
.c-cm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 99px;
  background: #eef4fd;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}
.c-cm .ic {
  width: 13px;
  height: 13px;
}

/* ---------- Compare (browse.js showCompare) ---------- */
#dlg.cmp-wide {
  width: min(1000px, 96vw);
}
.cmp-d {
  padding: 22px 24px 24px;
  display: grid;
  gap: 16px;
}
.cmp-h {
  padding-right: 44px; /* room for the close button */
}
.cmp-kick {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.cmp-h h2 {
  margin: 2px 0 4px;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cmp-h p {
  margin: 0;
  font-size: 13.5px;
}
.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  scrollbar-width: thin;
}
.cmp-t {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}
.cmp-t th,
.cmp-t td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp-t tbody tr:last-child > * {
  border-bottom: 0;
}
/* first column: labels, stays visible while the columns scroll sideways on phones */
.cmp-t tbody th[scope="row"],
.cmp-corner {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 150px;
  background: var(--card);
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 700;
}
.cmp-t tbody th[scope="row"] {
  box-shadow: 1px 0 0 var(--line);
}
.cmp-t td {
  color: var(--ink);
  position: relative;
}
.cmp-t td small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}
.cmp-t tbody tr:not(.cmp-g):hover > * {
  background: #f6f9fe;
}
/* column heads: photo, name, actions */
.cmp-col {
  border-bottom: 1px solid var(--line);
}
.cmp-ph {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0a2f73;
  margin-bottom: 10px;
}
.cmp-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmp-area {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
}
.cmp-rm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.cmp-rm .ic {
  width: 15px;
  height: 15px;
}
.cmp-rm:hover,
.cmp-rm:focus-visible {
  background: var(--gold);
  color: var(--goldink);
  transform: rotate(90deg);
  outline: none;
}
.cmp-name {
  display: block;
  font:
    700 16px/1.25 "Bricolage Grotesque",
    sans-serif;
  color: var(--ink);
}
.cmp-sub {
  display: block;
  margin: 2px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mute);
}
.cmp-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cmp-view .ic {
  width: 15px;
  height: 15px;
}
/* group headings */
.cmp-g th {
  background: #eef4fd;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  position: static;
}
/* values */
.cmp-pct {
  font:
    800 22px/1 "Bricolage Grotesque",
    sans-serif;
  color: var(--brand);
}
.cmp-star {
  color: #b88a00;
}
.cmp-heart {
  color: #d6304a;
}
.cmp-y,
.cmp-n {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}
.cmp-y {
  color: #1d7a46;
}
.cmp-n {
  color: #c0392b;
}
.cmp-y .ic,
.cmp-n .ic {
  width: 15px;
  height: 15px;
}
.cmp-u {
  color: var(--mute);
  font-style: italic;
}
.cmp-warn {
  color: #c0392b !important;
  font-weight: 700;
}
.cmp-must {
  display: inline !important;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--goldink);
}
.cmp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cmp-chips span {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.cmp-ref {
  font:
    700 12px ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.04em;
}
/* the winner of a row */
.cmp-t td.best {
  background: #fffaeb;
  box-shadow: inset 3px 0 0 var(--gold);
}
.cmp-best {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--goldink);
}
.cmp-h .cmp-best {
  margin: 0 2px;
  vertical-align: 1px;
}
@media (max-width: 600px) {
  .cmp-d {
    padding: 18px 14px 16px;
  }
  .cmp-t tbody th[scope="row"],
  .cmp-corner {
    width: 104px;
  }
  .cmp-t th,
  .cmp-t td {
    padding: 10px;
  }
}
.cmp-h {
  position: relative;
}
.cmp-close {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.2s;
}
.cmp-close .ic {
  width: 18px;
  height: 18px;
}
.cmp-close:hover {
  background: var(--gold);
  color: var(--goldink);
  transform: rotate(90deg);
}
.cmp-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
