.residential-page {
  /* Solid theme green. --brand-deep-green carries an alpha channel, so text and
     icons would render washed out if mapped to it. */
  --brand-green-dark: var(--brand-green);
  color: var(--body);
  background:
    radial-gradient(circle at 90% 36%, color-mix(in srgb, var(--charcoal) 6%, transparent), transparent 24%),
    var(--white);
  font-size: 14px;
}

.rp-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.rp-hero {
  position: relative;
  min-height: 480px !important;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: #0b130e;
  overflow: hidden;
}

/* Artwork covering background with dark contrast overlay */
.rp-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  background: url("../images/pakistan-islamabad-apartments.webp") center / cover no-repeat;
}

.rp-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 10, 0.82) 0%, rgba(9, 15, 11, 0.65) 45%, rgba(6, 10, 8, 0.94) 100%),
    radial-gradient(circle at 80% 30%, rgba(0, 168, 89, 0.22) 0%, transparent 60%);
}

.rp-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 64px;
}

.rp-hero nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.rp-hero nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rp-hero nav a:hover {
  color: #00a859;
}

.rp-hero nav strong {
  color: #00a859;
  font-weight: 700;
}

.rp-hero nav span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.rp-hero h1 {
  max-width: 100%;
  margin: 0 0 12px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
}

.rp-hero h1 span {
  display: inline-block;
  color: #00a859 !important;
  margin-right: 8px;
}

.rp-hero-lead {
  max-width: 70ch;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Single-row trust strip with frosted glass pill styling */
.rp-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-trust-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.rp-trust-points li+li {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.rp-trust-points svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #00a859;
  stroke: #00a859;
}

.rp-trust-points p {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
}

.rp-trust-points strong {
  color: #ffffff;
  font-weight: 700;
}

.rp-trust-points span {
  color: rgba(255, 255, 255, 0.70);
}

/* Hand-lettered accent sitting over the artwork. */
.rp-hero-script {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 52%;
  margin: 0;
  color: #ffffff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(19px, 1.9vw, 27px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(-78%) rotate(-6deg);
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 168, 89, 0.3);
}

.rp-hero-script::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: #00a859;
  transform: rotate(2deg);
}

.rp-filter-card {
  position: relative;
  z-index: 30;
  overflow: visible;
  margin-top: -34px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--charcoal) 10%, transparent);
}

.rp-filter-row {
  display: grid;
  align-items: end;
  gap: 14px;
}

.rp-filter-primary {
  grid-template-columns: 1fr 1fr .85fr 1.6fr .9fr .62fr auto;
}

/* Custom dropdown: a button plus listbox, because native select popups ignore CSS. */
.rp-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rp-dropdown-label {
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.rp-dropdown-trigger {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--body);
  background: var(--white);
  font-size: 13px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.rp-dropdown-trigger:hover {
  border-color: var(--brand-green);
}

.rp-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--charcoal) 8%, transparent);
}

.rp-dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-dropdown-trigger svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--brand-green-dark);
  transition: transform .18s ease;
}

.rp-dropdown-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.rp-dropdown-menu {
  position: absolute;
  z-index: 60 !important;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}

/* The hidden attribute must win over the flex display above. */
.rp-dropdown-menu[hidden] {
  display: none !important;
}

.rp-dropdown-menu button {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 5px;
  color: var(--heading);
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.rp-dropdown-menu button:hover {
  color: var(--white);
  background: var(--brand-green);
}

.rp-dropdown-menu button[aria-selected="true"] {
  color: var(--white);
  background: var(--brand-green);
  font-weight: 600;
}

/* Native field stays for form submission but is hidden from sight and keyboard. */
.rp-dropdown-native {
  display: none !important;
}

.rp-filter-card label,
.rp-toggle-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.rp-filter-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-filter-card select,
.rp-filter-card input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  color: var(--body);
  background-color: var(--white);
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

/* Custom chevron keeps dropdowns in the theme palette instead of the browser default. */
.rp-filter-card select {
  appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6874' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.rp-filter-card select:hover,
.rp-filter-card input:hover {
  border-color: var(--brand-green);
}

.rp-filter-card select:focus,
.rp-filter-card input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--charcoal) 8%, transparent);
}

