/* Habitas Rent Listings: "Properties for Rent in Dubai" page.
   Everything is scoped under .hrl so it can't affect the rest of the site. */

.hrl {
  --hrl-ink: #1c1917;
  --hrl-text: #3f3a36;
  --hrl-muted: #78716c;
  --hrl-line: #e7e2dc;
  --hrl-soft: #f7f4ef;
  --hrl-cream: #fbf8f3;
  --hrl-gold: #c9a96e;
  --hrl-gold-dark: #a9894f;
  --hrl-espresso: #3b2a20;
  --hrl-wa: #1faa59;
  --hrl-radius: 12px;
  --hrl-nav: 80px; /* height of the theme's fixed top menu */

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--hrl-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hrl *, .hrl *::before, .hrl *::after { box-sizing: border-box; }
.hrl h1, .hrl h2, .hrl h3, .hrl p, .hrl ul { margin: 0; padding: 0; }
.hrl ul { list-style: none; }
:where(.hrl) a { color: inherit; text-decoration: none; }
:where(.hrl) :is(button, select, input) { font: inherit; color: inherit; }
.hrl img { display: block; max-width: 100%; }
.hrl [hidden] { display: none !important; }
.hrl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hrl-ico { width: 18px; height: 18px; flex: none; }

.hrl-wrap { width: min(1296px, 100% - 48px); margin-inline: auto; }

/* ---------- Page heading ---------- */
.hrl-hero {
  padding: calc(var(--hrl-nav) + 40px) 0 36px;
  background-color: var(--hrl-cream);
  background-image:
    linear-gradient(var(--hrl-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hrl-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  border-bottom: 1px solid var(--hrl-line);
  position: relative;
}
.hrl-hero::after { /* fade the grid out towards the bottom, like the reference */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251, 248, 243, .55) 0%, var(--hrl-cream) 92%);
  pointer-events: none;
}
.hrl-hero .hrl-wrap { position: relative; z-index: 1; }
.hrl-crumbs { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--hrl-muted); }
.hrl-crumbs a:hover { color: var(--hrl-ink); }
.hrl-crumbs .hrl-ico { width: 14px; height: 14px; }
.hrl-crumbs [aria-current] { color: var(--hrl-ink); }
.hrl-h1 {
  margin-top: 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hrl-ink);
}

/* ---------- Filter bar (sticks under the site menu) ---------- */
.hrl-bar {
  position: sticky;
  top: var(--hrl-nav);
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--hrl-line);
  box-shadow: 0 6px 18px rgba(28, 25, 23, .05);
}
.hrl-filters { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.hrl-search {
  flex: 1 1 260px; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  border: 1px solid var(--hrl-line); border-radius: 10px;
  color: var(--hrl-muted);
  transition: border-color .15s, box-shadow .15s;
}
.hrl-search:focus-within { border-color: var(--hrl-gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .2); }
.hrl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--hrl-ink); font-size: 15px; }
.hrl-search input::placeholder { color: var(--hrl-muted); }

