/* ═══════════════════════════════════════════════════════════════════════════
   Clear Ally — Property Listings Embed  v16
   Brand-aligned: WT Monarch Nova + Aspekta, official colour palette
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Brand Fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'WT Monarch Nova';
  src: url('../fonts/MonarchNova.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aspekta';
  src: url('../fonts/Aspekta-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aspekta';
  src: url('../fonts/Aspekta-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aspekta';
  src: url('../fonts/Aspekta-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aspekta';
  src: url('../fonts/Aspekta-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Brand Tokens ────────────────────────────────────────────────────────── */
.cc-properties {
  --cc-forest:      #0f383a;
  --cc-forest-rgb:  15, 56, 58;
  --cc-sage:        #4a6163;
  --cc-terracotta:  #6B3726;
  --cc-charcoal:    #3a3a3a;
  --cc-linen:       #e6dccb;
  --cc-white:       #FFFFFF;
  --cc-border:      #ddd6cb;
  --cc-border-light:#EDE8E2;
  --cc-success:     #8d7050;
  --cc-error:       #C0392B;
  --cc-green-dot:   #e6dccb;
  --font-display:   'WT Monarch Nova', Georgia, 'Times New Roman', serif;
  --font-body:      'Aspekta', 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-pill:32px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
  --glass:      rgba(15, 56, 58, 0.72);
  --glass-blur: blur(14px);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        0.35s;

  font-family: var(--font-body);
  color: var(--cc-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #f1eee9;
  overflow-x: hidden;
}

.cc-properties *, .cc-properties *::before, .cc-properties *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cc-properties img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cc-properties a {
  color: var(--cc-forest);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.cc-properties a:hover { color: var(--cc-sage); }

.cc-properties h1, .cc-properties h2, .cc-properties h3, .cc-properties h4 {
  font-family: var(--font-display);
  color: var(--cc-forest);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── Search Bar ──────────────────────────────────────────────────────────── */
.cc-search-bar {
  background: #E8E8E4;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.cc-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.cc-search-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--cc-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.cc-search-field select,
.cc-search-field input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--cc-charcoal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--dur) var(--ease);
}

.cc-search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5' stroke='%234A4A4A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-color: #FFFFFF;
  padding-right: 2rem;
}

.cc-search-field select option {
  background: #FFFFFF;
  color: var(--cc-charcoal);
}

.cc-search-field input::placeholder { color: rgba(0,0,0,0.35); }

.cc-search-field select:focus,
.cc-search-field input:focus {
  outline: none;
  border-color: var(--cc-forest);
  box-shadow: 0 0 0 2px rgba(15, 56, 58,0.12);
}

/* Search button — Terracotta for action */
.cc-search-btn {
  padding: 0.55rem 1.4rem;
  background: #0a2a2b;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cc-search-btn:hover {
  background: #164a4c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,46,31,0.3);
}

/* ── Search Row 2 ────────────────────────────────────────────────────────── */
.cc-search-row-2 {
  display: flex;
  align-items: end;
  gap: 0.85rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.cc-search-ref { flex: 0 0 200px; }

.cc-search-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 1;
  align-items: center;
  padding-top: 1rem;
}

.cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--cc-charcoal);
  font-weight: 400;
  user-select: none;
  transition: color 0.2s;
}

.cc-toggle:hover { color: var(--cc-forest); }

.cc-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.cc-toggle input[type="checkbox"]:checked {
  background: var(--cc-terracotta);
  border-color: var(--cc-terracotta);
}

.cc-toggle input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: -1px;
  left: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.cc-search-actions {
  display: flex;
  gap: 0.5rem;
}

.cc-clear-btn {
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--cc-charcoal);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.cc-clear-btn:hover {
  color: var(--cc-forest);
  border-color: var(--cc-forest);
}

.cc-filter-note {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.5);
  font-weight: 400;
}

