/* ===========================================================
   BalkanNekretnine AI — glassmorphic / neomorphic dark theme
   =========================================================== */

:root {
  --bg-base: #06090c;
  --bg-panel: rgba(15, 23, 42, 0.75);
  --bg-panel-solid: #10161c;
  --border-glass: rgba(255, 255, 255, 0.08);
  --bg-photo: url('https://images.unsplash.com/photo-1778424446970-e7dad8209d9b?fm=jpg&q=80&w=1920&auto=format&fit=crop&ixlib=rb-4.1.0');

  --cyan: #3df6ff;
  --cyan-soft: rgba(61, 246, 255, 0.35);
  --green: #4dff9e;
  --green-soft: rgba(77, 255, 158, 0.35);
  --crimson: #ff3b5c;
  --crimson-soft: rgba(255, 59, 92, 0.35);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.4);

  --text-primary: #eef6f7;
  --text-secondary: #93a3ab;
  --text-muted: #5c6b73;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --font-display: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: var(--bg-photo);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ---------- ambient glow background ---------- */

.bg-glow {
  position: fixed;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.bg-glow-cyan {
  top: -12vw;
  left: -10vw;
  background: var(--cyan);
}

.bg-glow-green {
  bottom: -16vw;
  right: -12vw;
  background: var(--green);
}

/* ---------- header ---------- */

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 42px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border-glass);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  background: linear-gradient(145deg, rgba(61, 246, 255, 0.15), rgba(77, 255, 158, 0.1));
  border: 1px solid var(--cyan-soft);
  box-shadow: 0 0 18px var(--cyan-soft), inset 0 0 12px rgba(61, 246, 255, 0.15);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo-main {
  color: var(--text-primary);
}

.logo-accent {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px var(--cyan-soft);
}

/* ---------- language dropdown ---------- */

.lang-select {
  position: relative;
}

.lang-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-select-trigger:hover,
.lang-select.is-open .lang-select-trigger {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 16px rgba(61, 246, 255, 0.18);
}

.lang-caret {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.lang-select.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(14, 19, 24, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(61, 246, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}

.lang-select.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(61, 246, 255, 0.08);
  color: var(--text-primary);
}

.lang-option.is-active {
  color: var(--text-primary);
  background: rgba(77, 255, 158, 0.08);
  box-shadow: inset 0 0 0 1px var(--green-soft);
}

/* ---------- layout ---------- */

.layout {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 36px 42px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

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

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.badge-mock {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(77, 255, 158, 0.08);
  border: 1px solid var(--green-soft);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 rgba(77, 255, 158, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.is-ready {
  background: var(--green);
  box-shadow: 0 0 12px var(--green-soft), 0 0 24px var(--green-soft);
}

/* ---------- input panel ---------- */

.ad-textarea {
  flex: 1;
  min-height: 260px;
  resize: vertical;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ad-textarea::placeholder {
  color: var(--text-muted);
}

.ad-textarea:focus {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 0 3px rgba(61, 246, 255, 0.08), 0 0 24px rgba(61, 246, 255, 0.12);
}

.ad-textarea.is-over-limit {
  border-color: var(--crimson-soft);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.1), 0 0 24px rgba(255, 59, 92, 0.2);
}

/* ---------- character counter ---------- */

.input-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.char-counter {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  color: var(--text-muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.char-counter.is-over {
  color: #ff6b85;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 59, 92, 0.45);
}

/* ---------- character limit alert (crimson) ---------- */

.hidden {
  display: none !important;
}

.alert-limit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 59, 92, 0.08);
  border: 1px solid var(--crimson-soft);
  color: #ffd7de;
  font-size: 13px;
  line-height: 1.5;
  animation: pulse-crimson 1.6s ease-in-out infinite;
}

.alert-limit-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--crimson);
  filter: drop-shadow(0 0 6px var(--crimson-soft));
}

@keyframes pulse-crimson {
  0%, 100% {
    border-color: rgba(255, 59, 92, 0.3);
    box-shadow: 0 0 16px rgba(255, 59, 92, 0.18), inset 0 0 14px rgba(255, 59, 92, 0.06);
  }
  50% {
    border-color: rgba(255, 59, 92, 0.65);
    box-shadow: 0 0 32px rgba(255, 59, 92, 0.4), inset 0 0 22px rgba(255, 59, 92, 0.14);
  }
}

/* ---------- rate limiter alert (amber neon) ---------- */

.alert-rate {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid var(--amber-soft);
  color: #ffe3b0;
  font-size: 13px;
  line-height: 1.5;
  animation: pulse-amber 1.4s ease-in-out infinite;
}

.alert-rate-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--amber);
  filter: drop-shadow(0 0 6px var(--amber-soft));
}

@keyframes pulse-amber {
  0%, 100% {
    border-color: rgba(255, 176, 32, 0.35);
    box-shadow: 0 0 16px rgba(255, 176, 32, 0.2), inset 0 0 14px rgba(255, 176, 32, 0.06);
  }
  50% {
    border-color: rgba(255, 176, 32, 0.75);
    box-shadow: 0 0 34px rgba(255, 176, 32, 0.45), inset 0 0 22px rgba(255, 176, 32, 0.16);
  }
}

/* ---------- image dropzone + limit (clean, non-pulsing) ---------- */

.dropzone-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropzone-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 16px rgba(61, 246, 255, 0.12);
  outline: none;
}