.rp-toggle-group legend {
  display: block;
  margin-bottom: 8px;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.rp-toggle-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rp-toggle-group legend {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0;
  color: var(--body);
}

.rp-toggle-group button {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--body);
  background: var(--bg-light);
  font-size: 13px;
  font-weight: 700;
}

.rp-toggle-group button.active {
  border-color: var(--brand-green);
  color: var(--white);
  background: var(--brand-green);
}

.rp-beds {
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
}

.rp-beds legend {
  float: none;
  width: 100%;
}

.rp-search-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-green);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--charcoal) 14%, transparent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.rp-search-button svg {
  width: 17px;
  height: 17px;
  color: var(--white);
}

.rp-search-button:hover {
  background: var(--brand-green-dark);
}

/* Residential properties for sale. */
.rp-sale {
  padding-top: 30px;
  padding-bottom: 8px;
}

.rp-communities+.rp-sale {
  padding-top: 26px;
}

.rp-sale-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.rp-sale-head h2 {
  margin: 0 0 4px;
  color: var(--heading);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.25;
}

.rp-sale-head p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
}

.rp-sale-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rp-sale-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-sale-tabs button {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--heading);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.rp-sale-tabs button:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.rp-sale-tabs button.active {
  border-color: var(--brand-green);
  color: var(--white);
  background: var(--brand-green);
}

.rp-sale-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--brand-green);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.rp-sale-all svg {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}

.rp-sale-all:hover {
  border-color: var(--brand-green);
  color: var(--white);
  background: var(--brand-green);
}

.rp-sale-all:hover svg {
  transform: translateX(3px);
}

.rp-sale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.rp-sale-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--charcoal) 5%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rp-sale-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 25px color-mix(in srgb, var(--charcoal) 11%, transparent);
}

.rp-sale-card[hidden] {
  display: none !important;
}

.rp-sale-media {
  position: relative;
  height: 148px;
  background: var(--bg-light);
}

.rp-sale-image {
  display: block;
  overflow: hidden;
  height: 100%;
}

.rp-sale-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform .35s ease;
}

.rp-sale-card:hover .rp-sale-image img {
  transform: scale(1.04);
}

.rp-sale-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--heading);
  background: var(--white);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--charcoal) 12%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rp-sale-fav {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--white) 72%, transparent);
  border-radius: 50%;
  color: var(--white);
  background: color-mix(in srgb, var(--charcoal) 16%, transparent);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.rp-sale-fav svg {
  width: 16px;
  height: 16px;
}

.rp-sale-fav:hover,
.rp-sale-fav[aria-pressed="true"] {
  color: var(--white);
  background: var(--brand-green);
}

.rp-sale-fav[aria-pressed="true"] svg {
  fill: currentColor;
}

.rp-sale-body {
  padding: 11px 13px 12px;
}

.rp-sale-body h3 {
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--heading);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-sale-body h3 a:hover {
  color: var(--brand-green);
}

.rp-sale-location {
  display: flex;
  align-items: start;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--body);
  font-size: 14px !important;
  line-height: 1.4;
  /* text-overflow: ellipsis; */
  /* white-space: nowrap; */
}

.rp-sale-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--brand-green);
}

.rp-sale-specs {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 10px;
  color: var(--body);
  font-size: 11.5px;
}

.rp-sale-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.rp-sale-specs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-sale-specs svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--heading);
}

.rp-sale-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rp-sale-foot strong {
  overflow: hidden;
  color: var(--brand-green);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-sale-arrow {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-green);
  border-radius: 50%;
  color: var(--brand-green);
  background: var(--white);
  transition: color .18s ease, background-color .18s ease;
}

.rp-sale-arrow svg {
  width: 16px;
  height: 16px;
}

.rp-sale-arrow:hover {
  color: var(--white);
  background: var(--brand-green);
}

/* Featured communities carousel, mirroring the projects-page carousel. */
.rp-communities {
  padding-top: 34px;
  padding-bottom: 10px;
}

.rp-communities-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.rp-communities-head h2 {
  margin: 0 0 4px;
  color: var(--heading);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.25;
}

