/*
 * /hk/pc/css/pc.css — desktop layer for the PC pages.
 *
 * Loaded after the page's own stylesheets (by pc_head() in
 * includes/pc_head.php), and every rule is scoped to html[data-device="pc"].
 *
 * What it changes on a computer:
 *   1. The mobile bottom tab bar becomes a full-width top app bar.
 *   2. Search results: the map fills the left of the screen and the results
 *      run in one column on the right (split view, see pc.js and the
 *      desktop copy of search-map.js). Saved /
 *      Viewed / Recommended lists become a multi-column grid.
 *   3. Standalone pages (account, messenger, legal …) and bottom sheets are
 *      centred with desktop widths, and controls get hover states.
 *
 * The page markup and JavaScript are unchanged: the same buttons (Filter,
 * Map, Search, More …) keep working, they are only laid out differently.
 */

html[data-device="pc"] {
  --pc-bar-h: 64px;
  --pc-max: 1320px;
  --pc-gutter: max(24px, calc((100vw - var(--pc-max)) / 2));
  --pc-bar-bg: rgba(255, 255, 255, .92);
  --pc-bar-fg: #0f172a;
  --pc-bar-border: rgba(15, 23, 42, .08);
  --pc-hover: rgba(15, 23, 42, .06);
  --pc-accent: var(--ui-accent, #1473e6);
}

html[data-device="pc"][data-theme="night"] {
  --pc-bar-bg: rgba(10, 16, 26, .92);
  --pc-bar-fg: #eef2f8;
  --pc-bar-border: rgba(255, 255, 255, .08);
  --pc-hover: rgba(255, 255, 255, .08);
}

/* Selector weight: the mobile layer (app-polish.css) styles these bars with
 * very specific selectors and !important. The long prefix below and the
 * "#pc-weight" entries inside :is() (an id that never exists) give these
 * rules the same weight, and pc.css loads last, so the desktop rules win. */

/* ── 1. Top app bar ──────────────────────────────────────────────────────
 * The SPA shows/hides these bars with inline display styles, so this layer
 * never sets `display` on them; it only moves and restyles them.           */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(
  #results-footer-initial,
  #results-footer-results,
  #profile-footer-initial,
  #notifications-footer-initial,
  #saved-footer-results,
  #viewed-footer-results,
  #recommended-footer-results,
  #account-footer,
  #subaccounts-footer-initial,
  #credits-footer-initial,
  #agentlisting-footer-results,
  .messenger-bottom-nav
) {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: var(--pc-bar-h) !important;
  min-height: var(--pc-bar-h) !important;
  max-height: var(--pc-bar-h) !important;
  margin: 0 !important;
  padding: 0 var(--pc-gutter) !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 4px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pc-bar-border) !important;
  border-radius: 0 !important;
  background: var(--pc-bar-bg) !important;
  color: var(--pc-bar-fg) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transform: none !important;
  z-index: 1000 !important;
}

/* The home screen keeps its dark look. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-initial {
  --pc-bar-fg: #eef2f8;
  --pc-hover: rgba(255, 255, 255, .08);
  background: rgba(7, 17, 31, .55) !important;
  border-bottom-color: rgba(255, 255, 255, .06) !important;
  box-shadow: none !important;
}

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(
  #results-footer-initial, #results-footer-results, #profile-footer-initial,
  #notifications-footer-initial, #saved-footer-results, #viewed-footer-results,
  #recommended-footer-results, #account-footer, #subaccounts-footer-initial,
  #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav
) :is(.footer-item, .messenger-bottom-nav > a, #toggle-map-btn) {
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  align-self: center !important;
  border-radius: 10px !important;
  color: var(--pc-bar-fg) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(
  #results-footer-initial, #results-footer-results, #profile-footer-initial,
  #notifications-footer-initial, #saved-footer-results, #viewed-footer-results,
  #recommended-footer-results, #account-footer, #subaccounts-footer-initial,
  #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav
) :is(.footer-item, .messenger-bottom-nav > a, #toggle-map-btn):hover {
  background: var(--pc-hover) !important;
}

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(
  #results-footer-initial, #results-footer-results, #profile-footer-initial,
  #notifications-footer-initial, #saved-footer-results, #viewed-footer-results,
  #recommended-footer-results, #account-footer, #subaccounts-footer-initial,
  #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav
) :is(.footer-item, .messenger-bottom-nav > a, #toggle-map-btn) :is(svg, .icon-wrapper) {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  color: inherit !important;
}

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(
  #results-footer-initial, #results-footer-results, #profile-footer-initial,
  #notifications-footer-initial, #saved-footer-results, #viewed-footer-results,
  #recommended-footer-results, #account-footer, #subaccounts-footer-initial,
  #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav
) :is(.footer-label, p, span:not(.filter-badge):not([class*="badge"]), #pc-weight) {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: inherit !important;
  white-space: nowrap;
}

/* Search: a pill button on the right instead of the raised circle. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is(.search-circle, #pc-weight) {
  position: static !important;
  order: 50;
  margin: 0 0 0 auto !important;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  align-self: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--pc-accent) !important;
  box-shadow: 0 4px 14px rgba(20, 115, 230, .28) !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.search-circle, #pc-weight) > :is(.footer-item, button, #pc-weight) {
  width: auto !important;
  height: 40px !important;
  aspect-ratio: auto !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  color: #fff !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.search-circle, #pc-weight) > .footer-item:hover { background: rgba(255,255,255,.12) !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.search-circle, #pc-weight) svg { width: 18px !important; height: 18px !important; }

/* "More" sits at the far right, after Search. On bars without a Search
 * button pc.js marks the right-hand item with .pc-push-right. */
/* v3: the old "More" item is replaced by the menu button at the far left. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is([data-open-menu], #toggle-more-btn):not(.pc-menu-btn) { display: none !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is(.pc-push-right, #pc-weight) { margin-left: auto !important; }

/* Brand added by pc.js as the first item of every bar. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is(.pc-brand, #pc-weight) {
  order: -1 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  margin: 0 18px 0 0 !important;
  padding: 0 !important;
  color: var(--pc-bar-fg) !important;
  text-decoration: none !important;
  background: none !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is(.pc-brand, #pc-weight) svg {
  width: 26px !important; height: 26px !important; flex: 0 0 26px; color: #12a8ff !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is(.pc-brand, #pc-weight) span {
  margin: 0 !important; font-size: 22px !important; font-weight: 800 !important;
  letter-spacing: -.02em; line-height: 1 !important; color: inherit !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > :is(.pc-brand, #pc-weight) small {
  margin: 6px 0 0 -6px !important; font-size: 13px !important; font-weight: 800 !important;
  line-height: 1 !important; color: #12a8ff !important;
}

/* Thin scroll-progress line along the bottom edge of the bar. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-results, #agentlisting-footer-results) .scroll-progress {
  top: auto !important;
  bottom: -1px !important;
  left: 0 !important;
}

/* ── 2. Room for the bar, and a centred desktop column ──────────────────── */

/* Search results: split view.
 * The map fills the left of the screen under the bar, the results run in a
 * single column on the right (a third of the width, at least 380px). pc.js
 * opens the map as soon as results are shown and keeps it open; both panes
 * scroll and size independently. */
