:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --brand: #0d9488;
  --brand-dark: #115e59;
  --accent: #ea580c;
  --gold: #d97706;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--soft);
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}

h1, h2, h3, .brand, .price, .brand-mark, .chat-launcher strong, .modal-header h2 {
  font-family: 'Outfit', sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: white;
  background: var(--brand);
  border-radius: 8px;
}

.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.main-nav {
  gap: 22px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.header-actions {
  gap: 12px;
}

.icon-button,
.post-button,
.text-button,
.search-button,
.tab {
  border: 0;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: #eef4f3;
  border-radius: 8px;
  font-size: 1.25rem;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: white;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.post-button {
  min-height: 42px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.post-button:hover {
  background: linear-gradient(135deg, var(--brand-dark), #0f4c4a);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
}

.search-button {
  height: 50px;
  min-height: 50px;
  padding: 0 28px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.search-button:hover {
  background: linear-gradient(135deg, var(--brand-dark), #0f4c4a);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
  transform: translateY(-1.5px);
}

.search-button:active {
  transform: translateY(0.5px);
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 40px;
  align-items: center;
  min-height: 480px;
  padding: 60px 48px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.65)),
    url("images/luxury_villa_hero.png");
  background-size: cover;
  background-position: center;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.search-copy {
  max-width: 650px;
  color: white;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-copy .eyebrow {
  color: #c5a059; /* Luxury warm gold */
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.filters,
.map-panel,
.compare-tray {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-radius: 16px;
  overflow: hidden;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-panel:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.search-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tab {
  min-height: 54px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  position: relative;
}

.tab.active {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 -3px 0 var(--brand);
}

.tab:not(.active):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) auto;
  gap: 16px;
  padding: 24px;
  align-items: end;
}

label span,
.sort-control span,
.range-label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  outline: none;
}

input,
select {
  height: 50px;
}

textarea {
  min-height: 150px;
  padding-top: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.content-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.filters,
.map-panel {
  position: sticky;
  top: 96px;
  border-radius: 8px;
}

.filters {
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.section-heading,
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading.compact a {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.text-button {
  color: var(--brand-dark);
  background: transparent;
  font-weight: 850;
}

fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 850;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  color: var(--muted);
  font-weight: 650;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.range-label {
  display: block;
  margin-top: 22px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--brand);
}

.results-toolbar {
  margin-bottom: 18px;
}

.active-criteria {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.sort-control {
  width: 190px;
}

.listings {
  display: grid;
  gap: 16px;
}

.property-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  border-color: rgba(13, 148, 136, 0.2);
}

.property-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  height: 100%;
  min-height: 220px;
}

.property-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-image {
  transform: scale(1.06);
}

.tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 5px 10px;
  color: white;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.save-overlay-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.save-overlay-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.95);
}

.save-overlay-btn.active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.image-verified-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  background: #0d9488;
  color: white;
  font-size: 0.65rem;
  font-weight: 850;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.property-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.property-title-container {
  flex: 1;
  min-width: 0;
}

.property-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 6px 0;
  line-height: 1.35;
  word-wrap: break-word;
}

.price-container {
  text-align: right;
  flex-shrink: 0;
}

.price {
  color: #0d9488;
  font-size: 1.4rem;
  font-weight: 900;
  white-space: nowrap;
}

.price-type {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.location {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.pin-icon {
  font-size: 0.95rem;
}

.facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.fact-cell {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  min-width: 0;
}

.fact-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.fact-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.fact-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  word-wrap: break-word;
}

.insights-highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #fff7ed;
  border-left: 3px solid #f97316;
  border-radius: 6px;
  margin-bottom: 16px;
}

.insights-icon {
  font-size: 1.1rem;
  line-height: 1.2;
}

.nearby-note {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #c2410c;
  margin: 0;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.chip {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
}

.zero-brokerage-chip {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-weight: 850;
}

.card-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-action-btn {
  flex: 1;
  min-height: 44px;
  background: #0d9488;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.primary-action-btn:hover {
  background: #0f766e;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
  transform: translateY(-1px);
}

.primary-action-btn .btn-arrow {
  transition: transform 0.2s ease;
  font-weight: bold;
}

.primary-action-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.compare-action-btn {
  min-height: 44px;
  padding: 0 18px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--brand-dark);
}

.compare-action-btn.active {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.map-panel {
  overflow: hidden;
}

.map-canvas {
  position: relative;
  height: 100%;
  min-height: 250px;
  background: #e5ecee;
}

.custom-leaflet-price-tag {
  background: none !important;
  border: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Custom premium popup overrides */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.split-view-container {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.map-sticky-panel {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100vh - 120px);
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 220px !important;
}

.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  width: 20px !important;
  height: 20px !important;
  color: #64748b !important;
  font-size: 14px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  z-index: 1000 !important;
}

.leaflet-popup-close-button:hover {
  background: #ffffff !important;
  color: #0f766e !important;
}


.map-summary {
  padding: 16px;
}

.map-summary dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.map-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.map-summary dt {
  color: var(--muted);
  font-weight: 700;
}

.map-summary dd {
  margin: 0;
  font-weight: 900;
}

.poi-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.poi-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poi-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  background: var(--brand);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.poi-item strong {
  display: block;
  font-size: 0.82rem;
}

.poi-item span,
.poi-distance,
.map-attribution {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.poi-distance {
  white-space: nowrap;
}

.map-attribution {
  margin: 14px 0 0;
  line-height: 1.45;
}

.projects-strip,
.agents-strip {
  padding: 8px 32px 44px;
}

.chat-widget {
  display: grid;
  grid-template-rows: auto minmax(260px, 360px) auto;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chat-widget.floating {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 40;
  width: min(420px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  transform-origin: bottom right;
}

.chat-widget.floating:not(.open) {
  display: none;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 41;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
  color: white;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(26, 39, 52, 0.22);
}

.chat-launcher.visible {
  display: flex;
}

.chat-launcher span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brand-dark);
  background: white;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
}

.chat-launcher strong {
  font-size: 0.92rem;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f7faf9;
  border-bottom: 1px solid var(--line);
}

.chat-header h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.chat-header span {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button.small {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.message {
  max-width: min(82%, 560px);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.message.bot {
  align-self: flex-start;
  color: #24343e;
  background: #eef4f3;
}

.message.user {
  align-self: flex-end;
  color: white;
  background: var(--brand);
}

.property-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(15, 118, 110, 0.08), 0 4px 12px -2px rgba(15, 118, 110, 0.03) !important;
  border-color: rgba(15, 118, 110, 0.3) !important;
}

.message strong {
  display: block;
  margin-bottom: 5px;
}

.chat-result {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 32, 42, 0.12);
}

.chat-result button {
  justify-self: start;
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: white;
  border: 1px solid #9ac7c2;
  border-radius: 8px;
  font-weight: 850;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.project-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: var(--brand);
}

.agent-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: var(--brand);
}

.agent-card strong {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 800;
}

.agent-card span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-dark);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.project-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-eyebrow {
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.project-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.project-card p {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  flex: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.project-config {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--brand-dark);
}

.project-action {
  font-size: 0.8rem;
  font-weight: 850;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.project-card:hover .project-action {
  transform: translateX(4px);
}

.compare-tray {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
}

.search-button.compact {
  min-height: 38px;
}

.empty-state {
  padding: 28px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 27, 35, 0.52);
}

.modal {
  width: min(520px, 100%);
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal.wide {
  width: min(1000px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.post-form {
  display: grid;
  gap: 12px;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.compare-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
}

.compare-table th, 
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare-table th {
  background-color: #f8fafc;
  color: var(--brand-dark);
  font-weight: 700;
  min-width: 150px;
}

.compare-table th:first-child,
.compare-table td:first-child {
  font-weight: 700;
  background-color: #f8fafc;
  color: var(--brand-dark);
  width: 130px;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background-color: #f8fafc;
}

.compare-image-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-thumb {
  width: 60px;
  height: 45px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.compare-title-container {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.compare-title {
  font-size: 0.85rem;
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.compare-loc {
  font-size: 0.75rem;
  color: var(--muted);
}

.remove-compare-btn {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-weight: bold;
  transition: background-color 0.2s;
}

.remove-compare-btn:hover {
  background: #fecaca;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-shell {
  display: grid;
  gap: 22px;
  padding: 32px;
}

.admin-panel {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-panel h1 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.admin-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.7fr 0.7fr 0.6fr 0.5fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row span {
  color: var(--muted);
  font-weight: 650;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  color: white;
  background: #22313a;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(26, 39, 52, 0.24);
  transform: translateX(-50%);
}

@media (max-width: 1120px) {
  .content-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .split-view-container {
    grid-template-columns: 1fr;
  }

  .map-sticky-panel {
    position: static !important;
    height: 400px !important;
    width: 100% !important;
    margin-top: 20px;
  }

  .app-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .search-shell,
  .content-layout {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .property-card {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .chat-widget.floating {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 98px);
  }

  .chat-launcher {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 560px) {
  .post-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .search-shell {
    min-height: auto;
    padding: 32px 16px 24px;
    border-radius: 0 0 16px 16px;
    gap: 24px;
  }

  .search-grid {
    padding: 16px;
    gap: 12px;
  }

  .property-top,
  .results-toolbar {
    display: grid;
  }

  .sort-control {
    width: 100%;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .compare-tray {
    left: 12px;
    right: 12px;
    bottom: 76px;
    justify-content: space-between;
  }

  .chat-widget.floating {
    grid-template-rows: auto minmax(210px, 1fr) auto;
  }

  .chat-header {
    align-items: flex-start;
  }

  .chat-header span {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding: 18px;
  }

  .admin-row,
  .saved-item {
    grid-template-columns: 1fr;
  }
}

.detail-modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 12px;
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
}

.detail-modal-media {
  height: 280px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.detail-modal-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}

.detail-modal-desc {
  margin-top: 16px;
  line-height: 1.6;
  color: #334155;
  font-size: 0.95rem;
}

.detail-modal-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 0;
}

.detail-modal-info dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.detail-modal-info dd {
  margin: 4px 0 0;
  margin-inline-start: 0;
  font-weight: 850;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.detail-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .detail-modal-body {
    grid-template-columns: 1fr;
  }
}

.top-privacy-bar {
  background: linear-gradient(90deg, #052e16 0%, #064e3b 100%);
  color: #a7f3d0;
  font-size: 0.76rem;
  text-align: center;
  padding: 6px 16px;
  font-family: var(--font-display);
  border-bottom: 1px solid #047857;
  letter-spacing: 0.02em;
}

.top-privacy-bar strong {
  color: #fff;
  font-weight: 800;
}

.privacy-badge-header {
  margin-left: 8px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .privacy-badge-header {
    display: none;
  }
  .top-privacy-bar {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
}

/* Value Proposition Strip */
.value-proposition-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 80px 40px;
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 100%);
  border-radius: 24px;
  margin: 60px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background ambient glow */
.value-proposition-strip::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.value-proposition-strip .section-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  grid-column: 1 / -1;
  margin-bottom: 40px !important;
}

.value-proposition-strip .section-heading .eyebrow {
  color: #2dd4bf !important; /* Premium teal color */
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.value-proposition-strip .section-heading h2 {
  margin: 0 !important;
  font-size: 2.5rem !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

.prop-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(30, 41, 59, 0.4);
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.prop-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.2);
  border-color: rgba(45, 212, 191, 0.3);
}

.prop-icon {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(13, 148, 136, 0.2) 100%);
  color: #2dd4bf;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(45, 212, 191, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-card:hover .prop-icon {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
  color: #0f172a;
  border-color: #2dd4bf;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

.prop-svg {
  width: 28px;
  height: 28px;
}

.prop-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.prop-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
}



/* Premium Price on Request Badge */
.premium-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(13, 148, 136, 0.15));
  color: var(--brand-dark);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.05);
  transition: all 0.3s ease;
  vertical-align: middle;
}

.premium-price-badge i {
  color: var(--accent);
  animation: pulse-lock 1.5s infinite ease-in-out;
}

@keyframes pulse-lock {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.premium-price-badge:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.25));
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}