.rp-communities-head p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
}

.rp-communities-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--brand-green-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.rp-communities-all svg {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}

.rp-communities-all:hover {
  color: var(--white);
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.rp-communities-all:hover svg {
  transform: translateX(3px);
}

.rp-communities-carousel {
  position: relative;
}

.rp-communities-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rp-communities-track::-webkit-scrollbar {
  display: none;
}

.rp-community-card {
  flex: 0 0 calc((100% - 45px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--charcoal) 5%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rp-community-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 25px color-mix(in srgb, var(--charcoal) 11%, transparent);
}

.rp-community-image {
  display: block;
  height: 168px;
  overflow: hidden;
  background: var(--bg-light);
}

.rp-community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform .35s ease;
}

.rp-community-card:hover .rp-community-image img {
  transform: scale(1.04);
}

.rp-community-body {
  padding: 12px 13px 13px;
}

.rp-community-body h3 {
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--heading);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-community-body h3 a:hover {
  color: var(--brand-green-dark);
}

.rp-community-location,
.rp-community-type {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-community-location svg,
.rp-community-type svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--brand-green-dark);
}

.rp-community-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.rp-community-price p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-community-price strong {
  color: var(--brand-green-dark);
  font-size: 14px;
  font-weight: 800;
}

.rp-community-price span {
  color: var(--body);
  font-size: 12px;
}

.rp-community-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-green-dark);
  border-radius: 50%;
  color: var(--brand-green-dark);
  background: var(--white);
  transition: color .18s ease, background-color .18s ease;
}

.rp-community-arrow svg {
  width: 17px;
  height: 17px;
}

.rp-community-arrow:hover {
  color: var(--white);
  background: var(--brand-green-dark);
}

.rp-communities-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--heading);
  background: var(--white);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--charcoal) 14%, transparent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.rp-communities-arrow svg {
  width: 19px;
  height: 19px;
}

.rp-communities-arrow:hover:not(:disabled) {
  border-color: var(--brand-green);
  color: var(--white);
  background: var(--brand-green);
}

.rp-communities-arrow:disabled {
  opacity: .4;
  cursor: default;
}

.rp-communities-arrow.prev {
  left: -19px;
}

.rp-communities-arrow.next {
  right: -19px;
}

.rp-listing {
  padding-top: 24px;
  padding-bottom: 18px;
}

.rp-results {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 13px;
}

/* "Buy Your Dream Home" promo banner between the listing and contact CTA. */
.rp-dream {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--charcoal) 10%, transparent);
}

.rp-dream>* {
  position: relative;
  z-index: 2;
}

/* Faint skyline backdrop: light sky on top, city faded along the bottom. */
.rp-dream::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--white) 93%, transparent) 0%, color-mix(in srgb, var(--white) 60%, transparent) 100%),
    url("../images/pakistan-islamabad-apartments.webp") center bottom / cover no-repeat;
}

/* Luxury house on the right, masked so it fades into the skyline instead of a hard cut. */
.rp-dream::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 44%;
  background:
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--white) 45%, transparent) 34%, transparent 60%),
    url("../images/pakistan-luxury-home.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.rp-dream-copy h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.rp-dream-copy p {
  margin: 0;
  max-width: 58ch;
  color: var(--body);
  font-size: 13px;
  line-height: 1.6;
}

.rp-dream-points {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-dream-points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--body);
}

.rp-dream-points svg {
  width: 30px;
  height: 30px;
  color: var(--brand-green-dark);
}

.rp-dream-points strong {
  display: block;
  color: var(--heading);
  font-weight: 800;
}

.rp-dream-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 7px;
  color: var(--white);
  background: var(--brand-green-dark);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-green-dark) 30%, transparent);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}

.rp-dream-cta svg {
  width: 17px;
  height: 17px;
  transition: transform .18s ease;
}

.rp-dream-cta:hover {
  background: var(--brand-green);
  transform: translateY(-2px);
}

.rp-dream-cta:hover svg {
  transform: translateX(3px);
}

.rp-property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.rp-property-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--charcoal) 5%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rp-property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 25px color-mix(in srgb, var(--charcoal) 11%, transparent);
}

