:root {
  --ink: #111827;
  --muted: #516079;
  --line: #e8edf4;
  --blue: #2d64ef;
  --soft: #f8fafd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 52px;
}

.brand-logo {
  width: 138px;
  height: auto;
}

.city-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  color: #334155;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
}

.city-btn:hover,
.city-btn.show {
  background: #f1f5f9;
}

.city-panel {
  width: min(92vw, 520px);
  border: 1px solid #e6edf6;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.city-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.city-tile {
  border: 1px solid #edf2f7;
  background: #fff;
  border-radius: 10px;
  padding: 12px 8px;
  color: #334155;
  font-size: 13px;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-top: 1px solid #edf2f7;
}

.city-list button {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  color: #475569;
  text-align: left;
  font-size: 13px;
}

.city-list button:hover,
.city-list button.active,
.city-tile:hover {
  background: #eff6ff;
  color: var(--blue);
}

.connect-btn {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://houssed.com/assets/images/city-home-hero.webp") right center / cover no-repeat;
  transition: transform 1.8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 26%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.08) 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 54px;
  padding-bottom: 54px;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.14;
  font-weight: 800;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #ffd916;
}

.hero p {
  max-width: 560px;
  margin: 0 0 64px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.search-box {
  width: min(100%, 768px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.category-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 16px 16px 12px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 0 0 auto;
  border: 1px solid #dde6f1;
  border-radius: 9px;
  background: #fff;
  color: #53617a;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.category:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.category.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.portal-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e8eef7;
}

.portal-search:focus-within {
  background: #f8fafc;
}

.portal-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273449;
  font-size: 14px;
}

.portal-search input::placeholder {
  color: #8aa0be;
}

.clear-search,
.submit-search {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  color: #8aa0be;
  background: transparent;
}

.clear-search {
  display: none;
  width: 28px;
  height: 28px;
  background: #e2e8f0;
  color: #475569;
}

.submit-search:hover {
  background: #e9eef6;
  color: #334155;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.section-block {
  padding: 68px 0;
}

.section-block.soft {
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 0 16px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 10px;
  color: #111827;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: #4a566b;
  font-size: 16px;
  line-height: 1.55;
}

.portal-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: #d5deea;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f7;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portal-card:hover .image-wrap img {
  transform: scale(1.04);
}

.badge-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  background: #fff;
  color: #2f3b52;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.card-body {
  padding: 18px;
}

.portal-card h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.muted-line {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.price {
  margin: 0 0 14px;
  color: #111827;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
}

.stats small {
  display: block;
  color: #7a8699;
  font-size: 12px;
}

.stats strong {
  display: block;
  color: #273449;
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.card-actions .btn {
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.bhk-card {
  padding: 16px;
}

.bhk-card .image-wrap {
  aspect-ratio: 1.5 / 1;
  background: #fff;
}

.bhk-card .image-wrap img {
  object-fit: contain;
  padding: 12px;
}

.bhk-label {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 16px;
  color: #fff;
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
}

.arrow-circle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f7fb;
  color: #53617a;
}

.locality-card {
  position: relative;
  min-height: 142px;
  padding: 24px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e8edf4;
  background: linear-gradient(135deg, #fff, #f5f7ff);
}

.locality-card:nth-child(2n) .locality-inner,
.locality-card:nth-child(2n) {
  background: linear-gradient(135deg, #fff, #fff7f7);
}

.locality-card:nth-child(3n) {
  background: linear-gradient(135deg, #fff, #f1fbff);
}

.locality-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  background: #fff;
  color: #c7d2e1;
  font-weight: 800;
}

.type-card .image-wrap {
  aspect-ratio: 1.35 / 1;
}

.type-card .image-wrap img {
  object-fit: contain;
  padding: 18px;
}

.developer-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  text-align: center;
}

.developer-card img {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  object-fit: contain;
  border-radius: 16px;
  background: #f8fafc;
}

.developer-card h3 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.custom-control {
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  opacity: 1;
  transform: translateY(-50%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.custom-control:hover {
  color: #111827;
  background: #f8fafc;
}

.overview {
  padding: 56px 0;
  background: #092650;
  color: #fff;
}

.overview .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #7dd3fc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.overview h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
}

.overview p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.overview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}

.link-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
}

.link-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.link-card a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
  color: #53617a;
  font-size: 14px;
}

.link-card a:hover {
  color: var(--blue);
}

.view-more {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.footer {
  padding: 54px 0 24px;
  background: #050b17;
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  width: 145px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.footer a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.support-line {
  color: #fff !important;
  font-weight: 800;
}

.small-links a {
  display: inline-block;
}

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.callback-modal {
  border: 0;
  border-radius: 16px;
}

.selected-property {
  color: #53617a;
}

@media (max-width: 767.98px) {
  .brand-logo {
    width: 120px;
  }

  .connect-btn span {
    display: none;
  }

  .city-panel {
    width: min(94vw, 360px);
  }

  .city-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .city-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 590px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56));
  }

  .hero p {
    margin-bottom: 34px;
  }

  .portal-search {
    padding: 14px 14px;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-row span {
    justify-content: center;
    padding: 10px 7px;
    text-align: center;
    font-size: 10px;
  }

  .section-block {
    padding: 48px 0;
  }
}
