:root {
  --bg: #fff8f2;
  --surface: #ffffff;
  --surface-soft: #fff5ec;
  --panel: #fff5ec;
  --line: #f0e3d7;
  --text: #2e2e2e;
  --muted: #6b6b6b;
  --dark: #2e2e2e;
  --primary: #c24e00;
  --primary-deep: #c24e00;
  --accent: #ff7a00;
  --peach: #ffc48a;
  --primary-soft: #fff5ec;
  --success: #eafaf1;
  --success-text: #0f8f5c;
  --warning: #fff7e6;
  --warning-text: #b66a00;
  --shadow: 0 30px 60px rgba(46, 46, 46, 0.11);
  --shadow-soft: 0 14px 32px rgba(46, 46, 46, 0.08);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --bs-primary: #c24e00;
  --bs-primary-rgb: 194, 78, 0;
  --bs-link-color: #c24e00;
  --bs-link-color-rgb: 194, 78, 0;
  --bs-link-hover-color: #a84200;
  --bs-link-hover-color-rgb: 168, 66, 0;
  --bs-body-color: #2e2e2e;
  --bs-body-font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #fffdfb 0%, var(--bg) 100%);
  color: var(--text);
}

.topbar,
main > :not(.home-hero),
.site-footer {
  zoom: 0.7875;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  border: 0;
  box-shadow: 0 12px 24px rgba(194, 78, 0, 0.22);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #a84200 0%, #ff8a1f 100%);
}

.btn-circle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(14px);
}

body:has(.home-hero) .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body:has(.home-hero) .topbar .navbar {
  background: transparent !important;
  backdrop-filter: none;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

body:has(.home-hero) .topbar .container-xxl {
  max-width: none;
  padding-left: 4rem;
  padding-right: 4rem;
}

body:has(.home-hero) .topbar.is-scrolled .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(46, 46, 46, 0.08) !important;
}

.brand-logo {
  display: block;
  height: 86px;
  width: auto;
  margin: -17px 0;
}

.navbar-nav .nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  transition: 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
  background: transparent;
}

.navbar-nav .nav-link.active {
  color: var(--dark);
  background: transparent;
  border-radius: 0;
  box-shadow: inset 0 -3px 0 var(--accent);
}

section {
  position: relative;
}

.home-hero {
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.home-hero > .container-xxl {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.hero-card-wrap {
  position: relative;
  min-height: 100%;
}

.hero-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,245,236,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem;
  min-height: 100%;
}

.hero-panel h1 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin-bottom: 1rem;
  max-width: 640px;
}

.eyebrow,
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--primary);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.6rem;
}

.hero-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 650px;
}

.hero-actions { 
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-outline-modern {
  border-radius: 14px;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--dark);
}

.feature-highlight {
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--accent) 100%);
  border-radius: var(--radius-xl);
  min-height: 100%;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-highlight .badge {
  align-self: flex-start;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-highlight h3 {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.4rem;
}

.feature-highlight p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.market-strip {
  padding: 1rem 0 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-box {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.2rem;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-grid,
.neighborhood-grid,
.featured-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.feature-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.2rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(255, 196, 138, 0.18));
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.neighborhood-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.neighborhood-card {
  min-height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16,24,39,0.12), rgba(16,24,39,0.52)),
    url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=900&q=80') center/cover;
  display: flex;
  align-items: end;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.neighborhood-card .label {
  display: inline-flex;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.93);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.featured-item {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.featured-item .thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.featured-item .body {
  padding: 1rem 1rem 1.15rem;
}

.featured-item .body h4 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.featured-item .body p {
  margin: 0;
  color: var(--muted);
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  color: white;
  padding: 1.5rem 1.4rem;
  margin-top: 1.6rem;
}

.cta-banner h3 {
  margin-bottom: 0.3rem;
  letter-spacing: -0.04em;
}

.cta-banner p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.page-header {
  padding-top: 2.2rem;
}

.hero-copy-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,245,236,0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
}

.hero-copy-panel h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin-bottom: 1rem;
}

.hero-copy-panel p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.card-surface,
.info-panel,
.contact-form-wrap,
.detail-section,
.detail-summary,
.admin-form-card,
.admin-table-card,
.metric-card,
.filters-panel,
.admin-login-box,
.property-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.search-banner {
  padding-top: 1.6rem;
}