.rp-property-card[hidden] {
  display: none;
}

.rp-property-image {
  position: relative;
  height: 196px;
  background-position: center;
  background-size: cover;
}

.rp-image-one,
.rp-image-six,
.rp-image-eleven {
  background-image: url("../images/pakistan-islamabad-apartments.webp");
}

.rp-image-two,
.rp-image-five {
  background-image: url("../images/pakistan-luxury-home.webp");
}

.rp-image-three,
.rp-image-seven {
  background-image: url("../images/pakistan-housing-project.webp");
}

.rp-image-four,
.rp-image-nine {
  background-image: url("../images/pakistan-mazar-e-quaid-karachi.webp");
}

.rp-image-eight {
  background-image: url("../images/pakistan-minar-e-pakistan-lahore.webp");
}

.rp-image-ten {
  background-image: url("../images/pakistan-faisal-mosque-islamabad.webp");
}

.rp-image-twelve {
  background-image: url("../images/pakistan-luxury-home.webp");
}

.rp-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rp-type.green {
  background: var(--brand-deep-green);
}

.rp-type.gold {
  color: var(--body);
  background: var(--brand-green);
}

.rp-favourite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: color-mix(in srgb, var(--charcoal) 28%, transparent);
  filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--charcoal) 35%, transparent));
}

.rp-favourite svg {
  width: 23px;
  height: 23px;
}

.rp-favourite.saved {
  color: var(--brand-green);
  background: var(--white);
}

.rp-favourite.saved svg {
  fill: currentColor;
}

.rp-card-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
}

.rp-card-body h2 {
  margin: 0 0 5px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.3;
}

.rp-card-location {
  min-height: 20px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 10px;
  color: var(--body);
  font-size: 12px;
  flex-grow: 1;
}

.rp-card-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--heading);
}

.rp-features {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--body);
  font-size: 12px;
}

.rp-features span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rp-features svg {
  width: 16px;
  height: 16px;
  color: var(--heading);
}

.rp-price {
  display: block;
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--brand-green);
  font-size: 15px;
}

.rp-card-body>a {
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-green);
  border-radius: 5px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 800;
}

.rp-card-body>a:hover {
  color: var(--white);
  background: var(--brand-green);
}

.rp-pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 25px 0 5px;
}

.rp-pagination[hidden] {
  display: none;
}

.rp-pagination button[hidden] {
  display: none;
}

.rp-pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--body);
  background: var(--white);
  font-size: 12px;
}

.rp-pagination button.active {
  border-color: var(--brand-green);
  color: var(--white);
  background: var(--brand-green);
}

.rp-contact-cta {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  padding: 18px 27px;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(100deg, var(--brand-deep-green), var(--brand-deep-green));
  box-shadow: 0 10px 25px color-mix(in srgb, var(--charcoal) 11%, transparent);
}

.rp-contact-cta>div,
.rp-call {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rp-contact-cta>div>svg {
  width: 48px;
  height: 48px;
  color: var(--brand-green);
}

.rp-contact-cta p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rp-contact-cta p strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
}

.rp-contact-cta p span {
  font-size: 13px;
}

.rp-contact-cta>a:not(.rp-call) {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  border-radius: 6px;
  color: var(--body);
  background: var(--brand-green);
  font-size: 13px;
  font-weight: 800;
}

.rp-call {
  min-height: 55px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--white) 22%, transparent);
  border-radius: 7px;
}

.rp-call svg {
  width: 28px;
  height: 28px;
  color: var(--brand-green);
}