.hrl-seg {
  display: inline-flex; padding: 4px; gap: 2px; height: 48px;
  border: 1px solid var(--hrl-line); border-radius: 10px; flex: none;
}
.hrl-seg a, .hrl-seg span { display: inline-flex; align-items: center; padding: 0 16px; border-radius: 7px; font-size: 14px; font-weight: 500; }
.hrl-seg a { color: var(--hrl-text); }
.hrl-seg a:hover { background: var(--hrl-soft); }
.hrl-seg .is-active { background: var(--hrl-espresso); color: #fff; }

.hrl-select { position: relative; flex: none; }
.hrl-select select {
  appearance: none; -webkit-appearance: none;
  height: 48px; min-width: 132px; padding: 0 38px 0 14px;
  border: 1px solid var(--hrl-line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231c1917' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 14px; color: var(--hrl-ink); cursor: pointer;
}
.hrl-select select:focus { outline: 0; border-color: var(--hrl-gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .2); }
.hrl-select select.is-set { border-color: var(--hrl-gold); background-color: #fffaf1; }

.hrl-btn-search {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--hrl-gold); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .15s;
}
.hrl-btn-search:hover { background: var(--hrl-gold-dark); }
.hrl-filter-toggle { display: none; } /* phones only, see the 760px rules */

/* ---------- Filter dropdowns (panels like the reference design) ---------- */
.hrl-dd { position: relative; flex: none; }
.hrl-dd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 48px; min-width: 132px; padding: 0 14px;
  border: 1px solid var(--hrl-line); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 500; color: var(--hrl-ink); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.hrl-dd-btn:hover { border-color: #cfc6bb; }
.hrl-dd-btn.is-set { border-color: var(--hrl-gold); background: #fffaf1; }
.hrl-dd.is-open .hrl-dd-btn { background: var(--hrl-espresso); border-color: var(--hrl-espresso); color: #fff; }
.hrl-dd-btn > .hrl-ico:first-child { width: 16px; height: 16px; margin-right: -2px; }
.hrl-chev { width: 16px; height: 16px; transition: transform .2s; }
.hrl-dd.is-open .hrl-chev { transform: rotate(180deg); }

.hrl-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  padding: 18px; background: #fff;
  border: 1px solid var(--hrl-line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(28, 25, 23, .14);
}
.hrl-pop-type, .hrl-pop-price { width: 352px; }
.hrl-pop-more { width: 360px; left: auto; right: 0; }
.hrl-pop-chips { width: max-content; max-width: 440px; padding: 14px; }
.hrl-pop-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hrl-muted); margin-bottom: 14px; }
.hrl-pop > * + .hrl-pop-title { margin-top: 20px; }
.hrl-pop-note { font-size: 13px; color: var(--hrl-muted); margin-top: 12px; }
.hrl-pop-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hrl-line); }
.hrl-btn-ghost, .hrl-btn-dark { height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.hrl-btn-ghost { background: #fff; border: 1px solid var(--hrl-line); color: var(--hrl-ink); }
.hrl-btn-ghost:hover { border-color: var(--hrl-ink); }
.hrl-btn-dark { background: var(--hrl-espresso); border: 1px solid var(--hrl-espresso); color: #fff; }
.hrl-btn-dark:hover { background: #2a1d16; }

.hrl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hrl-line); margin-bottom: 14px; }
.hrl-tabs button {
  padding: 6px 16px 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; font-size: 14px; color: var(--hrl-muted); cursor: pointer;
}
.hrl-tabs button.is-active { color: var(--hrl-ink); font-weight: 500; border-bottom-color: var(--hrl-ink); }
.hrl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hrl-opt {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 40px; padding: 0 12px; border: 1px solid var(--hrl-line); border-radius: 9px;
  font-size: 14px; color: var(--hrl-text); cursor: pointer;
}
.hrl-opt:hover { border-color: #cfc6bb; }
.hrl-opt input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 16px; height: 16px; border: 1.5px solid #c8c2bb; border-radius: 50%;
  display: grid; place-items: center; cursor: inherit;
}
.hrl-opt input:checked { border-color: var(--hrl-espresso); }
.hrl-opt input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hrl-espresso); }
.hrl-opt:has(input:checked) { border-color: var(--hrl-espresso); background: #faf7f3; color: var(--hrl-ink); }
.hrl-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrl-opt.is-empty { opacity: .45; cursor: not-allowed; }

.hrl-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.hrl-chipbtn {
  height: 38px; padding: 0 14px; border: 1px solid var(--hrl-line); border-radius: 9px;
  background: #fff; font-size: 14px; color: var(--hrl-text); cursor: pointer;
}
.hrl-chipbtn:hover { border-color: #cfc6bb; }
.hrl-chipbtn.is-active { background: var(--hrl-espresso); border-color: var(--hrl-espresso); color: #fff; font-weight: 600; }

.hrl-range { position: relative; height: 24px; margin: 2px 10px 20px; }
.hrl-range-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--hrl-line); }
.hrl-range-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--hrl-espresso); }
.hrl-range input[type="range"] {
  position: absolute; top: 0; left: -10px; width: calc(100% + 20px); height: 24px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.hrl-range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.hrl-range input[type="range"]::-moz-range-track { background: none; }
.hrl-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1.5px solid #bdb5ac; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.hrl-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid #bdb5ac; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.hrl-minmax { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hrl-minmax label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hrl-muted); }
.hrl-minmax input {
  height: 44px; padding: 0 12px; width: 100%; border: 1px solid var(--hrl-line); border-radius: 9px;
  background: #fff; font-size: 15px; color: var(--hrl-ink); -moz-appearance: textfield;
}
.hrl-minmax input:focus { outline: 0; border-color: var(--hrl-gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .2); }
.hrl-minmax input::-webkit-outer-spin-button, .hrl-minmax input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Sort dropdown */
.hrl-dd-sort .hrl-dd-btn { min-width: 190px; }
.hrl-pop-list { left: auto; right: 0; width: 240px; padding: 8px; }
.hrl-listopt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; font-size: 14px; color: var(--hrl-text); text-align: left; cursor: pointer;
}
.hrl-listopt:hover { background: var(--hrl-soft); }
.hrl-listopt.is-active { color: var(--hrl-ink); font-weight: 600; }
.hrl-listopt svg { width: 16px; height: 16px; flex: none; color: var(--hrl-espresso); opacity: 0; }
.hrl-listopt.is-active svg { opacity: 1; }

