/* Reuse the original theme. These rules cover loading and the new listing pages. */
.catalog-section-inner, .catalog-results { position: relative; }
.catalog-section-inner { min-height: 100px; }
.catalog-empty { grid-column: 1 / -1; padding: 24px; color: var(--homely-text-secondary); border: 1px solid var(--homely-border-soft); border-radius: 10px; }
.catalog-empty h2 { color: var(--homely-text-primary); font-size: 20px; }
.catalog-async-message { margin: 12px 0; color: #b52b39; font-size: 14px; }
[data-home-region] + .catalog-async-message { margin-left: auto; margin-right: auto; }
.homely-property-title a { color: inherit; text-decoration: none; }
.homely-property-title a:hover { color: var(--homely-primary); }
.homely-property-specs { min-height: 18px; }
.homely-property-card__media > a { display: block; height: 100%; }
.catalog-contact-avatar { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #eaf3fd; color: var(--homely-primary); font-weight: 700; }
.homely-property-wishlist[aria-pressed="true"] { color: var(--homely-primary); background: #eaf3fd; }
[data-media-box] { position: relative; background: #edf1f5; }
.catalog-media-skeleton { position: absolute; inset: 0; background: #edf1f5; pointer-events: none; overflow: hidden; z-index: 1; }
.catalog-media-skeleton[hidden], .catalog-skeleton[hidden], [data-catalog-image][hidden] { display: none !important; }
.catalog-media-skeleton::after, .catalog-skeleton-picture::after, .catalog-skeleton-line::after, .catalog-skeleton-heading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); transform: translateX(-100%); animation: catalogShimmer 1.25s linear infinite; }
.catalog-skeleton { position: absolute; inset: 0; overflow: hidden; z-index: 5; background: #fff; pointer-events: auto; }
[data-home-region][aria-busy="true"] [data-section-skeleton], [data-listing-region][aria-busy="true"] [data-section-skeleton] { display: block !important; }
.catalog-skeleton-heading { position: relative; overflow: hidden; width: 210px; max-width: 70%; height: 22px; margin: 0 0 26px; background: #edf1f5; border-radius: 5px; }
.catalog-skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.catalog-skeleton-card { min-width: 0; border: 1px solid #edf1f5; border-radius: 10px; overflow: hidden; padding-bottom: 28px; }
.catalog-skeleton-picture { position: relative; overflow: hidden; height: 190px; background: #edf1f5; }
.catalog-skeleton-line { position: relative; overflow: hidden; height: 15px; background: #edf1f5; border-radius: 5px; margin: 16px 14px 0; }
.catalog-skeleton-line--short { width: 55%; height: 12px; }
.catalog-skeleton--cities .catalog-skeleton-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.catalog-skeleton--cities .catalog-skeleton-card { padding: 0; height: 185px; }
.catalog-skeleton--cities .catalog-skeleton-picture { height: 100%; }
.catalog-skeleton--budgets .catalog-skeleton-card { height: 96px; display: flex; align-items: center; padding: 16px; gap: 12px; }
.catalog-skeleton--budgets .catalog-skeleton-picture { height: 48px; width: 48px; flex: 0 0 48px; border-radius: 50%; }
.catalog-skeleton--budgets .catalog-skeleton-line { flex: 1; margin: 0; }
.catalog-skeleton--budgets .catalog-skeleton-line--short { display: none; }
/* Contact buttons are visible even when a listing has no contact number. */
.catalog-contact-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catalog-contact-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; text-decoration: none; transition: background .2s, border-color .2s; white-space: nowrap; }
.catalog-contact-action svg { width: 17px; height: 17px; flex-shrink: 0; }
.catalog-contact-action--call { background: var(--homely-primary); color: #fff; }
.catalog-contact-action--call:hover { background: var(--homely-primary-hover); color: #fff; }
.catalog-contact-action--whatsapp { background: #eaf8ef; color: #157b42; border-color: #ccebd6; }
.catalog-contact-action--whatsapp:hover { background: #d9f1e2; color: #116a37; }
.catalog-contact-action:disabled { opacity: .58; cursor: not-allowed; }
.catalog-contact-action:focus-visible, .catalog-gallery a:focus-visible, .catalog-gallery button:focus-visible { outline: 3px solid #89b8e2; outline-offset: 3px; }
.catalog-contact-actions--compact { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; width: 100%; }
.catalog-contact-actions--compact .catalog-contact-action { min-height: 33px; padding: 0 7px; font-size: 11px; gap: 5px; }
.catalog-contact-actions--compact svg { width: 15px; height: 15px; }
.catalog-home-contact { display: block; }
.homely-property-agent__profile { min-width: 0; }
.homely-property-agent__profile strong { overflow-wrap: anywhere; }

/* Listing: filters on the left, full-width property rows on the right. */
.catalog-listing, .catalog-detail { max-width: 1320px; padding-top: 24px; padding-bottom: 55px; }
.catalog-breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 22px; color: var(--homely-text-secondary); font-size: 12px; }
.catalog-breadcrumb a { color: var(--homely-text-secondary); text-decoration: none; }
.catalog-breadcrumb a:hover { color: var(--homely-primary); }
.catalog-listing-layout { display: grid; grid-template-columns: 276px minmax(0,1fr); align-items: start; gap: 26px; }
.catalog-filter-sidebar { position: sticky; top: calc(var(--homely-header-height) + 18px); min-width: 0; }
.catalog-filter-disclosure { border: 1px solid #e0e6ee; background: #fff; border-radius: 12px; }
.catalog-filter-disclosure > summary { display: none; }
.catalog-filter-panel { padding: 21px; max-height: calc(100dvh - var(--homely-header-height) - 45px); overflow-y: auto; scrollbar-width: thin; }
.catalog-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.catalog-filter-heading h2 { font-size: 15px; margin: 0; font-weight: 700; }
.catalog-filter-heading a { font-size: 12px; text-decoration: none; color: var(--homely-primary); }
.catalog-filter-field { margin-top: 14px; }
.catalog-filter-field label { display: block; margin-bottom: 7px; font-size: 12px; color: var(--homely-text-secondary); font-weight: 500; }
.catalog-filter-field select, .catalog-filter-field input, .catalog-sort-control select { width: 100%; height: 40px; min-width: 0; border: 1px solid #dfe5ed; border-radius: 7px; background: #fff; color: var(--homely-text-primary); font-size: 12px; padding: 0 10px; }
.catalog-filter-field input::placeholder { color: #8c97a8; font-size: 11px; }
.catalog-filter-field select:focus, .catalog-filter-field input:focus, .catalog-sort-control select:focus { outline: 3px solid #e0edf9; border-color: var(--homely-primary); }
.catalog-filter-group { margin-top: 20px; border-top: 1px solid #edf0f5; padding-top: 18px; }
.catalog-filter-group > summary { display: flex; justify-content: space-between; align-items: center; list-style: none; font-size: 13px; font-weight: 650; cursor: pointer; }
.catalog-filter-group > summary::-webkit-details-marker { display: none; }
.catalog-filter-group > summary::after { content: '+'; font-size: 18px; line-height: 1; font-weight: 400; color: #7d8aa0; }
.catalog-filter-group[open] > summary::after { content: '−'; }
.catalog-filter-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.catalog-filter-help { display: block; margin-top: 10px; font-size: 11px; color: var(--homely-text-secondary); line-height: 1.5; }
.catalog-featured-check { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 12px; cursor: pointer; }
.catalog-featured-check input { width: 15px; height: 15px; accent-color: var(--homely-primary); }
.catalog-filter-actions { margin-top: 22px; }
.catalog-filter-actions button { width: 100%; min-height: 41px; }
.catalog-listing-main { min-width: 0; }
.catalog-listing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.catalog-purpose-tabs { display: flex; align-items: center; padding: 4px; gap: 3px; border-radius: 9px; background: #eaf0f6; }
.catalog-purpose-tabs a { padding: 7px 20px; border-radius: 6px; font-size: 13px; text-decoration: none; font-weight: 650; color: #54657b; }
.catalog-purpose-tabs a.is-active { color: var(--homely-primary); background: #fff; box-shadow: 0 2px 6px #142b4810; }
.catalog-sort-control { display: flex; align-items: center; gap: 9px; color: #6c7789; font-size: 12px; }
.catalog-sort-control select { width: 156px; height: 36px; }
.catalog-listing h1 { margin: 22px 0 8px; font-size: clamp(22px,2.2vw,28px); font-weight: 720; line-height: 1.3; letter-spacing: -.5px; }
.catalog-listing-intro { font-size: 13px; margin-bottom: 22px; color: var(--homely-text-secondary); }
.catalog-results-header { margin-bottom: 18px; }
.catalog-results-summary { margin: 0 0 13px; color: var(--homely-text-secondary); font-size: 13px; }
.catalog-results-summary strong { color: var(--homely-text-primary); font-size: 15px; }
.catalog-filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.catalog-filter-chips a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 11px; background: #edf5fd; border: 1px solid #d4e5f5; border-radius: 20px; color: var(--homely-primary); font-size: 11px; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.catalog-filter-chips a span { font-size: 17px; line-height: 1; }
.catalog-listing-rows { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.catalog-property-row { display: grid; grid-template-columns: 255px minmax(0,1fr); border: 1px solid #e2e7ee; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 14px #18345204; transition: border-color .2s, box-shadow .2s; }
.catalog-property-row:hover { border-color: #bad2e9; box-shadow: 0 5px 22px #1834520a; }
.catalog-row-media { min-height: 262px; position: relative; overflow: hidden; }
.catalog-row-media > a { display: block; height: 100%; }
.catalog-row-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog-row-photo-link { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 5px 9px; color: #fff; background: #112c4cc9; border-radius: 5px; font-size: 10px; }
.catalog-row-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; background: #fff; color: var(--homely-primary); border-radius: 5px; font-size: 10px; font-weight: 700; box-shadow: 0 1px 10px #0001; }
.catalog-row-media .homely-property-wishlist { z-index: 2; top: 10px; right: 10px; }
.catalog-row-content { padding: 22px 22px 0; min-width: 0; display: flex; flex-direction: column; }
.catalog-row-top { display: flex; justify-content: space-between; align-items: start; gap: 22px; }
.catalog-row-top > div:first-child { min-width: 0; }
.catalog-row-type { margin: 0 0 5px; font-size: 11px; color: var(--homely-text-secondary); }
.catalog-row-top h2 { font-size: 16px; line-height: 1.45; font-weight: 650; margin: 0 0 8px; overflow-wrap: anywhere; }
.catalog-row-top h2 a { color: inherit; text-decoration: none; }
.catalog-row-top h2 a:hover { color: var(--homely-primary); }
.catalog-row-location { display: flex; align-items: start; gap: 5px; font-size: 12px; color: var(--homely-text-secondary); margin: 0; }
.catalog-row-location svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.catalog-row-price { flex-shrink: 0; text-align: right; }
.catalog-row-price strong { display: block; font-size: 19px; color: #172c43; line-height: 1.3; }
.catalog-row-price span { display: block; margin-top: 5px; font-size: 10px; color: #8b96a6; }
.catalog-row-specs { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin: 18px 0 0; padding: 11px 0; border-top: 1px solid #f0f2f6; border-bottom: 1px solid #f0f2f6; }
.catalog-row-specs > span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #53677d; }
.catalog-row-specs svg { width: 16px; height: 16px; }
.catalog-row-highlights { display: flex; gap: 6px; flex-wrap: wrap; margin: 13px 0 0; }
.catalog-row-highlights span { padding: 4px 7px; border-radius: 4px; background: #f3f6f9; color: #66778b; font-size: 10px; }
.catalog-row-highlights span.is-featured { color: #956622; background: #fff3d9; }
.catalog-row-excerpt { margin: 12px 0 16px; font-size: 12px; line-height: 1.65; color: #7c889a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-row-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: auto -22px 0; padding: 15px 22px; border-top: 1px solid #eef1f5; background: #fbfcfe; }
.catalog-row-owner { display: flex; align-items: center; gap: 9px; min-width: 0; }
.catalog-row-owner strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.catalog-row-owner small { display: block; margin-top: 2px; font-size: 10px; color: #8b96a6; }
.catalog-row-footer .catalog-contact-action { min-height: 36px; padding: 0 12px; font-size: 12px; }
.catalog-pagination { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 30px; }
.catalog-pagination a, .catalog-pagination span { border: 1px solid #dfe7ef; border-radius: 7px; padding: 8px 13px; background: #fff; color: var(--homely-primary); font-size: 12px; text-decoration: none; }
.catalog-pagination span { background: var(--homely-primary); color: #fff; }
.catalog-listing .catalog-empty { text-align: center; padding: 52px 20px; background: #fff; }
.catalog-empty > svg { width: 34px; height: 34px; margin-bottom: 15px; color: #9db7d2; }
.catalog-empty p { font-size: 13px; }
.catalog-empty a { font-size: 13px; color: var(--homely-primary); }
.catalog-skeleton--listing { background: var(--homely-body-bg); }
.catalog-skeleton--listing .catalog-skeleton-grid { grid-template-columns: 1fr; gap: 20px; }
.catalog-skeleton--listing .catalog-skeleton-card { display: grid; grid-template-columns: 255px 1fr; grid-template-rows: 55px 30px 35px 1fr; min-height: 260px; padding: 0; background: #fff; }
.catalog-skeleton--listing .catalog-skeleton-picture { height: 100%; grid-row: 1 / 5; }
.catalog-skeleton--listing .catalog-skeleton-line { grid-column: 2; }

/* Details: compact photo viewer and facts, with a sticky contact card. */
.catalog-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.catalog-detail-main { min-width: 0; }
.catalog-detail-panel { border: 1px solid #e0e6ed; background: #fff; border-radius: 12px; padding: 26px; margin-bottom: 20px; scroll-margin-top: calc(var(--homely-header-height) + 65px); }
.catalog-detail-panel h2 { margin: 0 0 22px; font-size: 20px; font-weight: 650; }
.catalog-detail-panel h2 > span { font-size: 12px; color: #8b98a7; margin-left: 5px; }
.catalog-detail-heading { display: flex; justify-content: space-between; gap: 20px; }
.catalog-detail-heading .homely-property-wishlist { position: static; flex-shrink: 0; border: 1px solid #e3eaf0; }
.catalog-detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.catalog-detail-badges > span { padding: 4px 9px; background: #edf5fd; color: var(--homely-primary); border-radius: 5px; font-size: 10px; font-weight: 600; }
.catalog-detail-badges > .is-featured { color: #956622; background: #fff3d9; }
.catalog-detail-badges > .catalog-detail-id { background: none; color: #8b96a6; font-weight: 400; padding-left: 4px; }
.catalog-detail-price { font-size: 27px; font-weight: 720; margin-bottom: 9px; color: #172c43; letter-spacing: -.5px; }
.catalog-detail h1 { font-size: clamp(19px,2vw,23px); font-weight: 600; margin: 0 0 9px; line-height: 1.5; }
.catalog-detail-location { display: flex; gap: 5px; font-size: 13px; color: #728198; margin-bottom: 22px; }
.catalog-detail-location svg { width: 16px; height: 16px; flex-shrink: 0; }
.catalog-demo-note { margin: 0 0 20px; padding: 8px 12px; border-radius: 6px; font-size: 11px; color: #906d31; background: #fff8e8; }
.catalog-overview-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0,1.15fr); align-items: start; gap: 24px; }
.catalog-overview-info { min-width: 0; }
.catalog-detail-specs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #f4f7fa; border-radius: 8px; padding: 14px; margin-bottom: 22px; }
.catalog-detail-specs span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.catalog-detail-specs svg { width: 17px; height: 17px; color: #7b8da0; }
.catalog-overview-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; margin: 0 0 22px; }
.catalog-overview-facts dt { font-size: 11px; font-weight: 400; color: #7b889a; margin-bottom: 6px; }
.catalog-overview-facts dd { font-size: 13px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.catalog-text-link { display: inline-block; font-size: 12px; font-weight: 500; color: var(--homely-primary); text-decoration: none; }
.catalog-overview-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e8edf3; }
.catalog-overview-footer > span { font-size: 11px; color: #8b96a6; }
.catalog-detail-nav { position: sticky; top: var(--homely-header-height); display: flex; gap: 22px; overflow-x: auto; padding: 0 20px; margin: 0 0 20px; z-index: 6; border: 1px solid #e4e9f0; border-radius: 8px; background: #fff; scrollbar-width: none; }
.catalog-detail-nav a { padding: 15px 0 13px; flex-shrink: 0; font-size: 12px; color: #78869a; text-decoration: none; border-bottom: 2px solid transparent; }
.catalog-detail-nav a[aria-current="location"] { border-color: var(--homely-primary); color: var(--homely-primary); font-weight: 650; }
.catalog-details-list { display: grid; gap: 0; margin: 0; }
.catalog-details-list > div { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid #f0f3f6; }
.catalog-details-list > div:last-child { border-bottom: 0; }
.catalog-details-list dt { color: #7b889a; font-size: 13px; font-weight: 400; }
.catalog-details-list dd { color: #273b51; font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.catalog-description { white-space: pre-line; font-size: 14px; color: #67788b; line-height: 1.9; margin: 0; }
.catalog-amenities { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 15px; }
.catalog-amenities li { display: flex; align-items: center; gap: 9px; color: #53677c; font-size: 13px; }
.catalog-amenity-check { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; color: #258361; border: 1px solid #d2eadf; background: #f0faf5; border-radius: 50%; font-size: 12px; }
.catalog-detail-contact { position: sticky; top: calc(var(--homely-header-height) + 18px); }
.catalog-contact-box { padding: 24px; border: 1px solid #dfe6ee; border-radius: 12px; background: #fff; }
.catalog-contact-eyebrow { margin: 0 0 9px; color: #8b96a6; font-size: 11px; }
.catalog-contact-box h2 { margin: 0 0 20px; font-size: 18px; font-weight: 650; line-height: 1.4; }
.catalog-contact-person { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.catalog-contact-person .catalog-contact-avatar { width: 43px; height: 43px; flex-basis: 43px; font-size: 18px; }
.catalog-contact-person strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.catalog-contact-person span:not(.catalog-contact-avatar) { display: block; color: #8b96a6; font-size: 11px; margin-top: 3px; }
.catalog-contact-number { display: inline-block; margin-bottom: 17px; font-size: 14px; color: var(--homely-primary); text-decoration: none; }
.catalog-contact-box .catalog-contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.catalog-contact-help { color: #8a96a6; font-size: 11px; line-height: 1.7; margin: 16px 0 0; }
.catalog-contact-summary { display: grid; gap: 8px; padding: 20px 4px; font-size: 12px; color: #8390a0; }
.catalog-contact-summary strong { font-size: 19px; color: #3c526a; }
.catalog-location-panel { display: flex; align-items: center; gap: 15px; padding: 20px; background: #f5f9fc; border: 1px solid #e5eef5; border-radius: 9px; margin-bottom: 18px; }
.catalog-location-icon svg { width: 29px; height: 29px; color: #77a1c8; }
.catalog-location-panel strong { font-size: 14px; font-weight: 600; }
.catalog-location-panel p { font-size: 12px; color: #8090a3; line-height: 1.7; margin: 6px 0 0; }

/* All photos remain in the initial HTML; JS enhances native horizontal scrolling. */
.catalog-gallery { min-width: 0; }
.catalog-gallery-main { position: relative; }
.catalog-gallery-viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 9px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.catalog-gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; overflow: hidden; }
.catalog-gallery-slide a { display: block; width: 100%; height: 100%; }
.catalog-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-gallery-counter { position: absolute; bottom: 14px; right: 10px; z-index: 2; background: #102339c9; color: #fff; padding: 5px 8px; border-radius: 5px; font-size: 10px; pointer-events: none; }
.catalog-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 31px; height: 36px; padding: 0; border: 0; background: #fff; color: #244364; box-shadow: 0 2px 9px #0002; border-radius: 6px; font-size: 27px; }
.catalog-gallery-arrow.is-prev { left: 8px; }
.catalog-gallery-arrow.is-next { right: 8px; }
.catalog-gallery-arrow:disabled { opacity: .4; cursor: default; }
.catalog-gallery-arrow[hidden] { display: none; }
.catalog-gallery-thumbs { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 1px 6px; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.catalog-gallery-thumbs a { display: block; flex: 0 0 83px; height: 58px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; scroll-snap-align: start; }
.catalog-gallery-thumbs a[aria-current="true"] { border-color: var(--homely-primary); }
.catalog-gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-gallery-hint { display: block; font-size: 10px; color: #8a98a9; margin-top: 2px; }
.catalog-gallery-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; text-align: center; padding: 20px; background: #f2f6fa; border: 1px dashed #c9d9e8; border-radius: 9px; }
.catalog-gallery-empty svg { width: 38px; height: 38px; color: #8fafca; }
.catalog-gallery-empty strong { font-size: 14px; }
.catalog-gallery-empty span { font-size: 12px; color: #8a98a9; }
.catalog-photo-dialog { width: min(1100px,calc(100vw - 32px)); max-width: 1100px; max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 12px; background: #0f1825; color: #fff; }
.catalog-photo-dialog:not([open]) { display: none; }
.catalog-photo-dialog::backdrop { background: #08121eeb; }
.catalog-photo-dialog__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 12px; }
.catalog-photo-dialog button { color: #fff; background: #ffffff12; border: 1px solid #ffffff24; border-radius: 7px; min-width: 36px; min-height: 36px; font-size: 26px; padding: 0 7px; }
.catalog-photo-dialog button:disabled { opacity: .3; }
.catalog-photo-dialog__stage { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: 14px; padding: 0 18px; }
.catalog-photo-dialog__stage img { width: 100%; height: min(65vh,700px); object-fit: contain; }
.catalog-photo-dialog__caption { text-align: center; padding: 14px 22px; font-size: 12px; color: #b8c7d9; margin: 0; }
.catalog-lightbox-open { overflow: hidden; }
.catalog-city-directory { padding-top: 30px; }
@keyframes catalogShimmer { to { transform: translateX(100%); } }
@media (max-width:1199.98px) {
    .catalog-listing-layout { grid-template-columns: 240px minmax(0,1fr); gap: 20px; }
    .catalog-filter-panel { padding: 18px; }
    .catalog-property-row { grid-template-columns: 220px minmax(0,1fr); }
    .catalog-row-top { flex-wrap: wrap; gap: 10px; }
    .catalog-row-price { text-align: left; }
    .catalog-row-price span { display: none; }
    .catalog-detail-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
    .catalog-detail-panel { padding: 22px; }
    .catalog-overview-grid { grid-template-columns: 1fr; }
    .catalog-gallery-main { max-height: none; }
    .catalog-gallery-slide { aspect-ratio: 16 / 9; }
    .catalog-overview-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .catalog-skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:991.98px) {
    .catalog-listing-layout { grid-template-columns: 225px minmax(0,1fr); gap: 16px; }
    .catalog-property-row { grid-template-columns: 1fr; }
    .catalog-row-media { min-height: 220px; }
    .catalog-detail-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 16px; }
    .catalog-contact-box { padding: 20px; }
    .catalog-overview-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-amenities { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
    .catalog-listing, .catalog-detail { padding-top: 18px; padding-bottom: 32px; }
    .catalog-listing-layout, .catalog-detail-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .catalog-filter-sidebar, .catalog-detail-contact { position: static; }
    .catalog-filter-disclosure > summary { display: flex; justify-content: space-between; padding: 14px 17px; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
    .catalog-filter-disclosure > summary::-webkit-details-marker { display: none; }
    .catalog-filter-panel { max-height: none; border-top: 1px solid #edf0f5; overflow: visible; }
    .catalog-breadcrumb { margin-bottom: 17px; font-size: 11px; }
    .catalog-listing-toolbar { gap: 12px; }
    .catalog-purpose-tabs a { padding: 6px 15px; font-size: 12px; }
    .catalog-sort-control { font-size: 11px; gap: 5px; }
    .catalog-sort-control select { width: 135px; height: 34px; font-size: 11px; }
    .catalog-listing h1 { margin-top: 19px; font-size: 22px; }
    .catalog-listing-intro { font-size: 12px; }
    .catalog-row-content { padding: 18px 18px 0; }
    .catalog-row-top { justify-content: space-between; flex-wrap: nowrap; gap: 15px; }
    .catalog-row-top h2 { font-size: 15px; }
    .catalog-row-price strong { font-size: 18px; }
    .catalog-row-media { min-height: 230px; }
    .catalog-row-specs { gap: 15px; }
    .catalog-row-excerpt { -webkit-line-clamp: 2; }
    .catalog-row-footer { padding: 14px 18px; margin-left: -18px; margin-right: -18px; }
    .catalog-row-footer .catalog-contact-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-row-footer .catalog-contact-action { min-height: 39px; }
    .catalog-detail-panel { padding: 19px; }
    .catalog-detail-price { font-size: 26px; }
    .catalog-detail h1 { font-size: 20px; }
    .catalog-detail-nav { gap: 21px; padding: 0 15px; top: var(--homely-header-height); }
    .catalog-details-list > div { grid-template-columns: 125px minmax(0,1fr); gap: 15px; }
    .catalog-details-list dt, .catalog-details-list dd { font-size: 12px; }
    .catalog-contact-summary { display: none; }
    .catalog-contact-box .catalog-contact-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-overview-footer .catalog-contact-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-contact-box { padding: 21px; }
    .catalog-gallery-thumbs a { flex-basis: 80px; height: 56px; }
    .catalog-photo-dialog { width: calc(100vw - 16px); }
    .catalog-photo-dialog__stage { grid-template-columns: 30px minmax(0,1fr) 30px; gap: 5px; padding: 0 7px; }
    .catalog-photo-dialog button { min-width: 30px; }
    .catalog-skeleton--listing .catalog-skeleton-card { grid-template-columns: 1fr; grid-template-rows: 180px 35px 30px; min-height: 280px; }
    .catalog-skeleton--listing .catalog-skeleton-picture { grid-row: 1; }
    .catalog-skeleton--listing .catalog-skeleton-line { grid-column: 1; }
    .catalog-skeleton--cities .catalog-skeleton-grid { grid-template-columns: repeat(6,148px); }
    .catalog-skeleton--budgets .catalog-skeleton-grid { grid-template-columns: repeat(4,255px); }
}
@media (max-width:399.98px) {
    .catalog-sort-control { width: 100%; justify-content: flex-end; }
    .catalog-row-top { flex-wrap: wrap; }
    .catalog-row-media { min-height: 200px; }
    .catalog-amenities { grid-template-columns: 1fr; }
    .catalog-details-list > div { grid-template-columns: 110px minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
    .catalog-media-skeleton::after, .catalog-skeleton-picture::after, .catalog-skeleton-line::after, .catalog-skeleton-heading::after { animation: none; }
}
