:root {
  --text: #0d1b2a;
  --muted: #f2f5f7;
  --card: rgba(255, 255, 255, 0.96);
  --green: #0d7a5f;
  --button: #0f7a65;
  --dark: rgba(10, 18, 29, 0.72);
  --border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f7;
  color: var(--text);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(13, 122, 95, 0.45);
  outline-offset: 3px;
}

.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 20, 0.48),
    rgba(8, 13, 20, 0.2) 35%,
    rgba(8, 13, 20, 0.38)
  );
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 56px;
  color: #fff;
  background: rgba(10, 18, 29, 0.18);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.topbar.scrolled {
  background: rgba(10, 18, 29, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--border);
}

.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a,
.nav-actions a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-actions > a:hover,
.nav-actions > a:focus-visible {
  color: #ecd6a5;
  opacity: 1;
  transform: translateY(-1px);
}

.main-nav a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 18, 29, 0.35);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: #ecd6a5;
  color: #ecd6a5;
  background: rgba(216, 189, 132, 0.16);
  transform: translateY(-1px);
}

.nav-button,
.search-button,
.tab {
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-button {
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.nav-actions a.nav-button {
  color: #111;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.78rem !important;
  white-space: nowrap;
}

.social-link span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 0.62rem;
  font-weight: 800;
}

.social-link.california {
  background: rgba(222, 57, 67, 0.22);
}

.social-link.north-carolina {
  background: rgba(31, 112, 188, 0.24);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: #ecd6a5;
  color: #14201f;
  background: #ecd6a5;
  transform: translateY(-2px);
}

.social-link:active,
.chatway-cta:active,
.search-button:active,
.listing-actions button:active,
.listing-actions a:active,
.load-more-reviews:active,
.admin-item-actions button:active {
  transform: translateY(1px) scale(0.98);
}

#userProfileCard {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#userProfileCard:hover,
#userProfileCard:focus-visible {
  border-color: rgba(236, 214, 165, 0.78) !important;
  background: rgba(216, 189, 132, 0.18) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24) !important;
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1100px, 80%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-content h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.8rem, 4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.search-panel {
  margin-top: 26px;
  width: min(760px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(14, 23, 32, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.tab-row {
  display: flex;
  align-items: center;
  gap: 26px;
  background: #fff;
  padding: 0 22px;
  border-bottom: 1px solid #e4e8e9;
}

.tab {
  position: relative;
  padding: 17px 2px 14px;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.tab.active {
  color: var(--green);
}

.tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
  content: "";
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-row input,
.map-search-box input,
.map-search-row input {
  width: 100%;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  padding: 16px 18px 16px 48px;
  font-size: 1rem;
  outline: none;
}

.search-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.12);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid #68747c;
  border-radius: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: #68747c;
  content: "";
  transform: rotate(45deg);
}

.search-button {
  background: var(--button);
  color: #fff;
  min-width: 116px;
  padding: 16px 22px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.tour-jump {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(10, 18, 29, 0.42);
}

.chatway-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 11px 16px 11px 11px;
  border: 1px solid rgba(216, 189, 132, 0.78);
  border-radius: 999px;
  color: #14201f;
  background: #d8bd84;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chatway-cta:hover,
.chatway-cta:focus-visible {
  background: #ecd6a5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.chatway-cta-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #d8bd84;
  background: #14201f;
  font-size: 1.05rem;
  line-height: 1;
}

.chatway-cta strong,
.chatway-cta small {
  display: block;
}

.chatway-cta strong {
  font-size: 0.86rem;
}

.chatway-cta small {
  margin-top: 2px;
  color: rgba(20, 32, 31, 0.72);
  font-size: 0.68rem;
}

.nav-button:hover,
.search-button:hover,
.tab:hover {
  transform: translateY(-1px);
}

.featured {
  padding: 64px 56px 32px;
}

.section-heading {
  margin-bottom: 26px;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.filters-bar input,
.filters-bar select,
.filters-bar button,
.listing-actions button,
.listing-actions a,
.areas-grid a,
.main-footer a,
.load-more-reviews,
.highlight-meta button,
.admin-item-actions button {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filters-bar input:hover,
.filters-bar select:hover,
.filters-bar button:hover,
.filters-bar input:focus,
.filters-bar select:focus,
.listing-actions button:hover,
.listing-actions a:hover,
.highlight-meta button:hover,
.admin-item-actions button:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 5px 14px rgba(13, 122, 95, 0.14);
  transform: translateY(-1px);
}

.section-heading p {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #4f5a63;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.8rem);
  letter-spacing: -0.04em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 20px;
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.results-layout .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-panel {
  position: sticky;
  top: 86px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
  min-height: 590px;
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

.map-heading p {
  margin: 0 0 4px;
  color: #68747c;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-heading h3 {
  margin: 0;
  font-size: 1.05rem;
}

.map-pin {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ee;
  color: #0f7a65;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
}

.map-panel > a {
  display: block;
  padding: 13px 18px 16px;
  color: #0f7a65;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(15, 122, 101, 0.03);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

@media (max-width: 980px) {
  .results-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: 0;
    min-height: 420px;
  }
}

.property-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(12, 25, 35, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
}

.card-body {
  padding: 18px 18px 20px;
}

.card-body h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.price {
  font-size: 1.18rem;
  font-weight: 800;
}

.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6px;
  padding: 8px;
  background: #eef2f3;
  min-height: 250px;
}

.gallery-main {
  border: 0;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  min-height: 240px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}

.gallery-main-one {
  background-image: url('cupertino1.webp');
}

.gallery-main-two {
  background-image: url('grove1.webp');
}

.gallery-main-three {
  background-image: url('cupertino10.webp');
}

.gallery-thumb {
  border: 0;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  min-height: 66px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main:hover,
.gallery-thumb:hover {
  filter: brightness(0.88);
}

.gallery-thumb-one { background-image: url('cupertino2.webp'); }
.gallery-thumb-two { background-image: url('cupertino3.webp'); }
.gallery-thumb-three { background-image: url('cupertino4.webp'); }
.gallery-thumb-four { background-image: url('cupertino5.webp'); }
.gallery-thumb-five { background-image: url('cupertino6.webp'); }
.gallery-thumb-six { background-image: url('cupertino7.webp'); }
.gallery-thumb-seven { background-image: url('cupertino8.webp'); }
.gallery-thumb-eight { background-image: url('cupertino9.webp'); }
.gallery-thumb-nine { background-image: url('cupertino11.webp'); }
.gallery-thumb-ten { background-image: url('grove2.webp'); }
.gallery-thumb-eleven { background-image: url('grove3.webp'); }
.gallery-thumb-twelve { background-image: url('grove4.webp'); }
.gallery-thumb-thirteen { background-image: url('grove5.webp'); }
.gallery-thumb-fourteen { background-image: url('grove6.webp'); }
.gallery-thumb-fifteen { background-image: url('grove7.webp'); }
.gallery-thumb-sixteen { background-image: url('grove8.webp'); }
.gallery-thumb-seventeen { background-image: url('grove9.webp'); }
.gallery-thumb-eighteen { background-image: url('grove10.webp'); }
.gallery-thumb-nineteen { background-image: url('grove11.webp'); }
.gallery-thumb-twenty { background-image: url('grove12.webp'); }
.gallery-thumb-twentyone { background-image: url('grove13.webp'); }
.gallery-thumb-twentytwo { background-image: url('grove14.webp'); }
.gallery-thumb-twentythree { background-image: url('grove15.webp'); }
.gallery-thumb-twentyfour { background-image: url('grove16.webp'); }
.gallery-thumb-twentyfive { background-image: url('cupertino1.webp'); }
.gallery-thumb-twentysix { background-image: url('cupertino2.webp'); }
.gallery-thumb-twentyseven { background-image: url('cupertino3.webp'); }

.gallery-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(17, 24, 39, 0.72);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
}

.save-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.48);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.save-btn[aria-pressed="true"] {
  background: #fff;
  color: #c62839;
}

.card-body {
  padding: 18px 18px 22px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #0e7d5f;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.card-body h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.card-body p {
  margin: 0;
  color: #4c5964;
}

.listing-location {
  font-size: 0.95rem;
  font-weight: 700;
}

.listing-facts {
  margin-top: 5px !important;
  font-size: 0.9rem;
}

.property-type-label {
  display: inline-block;
  margin-right: 8px;
  color: var(--green);
  font-weight: 800;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.filters-bar input,
.filters-bar select,
.filters-bar button {
  border: 1px solid #dfe5e7;
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  font: inherit;
  min-height: 46px;
  color: var(--text);
}

.filters-bar button {
  background: #0f7a65;
  color: #fff;
  border: none;
  cursor: pointer;
  padding-inline: 18px;
  font-weight: 700;
}

.filters-bar input,
.filters-bar select {
  min-width: 150px;
}

.filters-bar input[type="number"] {
  width: 120px;
  min-width: 120px;
}

.results-count {
  margin: -10px 0 18px;
  color: #68747c;
  font-size: 0.86rem;
  font-weight: 700;
}

.empty-state {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: #4e5a61;
}

.listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 5;
}

.schedule-tour-btn,
.chat-agent-btn,
.apply-listing-btn {
  border-radius: 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-tour-btn,
.chat-agent-btn,
.apply-listing-btn {
  border: none;
  border-radius: 12px;
  padding: 11px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.schedule-tour-btn {
  background: #0f7a65;
  color: #fff;
}

.chat-agent-btn {
  background: #eef3ff;
  color: #3652d6;
}

.apply-listing-btn {
  background: #e86c52;
  color: #fff;
}

.schedule-tour-btn:hover,
.chat-agent-btn:hover,
.apply-listing-btn:hover {
  opacity: 0.96;
}

.stats-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  background: #ffffff;
  border: 1px solid rgba(14, 23, 32, 0.05);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
  padding: 22px 20px;
}

.sell-section,
.areas-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 40px;
}

.sell-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 52px;
  border-radius: 16px;
  color: #fff;
  background: #0d1b2a;
}

.sell-section h2 { max-width: 480px; margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); }
.sell-section p:not(.eyebrow) { max-width: 470px; color: #d9e3e8; line-height: 1.65; }
.sell-button { display: inline-flex; margin-top: 12px; padding: 13px 18px; border-radius: 8px; color: #0d1b2a; background: #fff; font-weight: 700; text-decoration: none; }
.areas-section { padding: 25px 0 65px; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.areas-grid a { display: flex; justify-content: space-between; padding: 18px; border: 1px solid #dce3e7; border-radius: 8px; color: #0d1b2a; background: #fff; font-weight: 700; text-decoration: none; }
.areas-grid a:hover { border-color: #0d7a5f; color: #0d7a5f; }
.main-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 35px; padding: 48px max(24px, calc((100% - 1180px) / 2)); color: #c3d4cc; background: #092f29; }
.main-footer strong { color: #fff; font-size: 1.05rem; }
.main-footer p { max-width: 260px; margin: 14px 0 0; font-size: .78rem; line-height: 1.5; }
.founded-year { display: block; margin-top: 12px; color: #78b79b; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-footer-links, .main-footer > div:nth-child(3) { display: grid; align-content: start; gap: 11px; }
.main-footer a { color: #c3d4cc; font-size: .8rem; text-decoration: none; }
.main-footer a:hover { color: #fff; }
.main-footer span { color: #78b79b; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.main-footer small { align-self: end; color: #78b79b; white-space: nowrap; }

@media (max-width: 800px) {
  .sell-section { grid-template-columns: 1fr; padding: 34px 26px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .main-footer { grid-template-columns: 1fr 1fr; }
  .main-footer small { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .areas-grid, .main-footer { grid-template-columns: 1fr; }
  .main-footer small { grid-column: auto; }
}

/* Interactive polish */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.stats-strip .stat-item strong { display: inline-block; min-width: 5ch; }
.hero-visual { transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) rotate(1.3deg); transition: transform .18s ease-out; }
.hero-visual:hover { box-shadow: 18px 20px 0 rgba(13,122,95,.14), 0 28px 58px rgba(22,37,34,.17); }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-visual { transform: none; transition: none; }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.stat-item strong {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  letter-spacing: -0.04em;
}

.stat-item span {
  color: #4d5a61;
  font-size: 0.92rem;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 72px;
  align-items: center;
}

.eyebrow.dark {
  color: #0a7b5b;
}

.benefits-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.benefits-copy p {
  margin: 0;
  color: #4e5a61;
  line-height: 1.7;
}

.benefit-list {
  display: grid;
  gap: 16px;
}

.benefit-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf8f3;
  color: #0d7c60;
  font-weight: 800;
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.benefit-card p {
  margin: 0;
  color: #4e5a61;
  line-height: 1.6;
}

.agent-profile {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(14, 23, 32, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.07);
}

.agent-profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.agent-profile-copy h2 {
  margin: 0 0 2px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.agent-role {
  margin: 0 0 15px;
  color: var(--green);
  font-weight: 800;
}

.agent-profile-copy > p:not(.eyebrow):not(.agent-role) {
  margin: 0 0 12px;
  color: #55626d;
  line-height: 1.65;
}

.agent-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e4e8e9;
}

.agent-details > div {
  min-width: 0;
}

.agent-details h3 {
  margin: 0 0 6px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agent-details p,
.agent-details a {
  margin: 0;
  color: #55626d;
  font-size: 0.86rem;
  line-height: 1.6;
}

.agent-details a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.agent-details a:hover {
  text-decoration: underline;
}

.contact-links {
  display: grid;
  gap: 7px;
}

.contact-links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 0;
}

.contact-links a span {
  min-width: 42px;
  color: #68747c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-links a strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-links a:not(.email-link) strong {
  white-space: nowrap;
}

.reviews-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 90px;
}

.reviews-heading {
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(14, 23, 32, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  border-color: rgba(13, 122, 95, 0.34);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.11);
  transform: translateY(-3px);
}

.review-is-hidden {
  display: none;
}

.review-stars {
  color: #c18418;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.review-property-photo {
  width: 100%;
  height: 150px;
  margin-top: 15px;
  border-radius: 10px;
  object-fit: cover;
}

.review-card blockquote {
  flex: 1;
  margin: 16px 0 22px;
  color: #35434d;
  font-size: 1rem;
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.review-author img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border: 2px solid #d9eee6;
  border-radius: 50%;
}

.review-author p {
  min-width: 0;
  margin: 0;
}

.review-author span {
  display: block;
  margin-top: 4px;
  color: #68747c;
  font-size: 0.78rem;
  font-weight: 400;
}

.load-more-reviews {
  display: block;
  margin: 24px auto 0;
  border: 1px solid #0f7a65;
  border-radius: 10px;
  padding: 12px 18px;
  background: #fff;
  color: #0f7a65;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.load-more-reviews:hover {
  background: #effaf5;
}

.highlight-card {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 90px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.08);
}

.highlight-image {
  min-height: 320px;
  background-image: url('cupertino11.webp');
  background-size: cover;
  background-position: center;
}

.highlight-content {
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.3vw, 3rem);
  letter-spacing: -0.05em;
}

.highlight-content p {
  margin: 0;
  color: #55626d;
  line-height: 1.7;
}

.highlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.highlight-meta span {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.highlight-meta button {
  background: #0f7a65;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.video-tours {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto 90px;
}

.video-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-tour-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  overflow: hidden;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0d1b2a, #0f7a65);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.video-embed-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.video-embed-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13;
  height: auto;
  min-height: 0;
  max-height: 410px;
  border: 0;
}

.video-embed-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 16px;
}

.video-embed-info strong {
  flex: 1 1 120px;
  color: var(--text);
  font-size: 0.95rem;
}

.video-embed-info .video-state {
  flex-shrink: 0;
  color: #0f7a65;
  border-color: #bde5d6;
  background: #effaf5;
}

.video-embed-info .video-link {
  flex-shrink: 0;
  color: #0f7a65;
  font-weight: 700;
  text-decoration: none;
}

.video-tour-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.22), transparent 34%);
  pointer-events: none;
}

.video-play,
.video-state,
.video-tour-card strong,
.video-link {
  position: relative;
  z-index: 1;
}

.video-play {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0f7a65;
  font-size: 1.15rem;
}

.video-state {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-tour-card strong {
  font-size: 1.35rem;
}

.video-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.video-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: #f7f9fa;
}

.video-form label {
  display: grid;
  gap: 6px;
  color: #35434d;
  font-size: 0.82rem;
  font-weight: 700;
}

.video-form textarea {
  width: 100%;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}

.admin-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 90px;
  scroll-margin-top: 92px;
}

.admin-panel[hidden] {
  display: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.listing-form,
.admin-list {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.listing-form {
  display: grid;
  gap: 14px;
}

.admin-form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-form-heading h3 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-form-heading span {
  color: #0d7a5f;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.listing-form label {
  display: grid;
  gap: 6px;
  color: #35434d;
  font-size: 0.82rem;
  font-weight: 700;
}

.listing-form input,
.listing-form select,
.listing-form textarea {
  width: 100%;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.listing-form input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-submit {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  background: #0f7a65;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.listing-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-form-actions .admin-submit {
  flex: 1;
}

.cancel-edit {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 12px 16px;
  background: #fff;
  color: #35434d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.form-note {
  margin: -4px 0 0;
  color: #68747c;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f1;
}

.admin-item:first-child {
  padding-top: 0;
}

.admin-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-item.is-sold {
  opacity: 0.58;
}

.admin-item strong,
.admin-item span {
  display: block;
}

.admin-item strong {
  margin-bottom: 4px;
}

.admin-item span {
  color: #68747c;
  font-size: 0.8rem;
}

.admin-item-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.admin-item-actions button {
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  padding: 8px 9px;
  background: #fff;
  color: #35434d;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-item-actions button:last-child {
  color: #b42318;
}

.chat-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 13, 18, 0.5);
  z-index: 30;
  padding: 20px;
}

.chat-modal.open {
  display: flex;
}

.photo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
  background: rgba(5, 10, 16, 0.88);
}

.photo-modal.open {
  display: flex;
}

.photo-panel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1000px, 100%);
  max-height: 90vh;
}

.photo-panel img {
  grid-column: 2;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
}

.photo-close,
.photo-arrow {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.photo-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.photo-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.photo-arrow.previous {
  grid-column: 1;
  grid-row: 1;
}

.photo-arrow.next {
  grid-column: 3;
  grid-row: 1;
}

.photo-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

.chat-panel {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0d1b2a;
  color: white;
  padding: 18px 20px;
}

.chat-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-chat {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.chat-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f6f7f8;
}

.message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.message.bot {
  background: #fff;
  color: #1c2b38;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.message.user {
  margin-left: auto;
  background: #0f7a65;
  color: #fff;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fff;
}

.chat-form input {
  flex: 1;
  border: 1px solid #dfe5e7;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.96rem;
}

.chat-form button {
  border: none;
  border-radius: 12px;
  background: #0f7a65;
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 20px 24px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .nav-actions {
    gap: 10px;
  }

  .social-label {
    display: none;
  }

  .social-links {
    gap: 5px;
  }

  .social-link {
    padding: 7px 8px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    width: min(90%, 700px);
    padding-top: 92px;
  }

  .card-grid,
  .stats-strip,
  .benefits,
  .agent-profile,
  .highlight-card,
  .admin-layout,
  .video-grid,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .results-layout .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-panel {
    position: relative;
    top: auto;
  }

  .stats-strip {
    width: min(94%, 600px);
  }

  .agent-profile {
    grid-template-columns: 180px 1fr;
  }

  .agent-details {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    position: fixed;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .brand-wrap {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .nav-actions {
    order: 3;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
  }

  #userProfileCard {
    width: 38px;
    height: 38px;
    min-width: 38px;
    justify-content: center;
    padding: 3px !important;
    border-radius: 50% !important;
  }

  #userProfileCard > div:first-child {
    width: 30px !important;
    height: 30px !important;
  }

  #userProfileCard > div:nth-child(2),
  #userProfileCard > div:last-child,
  .topbar.has-user #accountLink {
    display: none !important;
  }

  .nav-actions .social-links {
    display: flex;
    gap: 2px;
  }

  .nav-actions .social-link {
    width: 32px;
    height: 32px;
    justify-content: center;
    overflow: hidden;
    font-size: 0 !important;
  }

  .social-link {
    padding: 5px;
    border: 0;
    background: transparent !important;
  }

  .social-link span {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .social-link:not(:has(span)) {
    display: none;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
  }

  .topbar.menu-open .main-nav {
    display: flex;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 112px;
  }

  .chatway-cta {
    max-width: 100%;
  }

  .chatway-cta small {
    white-space: normal;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-button {
    width: 100%;
  }

  .featured,
  .benefits,
  .agent-profile,
  .highlight-card,
  .admin-panel,
  .video-tours {
    width: min(92%, 1200px);
  }

  .featured {
    padding: 52px 0 20px;
  }

  .filters-bar {
    align-items: stretch;
  }

  .filters-bar input,
  .filters-bar select,
  .filters-bar button,
  .filters-bar input[type="number"] {
    width: 100%;
    min-width: 0;
  }

  .agent-profile {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .agent-profile-photo img {
    width: min(220px, 100%);
  }

  .agent-details {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .reviews-section {
    width: min(92%, 1200px);
  }

  .contact-links a {
    min-height: 40px;
    align-content: center;
  }

  .gallery-grid {
    min-height: 190px;
  }

  .gallery-main {
    min-height: 190px;
  }

  .gallery-side {
    gap: 4px;
  }

  .gallery-thumb {
    min-height: 0;
  }

  .listing-actions {
    grid-template-columns: 1fr;
  }

  .results-layout .card-grid {
    grid-template-columns: 1fr;
  }

  .video-embed-card iframe {
    height: auto;
    max-height: 390px;
    min-height: 0;
  }

  .video-embed-info {
    flex-wrap: wrap;
  }

  .video-embed-info strong {
    min-width: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-item-actions {
    width: 100%;
  }

  .admin-item-actions button {
    flex: 1;
  }

  .stats-strip {
    margin-bottom: 20px;
  }

  .highlight-content {
    padding: 24px 20px 26px;
  }

  .highlight-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}