/* Rental Hub — /rent/browse (Luxury Dark & Gold) */

.rent-hub-body {
  background: var(--bg-page, #090a0f);
}

.rh-page {
  --rh-bg: #090a0f;
  --rh-panel: #11131c;
  --rh-panel-2: #161928;
  --rh-line: var(--line, rgba(255, 255, 255, 0.08));
  --rh-muted: var(--muted, #9ba0b4);
  --rh-text: var(--ink, #f4f5f8);
  --rh-primary: var(--primary, #b88628);
  --rh-primary-2: var(--primary-2, #c99b3b);
  color: var(--rh-text);
  background: var(--bg-page, #090a0f);
}

.rh-page a {
  color: inherit;
}

.rh-section {
  padding: 56px 0;
}

.rh-section-head {
  margin-bottom: 28px;
}

.rh-section-head h2,
.rh-row-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  color: #ffffff;
}

.rh-section-head p,
.rh-row-head p {
  margin: 0;
  color: var(--rh-muted);
  font-size: 15px;
  line-height: 1.5;
}

.rh-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rh-row-head a {
  color: var(--rh-primary-2);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.rh-row-head a:hover {
  text-decoration: underline;
}

/* —— Hero —— */
.rh-hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(900px 420px at 8% -20%, rgba(184, 134, 40, 0.15), transparent 58%),
    radial-gradient(700px 380px at 95% 10%, rgba(201, 155, 59, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(184, 134, 40, 0.08) 0%, #090a0f 75%);
}

.rh-hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.rh-hero-main h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.rh-hero-main > p {
  margin: 0 0 26px;
  max-width: 520px;
  color: var(--rh-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rh-search-card {
  background: #11131c;
  border-radius: 18px;
  padding: 10px 12px 12px;
  border: 1px solid var(--gold-border, rgba(184, 134, 40, 0.25));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: var(--rh-text);
}

.rh-search-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 6px 10px;
  border-bottom: 1px solid var(--rh-line);
  margin-bottom: 12px;
}

.rh-search-tabs button,
.rh-search-tabs a {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--rh-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}

.rh-search-tabs .is-active,
.rh-search-tabs a:hover {
  color: var(--rh-primary-2);
}

.rh-search-tabs .is-active {
  border-bottom-color: var(--rh-primary-2);
}

.rh-search-form {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr auto;
  gap: 8px;
  align-items: stretch;
}

.rh-search-field {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  background: #161928;
  position: relative;
}

.rh-search-field span {
  font-size: 11px;
  font-weight: 800;
  color: var(--rh-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rh-search-field input,
.rh-search-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  min-width: 0;
}

.rh-search-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
}

.rh-search-q svg {
  width: 18px;
  height: 18px;
  color: var(--rh-primary-2);
  flex-shrink: 0;
}

.rh-search-q input {
  font-weight: 500;
}

.rh-search-btn {
  white-space: nowrap;
  border-radius: 12px;
  min-height: 52px;
  padding: 0 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-2));
  color: #000;
  border: 0;
  box-shadow: 0 8px 18px rgba(184, 134, 40, 0.25);
  cursor: pointer;
}

/* AI card */
.rh-ai-card {
  background: #11131c;
  color: var(--rh-text);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-border, rgba(184, 134, 40, 0.25));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 18px;
}

.rh-ai-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-2));
  color: #000;
}

.rh-ai-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.12);
  color: #000;
}

.rh-ai-mark svg {
  width: 22px;
  height: 22px;
}

.rh-ai-head strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #000;
}

.rh-ai-head em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  opacity: 0.92;
}

.rh-ai-head em i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15803d;
  display: inline-block;
}

.rh-ai-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
}

.rh-ai-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 10px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #f4f5f8;
  cursor: pointer;
  transition: all .15s ease;
}

.rh-ai-list button:hover {
  background: #161928;
  color: var(--rh-primary-2);
}

.rh-ai-list button span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(184, 134, 40, 0.14);
  color: var(--rh-primary-2);
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid var(--gold-border);
}

.rh-ai-cta {
  display: flex;
  width: calc(100% - 28px);
  margin: 4px 14px 8px;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-2));
  color: #000;
  border: 0;
  box-shadow: 0 8px 18px rgba(184, 134, 40, 0.25);
}