@media (max-width: 768px) {
  .cc-search-row-2 { flex-direction: column; }
  .cc-search-ref { flex: 1 1 100%; }
  .cc-search-toggles { justify-content: flex-start; }
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.cc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cc-results-count {
  font-size: 0.88rem;
  color: var(--cc-charcoal);
  font-weight: 400;
}

.cc-results-count strong {
  color: var(--cc-forest);
  font-weight: 600;
}

.cc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cc-sort-select {
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-pill);
  background: var(--cc-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cc-charcoal);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5' stroke='%234A4A4A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.cc-sort-select:hover { border-color: var(--cc-forest); }

.cc-view-toggle {
  display: flex;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.cc-view-toggle button {
  padding: 0.4rem 0.65rem;
  border: none;
  background: var(--cc-white);
  cursor: pointer;
  color: var(--cc-charcoal);
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  line-height: 1;
  opacity: 0.5;
}

.cc-view-toggle button.active {
  background: var(--cc-forest);
  color: var(--cc-white);
  opacity: 1;
}

.cc-view-toggle button + button {
  border-left: 1px solid var(--cc-border);
}

/* ── Currency Toggle ────────────────────────────────────────────────────── */
.cc-currency-toggle {
  display: flex;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.cc-cur-btn {
  padding: 0.35rem 0.6rem;
  border: none;
  background: var(--cc-white);
  cursor: pointer;
  color: var(--cc-charcoal);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--dur) var(--ease);
  line-height: 1;
}
.cc-cur-btn:hover { background: var(--cc-linen); }
.cc-cur-btn.active {
  background: var(--cc-forest);
  color: var(--cc-white);
}
.cc-cur-btn + .cc-cur-btn {
  border-left: 1px solid var(--cc-border);
}

/* ── Map ────────────────────────────────────────────────────────────────── */
.cc-map-wrap {
  margin-top: 0.75rem;
}
.cc-map-wrap iframe {
  display: block;
  width: 100%;
}

/* ── Property Grid ───────────────────────────────────────────────────────── */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cc-grid.cc-list-view {
  grid-template-columns: 1fr;
}

/* ── Card — Glassmorphism Overlay Style ────────────────────────────────── */
.cc-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: ccFadeIn 0.5s var(--ease) forwards;
  aspect-ratio: 4 / 5;
  background: var(--cc-border-light);
}

.cc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@keyframes ccFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.cc-card:nth-child(1)  { animation-delay: 0.03s; }
.cc-card:nth-child(2)  { animation-delay: 0.06s; }
.cc-card:nth-child(3)  { animation-delay: 0.09s; }
.cc-card:nth-child(4)  { animation-delay: 0.12s; }
.cc-card:nth-child(5)  { animation-delay: 0.15s; }
.cc-card:nth-child(6)  { animation-delay: 0.18s; }
.cc-card:nth-child(7)  { animation-delay: 0.21s; }
.cc-card:nth-child(8)  { animation-delay: 0.24s; }
.cc-card:nth-child(9)  { animation-delay: 0.27s; }
.cc-card:nth-child(10) { animation-delay: 0.30s; }
.cc-card:nth-child(11) { animation-delay: 0.33s; }
.cc-card:nth-child(12) { animation-delay: 0.36s; }

.cc-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cc-card:hover .cc-card-img img {
  transform: scale(1.05);
}

/* ── Card Glass Layout Row (main content + price/built block) ──────────── */
.cc-card-glass-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cc-card-glass-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Card Price/Built block (bottom-right of glass overlay) ────────────── */
.cc-card-top-info {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-shrink: 0;
  z-index: 3;
  line-height: 1.2;
  color: var(--cc-white);
}

.cc-card-top-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.cc-card-top-stat-value.cc-card-top-stat-secondary {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ── Card Glass Overlay (bottom) ─────────────────────────────────────────── */
.cc-card-glass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(15, 25, 18, 0.85) 0%,
    rgba(15, 25, 18, 0.65) 40%,
    rgba(15, 25, 18, 0.25) 75%,
    transparent 100%
  ) !important;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  padding: 1.25rem 1.25rem 1rem;
  z-index: 2;
  transition: background var(--dur) var(--ease);
}

.cc-card:hover .cc-card-glass {
  background: linear-gradient(
    to top,
    rgba(15, 25, 18, 0.92) 0%,
    rgba(15, 25, 18, 0.72) 40%,
    rgba(15, 25, 18, 0.35) 75%,
    transparent 100%
  ) !important;
}

