/* ================================================
   BEST HOUSE TOURS - Catalog Styles
   Property catalogue with BH corporate colors
================================================ */

/* ── 1. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
}

.catalog-hero {
  background: linear-gradient(135deg, #080e1a 0%, #1e3c72 60%, #152847 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(250,202,49,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.catalog-hero h1 { color: #fff; font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; }
.catalog-hero .subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-top: 12px; }

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #080e1a 0%, #1e3c72 55%, #152847 100%);
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -180px;
  right: -100px;
  background: radial-gradient(circle, rgba(250,202,49,0.1) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -80px;
  background: radial-gradient(circle, rgba(42,82,160,0.3) 0%, transparent 70%);
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 40%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(250,202,49,0.04) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(250,202,49,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,202,49,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bh-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bh-yellow);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.highlight {
  background: linear-gradient(135deg, var(--bh-yellow) 0%, var(--bh-yellow-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 580px;
}

/* ── 2. SEARCH BAR ────────────────────────────────────────── */
.hero-search { margin-bottom: var(--space-8); }

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(21,40,71,0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(250,202,49,0.2);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  max-width: 560px;
  transition: var(--transition);
}

html.light .search-bar {
  background: rgba(255,255,255,0.95);
  border-color: rgba(30,60,114,0.15);
}

.search-bar:focus-within {
  border-color: var(--bh-yellow);
  box-shadow: 0 0 0 3px rgba(250,202,49,0.1);
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: var(--text-sm);
  font-family: inherit;
  min-width: 0;
}

html.light .search-input { color: var(--text-primary); }
.search-input::placeholder { color: rgba(255,255,255,0.45); }
html.light .search-input::placeholder { color: var(--text-muted); }

.search-btn {
  border-radius: 50px;
  padding: 8px 20px;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

/* ── 3. HERO STATS ────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  gap: 2px;
}

.hero-stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--bh-yellow);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── 4. FILTER BAR ────────────────────────────────────────── */
.filter-section {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.filter-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.pill-group { display: flex; gap: 6px; flex-wrap: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  white-space: nowrap;
  font-family: inherit;
}

.pill:hover {
  border-color: rgba(250,202,49,0.3);
  color: var(--text-primary);
}

.pill.active {
  background: rgba(250,202,49,0.12);
  border-color: rgba(250,202,49,0.4);
  color: var(--bh-yellow);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-input {
  width: 90px;
  padding: 5px 10px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.price-input:focus {
  border-color: var(--bh-yellow);
  box-shadow: 0 0 0 2px rgba(250,202,49,0.1);
}

.price-range-sep {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.sort-select {
  padding: 5px 10px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.sort-select:focus { border-color: var(--bh-yellow); }

/* ── 5. RESULTS HEADER ────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0 var(--space-4);
}

.results-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── 6. PROPERTIES GRID ───────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

/* ── 7. PROPERTY CARD ─────────────────────────────────────── */
.property-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  animation: slideUp 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(250,202,49,0.2);
  border-color: rgba(250,202,49,0.25);
}

/* Image */
.card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.property-card:hover .card-image {
  transform: scale(1.06);
}

/* Image placeholder */
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
  gap: var(--space-2);
}

.card-image-placeholder svg { opacity: 0.3; }
.card-image-placeholder span { font-size: var(--text-xs); }

/* Badges overlay */
.card-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  pointer-events: none;
}

.card-type-badge {
  background: rgba(8,14,26,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
}

.card-3d-badge {
  background: linear-gradient(135deg, rgba(250,202,49,0.9), rgba(201,165,32,0.9));
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--bh-blue-deep);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-status-badge {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
}

/* Card body */
.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.card-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--bh-yellow);
  line-height: 1;
  letter-spacing: -0.01em;
}

.card-price-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-address {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.card-address svg { flex-shrink: 0; }

/* Specs row */
.card-specs {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.card-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.card-spec svg { color: var(--text-muted); }
.card-spec span { line-height: 1; }

.specs-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* CTA */
.card-cta {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.card-ref {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.card-btn {
  font-size: var(--text-xs);
  padding: 0.4rem 0.875rem;
}

/* ── 8. SKELETON CARDS ────────────────────────────────────── */
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-image {
  aspect-ratio: 4/3;
  width: 100%;
}

.skeleton-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-sm);
}

.skeleton-line.w-3\/4 { width: 75%; }
.skeleton-line.w-1\/2 { width: 50%; }
.skeleton-line.w-2\/3 { width: 66%; }
.skeleton-line.w-full { width: 100%; }
.skeleton-line.tall { height: 28px; }
.skeleton-line.short { height: 10px; }

/* ── 9. EMPTY STATE ───────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-6);
  text-align: center;
  gap: var(--space-4);
  animation: fadeIn 0.3s ease;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--surface-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.empty-state h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.empty-state p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 360px;
}

/* ── 10. PAGINATION ───────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 0 0.5rem;
  font-family: inherit;
}

.page-btn:hover {
  background: var(--surface-1);
  border-color: var(--border);
  color: var(--text-primary);
}

.page-btn.active {
  background: rgba(250,202,49,0.15);
  border-color: rgba(250,202,49,0.4);
  color: var(--bh-yellow);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 0 0.25rem;
  font-size: var(--text-sm);
}

/* ── 11. MOBILE RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero-title { font-size: 2rem; }

  .hero-stats { gap: var(--space-2); }
  .hero-stat { padding: 0.5rem 1.5rem; }
  .hero-stat-value { font-size: var(--text-lg); }

  .filter-inner { gap: var(--space-3); }

  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
  }

  .results-header { padding: var(--space-4) 0 var(--space-3); }
}

@media (max-width: 480px) {
  .hero { min-height: 380px; padding: var(--space-12) 0 var(--space-10); }
  .hero-title { font-size: 1.6rem; }
  .search-bar { border-radius: var(--radius); }
  .search-btn span { display: none; }
  .properties-grid { grid-template-columns: 1fr; }
  .card-price { font-size: var(--text-xl); }
}

/* Stagger animation for cards */
.property-card:nth-child(1)  { animation-delay: 0.05s; }
.property-card:nth-child(2)  { animation-delay: 0.1s; }
.property-card:nth-child(3)  { animation-delay: 0.15s; }
.property-card:nth-child(4)  { animation-delay: 0.2s; }
.property-card:nth-child(5)  { animation-delay: 0.25s; }
.property-card:nth-child(6)  { animation-delay: 0.3s; }
.property-card:nth-child(7)  { animation-delay: 0.35s; }
.property-card:nth-child(8)  { animation-delay: 0.4s; }
.property-card:nth-child(9)  { animation-delay: 0.45s; }
.property-card:nth-child(10) { animation-delay: 0.5s; }
.property-card:nth-child(11) { animation-delay: 0.55s; }
.property-card:nth-child(12) { animation-delay: 0.6s; }