.rh-ai-note {
  margin: 0 0 16px;
  text-align: center;
  color: var(--rh-muted);
  font-size: 12px;
}

/* —— Solutions —— */
.rh-solutions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rh-sol-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: 16px;
  background: #11131c;
  border: 1px solid var(--rh-line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rh-sol-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: 0 12px 28px rgba(184, 134, 40, 0.15);
}

.rh-sol-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #161928;
  border: 1px solid var(--rh-line);
}

.rh-sol-ico svg {
  width: 22px;
  height: 22px;
}

.rh-sol-blue .rh-sol-ico { color: #60a5fa; border-color: rgba(96,165,250,.25); }
.rh-sol-teal .rh-sol-ico { color: #2dd4bf; border-color: rgba(45,212,191,.25); }
.rh-sol-purple .rh-sol-ico { color: var(--rh-primary-2); border-color: var(--gold-border); }
.rh-sol-orange .rh-sol-ico { color: #fbbf24; border-color: rgba(251,191,36,.25); }
.rh-sol-violet .rh-sol-ico { color: #c084fc; border-color: rgba(192,132,252,.25); }
.rh-sol-green .rh-sol-ico { color: #4ade80; border-color: rgba(74,222,128,.25); }
.rh-sol-pink .rh-sol-ico { color: #f472b6; border-color: rgba(244,114,182,.25); }
.rh-sol-indigo .rh-sol-ico { color: #818cf8; border-color: rgba(129,140,248,.25); }

.rh-sol-card strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.rh-sol-card strong span {
  color: var(--rh-primary-2);
}

.rh-sol-card > div > span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--rh-muted);
}

/* —— Featured + Map —— */
.rh-featured-section {
  padding-top: 8px;
  background: transparent;
}

.rh-featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.rh-prop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.rh-prop-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #11131c;
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}

.rh-prop-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow);
}

.rh-prop-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background-color: #181b2a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid var(--rh-line);
}

.rh-prop-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 10px;
  background: #11131c;
  color: var(--rh-primary-2);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rh-prop-price {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  background: #11131c;
  color: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.rh-prop-body {
  padding: 12px 6px 4px;
}

.rh-prop-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rh-prop-address {
  min-width: 0;
  flex: 1;
}

.rh-prop-address strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.rh-prop-address span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-primary-2);
}

.rh-prop-specs {
  flex-shrink: 0;
  display: grid;
  gap: 6px;
  justify-items: end;
  padding-top: 2px;
  color: #c6c9d8;
}

.rh-prop-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.rh-prop-icons span,
.rh-prop-land {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rh-prop-icons svg,
.rh-prop-land svg {
  width: 15px;
  height: 15px;
  color: var(--rh-muted);
}

.rh-prop-land {
  font-size: 12px;
  font-weight: 600;
  color: var(--rh-muted);
}

.rh-map-block {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

.rh-empty {
  padding: 28px;
  border-radius: 16px;
  background: #11131c;
  border: 1px dashed var(--rh-line);
}

.rh-empty p {
  margin: 0 0 14px;
  color: var(--rh-muted);
}

.rh-map-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-border, rgba(184, 134, 40, 0.25));
  background: #11131c;
  min-height: 560px;
  box-shadow: var(--shadow);
}

.rh-map {
  height: 560px;
  width: 100%;
}

.rh-map-search {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 10px 16px;
  background: #161928;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.rh-cluster-marker {
  background: transparent;
  border: 0;
}

.rh-cluster-marker span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-2));
  color: #000;
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 0 0 3px rgba(184, 134, 40, 0.2), 0 4px 12px rgba(184, 134, 40, 0.3);
}

.rh-listing-marker {
  background: transparent;
  border: 0;
}

.rh-listing-marker span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rh-primary-2);
  box-shadow: 0 0 0 2px rgba(201, 155, 59, 0.28);
}

/* —— Landlords —— */
.rh-landlord-wrap {
  padding: 12px 0 56px;
}