.cc-card-status-dot {
  display: none !important;
}

.cc-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #FFFFFF !important;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35) !important;
}

.cc-card-subtitle {
  display: none;
}

/* ── Card Stats Row (grid view: beds, baths, built, plot with icons) ── */
.cc-card-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.cc-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #fff !important;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.cc-card-stat svg {
  width: 13px;
  height: 13px;
  stroke: #fff !important;
  fill: none !important;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ── Card Amenity Icons Row ── */
.cc-card-amenities {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.cc-card-amenity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cc-card-amenity svg {
  width: 13px;
  height: 13px;
  stroke: #fff !important;
  fill: none !important;
  stroke-width: 1.5;
}

/* ── Badges (on card) ────────────────────────────────────────────────────── */
.cc-badges {
  display: none !important;
}

.cc-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-white);
}

.cc-badge-sale     { background: rgba(var(--cc-forest-rgb), 0.75); backdrop-filter: blur(8px); }
.cc-badge-reduced  { background: var(--cc-terracotta); }
.cc-badge-new      { background: rgba(141,112,80,0.85); backdrop-filter: blur(8px); }
.cc-badge-type     { background: rgba(var(--cc-forest-rgb), 0.65); backdrop-filter: blur(8px); }

.cc-photo-count {
  display: none !important;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 3;
}

/* ── Save / Heart Button ─────────────────────────────────────────────────── */
.cc-save-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.25s ease;
  z-index: 4;
  padding: 0;
}

.cc-save-btn:hover {
  background: rgba(0,0,0,0.45);
  transform: scale(1.12);
}

.cc-save-btn.saved {
  color: var(--cc-terracotta);
  background: rgba(255,255,255,0.9);
}

.cc-save-btn.saved svg {
  fill: var(--cc-terracotta);
}

.cc-save-btn:hover svg {
  transform: scale(1.1);
}

/* ── Toolbar Saved Button ────────────────────────────────────────────────── */
.cc-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cc-charcoal);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.cc-saved-btn:hover {
  border-color: var(--cc-terracotta);
  color: var(--cc-terracotta);
}

.cc-saved-btn.active {
  background: var(--cc-terracotta);
  border-color: var(--cc-terracotta);
  color: #fff;
}

.cc-saved-btn.has-saved #ccSavedCount {
  background: var(--cc-terracotta);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.cc-saved-btn.active #ccSavedCount {
  background: rgba(255,255,255,0.25);
}

/* ── Legacy card-body (for list view / fallback) ─────────────────────────── */
.cc-card-body {
  padding: 1rem 1.25rem 1.15rem;
}

.cc-card-location {
  font-size: 0.72rem;
  color: var(--cc-sage);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.cc-card-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cc-forest);
  margin-bottom: 0.75rem;
}

.cc-card-stats {
  display: flex;
  gap: 1rem;
}

.cc-card-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--cc-charcoal);
  opacity: 0.7;
}

.cc-card-stat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--cc-sage);
  stroke-width: 1.5;
}

.cc-card-ref {
  font-size: 0.68rem;
  color: var(--cc-charcoal);
  margin-top: 0.5rem;
  opacity: 0.4;
}

/* ── Card Amenities ──────────────────────────────────────────────────────── */
.cc-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.cc-card-amenity {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  background: rgba(var(--cc-forest-rgb), 0.06);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  color: var(--cc-sage);
  font-weight: 500;
}

.cc-card-amenity svg {
  width: 12px;
  height: 12px;
  stroke: var(--cc-sage);
}

/* ── Old Price (strikethrough) ────────────────────────────────────────────── */
.cc-card-oldprice,
.cc-oldprice {
  text-decoration: line-through;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  font-size: 0.75em;
  margin-left: 0.3rem;
}

/* ── Amenity Icon Row (detail) ───────────────────────────────────────────── */
.cc-amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.cc-amenity-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--cc-linen);
  border: 1px solid var(--cc-border-light);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--cc-sage);
  font-weight: 500;
}

.cc-amenity-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--cc-sage);
}