.rp-call span {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.rp-call strong {
  margin-top: 2px;
  font-size: 14px;
}

.residential-page+footer .footer-cta {
  display: none;
}

@media (max-width: 1060px) {
  .rp-hero-art {
    width: 55%;
  }

  .rp-hero-script {
    left: 38%;
  }

  .rp-filter-primary {
    grid-template-columns: repeat(3, 1fr);
  }

  .rp-search-button {
    width: 100%;
  }

  .rp-sale-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .rp-sale-tools {
    justify-content: flex-start;
  }

  .rp-sale-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rp-community-card {
    flex-basis: calc((100% - 30px) / 3);
  }

  .rp-communities-arrow.prev {
    left: -14px;
  }

  .rp-communities-arrow.next {
    right: -14px;
  }

  .rp-property-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rp-dream {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 26px;
  }

  .rp-dream-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .rp-contact-cta {
    grid-template-columns: 1fr auto;
  }

  .rp-call {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .rp-shell {
    width: calc(100% - 30px);
  }

  .rp-hero {
    min-height: auto;
    padding: 34px 0 0;
  }

  .rp-hero-art {
    position: static;
    width: 100%;
    height: 240px;
    margin-top: 22px;
  }

  .rp-hero-art::after {
    background: linear-gradient(180deg, var(--white) 0%, transparent 30%);
  }

  .rp-hero-content {
    padding: 0;
  }

  .rp-hero-script {
    display: none;
  }

  .rp-trust-points {
    gap: 12px 0;
  }

  .rp-filter-card {
    margin-top: 20px;
    padding: 16px;
  }

  .rp-filter-primary {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .rp-beds {
    grid-column: span 2;
  }

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

  .rp-sale-media {
    height: 156px;
  }

  .rp-communities-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .rp-community-card {
    flex-basis: calc((100% - 15px) / 2);
  }

  .rp-community-image {
    height: 150px;
  }

  .rp-communities-arrow {
    width: 38px;
    height: 38px;
  }

  .rp-communities-arrow.prev {
    left: -10px;
  }

  .rp-communities-arrow.next {
    right: -10px;
  }

  .rp-property-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .rp-property-image {
    height: 180px;
  }

  .rp-dream {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .rp-dream::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--white) 96%, transparent) 0%, color-mix(in srgb, var(--white) 84%, transparent) 100%), url("../images/pakistan-islamabad-apartments.webp") center bottom / cover no-repeat;
  }

  .rp-dream::after {
    display: none;
  }

  .rp-dream-points {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 26px;
  }

  .rp-dream-cta {
    width: 100%;
  }

  .rp-contact-cta {
    grid-template-columns: 1fr;
  }

  .rp-contact-cta>a:not(.rp-call),
  .rp-call {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .rp-shell {
    width: calc(100% - 24px);
  }

  .rp-hero h1 {
    font-size: 31px;
  }

  .rp-trust-points li {
    padding-right: 14px;
  }

  .rp-trust-points li+li {
    padding-left: 14px;
  }

  .rp-trust-points svg {
    width: 22px;
    height: 22px;
  }

  .rp-trust-points p {
    font-size: 10.5px;
  }

  .rp-filter-primary {
    grid-template-columns: 1fr;
  }

  .rp-beds {
    grid-column: auto;
  }

  .rp-communities {
    padding-top: 26px;
  }

  .rp-sale {
    padding-top: 24px;
  }

  .rp-sale-grid {
    grid-template-columns: 1fr;
  }

  .rp-sale-media {
    height: 190px;
  }

  .rp-sale-tools {
    width: 100%;
  }

  .rp-sale-tabs {
    width: 100%;
  }

  .rp-sale-all {
    width: 100%;
    justify-content: center;
  }

  .rp-communities-all {
    width: 100%;
    justify-content: center;
  }

  .rp-community-card {
    flex-basis: 84%;
  }

  .rp-community-image {
    height: 170px;
  }

  .rp-communities-arrow.prev {
    left: -6px;
  }

  .rp-communities-arrow.next {
    right: -6px;
  }

  .rp-property-grid {
    grid-template-columns: 1fr;
  }

  .rp-property-image {
    height: 220px;
  }

  .rp-dream-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .rp-dream-copy h2 {
    font-size: 21px;
  }

  .rp-pagination {
    gap: 5px;
  }

  .rp-pagination button {
    min-width: 30px;
    padding: 0 5px;
  }

  .rp-contact-cta {
    padding: 20px;
  }

  .rp-contact-cta p strong {
    font-size: 20px;
  }
}


/* --- Full Bleed Dream Section Fix --- */
.residential-page .rp-dream {


  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  padding-inline: max(24px, calc((100vw - 1240px) / 2)) !important;
}

.residential-page .rp-dream::before {
  background: linear-gradient(90deg, var(--white) 40%, rgba(255, 255, 255, 0.92) 80%, rgba(255, 255, 255, 0.2) 100%), url("../images/pakistan-islamabad-apartments.webp") right center / cover no-repeat !important;
}

/* Fix mobile padding for full width */
@media (max-width: 900px) {
  .residential-page .rp-dream::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%), url("../images/pakistan-islamabad-apartments.webp") center bottom / cover no-repeat !important;
  }
}

