:root {
  --red: #d60000;
  --red-dark: #b50000;
  --accent: #ff3d3d;
  --ink: #151515;
  --muted: #5d6470;
  --line: rgba(20, 20, 20, 0.12);
  --panel: rgba(255, 255, 255, 0.84);
  --shadow: 0 22px 60px rgba(21, 21, 21, 0.12);
  --glow: 0 0 0 1px rgba(214, 0, 0, 0.16), 0 20px 46px rgba(214, 0, 0, 0.14);
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.loader span {
  position: absolute;
  width: 120px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eee, #fff, #eee);
  animation: skeleton 1.1s infinite linear;
}

.loader span:nth-child(2) {
  transform: translateY(28px);
  width: 170px;
}

.loader span:nth-child(3) {
  transform: translateY(56px);
  width: 95px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.topbar-inner,
.navbar,
.section,
.footer-inner,
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.topbar-inner {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 26px;
}

.topbar-inner span:last-child {
  justify-self: end;
}

.navbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: 330px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  width: 70px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--red);
  font-size: 17px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #333;
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
}

.menu a {
  position: relative;
  padding: 28px 0;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.menu a:hover::after {
  width: 100%;
}

.nav-cta,
.btn,
.search-box button,
.whatsapp,
.contact-form button,
.newsletter button {
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(214, 0, 0, 0.24);
}

.nav-cta {
  padding: 12px 20px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  position: relative;
  justify-self: end;
  flex: 0 0 auto;
  width: 46px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  z-index: 32;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-shade {
  display: none;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.26));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  min-height: 780px;
  margin: 0 auto;
  padding: 126px 28px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 900;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 28px;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  min-width: 168px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.stats {
  width: min(850px, 100%);
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats div,
.search-box,
.contact-card,
.testimonial,
.why-card,
.service-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 18px 14px;
  border-radius: 12px;
}

.stats strong {
  display: block;
  font-size: 29px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
}

.search-box {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 150px;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
}

.search-box label {
  display: grid;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.search-box select,
.search-box input,
.contact-form input,
.contact-form textarea,
.newsletter input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0 13px;
}

.search-box button {
  align-self: end;
  min-height: 44px;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.hero-dots button.active {
  background: var(--red);
}

.section {
  padding-top: 74px;
  padding-bottom: 20px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: 35px;
  line-height: 1.1;
  font-weight: 900;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 34px;
}

.who-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.who-image img {
  height: 430px;
  object-fit: cover;
}

.who-content {
  max-width: 620px;
}

.who-content h2 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 900;
}

.who-content p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.who-points {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.who-points span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(214, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.category-grid,
.property-grid,
.why-grid,
.service-grid,
.agent-grid {
  display: grid;
  gap: 22px;
}

.category-grid,
.property-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.image-card,
.property-card,
.agent-card,
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.image-card:hover,
.property-card:hover,
.agent-card:hover,
.gallery-item:hover {
  transform: translateY(-7px);
  box-shadow: var(--glow);
}

.image-card img,
.property-card img,
.agent-card img,
.gallery-item img {
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-card:hover img,
.property-card:hover img,
.agent-card:hover img,
.gallery-item:hover img {
  transform: scale(1.08);
}

.image-card div {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(214, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
  color: #fff;
}

.image-card span {
  font-size: 25px;
}

.image-card h3,
.property-body h3,
.why-card h3,
.service-card h3,
.agent-card h3 {
  margin: 6px 0;
  font-size: 16px;
  font-weight: 900;
}

.image-card p,
.property-body p,
.why-card p,
.service-card p,
.agent-card p,
.contact-card p,
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.image-card p {
  color: #fff;
}

.property-card img {
  height: 170px;
}

.property-body {
  padding: 16px;
}

.property-body p {
  margin-bottom: 4px;
}

.whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  margin-top: 14px;
  font-size: 13px;
}


.property-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px !important;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0f0;
  color: var(--red) !important;
  font-size: 12px !important;
  font-weight: 900;
}

.sold-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.section-more {
  margin-top: 18px;
  text-align: center;
}

.section-more a {
  display: inline-flex;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.band {
  margin-top: 58px;
  background: linear-gradient(135deg, #fff5f5, #fff);
}

.why-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.why-card,
.service-card {
  min-height: 170px;
  padding: 24px 18px;
  border-radius: 8px;
  background: #fff;
  border-color: rgba(214, 0, 0, 0.16);
  text-align: center;
}

.why-card span,
.service-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffe7e7;
  color: var(--red);
  font-size: 25px;
}

.service-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: var(--glow);
}

.testimonials {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.testimonials .section-heading h2,
.testimonials .section-heading p {
  color: #fff;
}

.testimonial-slider {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 330px;
}

.testimonial {
  display: none;
  place-items: center;
  align-content: start;
  text-align: center;
  min-height: 330px;
  padding: 28px 20px;
  border-radius: 12px;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.testimonial img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial blockquote {
  margin: 18px auto;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.testimonial h3,
.testimonial p {
  margin: 0;
  color: #fff;
}

.agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-card {
  min-height: 420px;
}

.agent-card img {
  height: 420px;
}

.agent-card div {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  transform: translateY(48px);
  transition: transform 0.28s ease;
}

.agent-card:hover div {
  transform: translateY(0);
}

.agent-card a {
  display: inline-flex;
  margin: 12px 10px 0 0;
  color: var(--red);
  font-weight: 900;
}

.agent-card span {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 185px;
  gap: 18px;
}

.gallery-item {
  padding: 0;
  border: 0;
  cursor: pointer;
}

.gallery-item img {
  height: 100%;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fff4f4);
  border: 1px solid rgba(214, 0, 0, 0.12);
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.contact-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  border-color: var(--line);
  background: #fff;
}

.contact-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.contact-form button {
  min-height: 44px;
}

.contact-card iframe {
  width: 100%;
  min-height: 370px;
  border: 0;
  border-radius: 10px;
}

.footer {
  margin-top: 56px;
  background: linear-gradient(135deg, #980000, var(--red));
  color: #fff;
}

.footer-inner {
  padding-top: 36px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.8fr 0.9fr 1.2fr;
  gap: 28px;
}

.footer h2,
.footer h3,
.footer p,
.footer a {
  color: #fff;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
}

.footer-logo {
  width: 82px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.footer a {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.newsletter {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.newsletter form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input {
  background: rgba(255, 255, 255, 0.95);
}

.newsletter button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.socials {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.socials a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.footer-bottom {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

  .lightbox button {
    position: absolute;
    top: 22px;
    right: 28px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 30px;
}

.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 18, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.notice-popup.show {
  opacity: 1;
  visibility: visible;
}

.notice-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 34px 36px 30px;
  overflow: hidden;
  border: 1px solid rgba(128, 0, 0, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #800000;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s ease;
}

.notice-popup.show .notice-panel {
  transform: translateY(0) scale(1);
}

.notice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-bottom: 12px;
  padding: 0 20px;
  border: 1px solid #800000;
  border-radius: 999px;
  background: #800000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-panel h2 {
  margin: 0 0 12px;
  color: #800000;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.notice-panel p {
  margin: 0 auto 10px;
  max-width: 490px;
  color: #800000;
  font-size: 16px;
  line-height: 1.65;
}

.notice-panel strong {
  color: #800000;
}

.notice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #800000;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.notice-close:hover {
  background: #ffffff;
  color: #800000;
  transform: rotate(90deg);
}

.whatsapp-popup{
    position: fixed;
    bottom: 80px;
    right: 6px;

    background: #fff;
    width: 170px; /* popup size halka ghataiyo */

    border-radius: 18px;
    padding: 15px;

    box-shadow: 0 10px 30px rgba(0,0,0,.18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(30px);

    transition: .4s ease;

    z-index: 9999;
}

.whatsapp-popup.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-content{
    display: flex;
    align-items: center;
    gap: 10px;
}

.man-emoji{
    width: 40px;
    height: 40px;

    background: #25D366;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;

    flex-shrink: 0;
}

/* EDITED */
.text{
    margin-right: 5px;   /* right side margin */
    max-width: 150px;     /* text area smaller */
}

.text strong{
    display: block;
    font-size: 12px;
}

.text p{
    margin-top: 5px;
    color: #666;
    font-size: 10px;
    line-height: 1.4;
}


.floating-whatsapp,
.back-top {
  position: fixed;
  z-index: 40;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.floating-whatsapp {
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  transition: 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp img{
    width:30px;
    height:30px;
    display:block;
}

.back-top {
  bottom: 92px;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--red);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes skeleton {
  from {
    background-position: -200px 0;
  }
  to {
    background-position: 200px 0;
  }
}

@media (max-width: 1250px) {
  .topbar-inner {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .topbar-inner span:last-child {
    justify-self: start;
  }

  .navbar {
    grid-template-columns: 300px 1fr auto;
  }

  .menu {
    gap: 16px;
  }

  .category-grid,
  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid,
  .service-grid,
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .navbar {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 46px;
    grid-auto-rows: minmax(64px, auto);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    padding-right: 58px;
  }

  .menu-toggle {
    display: flex !important;
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 10px 22px rgba(214, 0, 0, 0.22);
    cursor: pointer;
  }

  .menu-toggle span {
    background: #fff;
    margin: 3px 0;
  }

  .mobile-shade {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(0, 0, 0, 0.48);
  }

  .mobile-shade.open {
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: min(82vw, 360px);
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: start;
    gap: 0;
    padding: 94px 28px 28px;
    background: #ffffff;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 0.3s ease;
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu a {
    color: #ff0019;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .stats,
  .search-box,
  .contact-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who-grid {
    grid-template-columns: 1fr;
  }

  .who-content {
    max-width: none;
  }

  .search-box button,
  .contact-card iframe {
    grid-column: 1 / -1;
  }

  .agent-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    font-size: 10.5px;
  }

  .topbar-inner,
  .navbar,
  .section,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .menu-toggle {
    right: 8px;
    left: auto;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 64px;
    height: 52px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  .stats,
  .search-box,
  .category-grid,
  .property-grid,
  .why-grid,
  .service-grid,
  .agent-grid,
  .footer-inner,
  .contact-card {
    grid-template-columns: 1fr;
  }

  #properties .property-grid,
  #sold-properties .sold-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .topbar-inner {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.25;
  }

  .topbar-inner span {
    min-width: 0;
  }

  .topbar-inner span:nth-child(odd) {
    justify-self: start;
    text-align: left;
  }

  .topbar-inner span:nth-child(even) {
    justify-self: end;
    text-align: right;
  }

  .who-grid {
    gap: 22px;
  }

  .who-image img {
    height: 270px;
  }

  .who-content h2 {
    font-size: 28px;
  }

  .who-content p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.6;
  }

  .who-points {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 360px;
  }

  .testimonial {
    min-height: 360px;
    padding: 22px 14px;
  }

  .testimonial img {
    width: 62px;
    height: 62px;
  }

  .testimonial blockquote {
    font-size: 13px;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    justify-content: flex-start;
    padding: 46px 18px 78px;
  }

  .hero .search-box {
    display: none;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 184px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero .stats {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 16px 0 0;
  }

  .hero .stats div {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    min-width: 0;
  }

  .hero .stats strong {
    font-size: 24px;
  }

  .hero .stats span {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.15;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 32px;
    line-height: 1.06;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .section {
    padding-top: 54px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .agent-card,
  .agent-card img {
    min-height: 380px;
    height: 380px;
  }

  .newsletter form,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .notice-popup {
    padding: 14px;
  }

  .notice-panel {
    padding: 34px 18px 24px;
  }

  .notice-label {
    min-height: 32px;
    padding: 0 16px;
    font-size: 14px;
  }

  .notice-panel h2 {
    font-size: 14px;
  }

  .notice-panel p {
    font-size: 14px;
    line-height: 1.6;
  }

  .notice-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

#categories .image-card div {
  inset: auto 10px 10px 10px;
  width: auto;
  padding: 10px;
}

#categories .image-card span {
  font-size: 10px;
}

#categories .image-card h3 {
  margin: 4px 0;
  font-size: 14px;
}

#categories .image-card p {
  font-size: 12px;
  line-height: 1.35;
}