/* ── Info Table (detail) ─────────────────────────────────────────────────── */
.cc-info-table {
  width: 100%;
  border-collapse: collapse;
}

.cc-info-table td {
  padding: 0.55rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--cc-border-light);
}

.cc-info-table td:first-child {
  color: var(--cc-charcoal);
  font-weight: 400;
  width: 40%;
  opacity: 0.65;
}

.cc-info-table td:last-child {
  color: var(--cc-forest);
  font-weight: 500;
  text-align: right;
}

/* ── Feature Groups (detail) ─────────────────────────────────────────────── */
.cc-feat-group {
  margin-bottom: 0.75rem;
}

.cc-feat-group:last-child {
  margin-bottom: 0;
}

.cc-feat-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cc-sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.cc-feat-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ── List View ───────────────────────────────────────────────────────────── */
.cc-list-view .cc-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: auto 1fr;
  aspect-ratio: auto;
  min-height: 260px;
}

.cc-list-view .cc-card-img {
  position: relative;
  inset: auto;
  height: 100%;
  grid-row: 1 / -1;
  grid-column: 1;
}

.cc-list-view .cc-card-glass {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 1.25rem 1.25rem !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  grid-column: 2;
  z-index: auto !important;
}

.cc-list-view .cc-card:hover .cc-card-glass {
  background: #FFFFFF !important;
}

.cc-list-view .cc-card-title {
  color: #0f383a !important;
  font-size: 1.3rem;
  text-shadow: none !important;
}

.cc-list-view .cc-card-subtitle {
  color: #3a3a3a !important;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.cc-list-view .cc-card-glass-row {
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0.5rem;
}

.cc-list-view .cc-card-top-info {
  flex-direction: row;
  align-items: flex-end;
  gap: 1.5rem;
  text-align: left;
  padding: 0 0 0.5rem 0;
  background: transparent !important;
}

.cc-list-view .cc-card-top-stat {
  color: #0f383a;
}

.cc-list-view .cc-card-top-stat-value {
  color: #3a3a3a;
}

.cc-list-view .cc-card-status-dot {
  display: none !important;
}

/* List view extras (beds, baths, description) */
.cc-card-list-extras {
  display: none;
}

.cc-list-view .cc-card-list-extras {
  display: block;
  margin-top: 0.5rem;
}

.cc-card-list-stats {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--cc-charcoal);
}

.cc-card-list-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cc-card-list-stats svg {
  opacity: 0.6;
}

.cc-card-list-desc {
  font-size: 0.82rem;
  color: var(--cc-charcoal);
  opacity: 0.75;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.cc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 2.5rem 0 1.5rem;
}

.cc-pagination button {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-pill);
  background: var(--cc-white);
  color: var(--cc-charcoal);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.cc-pagination button:hover:not(:disabled) {
  border-color: var(--cc-forest);
  background: var(--cc-forest);
  color: var(--cc-white);
}

.cc-pagination button.active {
  background: var(--cc-forest);
  border-color: var(--cc-forest);
  color: var(--cc-white);
}

.cc-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Detail Modal ────────────────────────────────────────────────────────── */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.cc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cc-modal {
  background: var(--cc-linen);
  width: 95vw;
  max-width: 960px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.cc-modal-close {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.75rem 0;
}

.cc-modal-close button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(var(--cc-forest-rgb), 0.06);
  color: var(--cc-forest);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.cc-modal-close button:hover {
  background: rgba(var(--cc-forest-rgb), 0.12);
}

.cc-modal-body {
  padding: 0 1.5rem 1.5rem;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.cc-gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cc-border-light);
  margin-bottom: 0.4rem;
}

.cc-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--cc-forest);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--dur) var(--ease);
}

.cc-gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.cc-gallery-prev { left: 0.75rem; }
.cc-gallery-next { right: 0.75rem; }

.cc-gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--cc-forest-rgb), 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

.cc-gallery-thumbs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.3rem;
}

.cc-gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all var(--dur) var(--ease);
}

.cc-gallery-thumb.active,
.cc-gallery-thumb:hover {
  border-color: var(--cc-forest);
  opacity: 1;
}

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