.dropzone.is-dragover {
  border-color: var(--green-soft);
  background: rgba(77, 255, 158, 0.05);
  box-shadow: 0 0 22px rgba(77, 255, 158, 0.2);
}

.dropzone-icon {
  font-size: 20px;
}

.dropzone-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.dropzone-counter {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.image-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-preview-row:empty {
  display: none;
}

.image-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.alert-image-limit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.alert-image-limit-icon {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--cyan);
}

.btn-analyze {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(61, 246, 255, 0.16), rgba(77, 255, 158, 0.16));
  border: 1px solid var(--cyan-soft);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 0 20px rgba(61, 246, 255, 0.15), inset 0 0 20px rgba(61, 246, 255, 0.06);
}

.btn-analyze:hover {
  transform: translateY(-1px);
  border-color: var(--green-soft);
  box-shadow: 0 0 28px rgba(77, 255, 158, 0.28), inset 0 0 24px rgba(77, 255, 158, 0.1);
}

.btn-analyze:active {
  transform: translateY(0);
}

.btn-analyze:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-analyze-bolt {
  font-size: 18px;
  filter: drop-shadow(0 0 6px var(--cyan-soft));
}

/* ---------- generic neon action button (Day 7) ---------- */

.neon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.neon-btn:hover {
  transform: translateY(-1px);
}

.neon-btn:active {
  transform: translateY(0);
}

.neon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.emerald-glow {
  border-color: var(--green-soft);
  background: linear-gradient(120deg, rgba(77, 255, 158, 0.14), rgba(61, 246, 255, 0.08));
  box-shadow: 0 0 14px rgba(77, 255, 158, 0.15);
}

.emerald-glow:hover {
  border-color: var(--green);
  box-shadow: 0 0 28px rgba(77, 255, 158, 0.45), inset 0 0 18px rgba(77, 255, 158, 0.12);
}

/* ---------- loader ---------- */

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0 4px;
  transition: opacity 0.25s ease;
}

.loader.hidden {
  display: none;
}

.loader-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(61, 246, 255, 0.15);
  border-top-color: var(--cyan);
  border-right-color: var(--green);
  box-shadow: 0 0 18px rgba(61, 246, 255, 0.35);
  animation: spin 0.9s linear infinite;
}

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

.loader-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  animation: pulse-text 1.4s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- output panel ---------- */

.currency-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.currency-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.currency-row {
  display: flex;
  gap: 6px;
  width: fit-content;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.currency-pill {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.currency-pill:hover {
  color: var(--text-primary);
}

.currency-pill.is-active {
  color: var(--text-primary);
  background: linear-gradient(120deg, rgba(61, 246, 255, 0.18), rgba(77, 255, 158, 0.18));
  border-color: var(--cyan-soft);
  box-shadow: 0 0 16px rgba(61, 246, 255, 0.25), inset 0 0 12px rgba(77, 255, 158, 0.1);
}

.field-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.field-category-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

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

@media (max-width: 900px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.data-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.data-cell.is-filled {
  border-color: var(--green-soft);
  background: rgba(77, 255, 158, 0.05);
  box-shadow: 0 0 16px rgba(77, 255, 158, 0.1);
}

.data-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.data-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  word-break: break-word;
  line-height: 1.35;
}

.data-value.accent-cyan {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-soft);
}

.data-value.accent-green {
  color: var(--green);
  text-shadow: 0 0 8px var(--green-soft);
}

/* ---------- AI market analytics chart ---------- */

.analytics-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.analytics-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.analytics-subtitle {
  font-size: 11.5px;
  color: var(--cyan);
  font-family: var(--font-mono);
  text-shadow: 0 0 6px var(--cyan-soft);
}

.analytics-canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

#analyticsChart {
  display: block;
  width: 100%;
  height: 100%;
}

.analytics-caption {
  margin: 0;
  font-size: 10.5px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- property search & filter panel ---------- */

.panel-search {
  grid-column: 1 / -1;
}

.results-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.filter-search {
  flex: 1 1 240px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search::placeholder {
  color: var(--text-muted);
}

.filter-search:focus {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 0 3px rgba(61, 246, 255, 0.08), 0 0 20px rgba(61, 246, 255, 0.12);
}

.filter-select {
  flex: 0 1 220px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 0 3px rgba(61, 246, 255, 0.08);
}

.filter-select option {
  background: var(--bg-panel-solid);
  color: var(--text-primary);
}

.filter-price {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-price-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.filter-price-label #priceRangeValue {
  color: var(--cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

.filter-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-soft), var(--green-soft));
  outline: none;
  cursor: pointer;
}

.filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-soft);
  cursor: pointer;
}

.filter-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-soft);
  cursor: pointer;
}

.filter-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-soft), var(--green-soft));
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.property-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.property-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.property-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-soft);
  box-shadow: 0 0 20px rgba(61, 246, 255, 0.15);
}

.property-card.is-selected {
  border-color: var(--green-soft);
  box-shadow: 0 0 24px rgba(77, 255, 158, 0.3), inset 0 0 16px rgba(77, 255, 158, 0.08);
}

.property-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.property-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.property-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.property-card-meta .price {
  color: var(--green);
  font-weight: 700;
}

.property-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-card-badge {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(61, 246, 255, 0.08);
  border: 1px solid var(--cyan-soft);
  color: var(--cyan);
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
}
