:root {
  --green: #6b8e63;
  --green-dark: #4f6f4a;
  --orange: #e07a3e;
  --text-dark: #23291f;
  --gray-bg: #f2f2f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn-signin {
  background: var(--orange);
  color: #fff;
}

/* Header */
.site-header {
  background: var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  background: var(--green);
  padding-bottom: 60px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
}

.hero-content {
  color: #fff;
  max-width: 540px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
}

/* Search page (Map Search) */
.search-hero { padding-bottom: 0; }

.search-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  column-gap: 40px;
  align-items: start;
  padding-top: 40px;
}

.search-hero-content { max-width: none; grid-column: 1; grid-row: 1; }

.search-hero-inner .search-live-root { display: contents; }

.search-hero-inner .search-card { grid-column: 2; grid-row: 1; }

.search-card .adv-filters { left: auto; right: 0; }

.search-hero-inner .property-results {
  grid-column: 1 / -1;
  grid-row: 2;
  background: #fff;
  padding: 40px 0 70px;
}

.search-results-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.search-map-col {
  position: sticky;
  top: 20px;
  height: 680px;
}

.search-map-col .property-map { height: 100%; margin-top: 0; }

.search-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 16px;
}

.search-breadcrumb a { color: #777; }
.search-breadcrumb span:last-child { color: var(--text-dark); font-weight: 600; }

.search-list-header { margin-bottom: 20px; }

.search-list-title {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.search-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-by { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-dark); }

.sort-by select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
}

.property-row-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 14px;
  margin-bottom: 20px;
  transition: transform 0.15s ease;
}

.property-row-card:hover { transform: translateY(-2px); }

.property-row-image {
  position: relative;
  flex: 0 0 220px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-bg);
}

.property-row-image img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
}

.badge-featured { background: var(--green); }

.property-row-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.favorite-btn-icon {
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn-icon.active { color: var(--orange); }

.property-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 4px 4px 0;
}

.property-row-body h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.property-row-meta {
  display: flex;
  gap: 24px;
  margin-bottom: auto;
  padding-bottom: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.meta-icon { color: var(--green); flex-shrink: 0; }
.meta-item small { font-size: 0.7rem; font-weight: 500; color: #777; }

.property-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.property-row-status { font-size: 0.85rem; color: #666; font-weight: 600; }

.property-row-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
}

.search-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 10px 10px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
}

.tab.active {
  background: var(--gray-bg);
  color: var(--text-dark);
  font-weight: 600;
}

.search-bar {
  display: flex;
  gap: 8px;
  padding: 0 6px;
}

.search-bar input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.9rem;
  background: var(--gray-bg);
  font-family: inherit;
}

.search-bar button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--text-dark);
  color: #fff;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Advanced filters panel */
.adv-filters {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 480px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  padding: 24px 24px 20px;
  z-index: 40;
  color: var(--text-dark);
}

.adv-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.adv-close:hover { color: var(--text-dark); }

.filters-row {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.filters-row.two-col { grid-template-columns: 1fr 1fr; }
.filters-row.three-col { grid-template-columns: 1fr 1fr 1fr; }

.filter-group { margin-bottom: 18px; }
.filters-row .filter-group { margin-bottom: 0; }

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
}

.btn-group {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.btn-group .opt {
  flex: 1;
  border: none;
  border-right: 1px solid #ddd;
  background: #fff;
  padding: 9px 4px;
  font-size: 0.82rem;
  color: #666;
  cursor: pointer;
}

.btn-group .opt:last-child { border-right: none; }

.btn-group .opt.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.price-slider {
  position: relative;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 20px 4px 8px;
}

.slider-track { position: absolute; inset: 0; border-radius: 2px; }

.slider-range {
  position: absolute;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

.price-slider input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  cursor: pointer;
}

.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  cursor: pointer;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 18px;
}

.features-toggle {
  border: none;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.features-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding: 14px 0 4px;
  font-size: 0.85rem;
}