/* ── Detail Layout ───────────────────────────────────────────────────────── */
.cc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
  margin-top: 1.5rem;
  align-items: start;
}

.cc-detail-section {
  background: var(--cc-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.cc-detail-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--cc-border-light);
  font-weight: 400;
}

.cc-detail-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cc-forest);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cc-detail-loc {
  font-size: 0.75rem;
  color: var(--cc-sage);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.cc-detail-desc {
  line-height: 1.75;
  color: var(--cc-charcoal);
  font-size: 0.95rem;
  max-width: 70ch;
}

.cc-detail-desc p { margin: 0 0 1.1rem; }
.cc-detail-desc p:last-child { margin-bottom: 0; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.cc-detail-sidebar {
  position: sticky;
  top: 1rem;
}

.cc-price-box {
  background: var(--cc-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.cc-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cc-forest);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cc-ref {
  font-size: 0.75rem;
  color: var(--cc-charcoal);
  opacity: 0.5;
  margin-bottom: 1.25rem;
}

.cc-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cc-qstat {
  background: var(--cc-linen);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
}

.cc-qstat-val {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cc-forest);
}

.cc-qstat-lbl {
  font-size: 0.62rem;
  color: var(--cc-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  opacity: 0.6;
}

/* ── CTA Buttons — Terracotta = Urgency / Action ─────────────────────────── */
.cc-cta {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--cc-terracotta);
  color: var(--cc-white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.01em;
}

.cc-cta:hover {
  background: #7d4030;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(107,55,38,0.3);
}

.cc-cta-outline {
  background: transparent;
  border: 1.5px solid var(--cc-forest);
  color: var(--cc-forest);
  margin-top: 0.6rem;
}

.cc-cta-outline:hover {
  background: var(--cc-forest);
  color: var(--cc-linen);
  box-shadow: none;
}

/* ── Lead Form ───────────────────────────────────────────────────────────── */
.cc-lead-form {
  background: var(--cc-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.cc-lead-form h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  font-weight: 400;
}

.cc-form-group {
  margin-bottom: 0.65rem;
}

.cc-form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cc-charcoal);
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}

.cc-form-group input,
.cc-form-group textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cc-charcoal);
  background: var(--cc-linen);
  transition: all var(--dur) var(--ease);
}

.cc-form-group input:focus,
.cc-form-group textarea:focus {
  outline: none;
  border-color: var(--cc-forest);
  background: var(--cc-white);
  box-shadow: 0 0 0 3px rgba(var(--cc-forest-rgb), 0.08);
}

.cc-form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.cc-form-msg {
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.cc-form-msg.success {
  background: rgba(141,112,80,0.08);
  color: var(--cc-success);
}

.cc-form-msg.error {
  background: rgba(192,57,43,0.08);
  color: var(--cc-error);
}

/* ── Features ────────────────────────────────────────────────────────────── */
.cc-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.45rem;
}

.cc-feature {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: var(--cc-linen);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--cc-charcoal);
}

.cc-feature::before {
  content: '✓';
  color: var(--cc-sage);
  font-weight: 700;
  font-size: 0.72rem;
}

/* ── States ──────────────────────────────────────────────────────────────── */
.cc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--cc-charcoal);
}

.cc-spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--cc-border);
  border-top-color: var(--cc-forest);
  border-radius: 50%;
  animation: ccSpin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes ccSpin { to { transform: rotate(360deg); } }

.cc-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--cc-charcoal);
}

