/* Native forms and details keep discovery usable without JavaScript. */
.catalogue-hero { padding-bottom: 100px; }
.catalogue-hero .eyebrow { color: #f9c5a8; }
.catalogue-search { position: relative; z-index: 2; width: min(var(--content), calc(100% - 48px)); margin: -54px auto 24px; }
.catalogue-search__form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.search-heading, .catalogue-search__actions { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.search-heading { margin-bottom: 22px; }
.search-heading h2 { margin: 0; font-size: 1.8rem; }
#search-heading, #listings { scroll-margin-top: 100px; }
.search-heading .eyebrow { margin-bottom: 4px; }
.search-heading > a { white-space: nowrap; font-size: .85rem; }
.catalogue-search__primary { display: grid; grid-template-columns: 2fr .8fr 1fr 1fr; gap: 14px; }
.search-field { display: grid; gap: 7px; min-width: 0; }
.search-field label { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.search-field input, .search-field select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #c4d8ca; border-radius: 10px; color: var(--ink); background: #fff; font-size: .88rem; }
.catalogue-filters { margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalogue-filters summary { padding: 15px 0; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--forest); }
.catalogue-filters summary span { margin-left: 10px; font-weight: 400; font-size: .8rem; color: var(--muted); }
.catalogue-search__extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 10px; }
.filter-hint { margin: 14px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.catalogue-filters .filter-hint { margin: 0 0 15px; }
.catalogue-search__actions .search-field { width: min(300px, 100%); }
.catalogue-search__actions button { min-height: 46px; }
.listing-distance { margin: 0 0 10px; color: var(--muted); font-size: .77rem; }
.cost-summary { min-width: 0; }
.cost-summary__headline { display: grid; gap: 4px; }
.cost-summary__headline > span { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.cost-summary__headline > strong { color: var(--forest-deep); font-size: 1.85rem; line-height: 1.2; overflow-wrap: anywhere; }
.cost-summary__headline > small { color: var(--ink-soft); font-size: .8rem; }
.cost-summary__headline .cost-summary__unconfirmed { font-size: 1.15rem; }
.cost-summary__move { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #c4d8ca; font-size: .9rem; }
.cost-summary__move strong { white-space: nowrap; }
.cost-summary__footnote { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .74rem; line-height: 1.5; }
.cost-breakdown { margin: 20px 0 0; font-size: .85rem; }
.cost-breakdown > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; }
.cost-breakdown dt { color: var(--ink-soft); }
.cost-breakdown dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.cost-summary .cost-notes, .cost-summary .cost-rent { margin: 13px 0 0; font-size: .77rem; color: var(--ink-soft); }
.cost-summary--compact { padding: 15px 0 0; border-top: 1px solid var(--line); }
.cost-summary--compact .cost-summary__headline > strong { font-size: 1.5rem; }
.cost-summary--compact .cost-summary__move { margin-top: 11px; padding-top: 10px; font-size: .81rem; }
.listing-availability { display: grid; gap: 3px; margin-top: 17px; color: var(--forest); font-size: .78rem; }
.listing-availability > span:first-child { font-weight: 700; }
.compare-choice { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: .8rem; }
.compare-choice input { width: 16px; min-height: 16px; }
.compare-submit { margin-top: 20px; }
.compare-toolbar { position: sticky; z-index: 3; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-md); }
.compare-toolbar .compare-submit { margin-top: 0; }
.catalogue-search__submit { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.catalogue-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 32px 0 0; font-size: .9rem; }
.catalogue-pagination a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.site-nav .nav-register { background: var(--forest); color: #fff; }
@media (max-width: 900px) { .catalogue-search__primary, .catalogue-search__extra { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .catalogue-search { width: calc(100% - 28px); margin-top: -38px; }
  .catalogue-search__form { padding: 20px 16px; }
  .catalogue-hero { padding-bottom: 76px; }
  .catalogue-hero h1 { font-size: 2.9rem; }
  .catalogue-search__primary, .catalogue-search__extra { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .search-field--area, .catalogue-search__extra .search-field:last-child { grid-column: 1 / -1; }
  .catalogue-search__primary .search-field:nth-child(2) { grid-column: 1 / -1; }
  .catalogue-filters summary span { display: block; margin: 4px 0 0; }
  .catalogue-search__actions { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .catalogue-search__actions .search-field { width: 100%; }
  .catalogue-pagination { gap: 10px; font-size: .8rem; }
}

/* House summaries stay compact; room choices live on the house page. */
#catalogue-results .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#catalogue-results .listing-card { display: flex; flex-direction: column; }
#catalogue-results .listing-image { flex: none; }
#catalogue-results .listing-content { display: flex; flex: 1; flex-direction: column; }
#catalogue-results .summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.matching-room-heading { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 0; color: var(--ink); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.matching-room-heading span { color: var(--muted); font-size: .72rem; font-weight: 500; text-align: right; text-transform: none; letter-spacing: 0; }
.matching-room-heading__mobile { display: none; }
#catalogue-results .matching-room-list { margin-top: 9px; }
#catalogue-results .matching-room-list li { padding: 11px 13px; }
#catalogue-results .matching-room { gap: 3px; }
#catalogue-results .matching-room__actions { margin-top: 3px; }
.matching-room-more { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: auto; padding: 12px 16px; border-radius: 11px; background: var(--forest); color: #fff; text-align: center; text-decoration: none; }
.matching-room-more:hover, .matching-room-more:focus-visible { background: var(--forest-deep); color: #fff; }
.matching-room-more span { margin-left: 8px; }

/* A house with many rooms reads as one scan-friendly list. */
.property-explorer-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 30px; align-items: end; margin-bottom: 26px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.property-explorer-hero h1 { margin: 5px 0 8px; }
.property-explorer-hero p { margin: 0; color: var(--ink-soft); }
.property-explorer-hero > p { line-height: 1.55; }
.property-explorer-hero a { display: inline-block; margin-top: 14px; font-weight: 700; }
.room-explorer { scroll-margin-top: 95px; }
.room-explorer .page-heading { align-items: end; margin-bottom: 16px; }
.room-explorer .page-heading p:last-child { margin-bottom: 0; }
.room-explorer-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 22px; margin: 18px 0 12px; }
.room-explorer-filters { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.room-explorer-filters strong { margin-right: 3px; font-size: .81rem; }
.room-explorer-filters span { padding: 8px 12px; border-radius: 999px; background: var(--mint-soft); color: var(--forest-deep); font-size: .8rem; font-weight: 600; }
.room-explorer-filters a { padding: 8px; font-size: .82rem; font-weight: 700; }
.room-explorer-sort { display: grid; grid-template-columns: minmax(190px, 1fr) auto; gap: 7px; align-items: end; width: min(360px, 100%); }
.room-explorer-sort label { grid-column: 1 / -1; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.room-explorer-sort select, .room-explorer-sort button { min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; font-size: .83rem; }
.room-explorer-sort button { padding-inline: 17px; color: var(--forest-deep); font-weight: 700; cursor: pointer; }
.room-explorer-note { margin: 0 0 13px; color: var(--muted); font-size: .79rem; }
.room-explorer-headings, .room-explorer-row article { display: grid; grid-template-columns: minmax(240px, 2.2fr) minmax(155px, 1.15fr) minmax(100px, .85fr) minmax(110px, .85fr) minmax(98px, .7fr); gap: 12px; align-items: center; }
.room-explorer-headings { padding: 10px 16px; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.room-explorer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.room-explorer-row { min-width: 0; }
.room-explorer-row article { min-width: 0; min-height: 104px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.room-explorer-row__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-explorer-row__identity > div { min-width: 0; }
.room-explorer-row__identity h3 { margin: 0 0 3px; font: 700 1rem/1.25 "DM Sans", sans-serif; }
.room-explorer-row__identity h3 a { color: var(--ink); }
.room-explorer-row__identity p, .room-explorer-row__identity small { display: block; margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.room-explorer-row__photo { display: flex; flex: none; align-items: center; justify-content: center; width: 70px; height: 70px; overflow: hidden; border-radius: 9px; background: var(--mint-soft); color: var(--forest-deep); font-size: .7rem; font-weight: 700; }
.room-explorer-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.room-explorer-row__cost, .room-explorer-row__move, .room-explorer-row__availability { display: grid; gap: 4px; min-width: 0; }
.room-explorer-row__cost strong, .room-explorer-row__move strong, .room-explorer-row__availability strong { color: var(--forest-deep); font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.room-explorer-row__cost small, .room-explorer-row__availability small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.room-explorer-row__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.room-explorer-row__actions { display: grid; gap: 6px; justify-items: start; }
.room-explorer-row__actions > a { display: inline-flex; align-items: center; min-height: 36px; color: var(--forest-deep); font-size: .81rem; font-weight: 700; }
.room-explorer-row__actions .compare-choice { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font-size: .78rem; cursor: pointer; }
.room-explorer-row__actions .compare-choice input { accent-color: var(--forest); }
.other-rooms { margin: 24px 0; }
.other-rooms summary { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--forest-deep); font-weight: 700; cursor: pointer; }
.other-rooms summary small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.other-rooms .room-explorer-list { margin-top: 12px; }
.public-property > .surface-card { margin-top: 24px; }

.compare-toolbar__selection { display: grid; gap: 7px; min-width: 0; }
.compare-toolbar__rooms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.compare-toolbar__rooms li { display: flex; align-items: center; gap: 4px; max-width: 230px; padding: 3px 7px; border-radius: 8px; background: var(--mint-soft); color: var(--forest-deep); font-size: .72rem; }
.compare-toolbar__rooms span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-toolbar__rooms button, .compare-clear { border: 0; background: transparent; color: var(--forest-deep); font: inherit; font-weight: 700; cursor: pointer; }
.compare-toolbar__rooms button { min-width: 28px; min-height: 28px; }
.compare-clear { min-height: 42px; padding: 7px; }
.compare-toolbar [hidden] { display: none !important; }
.compare-toolbar[hidden] { display: none !important; }
.compare-toolbar.is-active { position: fixed; right: auto; bottom: 12px; left: 50%; width: min(var(--content), calc(100% - 32px)); margin: 0; transform: translateX(-50%); }
body.has-compare-selection main { padding-bottom: 138px; }

@media (max-width: 900px) {
  .room-explorer-headings { display: none; }
  .room-explorer-row article { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .room-explorer-row__identity { grid-column: 1 / -1; }
  .room-explorer-row__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
  .room-explorer-row__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
}
@media (max-width: 760px) {
  #catalogue-results .listing-grid { grid-template-columns: 1fr; }
  .property-explorer-hero { grid-template-columns: 1fr; gap: 14px; padding: 23px 20px; }
  .room-explorer-tools { display: grid; }
  .room-explorer-sort { width: min(100%, 420px); }
  .compare-toolbar { bottom: 8px; flex-wrap: wrap; }
  .compare-toolbar__selection { flex: 1 1 100%; }
  .compare-toolbar .compare-submit { min-height: 44px; }
  body.has-compare-selection main { padding-bottom: 190px; }
}
@media (max-width: 560px) {
  #catalogue-results .matching-room-list li:nth-child(n+3) { display: none; }
  .matching-room-heading__desktop { display: none; }
  .matching-room-heading__mobile { display: inline; }
  .room-explorer-row article { padding: 14px; }
  .room-explorer-row__cost small { font-size: .68rem; }
  .room-explorer-row__actions > a, .room-explorer-row__actions .compare-choice { min-height: 44px; }
}
