/* ── Search Bar & Filters ──────────────────────────── */
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 4px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder { color: var(--text-placeholder); }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-toggle-btn:hover { border-color: var(--primary-border); color: var(--primary-light); }
.filter-toggle-btn.filter-active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }

.filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-drawer {
  max-height: 90vh;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-price-input {
  flex: 1;
  position: relative;
}

.filter-price-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.filter-chip-row {
  display: flex;
  gap: 6px;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-chip:hover { border-color: var(--primary-border); color: var(--text); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.filter-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── Feed Mode Tabs ────────────────────────────────── */
.feed-tabs {
  display: flex;
  position: relative;
  padding: 4px 16px 0;
}

.feed-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.feed-tab.active {
  color: #ffffff;
}

.feed-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: left 0.3s ease, width 0.3s ease;
}

/* ── Swipe Card Badge ──────────────────────────────── */
.swipe-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.match-badge {
  background: rgba(99, 102, 241, 0.85);
  color: #ffffff;
}

.new-badge {
  background: rgba(0, 212, 138, 0.85);
  color: #ffffff;
}

/* ── Swipe Feed ─────────────────────────────────────── */
.swipe-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 310px - var(--safe-top) - var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swipe-card-wrapper {
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 12px);
  touch-action: none;
  cursor: grab;
}

.swipe-card-wrapper:active { cursor: grabbing; }

.swipe-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.swipe-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-alt);
}

.swipe-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.swipe-card-price {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.swipe-card-address {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 8px;
}

.swipe-card-details {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.swipe-card-details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.swipe-card-details .dot-sep::before {
  content: '·';
  margin: 0 2px;
  color: rgba(255,255,255,0.4);
}

.swipe-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.swipe-card-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.swipe-stamp {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-size: 48px;
  font-weight: 800;
  padding: 8px 20px;
  border: 4px solid;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.swipe-stamp-like {
  left: 20px;
  color: var(--success);
  border-color: var(--success);
}

.swipe-stamp-nope {
  right: 20px;
  color: var(--danger);
  border-color: var(--danger);
  transform: translateY(-50%) rotate(15deg);
}

.swipe-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 12px 0 8px;
}

.swipe-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.swipe-btn:active { transform: scale(0.9); }

.swipe-btn-nope {
  background: #fff;
  color: var(--danger);
}

.swipe-btn-like {
  background: #fff;
  color: var(--success);
}

.swipe-btn-info {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
}

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
}

.swipe-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  max-width: 40px;
}

.swipe-dot.active { background: #fff; }

.swipe-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px;
}

.swipe-empty svg { color: var(--text-muted); margin-bottom: 16px; opacity: 0.5; }
.swipe-empty h3 { font-family: var(--font-body); margin-bottom: 8px; }

/* ── Image dots ─────────────────────────────────────── */
.image-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
}

.image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.image-dot.active { background: #fff; width: 18px; border-radius: 3px; }


/* ═══════════════════════════════════════════════════════
   Photo Carousel Indicators (Instagram-style bars)
   ═══════════════════════════════════════════════════════ */
.carousel-indicators {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  z-index: 3;
  pointer-events: none;
}
.indicator-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background 0.2s;
}
.indicator-bar.active {
  background: rgba(255, 255, 255, 0.9);
}
.photo-counter {
  position: absolute;
  bottom: 80px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  z-index: 3;
  pointer-events: none;
}