.search-box {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(230, 235, 243, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 0.9rem 0.8rem 1rem;
}

.search-box .input-group-text {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
}

.search-box input {
  border: none;
  box-shadow: none;
}

.search-box input:focus {
  box-shadow: none;
}

.search-box .btn-primary-modern {
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
}

.listings-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.filters-panel {
  padding: 0.9rem 0.85rem;
  position: sticky;
  top: 90px;
  height: fit-content;
  width: 100%;
}

.results-panel {
  min-width: 0;
  width: 100%;
}

.filters-bar {
  position: static;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
}

.filters-bar .filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem 1rem;
  align-items: start;
}

.filters-bar .filter-group,
.filters-bar .compact-group {
  margin-bottom: 0;
}

.filters-bar .filter-group-wide {
  grid-column: span 2;
}

.filters-bar .check-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.filters-bar .check-inline .form-check {
  margin-bottom: 0;
}

.filters-bar .filters-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  margin-top: 1rem;
  grid-column: 1 / -1;
}

.filters-bar .filters-actions .clear-filters {
  margin-top: 0;
}

.filters-bar .filters-actions .btn {
  width: auto;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

@media (max-width: 575.98px) {
  .filters-bar .filter-group-wide {
    grid-column: auto;
  }
}

@media (min-width: 992px) {
  .filters-bar .filters-grid {
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 0.9rem 0.9rem;
    align-items: start;
  }

  .filters-bar .filters-grid > :nth-child(1),
  .filters-bar .filters-grid > :nth-child(4) { grid-column: span 4; }
  .filters-bar .filters-grid > :nth-child(2),
  .filters-bar .filters-grid > :nth-child(3) { grid-column: span 5; }
  .filters-bar .filters-grid > :nth-child(5) { grid-column: span 6; }
  .filters-bar .filters-grid > :nth-child(6) { grid-column: span 8; }
  .filters-bar .filters-grid > :nth-child(7),
  .filters-bar .filters-grid > :nth-child(8),
  .filters-bar .filters-grid > :nth-child(9) { grid-column: span 3; }
  .filters-bar .filters-grid > :nth-child(10) { grid-column: span 7; }
  .filters-bar .filters-grid > :nth-child(11) { grid-column: 1 / -1; }

  .filters-bar .filters-grid > :nth-child(10) .check-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.8rem;
  }

  .filters-bar .filters-actions {
    margin-top: 0.2rem;
  }
}

.filters-panel h2 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.filter-group {
  margin-bottom: 0.75rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
}

.compact-group {
  margin-bottom: 0.7rem;
}

.compact-select,
.compact-range {
  margin-bottom: 0.1rem;
}

.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 0.58rem 0.72rem;
  font-size: 0.85rem;
}

.form-check {
  margin-bottom: 0.2rem;
}

.form-check-label {
  font-size: 0.78rem;
}

.compact-check {
  margin-bottom: 0.18rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 122, 0, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.18);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.range-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.price-range {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.clear-filters {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--primary);
  font-weight: 700;
}

.compact-button {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.9rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.results-header h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

.sort-control label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.sort-control select {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

@media (max-width: 1199.98px) {
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .property-grid { grid-template-columns: 1fr; }
}

.property-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  height: 100%;
}

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

.location-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  font-size: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.9rem 0.9rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.66rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag.green {
  background: #f0eeec;
  color: #4a4a4a;
}

.tag.blue {
  background: var(--accent);
  color: #fff;
}

.tag.purple {
  background: #ffe6cf;
  color: #8a3b00;
}

.card-body {
  padding: 0.9rem 0.9rem 0.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.card-body h3 a {
  color: var(--text);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--primary);
}

.unit {
  font-size: 0.8rem;
  color: var(--muted);
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0 0.9rem 0.9rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.empty-state {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.property-detail-shell {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 78, 0, 0.35);
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.back-button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1.3rem;
}

.detail-image-gallery {
  position: relative;
}

.detail-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  background: #fff;
}

.detail-gallery-image {
  display: none;
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 24px;
}

.detail-gallery-image.active {
  display: block;
}

.detail-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.detail-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  width: 72px;
  height: 52px;
  flex-shrink: 0;
}

.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-thumb.active {
  border-color: var(--primary);
}

.detail-location {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-size: 0.74rem;
}