html[data-device="pc"] {
  /* Very wide windows: the results page stops growing at 1820px and is
   * centred, so the map and the list keep their proportions. */
  --pc-app-max: 1820px;
  --pc-app-w: min(100vw, var(--pc-app-max));
  --pc-app-l: max(0px, calc((100vw - var(--pc-app-max)) / 2));
  --pc-list-w: clamp(380px, calc(var(--pc-app-w) / 3), 640px);
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content {
  position: absolute !important;
  top: 0 !important;
  left: max(0px, calc((100% - var(--pc-app-max)) / 2)) !important;
  width: min(100%, var(--pc-app-max)) !important;
  height: 100vh !important;
  height: 100dvh !important;
}
/* Homepage: the same 1820px limit, centred. */
html[data-device="pc"] .pc-home {
  max-width: var(--pc-app-max);
  margin-left: auto !important;
  margin-right: auto !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-initial,
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-results {
  left: var(--pc-app-l) !important;
  right: auto !important;
  width: var(--pc-app-w) !important;
}
@media (min-width: 1821px) {
  html[data-device="pc"], html[data-device="pc"] body { background: #dfe5eb; }
  html[data-device="pc"][data-theme="night"], html[data-device="pc"][data-theme="night"] body { background: #05080f; }
  html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #initial-content { background: #dfe5eb !important; }
  html[data-device="pc"][data-theme="night"] body #initial-content { background: #05080f !important; }
  html[data-device="pc"] .pc-home { box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 0 40px rgba(15, 23, 42, .10); }
  html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content { box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 0 40px rgba(15, 23, 42, .10); }
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content {
  background: #e9eef2;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content > #listings-container {
  display: block !important;
  position: absolute !important;
  top: var(--pc-bar-h) !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: var(--pc-list-w) !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 1px solid var(--pc-bar-border);
  background: #f4f6f9;
  overflow: hidden !important;
  z-index: 2;
}
html[data-device="pc"][data-theme="night"] #results-content > #listings-container { background: #0b1220; }

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #mapContainer {
  position: absolute !important;
  top: var(--pc-bar-h) !important;
  left: 0 !important;
  bottom: 0 !important;
  right: var(--pc-list-w) !important;
  width: auto !important;
  height: auto !important;
}

/* The list: one column of cards. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #listings {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
  height: 100% !important;
  box-sizing: border-box;
  padding: 0 18px 32px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #listings::-webkit-scrollbar { display: block; width: 10px; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #listings::-webkit-scrollbar-thumb { background: rgba(15,23,42,.18); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #listings > * {
  min-width: 0;
  flex: 0 0 auto;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* Count + Sort banner stays at the top of the list while it scrolls. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #listings > .total-listings-banner {
  position: sticky !important;
  top: 0;
  z-index: 3;
  margin: 0 -18px !important;
  width: calc(100% + 36px) !important;
  padding: 14px 18px 12px !important;
  box-sizing: border-box;
  background: #f4f6f9 !important;
  border-bottom: 1px solid var(--pc-bar-border);
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-device="pc"][data-theme="night"] #results-content #listings > .total-listings-banner { background: #0b1220 !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-content #listings > .total-listings-banner + * { margin-top: 4px !important; }

/* Cards: hover, and the card whose marker was clicked. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body .HomeCardContainer .Homecard {
  transition: box-shadow .18s ease, outline-color .18s ease;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body .HomeCardContainer .Homecard:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body .HomeCardContainer.yd-card-active .Homecard {
  outline: 2px solid #0f172a;
  outline-offset: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}

/* No List/Map switch on a computer: both are always on screen. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-results #toggle-map-btn { display: none !important; }

/* Marker preview card: centred over the map instead of the whole screen. */
html[data-device="pc"] .marker-popup {
  left: calc(var(--pc-app-l) + (var(--pc-app-w) - var(--pc-list-w)) / 2) !important;
}

/* Price markers: the desktop search-map.js draws price pills instead of
 * dots when at most 30 markers are on the map. */
html[data-device="pc"] .leaflet-marker-icon.yd-price-marker {
  overflow: visible !important;
}
html[data-device="pc"] .yd-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 2px solid #006aff;
  background: #ffffff;
  color: #0f172a;
  font: 800 12px/22px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
  cursor: pointer;
}
html[data-device="pc"] .yd-pill--rent { border-color: #e53935; }
html[data-device="pc"] .yd-pill--mixed { border-color: #7c3aed; }
html[data-device="pc"] .yd-price-marker:hover > .yd-pill,
html[data-device="pc"] .yd-marker-hot > .yd-pill {
  background: #1473e6;
  border-color: #1473e6;
  color: #ffffff;
}
html[data-device="pc"] .active-marker > .yd-pill {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
/* Dots: the hovered card's marker grows and gets a ring. */
html[data-device="pc"] .yd-marker-hot > div:not(.yd-pill) {
  transform: scale(1.5);
  box-shadow: 0 0 0 3px rgba(20, 115, 230, .35);
}

/* "Search as I move the map" switch and "Search this area" button (pc.js). */
html[data-device="pc"] .yd-map-search {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
html[data-device="pc"] .yd-map-search > * { pointer-events: auto; }
html[data-device="pc"] .yd-map-search label,
html[data-device="pc"] .yd-map-search button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
html[data-device="pc"] .yd-map-search input { width: 16px; height: 16px; margin: 0; accent-color: var(--pc-accent); }
html[data-device="pc"] .yd-map-search button { background: #0f172a; color: #ffffff; }
html[data-device="pc"] .yd-map-search button[hidden] { display: none; }

/* Saved / Viewed / Recommended / Alerts / Profile: #listings-container scrolls. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#saved-content, #viewed-content, #recommended-content, #notifications-content, #profile-content) #listings-container {
  width: 100% !important;
  max-width: none !important;
  padding: calc(var(--pc-bar-h) + 24px) var(--pc-gutter) 48px !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.saved-list, .viewed-list, .recommended-list) > * {
  min-width: 0;
  margin: 0 !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.saved-list, .viewed-list, .recommended-list) > :not(.HomeCardContainer) {
  grid-column: 1 / -1;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.saved-list, .viewed-list, .recommended-list) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#notifications-content, #profile-content) #listings-container > * {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#saved-content, #viewed-content, #recommended-content) :is(#savedMapContainer, #viewedMapContainer, #recommendedMapContainer) {
  top: var(--pc-bar-h) !important;
  height: calc(100% - var(--pc-bar-h)) !important;
}

/* Standalone pages: bar on top instead of bottom padding. */
html[data-device="pc"] body:has(:is(#profile-footer-initial, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav)):not(:has(#results-content)) {
  padding-top: var(--pc-bar-h) !important;
  padding-bottom: 32px !important;
}

/* Content pages (terms, contact, advertise …) reserve room at the bottom
 * for the mobile tab bar; on a computer the bar is at the top instead. Some
 * of these pages scroll inside an absolutely positioned .page box. */
html:root[data-device="pc"] body.app-content-page > .page {
  top: var(--pc-bar-h) !important;
  bottom: 0 !important;
  padding-bottom: 48px !important;
}

/* ── 3. Dialogs and sheets ──────────────────────────────────────────────── */

/* Sort / filter bottom sheets: a centred column instead of edge to edge. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(.sortSheet__panel, .filterSheet__panel) {
  left: 0 !important;
  right: 0 !important;
  width: min(560px, calc(100vw - 48px)) !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 20px 20px 0 0;
}


/* ── 4. Desktop affordances ────────────────────────────────────────────── */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(a, button, [role="button"], .Homecard) { cursor: pointer; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :focus-visible { outline: 3px solid rgba(20, 115, 230, .45); outline-offset: 2px; }

/* The results banner beside the map is the one listing count on a computer;
 * the map's own counter pill is not shown. */
html[data-device="pc"] .map-listing-counter { display: none !important; }

/* "Showing N of M listings in the map area. Show all results" */
html[data-device="pc"] #results-map-scope-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}
html[data-device="pc"] #results-map-scope-note a { font-weight: 700; white-space: nowrap; }

/* ── Desktop home page (v2): pc/partials/home.php ──────────────────────── */

/* #initial-content becomes a normal scrolling page under the top bar. The
 * mobile logo intro is not shown; the bar is visible straight away. */
html[data-device="pc"] body #initial-content {
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  background: #ffffff !important;
}
html[data-device="pc"] body #initial-content::before,
html[data-device="pc"] body #initial-content::after { display: none !important; }
html[data-device="pc"] body #initial-content > .loader-wrapper { display: none !important; }
html[data-device="pc"] body #initial-content:not(.initial-logo-revealed) #results-footer-initial {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html[data-device="pc"] body #initial-content #results-footer-initial {
  background: rgba(11, 27, 48, .92) !important;
}

html[data-device="pc"] .pc-home {
  flex: 0 0 auto;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}
html[data-device="pc"] .pc-home-hero {
  position: relative;
  z-index: 2;
  padding: calc(var(--pc-bar-h) + 88px) 24px 104px;
  background: #0f2744;
  color: #ffffff;
}
html[data-device="pc"] .pc-home-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
html[data-device="pc"] .pc-home-hero__bg::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -60px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: #12324f;
}
html[data-device="pc"] .pc-home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
html[data-device="pc"] .pc-home-hero__title {
  margin: 0;
  max-width: 760px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
html[data-device="pc"] .pc-home-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.5;
  color: #cfdcec;
}
html[data-device="pc"] .pc-home-search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
html[data-device="pc"] .pc-home-search__mode {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 10px;
  background: #eef2f7;
}
html[data-device="pc"] .pc-home-search__mode button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
html[data-device="pc"] .pc-home-search__mode button.is-on {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .15);
}
html[data-device="pc"] .pc-home-search__field {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 16px;
  border-radius: 10px;
}
html[data-device="pc"] .pc-home-search__field:focus-within { background: #f8fafc; }
html[data-device="pc"] .pc-home-search__label { font-size: 12px; font-weight: 700; color: #475569; }
html[data-device="pc"] .pc-home-search__field input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 2px 0 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #0f172a;
}
html[data-device="pc"] .pc-home-search__field input::placeholder { color: #64748b; }
html[data-device="pc"] .pc-home-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  z-index: 50;
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
html[data-device="pc"] .pc-home-suggest li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #0f172a;
}
html[data-device="pc"] .pc-home-suggest li:hover,
html[data-device="pc"] .pc-home-suggest li[aria-selected="true"] { background: #eef4fd; }
html[data-device="pc"] .pc-suggest__name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-device="pc"] .pc-suggest__name small { font-size: 13px; font-weight: 500; color: #64748b; }
html[data-device="pc"] .pc-suggest__count { font-size: 13px; font-weight: 600; color: #0b5fc2; white-space: nowrap; align-self: center; grid-row: span 2; }
html[data-device="pc"] .pc-suggest__meta { font-size: 13px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-device="pc"] .pc-home-search__msg { margin: -10px 0 0; min-height: 20px; font-size: 14px; color: #fde68a; }
html[data-device="pc"] .pc-home-search__go {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: #1473e6;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
html[data-device="pc"] .pc-home-search__go:hover { background: #0b5fc2; }
html[data-device="pc"] .pc-home-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: #cfdcec;
}
html[data-device="pc"] .pc-home-popular a { color: #ffffff; font-weight: 700; text-decoration: none; }
html[data-device="pc"] .pc-home-popular a:hover { text-decoration: underline; }

html[data-device="pc"] .pc-home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  box-sizing: border-box;
  width: 100%;
}
html[data-device="pc"] .pc-home-section h2 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}
html[data-device="pc"] .pc-home-regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
html[data-device="pc"] .pc-home-region {
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  padding: 16px 16px 10px;
  background: #ffffff;
}
html[data-device="pc"] .pc-home-region h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
html[data-device="pc"] .pc-home-region h3 a { color: #0f172a; text-decoration: none; }
html[data-device="pc"] .pc-home-region h3 a:hover { color: #1473e6; }
html[data-device="pc"] .pc-home-region ul { list-style: none; margin: 0; padding: 0; }
html[data-device="pc"] .pc-home-region li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
html[data-device="pc"] .pc-home-region li a:hover { background: #f1f5f9; }
html[data-device="pc"] .pc-home-region li small { font-size: 13px; font-weight: 500; color: #475569; white-space: nowrap; }

html[data-device="pc"] .pc-site-footer {
  background: #0b1220;
  color: #cbd5e1;
  font-size: 14px;
}
html[data-device="pc"] .pc-site-footer__cols {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
html[data-device="pc"] .pc-site-footer__logo { font-size: 22px; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; }
html[data-device="pc"] .pc-site-footer__logo span { font-size: 13px; color: #38bdf8; margin-left: 2px; }
html[data-device="pc"] .pc-site-footer__brand p { margin: 10px 0 0; max-width: 320px; line-height: 1.6; }
html[data-device="pc"] .pc-site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
html[data-device="pc"] .pc-site-footer h3 { margin: 0 0 2px; font-size: 14px; font-weight: 800; color: #ffffff; }
html[data-device="pc"] .pc-site-footer a,
html[data-device="pc"] .pc-site-footer__link {
  color: #cbd5e1;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
html[data-device="pc"] .pc-site-footer a:hover,
html[data-device="pc"] .pc-site-footer__link:hover { color: #ffffff; text-decoration: underline; }
html[data-device="pc"] .pc-site-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}
html[data-device="pc"] .pc-site-footer__bottom span { display: flex; gap: 18px; }

@media (max-width: 1100px) {
  html[data-device="pc"] .pc-home-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-device="pc"] .pc-home-hero__title { font-size: 42px; }
}

/* ── Sort (v2): a small menu under the Sort button (pc.js) ─────────────── */
html[data-device="pc"] .pc-sort-menu {
  position: fixed;
  z-index: 5000;
  min-width: 230px;
  padding: 6px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html[data-device="pc"] .pc-sort-menu button {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
html[data-device="pc"] .pc-sort-menu button:hover,
html[data-device="pc"] .pc-sort-menu button:focus-visible { background: #f1f5f9; outline: none; }
html[data-device="pc"] .pc-sort-menu button[aria-checked="true"] { font-weight: 700; }
html[data-device="pc"] .pc-sort-menu button[aria-checked="true"]::after { content: "✓"; color: #1473e6; font-weight: 800; }
html[data-device="pc"] #toggle-sort-btn .pc-sort-current { font-weight: 700; margin-left: -6px !important; }


/* Sorting reloads only the list: dim it while the new order loads. */
html[data-device="pc"] #listings-container.pc-list-busy #listings {
  opacity: .45;
  pointer-events: none;
  transition: opacity .15s ease;
}


/* ── v3: Menu button and side menu ────────────────────────────────────────
 * The "More" bottom sheet (#slidingMenu from slidingmenu.php) opens from the
 * left as a full-height menu. Same items and handlers as mobile; only its
 * position and layout change here. pc.js adds the button, the header row
 * and moves Sign out to the bottom.                                       */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > .pc-menu-btn {
  order: -2 !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 2px 0 -10px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--pc-bar-fg) !important;
  cursor: pointer;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > .pc-menu-btn:hover { background: var(--pc-hover) !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > .pc-menu-btn svg { width: 22px !important; height: 22px !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > .pc-menu-btn:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #menuOverlay {
  background: rgba(15, 23, 42, .38) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 2200 !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu {
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 340px !important;
  max-width: calc(100vw - 48px) !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #e3e8ef !important;
  border-radius: 0 !important;
  box-shadow: 8px 0 32px rgba(15, 23, 42, .22) !important;
  transform: translate3d(-104%, 0, 0) !important;
  transition: transform .22s ease !important;
  z-index: 2201 !important;
  touch-action: auto !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu.is-open { transform: translate3d(0, 0, 0) !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu :is(.moreSheet__grabber, .moreSheet__drag) { display: none !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu [data-more-drag] { user-select: auto !important; touch-action: auto !important; }

/* Header: logo and close, then the greeting or Sign in / Register */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .moreSheet__header { padding: 0 12px 10px 20px !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-top {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -12px 10px -20px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid #e3e8ef;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-top__brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit !important; text-decoration: none !important;
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-top__brand svg { width: 24px; height: 24px; color: #12a8ff; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-top__close {
  margin-left: auto; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-top__close:hover { background: rgba(15, 23, 42, .06); }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-top__close svg { width: 20px; height: 20px; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #user-info1 { min-height: 0 !important; margin: 0 !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #welcomeUser { margin: 4px 0 !important; font-size: 15px; font-weight: 700; }

/* Body: My Yondelo (signed in) first, then Settings and Language, then
 * Advertise / Contact and Help & Legal. Settings, Language and Help & Legal
 * open and close as on mobile. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .moreSheet__body { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; padding: 6px 12px 16px !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems { display: flex !important; flex-direction: column !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > br { display: none !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > #loggedinItems { order: 1; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > #settingsMenu { order: 2; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > #languageMenu { order: 3; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > li:not([id]) { order: 4; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > #helpLegalMenu { order: 5; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > :is(#settingsMenu) { border-top: 1px solid #eef2f7; padding-top: 14px !important; margin-top: 4px !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > li:not([id]) { margin-bottom: 14px !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > #loggedinItems + li:not([id]),
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #menuItems > #languageMenu { margin-bottom: 18px !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu #authBtns .sliding-actions-row { justify-content: flex-start !important; gap: 8px !important; }

/* Sign out, pinned to the bottom */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-foot { flex: 0 0 auto; padding: 8px 12px; border-top: 1px solid #e3e8ef; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-foot ul { list-style: none; margin: 0; padding: 0; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-foot li { margin: 0 !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-foot[hidden] { display: none !important; }

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .profile-link:hover,
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu :is(#languageToggle):hover { background: rgba(15, 23, 42, .05); border-radius: 10px; }

html[data-device="pc"][data-theme="night"] #slidingMenu { border-right-color: #1e293b !important; }
html[data-device="pc"][data-theme="night"] #slidingMenu :is(.pc-menu-top, .pc-menu-foot) { border-color: #1e293b; }
html[data-device="pc"][data-theme="night"] #slidingMenu #menuItems > #settingsMenu { border-top-color: #1e293b; }
html[data-device="pc"][data-theme="night"] #slidingMenu .pc-menu-top__close:hover { background: rgba(255, 255, 255, .08); }

/* ── Home: Recently viewed ───────────────────────────────────────────── */
html[data-device="pc"] :is(.pc-home-recent, .pc-home-recent__all)[hidden] { display: none !important; }
html[data-device="pc"] .pc-home-recent__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
html[data-device="pc"] .pc-home-recent__head h2 { margin: 0 !important; }
html[data-device="pc"] .pc-home-recent__all { font-size: 15px; font-weight: 700; color: #1473e6; text-decoration: none; }
html[data-device="pc"] .pc-home-recent__all:hover { text-decoration: underline; }
html[data-device="pc"] .pc-home-recent__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
html[data-device="pc"] .pc-recent-card {
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: #ffffff; color: #0f172a; text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 0 0 1px rgba(15, 23, 42, .05);
  transition: box-shadow .15s ease, transform .15s ease;
}
html[data-device="pc"] .pc-recent-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, .14); transform: translateY(-2px); }
html[data-device="pc"] .pc-recent-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dbe4ee; display: block; }
html[data-device="pc"] .pc-recent-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
html[data-device="pc"] .pc-recent-card__price { font-size: 18px; font-weight: 800; }
html[data-device="pc"] .pc-recent-card__specs { font-size: 14px; color: #1e293b; }
html[data-device="pc"] .pc-recent-card__addr { font-size: 14px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-device="pc"] .pc-recent-card__tag { font-size: 12px; font-weight: 700; color: #0b7a3e; margin-top: 2px; }
@media (max-width: 1100px) {
  html[data-device="pc"] .pc-home-recent__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  html[data-device="pc"] .pc-home-recent__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-foot .profile-link {
  display: flex !important; align-items: center !important; gap: 12px !important;
  height: 44px !important; padding: 0 10px !important; border-radius: 10px !important;
  font-size: 15px !important; font-weight: 600 !important; color: inherit !important; text-decoration: none !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu .pc-menu-foot .menu-icon { width: 20px !important; height: 20px !important; }

/* The logo is the way home: the bar's Home item is hidden (pc.js marks it). */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results, #profile-footer-initial, #notifications-footer-initial, #saved-footer-results, #viewed-footer-results, #recommended-footer-results, #account-footer, #subaccounts-footer-initial, #credits-footer-initial, #agentlisting-footer-results, .messenger-bottom-nav) > .pc-home-item { display: none !important; }

/* ── Home A: the living map ──────────────────────────────────────────────
 * The hero is a map of Hong Kong drawn from the district outlines
 * (partials/home.php). Land colour = homes per area, glow = number of homes.
 * Hover a district for its counts; click to search it (pc.js).          */
html[data-device="pc"] .pc-home-hero--map {
  --pc-hero-h: max(560px, calc(100vh - 170px));
  position: relative;
  min-height: var(--pc-hero-h);
  box-sizing: border-box;
  padding: calc(var(--pc-bar-h) + 44px) 0 76px max(48px, 5vw);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 58% 58%, #123458 0%, #071526 100%);
}
html[data-device="pc"] .pc-home-map {
  position: absolute;
  z-index: 0;
  right: max(8px, 1vw);
  top: calc(var(--pc-bar-h) + 4px);
  width: min(72vw, calc((var(--pc-hero-h) - var(--pc-bar-h) - 8px) * var(--pc-map-k, 1.39)));
  aspect-ratio: var(--pc-map-k, 1.39);
}
html[data-device="pc"] .pc-home-map__svg { display: block; width: 100%; height: 100%; overflow: visible; }
html[data-device="pc"] .pc-home-map__coast { fill: #1d4470; stroke: none; }
/* The land's own stroke, in the land colour, closes the small gaps between
 * neighbouring districts so no inner borders show. */
html[data-device="pc"] .pc-home-map__land { fill: #0f2742; stroke: none; }
html[data-device="pc"] .pc-home-map__glow { pointer-events: none; mix-blend-mode: screen; }
html[data-device="pc"] .pc-home-map__label {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(7, 21, 38, .55);
  color: #e2ecf7;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
html[data-device="pc"] .pc-home-map__label:hover,
html[data-device="pc"] .pc-home-map__label.is-on,
html[data-device="pc"] .pc-home-map__label:focus-visible { background: #ffffff; color: #0b1a2c; border-color: #ffffff; outline: none; }
html[data-device="pc"] .pc-home-map__card {
  position: absolute;
  z-index: 3;
  width: 268px;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transition: left .18s ease, top .18s ease;
}
html[data-device="pc"] .pc-home-map__card[hidden] { display: none; }
html[data-device="pc"] .pc-home-map__region { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
html[data-device="pc"] .pc-home-map__name { margin-top: 2px; font-size: 20px; font-weight: 800; }
html[data-device="pc"] .pc-home-map__name small { font-size: 14px; font-weight: 500; color: #64748b; }
html[data-device="pc"] .pc-home-map__counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
html[data-device="pc"] .pc-home-map__counts > button {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease;
}
html[data-device="pc"] .pc-home-map__counts > .is-sale:hover { border-color: #0b5fc2; }
html[data-device="pc"] .pc-home-map__counts > .is-rent:hover { border-color: #0b7a3e; }
html[data-device="pc"] .pc-home-map__counts .is-sale { background: #eef5ff; }
html[data-device="pc"] .pc-home-map__counts .is-rent { background: #eefaf3; }
html[data-device="pc"] .pc-home-map__counts strong { font-size: 18px; font-weight: 800; color: #0b5fc2; }
html[data-device="pc"] .pc-home-map__counts .is-rent strong { color: #0b7a3e; }
html[data-device="pc"] .pc-home-map__counts span { font-size: 12px; color: #475569; }

html[data-device="pc"] .pc-home-hero--map .pc-home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0;
  gap: 0;
  pointer-events: none;
}
html[data-device="pc"] .pc-home-hero--map .pc-home-hero__inner > * { pointer-events: auto; }
html[data-device="pc"] .pc-home-live {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(18, 168, 255, .35);
  background: rgba(18, 168, 255, .14);
  color: #9fd6ff;
  font-size: 13px;
  font-weight: 700;
}
html[data-device="pc"] .pc-home-live span { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
html[data-device="pc"] .pc-home-hero--map .pc-home-hero__title { margin-top: 18px; font-size: 56px; line-height: 1.02; letter-spacing: -.03em; }
html[data-device="pc"] .pc-home-hero--map .pc-home-hero__lead { margin-top: 16px; font-size: 18px; color: #b9c8db; max-width: 500px; }
html[data-device="pc"] .pc-home-hero--map .pc-home-search { margin-top: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
html[data-device="pc"] .pc-home-hero--map .pc-home-search__msg { margin: 8px 0 0; }
html[data-device="pc"] .pc-home-hero--map .pc-home-popular { margin-top: 8px; gap: 8px; }
html[data-device="pc"] .pc-home-hero--map .pc-home-popular a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #e2ecf7;
  font-size: 13px;
  font-weight: 600;
}
html[data-device="pc"] .pc-home-hero--map .pc-home-popular a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }


@media (max-width: 1180px) {
  html[data-device="pc"] .pc-home-map { width: min(82vw, calc((var(--pc-hero-h) - var(--pc-bar-h) - 120px) * var(--pc-map-k, 1.39))); opacity: .75; }
  html[data-device="pc"] .pc-home-hero--map .pc-home-hero__title { font-size: 46px; }
}

/* Today strip along the bottom of the hero (home_pulse.php) */
html[data-device="pc"] .pc-home-pulse {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 max(48px, 5vw);
  background: linear-gradient(0deg, rgba(4, 12, 22, .92), rgba(4, 12, 22, 0));
  font-size: 14px;
  color: #b9c8db;
}
html[data-device="pc"] .pc-home-pulse[hidden],
html[data-device="pc"] .pc-home-pulse [hidden] { display: none !important; }
html[data-device="pc"] .pc-home-pulse strong { color: #ffffff; font-size: 16px; font-variant-numeric: tabular-nums; }

/* Pick up where you left off: last search card + recently viewed */
html[data-device="pc"] .pc-home-recent__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); }
html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-device="pc"] .pc-home-last {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 228px;
  padding: 22px;
  box-sizing: border-box;
  border-radius: 18px;
  background: #0f2742;
  color: #ffffff;
}
html[data-device="pc"] .pc-home-last[hidden], html[data-device="pc"] .pc-home-last [hidden] { display: none !important; }
html[data-device="pc"] .pc-home-last__kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7cc4ff; }
html[data-device="pc"] .pc-home-last__title { margin-top: 8px; font-size: 22px; font-weight: 800; line-height: 1.2; }
html[data-device="pc"] .pc-home-last__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; color: #b9c8db; }
html[data-device="pc"] .pc-home-last__foot strong { color: #34d399; }
html[data-device="pc"] .pc-home-last__go {
  margin-left: auto;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 1100px) {
  html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__grid { grid-template-columns: 1fr; }
}

/* ── Home map: illustrated landmarks (partials/home-landmarks.php) ───────
 * Blue illustrations at their real places. Hover shows the district card,
 * click searches that district (pc.js), the same as the district names.  */
html[data-device="pc"] .pc-home-map__ripples path { fill: none; stroke: #2a5a8c; stroke-width: 1.8; stroke-linecap: round; opacity: .7; }
html[data-device="pc"] .pc-home-map__trees { opacity: .9; pointer-events: none; }
html[data-device="pc"] .pc-home-map__lm {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -60%);
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)) drop-shadow(0 0 8px rgba(63, 208, 255, .22));
}
html[data-device="pc"] .pc-home-map__lm svg { display: block; width: 100%; height: 100%; overflow: visible; }
html[data-device="pc"] .pc-home-map__lm:hover,
html[data-device="pc"] .pc-home-map__lm:focus-visible,
html[data-device="pc"] .pc-home-map__lm.is-on {
  transform: translate(-50%, -62%) scale(1.1);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)) drop-shadow(0 0 12px rgba(63, 208, 255, .65));
  outline: none;
}
/* District names stay on top of the pictures. */
html[data-device="pc"] .pc-home-map__label { z-index: 2; background: rgba(7, 21, 38, .8); }

@keyframes pcLmFerry { 0%, 100% { translate: -14px 6px; } 50% { translate: 14px -6px; } }
@keyframes pcLmPlane { 0% { translate: 0 0; scale: 1; opacity: 0; } 10% { opacity: 1; } 70% { opacity: 1; } 100% { translate: 150px -110px; scale: .75; opacity: 0; } }
@keyframes pcLmBob { 0%, 100% { translate: -7px 0; rotate: -2deg; } 50% { translate: 7px 0; rotate: 2deg; } }
@keyframes pcLmDolphin { 0%, 55%, 100% { translate: 0 14px; rotate: 0deg; opacity: 0; } 68% { translate: 4px -8px; rotate: -12deg; opacity: 1; } 84% { translate: 12px 2px; rotate: 14deg; opacity: 1; } 94% { opacity: 0; } }
html[data-device="pc"] .pc-lm-anim-ferry { animation: pcLmFerry 8s ease-in-out infinite; }
html[data-device="pc"] .pc-lm-anim-plane { animation: pcLmPlane 10s ease-in infinite; }
html[data-device="pc"] .pc-lm-anim-junk { animation: pcLmBob 9s ease-in-out infinite; }
html[data-device="pc"] .pc-lm-anim-dolphin { animation: pcLmDolphin 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html[data-device="pc"] :is(.pc-lm-anim-ferry, .pc-lm-anim-plane, .pc-lm-anim-junk, .pc-lm-anim-dolphin) { animation: none; opacity: 1; }
}

/* ── Listing details: desktop layout ─────────────────────────────────────
 * pc.js (ydPcLayoutDetails) arranges the mobile sections into:
 * photo mosaic · main column · side card with price and contact.
 * Everything is scoped to .pc-ld, which only exists on PC.               */
/* Not a bottom sheet: a full-height panel from the top of the window to the
 * bottom, centred over a dimmed page. It fades in instead of rising, and a
 * click on the dimmed sides (or Esc) closes it. */
html[data-device="pc"] body.details-modal-open #listingDetailsModal { align-items: stretch !important; cursor: pointer; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #listingDetailsModal > .modal-content,
html[data-device="pc"] body.details-modal-open #listingDetailsModal > .modal-content {
  width: min(1210px, calc(100vw - 96px)) !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  box-shadow: 0 0 60px rgba(2, 8, 23, .35) !important;
  transform: none !important;
  opacity: 0;
  transition: opacity .16s ease !important;
  cursor: auto;
}
html[data-device="pc"] body.details-modal-open #listingDetailsModal.is-details-sheet-open > .modal-content { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html[data-device="pc"] body #listingDetailsModal > .modal-content { transition: none !important; }
}
html[data-device="pc"] #listingDetailsModal #listing-details.pc-ld {
  padding: 24px 32px 40px !important;
  box-sizing: border-box;
}

/* Photo mosaic: one large photo and up to four small ones. */
html[data-device="pc"] #listingDetailsModal .pc-ld > .details-hero {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: transparent !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero-bottom-shape { display: none !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-container { height: 440px !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-wrapper {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100% !important;
  transform: none !important;
  transition: none !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide:first-child { grid-row: 1 / span 2; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide:nth-child(n+6) { display: none !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero[data-photos="1"] .swiper-wrapper { grid-template-columns: 1fr; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero[data-photos="2"] .swiper-wrapper { grid-template-columns: 2fr 1fr; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero[data-photos="2"] .swiper-slide:nth-child(2) { grid-row: 1 / span 2; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero[data-photos="3"] .swiper-wrapper { grid-template-columns: 2fr 1fr; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero[data-photos="4"] .swiper-wrapper { grid-template-columns: 2fr 1fr 1fr; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero[data-photos="4"] .swiper-slide:nth-child(4) { grid-column: 2 / span 2; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide :is(.detail-image-shell, img) {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide img {
  object-fit: cover !important;
  cursor: zoom-in;
  transition: transform .3s ease;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide:hover img { transform: scale(1.03); }
html[data-device="pc"] #listingDetailsModal .pc-ld #image-counter,
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero :is(.swiper-pagination, .swiper-button-next, .swiper-button-prev) { display: none !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld-allphotos {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-back-control { top: 14px !important; left: 14px !important; }

/* Columns */
html[data-device="pc"] #listingDetailsModal .pc-ld-cols {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-body { padding: 0 !important; margin: 0 !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-body > * { margin-left: 0 !important; margin-right: 0 !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-body > .modal-box:first-of-type { padding: 0 !important; margin-top: 0 !important; }
html[data-device="pc"] #listingDetailsModal #listing-details.pc-ld .details-property-title { font-size: 30px !important; line-height: 1.2 !important; letter-spacing: -.02em; }
html[data-device="pc"] #listingDetailsModal .pc-ld .displayAddr { font-size: 16px !important; }

/* Key facts: the info tiles as one grid */
html[data-device="pc"] #listingDetailsModal .pc-ld .elemental-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .elemental-row.full-width > div {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 !important;
  border: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .elemental-row.full-width > div p { margin: 0 !important; }

/* Section bar */
html[data-device="pc"] #listingDetailsModal .pc-ld-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 26px;
  margin: 18px 0 6px;
  padding: 0 4px;
  background: var(--details-bg, #f4f6f9);
  border-bottom: 1px solid #e3e8ef;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-nav__item {
  padding: 13px 0 11px;
  border: 0;
  background: none;
  color: #64748b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-nav__item:hover { color: #0f172a; }
html[data-device="pc"] #listingDetailsModal .pc-ld-nav__item.is-on { color: #0f172a; box-shadow: inset 0 -3px 0 #1473e6; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-body > :is(section, div, .pc-ld-pm) { scroll-margin-top: 60px; }

/* Price and market: Market Data beside Price History + Valuation */
html[data-device="pc"] #listingDetailsModal .pc-ld-pm { margin: 0 !important; padding: 0 !important; width: auto !important; box-sizing: border-box; }
html[data-device="pc"] #listingDetailsModal .pc-ld-pm table td:first-child { white-space: nowrap; padding-right: 14px !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld-pm.has-market {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-pm:not(.has-market) .pc-ld-pm__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld .pc-ld-pm > *,
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld .pc-ld-pm__side > * { margin: 0 0 16px !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld-pm.has-market .pc-ld-pm__side { display: flex; flex-direction: column; }

/* Neighbourhood: map left, tabs right */
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "accent accent" "title title" "map tabs" "map panel";
  grid-template-rows: auto auto auto 1fr;
  column-gap: 20px;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box > .yn-title { grid-area: title; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box:not(:has(> .yn-map)) { display: block !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box > .yn-map { grid-area: map; min-height: 380px; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box > .yn-map #modal-map { height: 100% !important; min-height: 380px; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box > :not(.yn-title):not(.yn-map):not(.yn-panel) { grid-area: tabs; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box > .yn-panel { grid-area: panel; min-width: 0; }

/* Side card: price, contact, actions; stays on screen */
html[data-device="pc"] #listingDetailsModal .pc-ld-aside {
  position: sticky;
  top: 0;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card {
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e8ef;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card .details-hero-bottom-price {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  padding: 0 0 14px !important;
  background: none !important;
  font-size: 30px !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card .modal-box-contact-bordered {
  margin: 0 !important;
  padding: 14px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #eef2f7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card .details-persistent-contact {
  position: static !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 0 0 !important;
  max-width: none !important;
  border: 0 !important;
  border-top: 1px solid #eef2f7 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card .details-persistent-contact__actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-device="pc"] #listingDetailsModal .pc-ld-card .details-persistent-contact__actions > * { flex: 1 1 auto; }

@media (max-width: 1100px) {
  html[data-device="pc"] #listingDetailsModal .pc-ld-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  html[data-device="pc"] #listingDetailsModal .pc-ld .elemental-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-device="pc"] #listingDetailsModal .pc-ld-pm.has-market { grid-template-columns: 1fr; }
}

/* Listing details: night theme */
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-nav { background: #000; border-bottom-color: #1f2937; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-nav__item { color: #94a3b8; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-nav__item:is(:hover, .is-on) { color: #f1f5f9; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-card { background: #0b1220; border-color: #1f2937; box-shadow: none; }

/* Listing details: white page */
html[data-device="pc"] body #listingDetailsModal > .modal-content,
html[data-device="pc"] #listingDetailsModal #listing-details.pc-ld,
html[data-device="pc"] #listingDetailsModal .pc-ld .details-body { background: #fff !important; }
html[data-theme="night"][data-device="pc"] body #listingDetailsModal > .modal-content,
html[data-theme="night"][data-device="pc"] #listingDetailsModal #listing-details.pc-ld,
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld .details-body { background: #000 !important; }

/* The contact card already lists every contact, so the extra contact footer is not shown. */
html[data-device="pc"] #listingDetailsModal .details-persistent-contact { display: none !important; }

/* One even gap between every section in the main column. */
html[data-device="pc"] #listingDetailsModal .pc-ld .details-body { display: flex !important; flex-direction: column; gap: 16px; }
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld .details-body > * { margin: 0 !important; }

html[data-device="pc"] #listingDetailsModal .pc-ld .details-body > .pc-ld-pm { padding-bottom: 0 !important; gap: 16px !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld-pm > *,
html[data-device="pc"] #listingDetailsModal .pc-ld-pm__side > * { margin-top: 0 !important; margin-bottom: 0 !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld-pm__side { gap: 16px; }

/* While the listing loads: the photo area already has the five-photo layout,
 * with grey placeholders in the four small spaces. */
html[data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide.pc-ld-ph {
  background: linear-gradient(90deg, #e8edf3 0%, #f3f6f9 50%, #e8edf3 100%);
  background-size: 200% 100%;
  animation: pcLdPh 1.2s ease-in-out infinite;
}
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld .details-hero .swiper-slide.pc-ld-ph {
  background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%); background-size: 200% 100%;
}
@keyframes pcLdPh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { html[data-device="pc"] #listingDetailsModal .swiper-slide.pc-ld-ph { animation: none; } }
html[data-device="pc"] #listingDetailsModal #listing-details.pc-ld > :not(.details-hero) { background-color: #fff !important; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal #listing-details.pc-ld > :not(.details-hero) { background-color: #000 !important; }

/* Neighbourhood: keep the blue title accent above the title, and a taller map. */
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box::before { grid-area: accent; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box::after { display: none !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .yn-box > .yn-panel:not(:has(*:not([hidden]))) { display: none; }
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .yn-box .modal-box-location-bordered.modal-box-location-map-only {
  height: 380px !important; min-height: 380px !important; margin: 0 !important;
}
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .yn-box .modal-box-location-bordered.modal-box-location-map-only #modal-map {
  height: 100% !important; min-height: 380px !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-nav { background: #fff !important; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-nav { background: #000 !important; }
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld-pm #price-history-table :is(td, th) {
  padding: 10px 8px !important; vertical-align: top; font-size: 13px !important; letter-spacing: 0 !important;
  font-family: inherit !important; font-variant-numeric: tabular-nums;
}
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld-pm #price-history-table td:nth-child(-n+2) { white-space: nowrap; }

/* Title and key-facts boxes sit straight on the white page (no grey panel). */
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld .details-body > .modal-box:not([class*="-bordered"]) {
  background: transparent !important; box-shadow: none !important; border: 0 !important;
}

/* Loading placeholder in the price card. */
html[data-device="pc"] #listingDetailsModal .pc-ld-card-ph { display: grid; gap: 10px; padding-top: 16px; margin-top: 12px; border-top: 1px solid #eef2f7; }
html[data-device="pc"] #listingDetailsModal .pc-ld-card-ph > span {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, #e8edf3 0%, #f3f6f9 50%, #e8edf3 100%); background-size: 200% 100%;
  animation: pcLdPh 1.2s ease-in-out infinite;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card-ph > span:nth-child(1) { width: 40%; }
html[data-device="pc"] #listingDetailsModal .pc-ld-card-ph > span:nth-child(3) { width: 70%; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-card-ph { border-top-color: #1f2937; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-card-ph > span { background: #1f2937; }

/* Full map and the photo/media viewer open across the listing panel only,
 * not the whole screen. Same width as the panel. */
html[data-device="pc"] body #full-map-modal#full-map-modal,
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #lightbox-modal,
html[data-device="pc"] body #lightbox-modal#lightbox-modal {
  top: 0 !important;
  bottom: 0 !important;
  left: calc((100vw - min(1210px, calc(100vw - 96px))) / 2) !important;
  right: auto !important;
  width: min(1210px, calc(100vw - 96px)) !important;
  max-width: none !important;
  height: auto !important;
}
/* The mobile sheet's grey seam above the content is not needed on PC. */
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld .details-body::before { display: none !important; }
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld section.pc-ld-pm > *,
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal #listing-details.pc-ld section.pc-ld-pm .pc-ld-pm__side > * { margin: 0 !important; }

/* Property media viewer: every photo is shown whole (no cropping), centred
 * in the frame both ways, whatever its shape. */
html[data-device="pc"] #lightbox-modal .lb-slide .lb-zoom-viewport { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; }
html[data-device="pc"] #lightbox-modal .lb-slide .lb-zoom-surface { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; display: block !important; }
html[data-device="pc"] #lightbox-modal .lb-slide .lb-zoom-surface img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  object-fit: contain !important; object-position: center center !important;
}

/* Homepage and results header: menu button and logo sit at the left edge
 * of the 1820px page (not centred on a narrower column). */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results) {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
/* Homepage: no Search button in the header (the page has its own search box). */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-initial > .search-circle { display: none !important; }

/* The side menu opens from the left edge of the page, not of the browser
 * window. It slides out from that edge: the part still left of the edge is
 * clipped while it moves, so it never shows in the grey side area of a very
 * wide window. Hidden completely while closed. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu {
  left: max(0px, calc((100% - var(--pc-app-max)) / 2)) !important;
  visibility: hidden;
  transform: translate3d(-104%, 0, 0) !important;
  clip-path: inset(0 -48px 0 104%);
  transition: transform .22s ease, clip-path .22s ease, visibility 0s linear .22s !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #slidingMenu.is-open {
  visibility: visible;
  transform: translate3d(0, 0, 0) !important;
  clip-path: inset(0 -48px 0 0);
  transition: transform .22s ease, clip-path .22s ease, visibility 0s linear 0s !important;
}

/* Homepage and results header: solid, without the see-through blur. The blur
 * makes the browser draw the header separately from the page, so while the
 * window is being resized the header could lag a frame behind the page and
 * look out of line. Same colours as before. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body :is(#results-footer-initial, #results-footer-results) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-initial { background: #0a1a2f !important; }
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #results-footer-results { background: #fff !important; }
html:root[data-device="pc"][data-theme="night"] body #results-footer-results { background: #0a101a !important; }

/* Homepage header: laid out in the same scrolling area as the page itself
 * (sticky at the top) instead of being pinned to the browser window. Both
 * are then centred by the same rule, so they cannot drift apart at any
 * window width (the window's scrollbar used to shift one but not the other
 * just as the window reached the 1820px page width). */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body #initial-content > #results-footer-initial {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  order: -1;
  flex: 0 0 var(--pc-bar-h) !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--pc-app-max) !important;
  margin: 0 auto calc(-1 * var(--pc-bar-h)) !important;
}

/* Homepage sections keep their white background at every window width; only
 * the area outside the 1820px page is grey. */
html[data-device="pc"] .pc-home { background: #fff; }


/* ── Listing details: the site header stays on the page underneath ─────
 * The mobile code hides the header while a listing is open. On PC it stays
 * where it is, under the dimmed overlay and the full-height listing panel. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme])) body.details-modal-open #listingDetailsModal { z-index: 1050 !important; }

/* ── Listing details: Features & Amenities as one row of chips ───────── */
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .modal-box-features-bordered .listing-type-checkboxes {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  max-width: none !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .modal-box-features-bordered .features-property-type-btn {
  width: auto !important;
  min-height: 0 !important;
  height: 40px !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 14px !important;
  border: 1px solid #d6dee8 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .modal-box-features-bordered .features-property-type-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  color: #1473e6 !important;
}
html[data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .modal-box-features-bordered .features-property-type-btn :is(p, span) {
  display: block !important;
  -webkit-line-clamp: unset !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: left !important;
}
html[data-theme="night"][data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .modal-box-features-bordered .features-property-type-btn {
  background: #0f172a !important; border-color: #1f2937 !important; color: #e2e8f0 !important;
}
html[data-theme="night"][data-device="pc"] body #listingDetailsModal#listingDetailsModal .pc-ld .modal-box-features-bordered .features-property-type-btn svg { color: #60a5fa !important; }

/* ── Listing details: Same or similar listings as agency tiles ───────── */
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__heading { justify-content: space-between; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__count { background: transparent !important; padding: 0 !important; color: #475569 !important; font-size: 14px !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__note { font-size: 14px !important; margin: 0 0 14px !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__row,
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__row:last-child {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e3e8ef !important;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__row[hidden] { display: flex !important; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__row:hover { border-color: #c9d3df !important; box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__icon {
  display: grid !important;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--pc-ag-bg, #1473e6) !important;
  color: #ffffff !important;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__name { flex: none; font-size: 14px; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__link { min-height: 0; font-size: 13px; }
/* The whole tile opens the listing. */
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__more { display: none !important; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__row { background: #0b1220; border-color: #1f2937 !important; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__count { color: #94a3b8 !important; }
@media (max-width: 1100px) {
  html[data-device="pc"] #listingDetailsModal .pc-ld .details-also-listed__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Listing details: price box in the side card ─────────────────────── */
html[data-device="pc"] #listingDetailsModal .pc-ld-card .details-hero-bottom-price #modal-price {
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  line-height: 1.15 !important;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-card .pc-ld-ppsf {
  margin-bottom: 14px !important;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}
html[data-device="pc"] #listingDetailsModal .pc-ld-ppsf:empty { display: none; }
html[data-theme="night"][data-device="pc"] #listingDetailsModal .pc-ld-ppsf { color: #94a3b8; }
html[data-device="pc"] #listingDetailsModal .pc-ld-card .details-hero-bottom-price {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 16px !important;
}


/* Homepage location input: remove the blue focus box. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme]))
body #pc-home-loc:focus {
  outline: none;
  box-shadow: none;
}


/* Header brand: remove click/focus box. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme]))
body a.pc-brand:is(:focus, :active) {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Retain a focus indicator for keyboard navigation. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme]))
body a.pc-brand:focus-visible {
  outline: 2px solid var(--pc-accent, #1473e6) !important;
  outline-offset: 4px;
}



/* Hide the legacy Home button before the PC logo is inserted. */
html:root[data-device="pc"]:is([data-theme], :not([data-theme]))
body :is(#results-footer-initial, #results-footer-results)
> .footer-item:has([data-i18n="home"]) {
  display: none !important;
}


/* Compact last search + four recently viewed cards. */
html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 4fr);
  gap: 14px;
}

html[data-device="pc"] .pc-home-recent .pc-home-recent__list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

html[data-device="pc"] .pc-home-last {
  min-width: 0;
  min-height: 200px;
  padding: 16px;
  border-radius: 14px;
}

html[data-device="pc"] .pc-home-last__title {
  font-size: 18px;
  overflow-wrap: anywhere;
}

html[data-device="pc"] .pc-home-last__foot {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

html[data-device="pc"] .pc-recent-card {
  min-width: 0;
  border-radius: 12px;
}

html[data-device="pc"] .pc-recent-card img {
  aspect-ratio: 3 / 2;
}

html[data-device="pc"] .pc-recent-card__body {
  padding: 10px;
}

html[data-device="pc"] .pc-recent-card__price {
  font-size: 16px;
}

html[data-device="pc"] :is(
  .pc-recent-card__specs,
  .pc-recent-card__addr
) {
  font-size: 12px;
}

/* Stack the last-search card on narrower screens. */
@media (max-width: 1100px) {
  html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__grid {
    grid-template-columns: 1fr;
  }

  html[data-device="pc"] .pc-home-last {
    min-height: 140px;
  }
}

@media (max-width: 820px) {
  html[data-device="pc"] .pc-home-recent .pc-home-recent__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Last-search card + four property cards in one horizontal row. */
html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 4fr);
  gap: 12px;
}

html[data-device="pc"] .pc-home-recent .pc-home-recent__list,
html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

/* Smaller screens: last search above the property cards. */
@media (max-width: 1100px) {
  html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html[data-device="pc"] .pc-home-recent .pc-home-recent__list,
  html[data-device="pc"] .pc-home-recent.has-last .pc-home-recent__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}