.rh-landlord {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 22px;
  background:
    radial-gradient(500px 220px at 85% 40%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(115deg, #7c5812 0%, #b88628 48%, #c99b3b 100%);
  border: 1px solid var(--gold-border);
  box-shadow: 0 18px 40px rgba(184, 134, 40, 0.28);
  min-height: 220px;
}

.rh-landlord-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.rh-landlord-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  color: #000;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.rh-landlord-copy p {
  margin: 0 0 18px;
  color: #1a1506;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.rh-landlord-copy .btn {
  background: #11131c;
  color: var(--rh-primary-2);
  border: 0;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.rh-landlord-art {
  position: relative;
  height: 180px;
  z-index: 1;
}

.rh-iso {
  position: absolute;
  right: -10px;
  bottom: -48px;
  width: 320px;
  height: 220px;
}

.rh-iso-house {
  position: absolute;
  width: 88px;
  height: 70px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(160deg, #b88628, #9e711d);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  transform: skewX(-12deg);
}

.rh-iso-house::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -22px;
  height: 28px;
  background: linear-gradient(135deg, #ebd299, #c99b3b);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: skewX(12deg);
}

.rh-iso-h1 { left: 24px; bottom: 36px; opacity: 0.95; }
.rh-iso-h2 { left: 110px; bottom: 58px; width: 100px; height: 82px; }
.rh-iso-h3 { left: 200px; bottom: 28px; width: 78px; height: 62px; opacity: 0.9; }

.rh-iso-chart {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 90px;
  height: 70px;
  border-radius: 14px;
  background: #11131c;
  border: 1px solid var(--gold-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.rh-iso-chart::before {
  content: "";
  position: absolute;
  inset: 16px 14px 14px;
  background:
    linear-gradient(#b88628, #b88628) 10% 100% / 12px 28% no-repeat,
    linear-gradient(#c99b3b, #c99b3b) 38% 100% / 12px 55% no-repeat,
    linear-gradient(#b88628, #b88628) 66% 100% / 12px 72% no-repeat,
    linear-gradient(#ebd299, #ebd299) 92% 100% / 12px 90% no-repeat;
}

.rh-iso-chart::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-right: 3px solid #22c55e;
  border-top: 3px solid #22c55e;
  transform: rotate(45deg);
}

/* —— Resources —— */
.rh-resources {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rh-res-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 20px 16px;
  border-radius: 16px;
  background: #11131c;
  border: 1px solid var(--rh-line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.rh-res-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.rh-res-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #161928;
  color: var(--rh-primary-2);
  border: 1px solid var(--gold-border);
}

.rh-res-ico svg {
  width: 20px;
  height: 20px;
}

.rh-res-card strong {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.rh-res-card > span:last-child {
  font-size: 12px;
  color: var(--rh-muted);
  line-height: 1.4;
}

/* —— Trust —— */
.rh-trust {
  padding: 8px 0 64px;
}

.rh-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: #11131c;
  border: 1px solid var(--rh-line);
  box-shadow: var(--shadow-sm);
}

.rh-trust-grid > div {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.rh-trust-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #161928;
  color: var(--rh-primary-2);
  border: 1px solid var(--gold-border);
}

.rh-trust-ico svg {
  width: 18px;
  height: 18px;
}

.rh-trust-grid strong {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.rh-trust-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rh-muted);
}

/* Responsive */
@media (max-width: 1100px) {
  .rh-hero-grid,
  .rh-featured-grid,
  .rh-landlord {
    grid-template-columns: 1fr;
  }

  .rh-map-block {
    position: static;
  }

  .rh-ai-card {
    position: relative;
    top: 0;
    max-width: 420px;
  }

  .rh-solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rh-resources,
  .rh-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rh-iso {
    position: relative;
    right: auto;
    bottom: -20px;
    margin: 0 auto;
  }

  .rh-landlord-art {
    height: 160px;
  }
}

@media (max-width: 800px) {
  .rh-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .rh-search-q,
  .rh-search-btn {
    grid-column: 1 / -1;
  }

  .rh-prop-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .rh-solutions,
  .rh-resources,
  .rh-trust-grid,
  .rh-search-form {
    grid-template-columns: 1fr;
  }

  .rh-prop-address strong {
    font-size: 17px;
  }

  .rh-prop-row {
    gap: 12px;
  }

  .rh-search-tabs {
    overflow-x: auto;
  }
}