.detail-summary {
  padding: 1.4rem 1.3rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-summary h1 {
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.5rem 0 1rem;
}

.detail-price {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.66rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag.green {
  background: #f0eeec;
  color: #4a4a4a;
}

.tag.blue {
  background: var(--accent);
  color: #fff;
}

.tag.purple {
  background: #ffe6cf;
  color: #8a3b00;
}

.detail-info-box {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-info-box h3,
.detail-description-box h3 {
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 122, 0, 0.08);
  color: var(--primary);
  border: 1px solid rgba(255, 122, 0, 0.2);
}

.detail-chip-label {
  font-weight: 800;
  color: var(--dark);
}

.detail-description-box {
  margin-top: 1.2rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.3rem;
}

.detail-description-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-trigger {
  margin-top: 0.8rem;
  width: 100%;
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: white;
  width: min(480px, calc(100% - 2rem));
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 1.3rem;
}

.modal-card h3 {
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.modal-card label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.modal-card input {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.72rem 0.9rem;
}

.contact-panel,
.about-section {
  padding-top: 1.3rem;
  padding-bottom: 2rem;
}

.contact-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 1.2rem;
}

.contact-form-wrap,
.info-panel,
.about-copy {
  padding: 1.5rem 1.3rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.admin-login-form input,
.admin-form-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-top: 0.35rem;
}

.success-message {
  background: var(--success);
  color: var(--success-text);
  border: 1px solid rgba(15, 143, 92, 0.12);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  color: var(--text);
}

.admin-header {
  padding-bottom: 1rem;
}

.admin-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,245,236,0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.4rem;
}

.admin-subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

.admin-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-login-box {
  padding: 1.3rem;
  max-width: 420px;
  margin: 0 auto;
}

.admin-login-form {
  display: grid;
  gap: 1rem;
}

.admin-login-form h3,
.admin-form-card h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.error-text {
  color: #c43d3d;
  margin: 0;
  font-size: 0.9rem;
}

.admin-panel-shell {
  display: grid;
  gap: 1.2rem;
}

.admin-form-card {
  padding: 1.2rem;
}

.admin-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ghost-button-inline {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1.1rem 1rem;
}

.metric-card .metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  letter-spacing: -0.06em;
  margin: 0.35rem 0;
}

.metric-card small {
  color: var(--muted);
}

.metric-card.highlight-card {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  color: white;
}

.metric-card.highlight-card small,
.metric-card.highlight-card .metric-label {
  color: rgba(255,255,255,0.75);
}

.admin-table-card {
  padding: 1rem;
  font-size: 0.82rem;
}

.table-header-row h4 {
  margin: 0;
  letter-spacing: -0.04em;
  font-size: 0.7rem;
}

th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.78rem;
}