.features-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.btn-reset,
.btn-apply {
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-reset {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-apply {
  background: var(--orange);
  color: #fff;
}

.hero-sub {
  margin-top: 22px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero-image {
  width: 340px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.dot.active {
  background: #fff;
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

/* Features */
.features {
  background: var(--gray-bg);
  padding: 70px 0;
}

.section-title {
  text-align: center;
  color: var(--green);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

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

.feature-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* CTA banner */
.cta-banner {
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  text-align: center;
  color: #fff;
}


/* Showcase */
.showcase {
  padding: 70px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showcase-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  height: 320px;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Locations */
.locations {
  padding-bottom: 70px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.location-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  height: 220px;
  border-radius: 8px;
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}

.location-name {
  position: absolute;
  top: 14px;
  left: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.location-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  text-align: right;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.location-count strong {
  font-size: 1.6rem;
  line-height: 1.1;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 50px 0 20px;
  position: relative;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  text-align: center;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

.footer-logo img {
  background: #d9d9d9;
  border-radius: 4px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}

.back-to-top {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
}

/* Property search results */
.property-results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.property-results.is-loading { opacity: 0.6; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}

.property-card:hover { transform: translateY(-3px); }

.property-card-image {
  position: relative;
  height: 190px;
  background: var(--gray-bg);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.property-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.property-card-body {
  padding: 16px 18px 20px;
}

.property-card-price {
  display: block;
  color: var(--green);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.property-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.property-card-meta {
  font-size: 0.82rem;
  color: #777;
}

.property-results-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
  padding: 40px 0;
}

.property-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.site-pagination { display: flex; gap: 6px; flex-wrap: wrap; }

.page-link {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-dark);
}

.page-link.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.page-link.disabled {
  color: #bbb;
  cursor: default;
}

/* Content pages & contact form */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  line-height: 1.7;
}

.page-content h1 {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 24px;
}

.page-content .page-body {
  margin-bottom: 40px;
}

.contact-form {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}

.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 4px;
}

.form-success {
  background: #e6f4ea;
  color: #256029;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* About page */
.about-section {
  padding: 60px 0 80px;
  text-align: center;
}

.about-section .section-title {
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-bottom: 60px;
}

.about-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.about-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.about-card p {
  padding: 20px 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.about-cta h2 {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.4;
}

.about-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

/* Join chooser page */
.join-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.join-option-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 30px 24px;
  text-align: center;
}

.join-option-card h3 {
  color: var(--green);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.join-option-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  min-height: 42px;
}

/* Contact page */
.page-hero {
  padding: 50px 0 70px;
}

.page-hero-title {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
}

.contact-card img {
  width: 80px;
  height: 80px;
  margin: -60px auto 16px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.contact-card h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}

.contact-card .btn {
  background: var(--green);
  color: #fff;
}

.get-in-touch h2 {
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.get-in-touch-intro {
  max-width: 640px;
  margin-bottom: 30px;
}

/* Agent Workspace page */
.agent-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
}

.agent-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 20px;
  flex-shrink: 0;
}

.agent-photo-grid img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.agent-photo-1 { height: 260px; }
.agent-photo-2 { height: 190px; align-self: start; }
.agent-photo-3 { height: 190px; align-self: end; }
.agent-photo-4 { height: 260px; }

.agent-features {
  background: #fff;
  padding: 70px 0;
}

.agent-features-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.agent-features-intro {
  flex-shrink: 0;
  width: 280px;
}

.agent-features-intro .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.agent-features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  flex: 1;
}

.agent-feature-item img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.agent-feature-item p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Property detail page */
.property-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

[x-cloak] { display: none !important; }

.property-gallery { margin-bottom: 30px; }

.property-gallery-main {
  position: relative;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-bg);
}

.property-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.property-gallery-placeholder .property-card-placeholder { border-radius: 10px; }

.property-detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-tab {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.65;
}

.detail-tab.active {
  background: var(--orange);
  opacity: 1;
}

.detail-additional-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
}

.detail-additional-list > div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.detail-additional-list dt { color: #777; }
.detail-additional-list dd { font-weight: 600; color: var(--text-dark); }

.floor-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.floor-plans-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #eee;
}

.property-video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}

.property-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.property-video-file {
  width: 100%;
  border-radius: 10px;
  margin-top: 12px;
}

.agent-detail-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 26px 24px;
  text-align: center;
}

.agent-detail-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.agent-detail-avatar-placeholder {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.agent-detail-card h4 { margin-bottom: 2px; }

.agent-detail-contact {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  font-size: 0.85rem;
  color: #555;
  text-align: left;
}

.agent-detail-contact li { margin-bottom: 6px; }

.agent-detail-price { color: var(--green); font-weight: 700; }

.btn-view-listings {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gray-bg);
  color: var(--text-dark);
  margin-bottom: 10px;
}

.related-section { margin-top: 20px; }

.property-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.property-detail-header h1 {
  font-size: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.property-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.property-facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.property-facts div {
  font-size: 0.85rem;
  color: #555;
}

.property-facts strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.property-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.property-features-list li {
  font-size: 0.88rem;
  color: #444;
}

.agent-detail-card .agency-name {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.property-map {
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
  background: var(--gray-bg);
}

.property-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.favorite-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
}

.favorite-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: center; gap: 30px; }
  .main-nav { display: none; }
  .adv-filters { min-width: 0; }
  .filters-row.two-col,
  .filters-row.three-col { grid-template-columns: 1fr; }
  .features-panel { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-detail-body { grid-template-columns: 1fr; }
  .property-gallery-main { height: 280px; }
  .detail-additional-list { grid-template-columns: 1fr; }
  .floor-plans-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .join-options { grid-template-columns: repeat(2, 1fr); }
  .agent-hero-inner { flex-direction: column; }
  .agent-features-inner { flex-direction: column; gap: 30px; }
  .agent-features-intro { width: auto; }
  .agent-features-list { grid-template-columns: repeat(2, 1fr); }
  .search-hero-inner { grid-template-columns: 1fr; }
  .search-hero-content,
  .search-card,
  .property-results { grid-column: 1; grid-row: auto; }
  .search-card { margin-top: 20px; }
  .search-results-split { grid-template-columns: 1fr; }
  .search-map-col { position: static; height: 320px; }
  .property-row-card { flex-direction: column; }
  .property-row-image { flex: none; width: 100%; height: 200px; }
}

@media (max-width: 640px) {
  .property-grid { grid-template-columns: 1fr; }
  .about-cta-actions { flex-direction: column; align-items: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .join-options { grid-template-columns: 1fr; }
  .agent-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-features-list { grid-template-columns: 1fr; }
  .search-list-meta { flex-direction: column; align-items: flex-start; }
}
