/* HTS Realty — Housing.com-inspired listing UI (teal brand) */
:root {
  --hts-ink: #1c1c1c;
  --hts-text: #333;
  --hts-muted: #6b7280;
  --hts-line: #e5e7eb;
  --hts-soft: #f3f4f6;
  --hts-white: #fff;
  --hts-teal: #0d7377;
  --hts-teal-dark: #095456;
  --hts-teal-soft: #e6f4f4;
  --hts-gold: #c9a227;
  --hts-green: #0f9d58;
  --hts-radius: 12px;
  --hts-shadow: 0 2px 12px rgba(0,0,0,.06);
  --hts-shadow-lg: 0 8px 28px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
body.hts-ui {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--hts-soft);
  color: var(--hts-text);
  line-height: 1.5;
}
.hts-ui a { color: inherit; text-decoration: none; }
.hts-ui img, .hts-ui video { max-width: 100%; display: block; }

.hts-topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--hts-teal-dark);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.hts-nav {
  max-width: 1180px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hts-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: #fff; }
.hts-brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--hts-gold), #e8c75a);
  color: #1c1c1c; display: grid; place-items: center; font-size: .72rem; font-weight: 900;
}
.hts-nav-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: .86rem; font-weight: 700; }
.hts-nav-links a { color: rgba(255,255,255,.88); }
.hts-nav-links a:hover, .hts-nav-links a.active { color: #fff; }
.hts-nav-links a.active { text-decoration: underline; text-underline-offset: 6px; }
.hts-nav-actions { margin-left: auto; display: flex; gap: 8px; }
.hts-searchbar {
  flex: 1; min-width: 180px; max-width: 420px;
  background: #fff; border-radius: 999px; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
}
.hts-searchbar input {
  border: 0; outline: 0; width: 100%; font: inherit; color: var(--hts-ink);
}

.hts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--hts-line); border-radius: 999px;
  padding: 10px 18px; background: #fff; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: .15s background, .15s color, .15s border-color;
}
.hts-btn:hover { border-color: var(--hts-teal); color: var(--hts-teal); }
.hts-btn-primary { background: var(--hts-teal); border-color: var(--hts-teal); color: #fff; }
.hts-btn-primary:hover { background: var(--hts-teal-dark); border-color: var(--hts-teal-dark); color: #fff; }
.hts-btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.hts-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.hts-wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.hts-crumbs { font-size: .82rem; color: var(--hts-muted); margin-bottom: 10px; }
.hts-crumbs a { color: var(--hts-muted); }
.hts-crumbs a:hover { color: var(--hts-teal); }
.hts-page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 8px; flex-wrap: wrap; }
.hts-page-head h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.85rem); color: var(--hts-ink); font-weight: 800; }
.hts-page-sub { margin: 6px 0 0; color: var(--hts-muted); font-size: .95rem; max-width: 62ch; }
.hts-count { font-size: .82rem; color: var(--hts-muted); margin: 4px 0 14px; }