th {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-button {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.table-button.edit-property {
  background: var(--primary-soft);
  color: var(--primary);
}

.table-button.danger {
  background: #ffe5e5;
  color: #b93737;
}

.hidden {
  display: none !important;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.field-group span {
  display: block;
  padding-left: 0.2rem;
}

.field-group--wide {
  grid-column: 1 / -1;
}

.admin-form-card label,
.admin-login-form label {
  margin: 0;
}

.admin-login-form input,
.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
  margin-top: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-card textarea {
  min-height: 92px;
  resize: vertical;
}

.upload-field {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.upload-field input {
  margin-top: 0.2rem;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.upload-field input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.upload-field input[type="file"]::file-selector-button,
.upload-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.8rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
}

.upload-field input[type="file"]::-webkit-file-upload-button {
  text-transform: none;
}

.upload-field input[type="file"]::placeholder {
  color: var(--muted);
  opacity: 1;
}

.upload-field input[type="file"] {
  color: var(--text);
}

.upload-field input[type="file"]::-ms-browse {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.58rem 0.9rem;
  font-weight: 700;
}

.file-upload-control {
  position: relative;
  width: 100%;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.3rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  min-width: 120px;
}

.file-upload-name {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label input[type="file"]:focus + .file-upload-button,
.file-upload-label:focus-within .file-upload-button {
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.22);
}

.admin-price-cell {
  color: var(--primary-deep);
  white-space: nowrap;
}

.hero-showcase {
  position: relative;
  min-height: 100vh;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: none;
  border: none;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  align-items: end;
  padding: 7rem 2rem 3rem;
  /* Alinea con el logo del header (padding lateral 3rem visuales) */
  padding-left: 3rem;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 58% at 100% 0%, rgba(255, 122, 0, 0.95) 0%, rgba(194, 78, 0, 0.92) 62%, transparent 63%),
    radial-gradient(ellipse 22% 36% at 100% 100%, rgba(255, 196, 138, 0.75) 0%, rgba(255, 196, 138, 0.55) 62%, transparent 63%);
  pointer-events: none;
}

.hero-showcase-content,
.hero-showcase-card {
  position: relative;
  z-index: 1;
}

.hero-showcase-content {
  max-width: 760px;
  align-self: center;
  padding-top: 0.5rem;
}

.hero-showcase-content .eyebrow {
  display: inline-block;
  color: var(--primary);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(194, 78, 0, 0.22);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-showcase-content h1 {
  color: var(--dark);
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-bottom: 1rem;
}

.hero-showcase-content p:not(.eyebrow) {
  color: #3d3d3d;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.social-btn,
.social-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover,
.social-card:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.social-btn.whatsapp,
.social-btn.instagram,
.social-btn.facebook {
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  border: 1px solid rgba(194, 78, 0, 0.35);
  border-radius: 999px;
  box-shadow: none;
}

.social-card.whatsapp,
.social-card.instagram,
.social-card.facebook {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(194, 78, 0, 0.25);
}

.hero-showcase-card {
  width: min(100%, 330px);
  justify-self: end;
  align-self: end;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--accent) 100%);
  border-radius: 22px;
  padding: 1.35rem 1.2rem 1.25rem;
  color: white;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-showcase-card .badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-showcase-card h3 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.hero-showcase-card p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.featured-price {
  margin-top: 0.8rem;
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.featured-header {
  margin-bottom: 1.2rem;
}

.why-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.why-header-wide {
  max-width: 1000px;
}

.why-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.why-tag span {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.why-header h2 {
  margin: 0 0 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
}

.why-header h2 em {
  font-style: normal;
  color: var(--accent);
}

.why-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--accent);
  font-size: 1.5rem;
}

.why-card .why-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.why-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.why-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-tag-left {
  margin-bottom: 1rem;
}

.why-tag-left span {
  width: 44px;
}

.agents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.agents-intro h2 {
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--dark);
}

.agents-intro h2 em {
  font-style: normal;
  color: var(--accent);
}

.agents-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.benefit-item .why-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
}

.benefit-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

.benefit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.process-panel {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #ffe9d6 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.5rem 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: stretch;
}

.process-card {
  padding: 1.3rem 1.2rem;
}

.process-arrow {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .agents-layout { grid-template-columns: 1fr; }
  .agents-benefits { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-arrow { transform: rotate(90deg); justify-self: center; }
}

.featured-header h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem auto 0;
  max-width: 900px;
}

.social-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 84px;
  padding: 1rem 1.25rem;
  border-radius: 22px;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-card i {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.social-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: white;
}

.social-card p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.social-card.whatsapp {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  box-shadow: 0 12px 24px rgba(194, 78, 0, 0.25);
}

.social-card.instagram {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  box-shadow: 0 12px 24px rgba(194, 78, 0, 0.25);
}

.social-card.facebook {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  box-shadow: 0 12px 24px rgba(194, 78, 0, 0.25);
}

.currency-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
  background: linear-gradient(180deg, #fff5ec 0%, #fffaf5 100%);
  border: 1px solid rgba(255, 122, 0, 0.18);
  border-radius: 999px;
  padding: 0.28rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.currency-option {
  position: relative;
  display: block;
  margin: 0;
}

.currency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.currency-option span {
  display: block;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-option input:checked + span {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 8px 18px rgba(194, 78, 0, 0.25);
}

.price-number-row {
  display: block;
}

.price-inputs {
  display: grid;
  gap: 0.4rem;
}

.price-inputs-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.compact-control {
  width: 100%;
  min-height: 38px;
  font-size: 0.82rem;
  padding: 0.5rem 0.7rem;
}

.price-inputs-inline .compact-control {
  min-width: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.price-inputs-inline .compact-control::-webkit-outer-spin-button,
.price-inputs-inline .compact-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.2);
}

.form-range::-webkit-slider-thumb {
  background-color: var(--accent);
}

.form-range::-moz-range-thumb {
  background-color: var(--accent);
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(255, 122, 0, 0.25);
}

.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(255, 122, 0, 0.25);
}

.pagination .page-link {
  color: var(--primary);
  border-color: var(--line);
}

.pagination .page-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.2);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
}

.site-footer {
  background: #f5f4f3;
  border-top: 1px solid var(--line);
}

.site-footer .text-secondary {
  color: var(--muted) !important;
}

.site-footer .footer-shell {
  padding: 0.6rem 0;
}

body:has(.home-hero) .site-footer .container-xxl {
  max-width: none;
  padding-left: 4rem;
  padding-right: 4rem;
}