/* Area suggestions under the search box */
.hrl-search { position: relative; }
.hrl-suggest { display: block; left: -1px; right: -1px; width: auto; padding: 8px; max-height: 420px; overflow: auto; cursor: default; }
.hrl-suggest .hrl-pop-title { margin: 8px 10px; }
.hrl-suggest-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px;
  background: none; font-size: 14px; color: var(--hrl-text); text-align: left; cursor: pointer;
}
.hrl-suggest-opt:hover, .hrl-suggest-opt.is-active { background: var(--hrl-soft); }
.hrl-suggest-opt .hrl-ico { width: 16px; height: 16px; color: var(--hrl-muted); }
.hrl-suggest-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hrl-ink); }
.hrl-suggest-opt strong { font-weight: 600; }
.hrl-suggest-opt em { flex: none; font-style: normal; font-size: 12px; color: var(--hrl-muted); }

/* ---------- Layout ---------- */
.hrl-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding: 26px 0 72px; }

.hrl-resultsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.hrl-count { color: var(--hrl-text); font-size: 15px; }
.hrl-resultsbar-right { display: flex; align-items: center; gap: 10px; }
.hrl-viewtoggle { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--hrl-line); border-radius: 10px; height: 48px; }
.hrl-viewtoggle button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
  border: 0; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--hrl-text);
}
.hrl-viewtoggle button .hrl-ico { width: 16px; height: 16px; }
.hrl-viewtoggle button:hover { background: var(--hrl-soft); }
.hrl-viewtoggle button.is-active { background: var(--hrl-espresso); color: #fff; }
.hrl-sort select { min-width: 190px; }

/* ---------- Listing card ---------- */
.hrl-list { display: flex; flex-direction: column; gap: 22px; }
.hrl-card {
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  border: 1px solid var(--hrl-line); border-radius: var(--hrl-radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.hrl-card:hover { box-shadow: 0 14px 34px rgba(28, 25, 23, .08); border-color: #ddd5cb; }

.hrl-media { position: relative; background: var(--hrl-soft); min-height: 290px; overflow: hidden; }
.hrl-slides, .hrl-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hrl-slide { object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.hrl-slide.is-active { opacity: 1; }
.hrl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--hrl-ink);
  cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.hrl-arrow .hrl-ico { width: 16px; height: 16px; }
.hrl-arrow-prev { left: 12px; }
.hrl-arrow-next { right: 12px; }
.hrl-media:hover .hrl-arrow, .hrl-arrow:focus-visible { opacity: 1; }
.hrl-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; }
.hrl-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.hrl-dot.is-active { background: #fff; }
.hrl-fav {
  position: absolute; top: 14px; left: 14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: #fff; color: var(--hrl-ink); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.hrl-fav[aria-pressed="true"] { color: #c2410c; }
.hrl-fav[aria-pressed="true"] path { fill: currentColor; }
.hrl-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.hrl-badge img { width: 58px; height: auto; }

.hrl-info { display: flex; flex-direction: column; min-width: 0; }
.hrl-info-main { padding: 20px 22px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hrl-price { display: flex; align-items: baseline; gap: 6px; color: var(--hrl-muted); font-size: 15px; }
.hrl-price strong { color: var(--hrl-ink); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.hrl-specs { display: flex; flex-wrap: wrap; gap: 16px; color: var(--hrl-text); font-size: 15px; }
.hrl-specs li { display: inline-flex; align-items: center; gap: 6px; }
.hrl-specs .hrl-ico { width: 17px; height: 17px; color: var(--hrl-muted); }
.hrl-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--hrl-ink); margin-top: 2px; }
.hrl-title a:hover { color: var(--hrl-gold-dark); }
.hrl-subtitle { color: var(--hrl-muted); font-size: 15px; }
.hrl-loc { display: flex; align-items: flex-start; gap: 6px; color: var(--hrl-text); font-size: 15px; }
.hrl-loc .hrl-ico { margin-top: 2px; color: var(--hrl-muted); }
.hrl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.hrl-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; background: var(--hrl-soft); color: var(--hrl-text); font-size: 13px; }
.hrl-chip-gold { background: #f6eedd; color: #7a5c27; }

.hrl-agent {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-top: 1px solid var(--hrl-line); background: #fcfbf9;
}
.hrl-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.hrl-agent-name { display: flex; flex-direction: column; min-width: 0; margin-right: auto; font-size: 13px; line-height: 1.3; }
.hrl-agent-name strong { font-weight: 600; color: var(--hrl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrl-agent-name span { color: var(--hrl-muted); }
.hrl-actions { display: flex; gap: 8px; flex: none; }
.hrl-act {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--hrl-line); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--hrl-ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hrl-act .hrl-ico { width: 16px; height: 16px; }
.hrl-act:hover { border-color: var(--hrl-gold); background: #fffaf1; }
.hrl-act-wa { color: var(--hrl-wa); border-color: #bfe6cf; }
.hrl-act-wa:hover { border-color: var(--hrl-wa); background: #f1fbf5; }

.hrl-more { display: flex; justify-content: center; margin-top: 28px; }
.hrl-btn-outline {
  height: 48px; padding: 0 26px; border-radius: 10px;
  border: 1px solid var(--hrl-ink); background: #fff; font-weight: 500; cursor: pointer;
}
.hrl-btn-outline:hover { background: var(--hrl-ink); color: #fff; }
.hrl-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--hrl-line); border-radius: var(--hrl-radius); color: var(--hrl-muted); }
.hrl-empty p { margin-bottom: 14px; }
.hrl-empty a { color: var(--hrl-gold-dark); text-decoration: underline; }

/* ---------- Map view ---------- */
.hrl-map { height: 680px; border-radius: var(--hrl-radius); overflow: hidden; border: 1px solid var(--hrl-line); background: var(--hrl-soft); }
.hrl-pin {
  padding: 5px 9px; border-radius: 8px; background: var(--hrl-espresso); color: #fff;
  font: 600 12px/1 "Inter", sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transform: translate(-50%, -100%); display: inline-block;
}
.hrl-pin.is-active { background: var(--hrl-gold); }
.hrl-popup { width: 220px; font-family: "Inter", sans-serif; }
.hrl-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.hrl-popup strong { display: block; font-size: 15px; }
.hrl-popup span { display: block; color: var(--hrl-muted); font-size: 13px; margin: 2px 0 8px; }
.hrl-popup button { border: 0; background: var(--hrl-gold); color: #fff; border-radius: 7px; padding: 7px 12px; font-weight: 600; cursor: pointer; }

/* ---------- Sidebar ---------- */
.hrl-side { position: sticky; top: calc(var(--hrl-nav) + 96px); display: flex; flex-direction: column; gap: 18px; }
.hrl-box { border: 1px solid var(--hrl-line); border-radius: var(--hrl-radius); padding: 18px 20px; background: #fff; }
.hrl-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--hrl-ink); }
.hrl-box li + li { margin-top: 9px; }
.hrl-box a { font-size: 14px; color: var(--hrl-text); }
.hrl-box a:hover { color: var(--hrl-gold-dark); text-decoration: underline; }
.hrl-box-dark { background: var(--hrl-espresso); border-color: var(--hrl-espresso); color: #f3ece2; }
.hrl-box-dark h3 { color: #fff; }
.hrl-box-dark p { font-size: 14px; line-height: 1.55; color: #e3d8ca; margin-bottom: 16px; }
.hrl-btn-light {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 9px;
  background: #fff; color: var(--hrl-ink) !important; font-size: 14px; font-weight: 600;
}
.hrl-btn-light:hover { background: var(--hrl-gold); color: #fff !important; text-decoration: none !important; }

/* ---------- Details popup ---------- */
.hrl-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; }
.hrl-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 13, .6); }
.hrl-modal-panel {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.hrl-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.hrl-gallery { position: relative; aspect-ratio: 16 / 9; background: var(--hrl-soft); }
.hrl-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hrl-gallery .hrl-arrow { opacity: 1; width: 42px; height: 42px; }
.hrl-gallery-count { position: absolute; bottom: 14px; right: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }
.hrl-thumbs { display: flex; gap: 8px; padding: 10px 24px 0; overflow-x: auto; }
.hrl-thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.hrl-thumbs button.is-active { border-color: var(--hrl-gold); opacity: 1; }
.hrl-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hrl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 22px 24px 28px; }
.hrl-detail h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 8px 0 6px; }
.hrl-detail .hrl-specs { margin: 12px 0 18px; }
.hrl-desc { color: var(--hrl-text); font-size: 15px; line-height: 1.75; white-space: pre-line; }
.hrl-detail-side { display: flex; flex-direction: column; gap: 12px; }
.hrl-detail-agent { border: 1px solid var(--hrl-line); border-radius: var(--hrl-radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hrl-detail-agent .hrl-act { justify-content: center; height: 44px; }
.hrl-facts { border: 1px solid var(--hrl-line); border-radius: var(--hrl-radius); padding: 14px 16px; font-size: 14px; }
.hrl-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.hrl-facts div + div { border-top: 1px solid var(--hrl-line); }
.hrl-facts dt { color: var(--hrl-muted); }
.hrl-facts dd { margin: 0; font-weight: 500; text-align: right; }
body.hrl-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hrl-filters { flex-wrap: wrap; }
  .hrl-search { flex-basis: 100%; }
  .hrl-select { flex: 1 1 120px; }
  .hrl-select select { width: 100%; min-width: 0; }
  .hrl-dd { flex: 1 1 120px; }
  .hrl-dd-btn { width: 100%; min-width: 0; }
  .hrl-sort { flex: none; }
  .hrl-sort select { min-width: 170px; }
}
@media (max-width: 1024px) {
  .hrl-body { grid-template-columns: minmax(0, 1fr); }
  .hrl-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hrl-wrap { width: calc(100% - 32px); }
  .hrl-hero { padding: calc(var(--hrl-nav) + 24px) 0 24px; background-size: 48px 48px; }
  .hrl-h1 { margin-top: 14px; }
  .hrl-bar { position: static; }
  .hrl-filters { gap: 8px; padding: 12px 0; }
  .hrl-search { flex: 1 1 0; order: 0; }
  .hrl-filter-toggle {
    order: 1; flex: none; display: inline-flex; align-items: center; gap: 6px;
    height: 48px; padding: 0 14px; border: 1px solid var(--hrl-line); border-radius: 10px;
    background: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
  }
  .hrl-filter-toggle[aria-expanded="true"] { border-color: var(--hrl-gold); background: #fffaf1; }
  .hrl-btn-search { order: 2; width: 48px; padding: 0; }
  .hrl-btn-search span { display: none; }
  .hrl-filters .hrl-seg, .hrl-filters .hrl-dd { display: none; order: 3; }
  .hrl-filters.is-open .hrl-seg { display: inline-flex; flex: 1 1 100%; }
  .hrl-seg a, .hrl-seg span { flex: 1; justify-content: center; }
  .hrl-filters.is-open .hrl-dd { display: block; flex: 1 1 calc(50% - 4px); }
  .hrl-pop, .hrl-pop-more, .hrl-pop-chips {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto;
    width: auto; max-width: none; max-height: 78vh; overflow: auto; z-index: 100001;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  }
  body.hrl-pop-open #pulse-chat-button-wrapper { display: none !important; }
  .hrl-pop.hrl-suggest { /* stays under the box on phones, so the keyboard doesn't cover it */
    position: absolute; top: calc(100% + 8px); bottom: auto; left: -1px; right: auto;
    width: calc(100vw - 32px); max-height: 50vh; z-index: 60; box-shadow: 0 18px 44px rgba(28, 25, 23, .14);
  }
  .hrl-sort .hrl-dd-btn { width: 100%; min-width: 0; }
  .hrl-resultsbar { flex-wrap: wrap; }
  .hrl-resultsbar-right { width: 100%; }
  .hrl-sort { flex: 1; }
  .hrl-sort select { width: 100%; min-width: 0; }
  .hrl-card { grid-template-columns: 1fr; }
  .hrl-media { min-height: 0; aspect-ratio: 4 / 3; }
  .hrl-arrow { opacity: 1; }
  .hrl-info-main { padding: 16px; }
  .hrl-price strong { font-size: 23px; }
  .hrl-agent { flex-wrap: wrap; padding: 12px 16px; }
  .hrl-actions { width: 100%; }
  .hrl-act { flex: 1; justify-content: center; padding: 0 8px; }
  .hrl-side { grid-template-columns: 1fr; }
  .hrl-map { height: 520px; }
  .hrl-modal { padding: 0; }
  .hrl-modal-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .hrl-detail { grid-template-columns: 1fr; padding: 18px 16px 24px; }
  .hrl-thumbs { padding: 10px 16px 0; }
}