.hts-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
}
.hts-chip {
  border: 1px solid var(--hts-line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: .84rem; font-weight: 600; color: var(--hts-text); cursor: pointer;
}
.hts-chip.active, .hts-chip:hover { background: var(--hts-teal-soft); border-color: #b7dede; color: var(--hts-teal-dark); }

/* Horizontal listing cards (Housing.com pattern) */
.hts-list { display: grid; gap: 16px; }
.hts-card {
  display: grid; grid-template-columns: minmax(260px, 40%) 1fr;
  background: var(--hts-white); border-radius: var(--hts-radius);
  box-shadow: var(--hts-shadow); overflow: hidden; border: 1px solid #eceff3;
  min-height: 230px;
}
.hts-card-media {
  position: relative; background: linear-gradient(145deg, #0d3d40, #0d7377); min-height: 230px;
}
.hts-card-media img, .hts-card-media video {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.hts-card-media .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 800; text-align: center; padding: 20px; font-size: 1.15rem;
}
.hts-dev-pill {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: .72rem; font-weight: 700; max-width: 80%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hts-photo-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff; border-radius: 999px;
  padding: 4px 9px; font-size: .72rem; font-weight: 700;
}
.hts-card-body {
  padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px;
}
.hts-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hts-tag {
  background: #f3f4f6; color: #4b5563; border-radius: 999px;
  padding: 4px 10px; font-size: .72rem; font-weight: 700;
}
.hts-tag.partner { background: var(--hts-teal-soft); color: var(--hts-teal-dark); }
.hts-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hts-title-row h2, .hts-card-body > h2 { margin: 0; font-size: 1.2rem; color: var(--hts-ink); font-weight: 800; }
.hts-card-body > h2 a { color: inherit; }
.hts-rera {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e8f8ef; color: var(--hts-green); border-radius: 6px;
  padding: 2px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.hts-loc { color: var(--hts-muted); font-size: .92rem; margin: 0; }
.hts-price { font-size: 1.25rem; font-weight: 800; color: var(--hts-ink); margin: 2px 0; }
.hts-meta { color: var(--hts-muted); font-size: .85rem; }
.hts-meta span + span::before { content: "·"; margin: 0 8px; color: #c4c9d0; }
.hts-card-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding-top: 8px; flex-wrap: wrap;
}
.hts-note {
  background: var(--hts-teal-soft); color: var(--hts-teal-dark);
  border: 1px solid #c5e4e4; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: .9rem;
}

/* Home hero (Housing.com-style search strip) */
.hts-hero {
  background:
    linear-gradient(105deg, rgba(9, 42, 44, .94) 0%, rgba(13, 115, 119, .78) 48%, rgba(13, 115, 119, .35) 100%),
    url("../assets/hts-hero.png") center/cover no-repeat;
  color: #fff;
  padding: 48px 16px 56px;
}
.hts-hero-inner { max-width: 1180px; margin: 0 auto; }
.hts-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 18ch;
  line-height: 1.15;
}
.hts-hero-lead {
  margin: 0 0 22px;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  max-width: 48ch;
}
.hts-search-card {
  background: #fff;
  color: var(--hts-text);
  border-radius: 14px;
  box-shadow: var(--hts-shadow-lg);
  overflow: hidden;
  max-width: 920px;
}
.hts-search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--hts-line);
  padding: 0 8px;
}
.hts-search-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--hts-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.hts-search-tabs button.active {
  color: var(--hts-teal);
  border-bottom-color: var(--hts-teal);
}
.hts-search-row {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr auto;
  gap: 10px;
  padding: 14px;
  align-items: end;
}
.hts-search-row label {
  display: grid;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--hts-muted);
}
.hts-search-row input,
.hts-search-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--hts-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--hts-ink);
  background: #fff;
}
.hts-loc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hts-loc-chip {
  background: #fff;
  border: 1px solid var(--hts-line);
  border-radius: 12px;
  padding: 16px 14px;
  font-weight: 800;
  color: var(--hts-ink);
  box-shadow: var(--hts-shadow);
  transition: .15s border-color, .15s color;
}
.hts-loc-chip:hover { border-color: var(--hts-teal); color: var(--hts-teal); }
.hts-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.hts-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--hts-ink);
  font-weight: 800;
}
.hts-trust-band {
  background: #13222c;
  color: #fff;
  margin-top: 28px;
}
.hts-trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hts-trust-inner h2 { margin: 0 0 8px; font-size: 1.45rem; }
.hts-trust-inner p { margin: 0; color: #c9d5dc; max-width: 58ch; }

@media (max-width: 820px) {
  .hts-card { grid-template-columns: 1fr; }
  .hts-card-media { min-height: 200px; }
  .hts-nav-links { width: 100%; gap: 10px 12px; font-size: .8rem; }
  .hts-searchbar { order: 3; max-width: none; width: 100%; }
  .hts-search-row { grid-template-columns: 1fr; }
  .hts-loc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hts-loc-grid { grid-template-columns: 1fr; }
}