/* --- Testimonials & CTA Split --- */
.rp-testimonials-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px !important;
}

@media (min-width: 992px) {
  .rp-testimonials-split {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }
}

.rp-testimonial-cta {
  border-radius: 12px;
  overflow: hidden;
  background: var(--charcoal) url("../images/pakistan-luxury-home.webp") center / cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rp-testimonial-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--charcoal) 98%, transparent) 0%, color-mix(in srgb, var(--charcoal) 85%, transparent) 45%, color-mix(in srgb, var(--charcoal) 20%, transparent) 100%);
  z-index: 1;
}

.rp-testimonial-cta .card-main {
  width: 100%;
  padding: 30px;
  position: relative;
  z-index: 2;
}

.rp-testimonial-cta h2 {
  margin: 0 0 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.25;
}

.rp-testimonial-cta p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--white) 85%, transparent);
  max-width: 32ch;
}

.rp-testimonial-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: #c9a227;
  border-radius: 6px;
  transition: background-color .2s ease;
}

.rp-testimonial-cta .cta-btn:hover {
  background: color-mix(in srgb, #c9a227 80%, black);
  color: var(--white);
}

.rp-testimonial-cta .card-stats {
  position: relative;
  z-index: 2;
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.rp-testimonial-cta .stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rp-testimonial-cta .stat svg {
  width: 24px;
  height: 24px;
  color: #c9a227;
}

.rp-testimonial-cta .stat div {
  display: flex;
  flex-direction: column;
}

.rp-testimonial-cta .stat strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.rp-testimonial-cta .stat span {
  font-size: 12px;
  color: color-mix(in srgb, var(--white) 80%, transparent);
}

/* Hide arrows and allow touch scroll */

.testimonials-col .testimonial-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials-col .testimonial-scroller::-webkit-scrollbar {
  display: none;
}

.testimonials-col .testimonial-card {
  scroll-snap-align: start;
}

@media (min-width: 1200px) {
  .rp-testimonial-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .rp-testimonial-cta .card-main {
    width: 55%;
    padding: 34px;
  }

  .rp-testimonial-cta .card-stats {
    width: 45%;
    padding: 34px 34px 34px 0;
    margin-top: 0;
  }
}

/* Fix grid blowout */
.rp-testimonials-split>div {
  min-width: 0;
}


/* Testimonial Card Widths (Exactly 2 on desktop to remove empty space) */
.testimonials-col .testimonial-card {
  width: 270px;
  flex: 0 0 270px;
}

@media (min-width: 768px) {
  .testimonials-col .testimonial-card {
    width: calc(50% - 8px);
    flex: 0 0 calc(50% - 8px);
  }
}

/* Ensure slider buttons are always clickable and visible */
.slider-btn {
  z-index: 10;
}

/* --- Proper Section Spacing (Matching Projects Page) --- */
.rp-communities {
  padding-top: 0;
  margin-top: 45px;
}

.rp-sale {
  padding-top: 0;
  margin-top: 45px;
}

.rp-dream {
  margin-top: 50px;
  margin-bottom: 50px;
}

#explore-areas {
  margin-top: 50px;
}

.process {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 50px;
}

/* Override .section padding to keep it consistent */
.rp-testimonials-split {
  margin-top: 50px;
  margin-bottom: 50px;
}

.faq-section {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Override .section padding */

@media (max-width: 760px) {
  .rp-communities {
    margin-top: 35px;
  }

  .rp-sale {
    margin-top: 35px;
  }

  .rp-dream {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  #explore-areas {
    margin-top: 40px;
  }

  .process {
    margin-top: 40px;
  }

  .rp-testimonials-split {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .faq-section {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--heading, #111827);
  color: var(--white, #ffffff);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}