.cc-empty h3 {
  color: var(--cc-forest);
  margin-bottom: 0.3rem;
  font-weight: 400;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.cc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.cc-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.cc-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.cc-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cc-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Skeleton Loader ─────────────────────────────────────────────────────── */
.cc-skel-card {
  background: var(--cc-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--cc-border-light);
}

.cc-skel-img {
  height: 200px;
  background: var(--cc-border-light);
}

.cc-skel-body { padding: 1rem; }

.cc-skel-line {
  height: 14px;
  background: var(--cc-border-light);
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.cc-skel-line.short { width: 40%; }
.cc-skel-line.medium { width: 65%; }

@keyframes shimmer {
  0% { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}

.cc-shimmer {
  background: linear-gradient(90deg, var(--cc-border-light) 25%, #e9e4dc 50%, var(--cc-border-light) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

/* ── WhatsApp Float ──────────────────────────────────────────────────────── */
.cc-wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.cc-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
}

/* ── WhatsApp CTA in Detail ──────────────────────────────────────────────── */
.cc-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366 !important;
  color: #fff !important;
  text-decoration: none;
}

.cc-wa-cta:hover { background: #1ebe5c !important; }

/* ── Share Bar ────────────────────────────────────────────────────────────── */
.cc-share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--cc-white);
  border-bottom: 1px solid var(--cc-border-light);
  flex-wrap: wrap;
}

.cc-share-label {
  font-size: 0.78rem;
  color: var(--cc-charcoal);
  font-weight: 400;
  margin-right: 0.25rem;
  opacity: 0.6;
}

.cc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: var(--cc-linen);
  color: var(--cc-charcoal);
}

.cc-share-btn:hover { border-color: var(--cc-forest); color: var(--cc-forest); }
.cc-share-wa { color: #fff; background: #25D366; border-color: #25D366; }
.cc-share-wa svg { fill: #fff; }
.cc-share-wa:hover { background: #1da851; color: #fff; border-color: #1da851; }

/* ── Enhanced Lead Form ──────────────────────────────────────────────────── */
.cc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.cc-form-disclaimer {
  font-size: 0.7rem;
  color: var(--cc-charcoal);
  opacity: 0.5;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.cc-lead-form select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cc-charcoal);
  background: var(--cc-linen);
  appearance: auto;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cc-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-detail-grid { grid-template-columns: 1fr; }
  .cc-detail-sidebar { position: static; }
}

@media (max-width: 768px) {
  .cc-search-grid { grid-template-columns: 1fr 1fr; }
  .cc-grid { grid-template-columns: 1fr; }
  .cc-card { aspect-ratio: 4 / 5; }
  .cc-list-view .cc-card { grid-template-columns: 1fr; }
  .cc-gallery-thumbs { display: none; }
  .cc-modal { width: 100vw; max-width: 100%; border-radius: 0; max-height: 100vh; }
  .cc-form-row { grid-template-columns: 1fr; }
  .cc-share-bar { justify-content: center; }
  .cc-currency-toggle { order: -1; }
  .cc-cur-btn { font-size: 0.65rem; padding: 0.25rem 0.4rem; }
}

@media (max-width: 600px) {
  .cc-search-bar { padding: 1rem !important; }
  .cc-search-grid { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; }
  .cc-search-field label { font-size: 0.65rem !important; }
  .cc-search-field select,
  .cc-search-field input { padding: 0.55rem 0.7rem !important; font-size: 0.85rem !important; }
  .cc-search-row-2 { gap: 0.6rem !important; }
  .cc-search-toggles { flex-wrap: wrap; gap: 0.4rem 0.75rem; }
  .cc-search-actions { flex-wrap: wrap; gap: 0.5rem; }
  .cc-search-actions .cc-search-btn,
  .cc-search-actions .cc-clear-btn { flex: 1 1 auto; min-width: 110px; justify-content: center; }
  .cc-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .cc-toolbar-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 0.4rem; }
  .cc-currency-toggle { order: 0; flex: 0 0 auto; }
  .cc-cur-btn { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
  .cc-saved-btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .cc-sort-select { font-size: 0.78rem; padding: 0.4rem 1.7rem 0.4rem 0.65rem; max-width: 160px; }
  .cc-view-toggle { margin-left: auto; }
  .cc-view-toggle button { padding: 0.4rem 0.55rem; }
}

@media (max-width: 480px) {
  .cc-search-grid { grid-template-columns: 1fr !important; }
  .cc-card-stats { flex-wrap: wrap; gap: 0.5rem; }
  .cc-wa-float { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
  .cc-card { aspect-ratio: 3 / 4; }
  .cc-toolbar-right { gap: 0.35rem; }
  .cc-cur-btn { font-size: 0.65rem; padding: 0.25rem 0.4rem; }
}
