:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A8893A;
  --ink: #0a0a0c;
  --ink-soft: #141418;
  --ink-soft2: #1a1a1f;
  --ink-soft3: #222228;
  --cream: #F0EBDD;
  --cream-dim: rgba(240, 235, 224, 0.5);
  --cream-dim2: rgba(240, 235, 224, 0.3);
  --border: rgba(240, 235, 224, 0.1);
  --border-hover: rgba(240, 235, 224, 0.2);

  /* 🆕 Glass & Glow */
  --glass-bg: rgba(20, 20, 24, 0.6);
  --glass-bg-light: rgba(30, 30, 36, 0.5);
  --glass-border: rgba(201, 168, 76, 0.15);
  --glass-border-hover: rgba(201, 168, 76, 0.35);
  --glow-gold: 0 0 20px rgba(201, 168, 76, 0.25), 0 0 60px rgba(201, 168, 76, 0.08);
  --glow-gold-strong: 0 0 30px rgba(201, 168, 76, 0.4), 0 0 80px rgba(201, 168, 76, 0.15);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);

  /* Typography */
  --serif: 'Cormorant Garamond', serif;
  --sans: 'DM Sans', sans-serif;

  /* Layout */
  --sidebar-width: 300px;
  --header-height: 70px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==================== RESET ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;

  /* 🆕 زمینه پریمیوم */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #0f0f12 0%, #0a0a0c 100%);
}


a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ==================== MOBILE OVERLAY ==================== */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-transition: opacity var(--transition-normal), visibility var(--transition-normal);
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  touch-action: none;
}

.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {  
  position: fixed;  
  top: 0;  
  right: 0;  
  width: 300px;  
  max-width: 85vw;  
  height: 100%;  
  max-height: 100vh;  
  z-index: 999;  
  display: flex;  
  flex-direction: column;  
  overflow-y: auto;  
  overflow-x: hidden;  
  -webkit-overflow-scrolling: touch;  
  background: rgba(12, 12, 16, 0.92);  
  -webkit-backdrop-filter: blur(20px) saturate(180%);  
  backdrop-filter: blur(20px) saturate(180%);  
  border-left: 1px solid rgba(201, 168, 76, 0.12);  
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);  

  -webkit-transform: translateX(100%);  
  -ms-transform: translateX(100%);  
  transform: translateX(100%);  
  transition: transform var(--transition-slow);  
}  

.mobile-menu.open {  
  transform: translateX(0);  
}  

.mobile-menu-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.mobile-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-logo span {
  color: var(--gold);
}

.mobile-close {
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: var(--ink-soft2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 1rem;
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
  border-radius: 4px;
}

.mobile-close:hover,
.mobile-close:active {
  border-color: var(--gold);
  color: var(--gold);
}

.mobile-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 12px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.mobile-nav a {  
  display: block;  
  padding: 13px 16px;  
  font-size: 0.95rem;  
  color: var(--cream-dim);  
  border-radius: 8px;  
  transition: all var(--transition-normal);  
  -webkit-tap-highlight-color: transparent;  
  border: 1px solid transparent;  
}  

.mobile-nav a:hover,  
.mobile-nav a.active {  
  background: rgba(201, 168, 76, 0.08);  
  border-color: rgba(201, 168, 76, 0.2);  
  color: var(--gold);  
  padding-left: 20px;  
  box-shadow: inset 3px 0 0 var(--gold);  
}  

/* ==================== HEADER ==================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);

  /* 🆕 Glassmorphism */
  background: rgba(10, 10, 12, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 🆕 خط طلایی زیر هدر */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(201, 168, 76, 0.4) 30%,
      rgba(201, 168, 76, 0.6) 50%,
      rgba(201, 168, 76, 0.4) 70%,
      transparent 100%);
}


.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.logo span {
  color: var(--gold);
}

.main-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 0.875rem;
  color: var(--cream-dim);
  -webkit-transition: color var(--transition-normal);
  transition: color var(--transition-normal);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.main-nav a:hover,
.main-nav a:active,
.main-nav a.active {
  color: var(--gold);
}

.header-cta {
  display: inline-block;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;

  /* 🆕 Gradient CTA */
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all var(--transition-normal);
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.header-cta:hover::before {
  left: 150%;
}

.header-cta:hover {
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
}


.hamburger {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
  border-radius: 1px;
}

.hamburger:hover span {
  background: var(--gold);
}

/* ==================== HERO ==================== */
.search-hero {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;

  /* 🆕 گرادیان لایه‌ای */
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
}

/* 🆕 تصویر پس‌زمینه با بلندتر کردن opacity */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?w=1920&q=60') center center / cover no-repeat;
  opacity: 0.08;
  filter: saturate(0.5);
}

/* 🆕 خطوط دکوراتیو روی hero */
.search-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, transparent 40%, transparent 60%, rgba(10, 10, 12, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;

  /* 🆕 انیمیشن ورود */
  animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-hero h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.2;

  /* 🆕 سایه متن */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.search-hero h1 em {
  color: var(--gold);
  font-style: italic;

  /* 🆕 گلو روی عنوان */
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.4), 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* 🆕 خط تزئینی زیر hero */
.search-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(201, 168, 76, 0.3) 20%,
      rgba(201, 168, 76, 0.5) 50%,
      rgba(201, 168, 76, 0.3) 80%,
      transparent 100%);
}


.search-hero p {
  font-size: 1rem;
  color: var(--cream-dim);
}

/* ==================== SEARCH LAYOUT ==================== */
.search-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height) - 180px);
}

/* ==================== FILTER SIDEBAR ==================== */
.filter-sidebar {
  width: var(--sidebar-width);
  -webkit-box-flex: 0;
  -ms-flex: 0 0 var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  padding: 24px;
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;

  /* 🆕 Glass sidebar */
  background: rgba(14, 14, 18, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--glass-border);
}

/* 🆕 اسکرول‌بار زیباتر */
.filter-sidebar::-webkit-scrollbar {
  width: 3px;
}

.filter-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.3), transparent);
  border-radius: 2px;
}

/* 🆕 تایتل فیلتر براق */
.filter-header h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.filter-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}



.filter-reset-top {
  padding: 6px 10px;
  font-size: 0.7rem;
  color: var(--cream-dim);
  border: 1px solid var(--border);
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
  border-radius: 4px;
}

.filter-reset-top:hover,
.filter-reset-top:active {
  border-color: var(--gold);
  color: var(--gold);
}

/* Filter Sections */
.filter-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  margin-bottom: 8px;
  font-weight: 500;
}

/* Search Input */
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;

  /* 🆕 Glass input */
  background: rgba(26, 26, 31, 0.8);
  border: 1px solid rgba(240, 235, 224, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-input-wrap:focus-within {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(201, 168, 76, 0.08),
    0 0 20px rgba(201, 168, 76, 0.12);
}

.search-input-wrap svg {
  width: 16px;
  height: 16px;
  stroke: var(--cream-dim);
  -webkit-box-flex: 0;
  -ms-flex: 0 0 16px;
  flex: 0 0 16px;
}

.search-input-wrap input {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 0.875rem;
  outline: none;
}

.search-input-wrap input::-webkit-input-placeholder {
  color: var(--cream-dim);
}

.search-input-wrap input::-moz-placeholder {
  color: var(--cream-dim);
}

/* Select */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  color: var(--cream);
  font-size: 0.875rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  border-radius: 8px;

  /* 🆕 Glass select */
  background: rgba(26, 26, 31, 0.8);
  border: 1px solid rgba(240, 235, 224, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all var(--transition-normal);
}

.select-wrap select:focus {
  border-color: rgba(201, 168, 76, 0.5);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(201, 168, 76, 0.08);
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: var(--cream-dim);
  pointer-events: none;
}

.select-wrap select option {
  background: var(--ink-soft);
  color: var(--cream);
}

/* Type Grid */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.type-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  background: var(--ink-soft2);
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 0.6rem;
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.type-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.type-btn:hover,
.type-btn:active {
  border-color: var(--gold);
  color: var(--cream);
}

.type-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.type-btn.active svg {
  stroke: var(--ink);
}

/* Range Inputs */
.range-inputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.range-inputs input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  color: var(--cream);
  font-size: 0.8rem;
  border-radius: 8px;
  background: rgba(26, 26, 31, 0.8);
  border: 1px solid rgba(240, 235, 224, 0.08);
  transition: all var(--transition-normal);
}

.range-inputs input:focus {
  border-color: rgba(201, 168, 76, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.range-inputs span {
  color: var(--cream-dim);
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

/* Range Slider */
input[type="range"] {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;

  /* 🆕 Track با گرادیان */
  background: linear-gradient(90deg,
      rgba(201, 168, 76, 0.6) var(--range-progress, 50%),
      rgba(26, 26, 31, 0.9) var(--range-progress, 50%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);

  /* 🆕 Thumb طلایی با گلو */
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 0 3px rgba(10, 10, 12, 0.8), 0 0 10px rgba(201, 168, 76, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.6);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(10, 10, 12, 0.8), 0 0 20px rgba(201, 168, 76, 0.7);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 0 3px rgba(10, 10, 12, 0.8), 0 0 10px rgba(201, 168, 76, 0.5);
}

.range-display {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin-top: 6px;
}

.range-display span:nth-child(2) {
  color: var(--gold);
  font-weight: 600;
}

/* Button Row */
.btn-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px;
}

.num-btn {
  flex: 1 0 auto;
  min-width: 40px;
  padding: 8px 4px;
  font-size: 0.75rem;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;

  background: rgba(26, 26, 31, 0.7);
  border: 1px solid rgba(240, 235, 224, 0.07);
  color: var(--cream-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.num-btn:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--cream);
  background: rgba(201, 168, 76, 0.06);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.1);
}

.num-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Check List */
.check-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.check-box-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  -webkit-tap-highlight-color: transparent;
}

.check-box-label input {
  display: none;
}

.custom-check {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(240, 235, 224, 0.1);
  background: rgba(26, 26, 31, 0.8);
  position: relative;
  flex: 0 0 18px;
  border-radius: 5px;
  transition: all var(--transition-normal);
}

.check-box-label input:checked+.custom-check {
  background: var(--gold);
  border-color: var(--gold);
}

.check-box-label input:checked+.custom-check::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: bold;
}

.check-text {
  color: var(--cream-dim);
  -webkit-transition: color var(--transition-normal);
  transition: color var(--transition-normal);
}

.check-box-label:hover .check-text {
  color: var(--cream);
}

/* Apply Button */
.apply-filters-btn {
  width: 100%;
  padding: 13px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.03em;

  /* 🆕 Gradient button */
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  color: var(--ink);
  border: none;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transition: all var(--transition-normal);
}

/* 🆕 شاین‌افکت روی دکمه */
.apply-filters-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.apply-filters-btn:hover::before {
  left: 150%;
}

.apply-filters-btn:hover {
  background: linear-gradient(135deg, #f0d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-1px);
}

.apply-filters-btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
}


/* ==================== SEARCH RESULTS ==================== */
.search-results {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 20px;
  min-width: 0;
}

/* Results Bar */
.results-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.results-info {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.results-info span {
  color: var(--gold);
}

.results-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.mobile-filter-btn {
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ink-soft);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.8rem;
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-filter-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.mobile-filter-btn:hover,
.mobile-filter-btn:active {
  border-color: var(--gold);
  color: var(--gold);
}

.view-toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2px;
}

.view-btn {
  width: 34px;
  height: 34px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: var(--ink-soft);
  border: 1px solid var(--border);
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.view-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--cream-dim);
  fill: none;
}

.view-btn:hover {
  border-color: var(--gold);
}

.view-btn:hover svg {
  stroke: var(--cream);
}

.view-btn.active {
  background: var(--gold);
  border-color: var(--gold);
}

.view-btn.active svg {
  stroke: var(--ink);
}

.sort-select {
  padding: 8px 28px 8px 10px;
  background: var(--ink-soft);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.8rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23F0EBDD' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.sort-select:focus {
  border-color: var(--gold);
  outline: none;
}

.sort-select option {
  background: var(--ink-soft);
  color: var(--cream);
}

/* Properties Grid */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.props-grid.list-view {
  grid-template-columns: 1fr;
}

.props-grid.list-view .prop-card {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.props-grid.list-view .card-image {
  height: 100%;
  min-height: 160px;
}

/* Property Card */
.prop-card {
  overflow: hidden;
  border-radius: 12px;
  transition: all var(--transition-slow);
  position: relative;

  /* 🆕 Glass card */
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(240, 235, 224, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

/* 🆕 خط طلایی بالای کارت (مخفی تا hover) */
.prop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(201, 168, 76, 0.6),
      transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.prop-card:hover::before {
  opacity: 1;
}

.prop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 168, 76, 0.15),
    0 0 40px rgba(201, 168, 76, 0.08);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) saturate(0.95);
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(12, 12, 16, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

.prop-card:hover .card-image img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.05);
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px;
}

.card-badge {
  padding: 4px 10px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-badge.gold {
  background: rgba(201, 168, 76, 0.9);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

.card-badge.green {
  background: rgba(16, 185, 129, 0.85);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.card-badge.blue {
  background: rgba(59, 130, 246, 0.85);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
  z-index: 2;

  /* 🆕 Glass wishlist */
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(240, 235, 224, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.wishlist-btn:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.2);
}

.wishlist-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

.wishlist-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--cream);
  fill: none;
  -webkit-transition: all var(--transition-normal);
  transition: all var(--transition-normal);
}

.wishlist-btn:hover svg {
  stroke: var(--gold);
}

.wishlist-btn.active svg {
  stroke: var(--ink);
  fill: var(--ink);
}

.card-content {
  padding: 16px;
  position: relative;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.card-location {
  font-size: 0.8rem;
  color: var(--cream-dim);
  margin-bottom: 10px;
}

.card-features {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card-features span {
  font-size: 0.75rem;
  color: var(--cream-dim);
}

.card-features strong {
  color: var(--cream);
  font-weight: 600;
}

.card-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.card-link {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.02em;

  /* 🆕 Glass link */
  background: rgba(240, 235, 224, 0.04);
  border: 1px solid rgba(240, 235, 224, 0.12);
  color: var(--cream-dim);
}

.card-link:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
  transform: translateY(-1px);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: 6px;
}

.no-results svg {
  width: 50px;
  height: 50px;
  stroke: var(--cream-dim);
  margin-bottom: 16px;
}

.no-results h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.no-results p {
  color: var(--cream-dim);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.no-results button {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  -webkit-transition: background var(--transition-normal);
  transition: background var(--transition-normal);
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.no-results button:hover,
.no-results button:active {
  background: var(--gold-light);
}

/* Loading */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  /* 🆕 Glass overlay */
  background: rgba(10, 10, 12, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;

  /* 🆕 Loader طلایی با گلو */
  border: 2px solid rgba(201, 168, 76, 0.1);
  border-top-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
  animation: spin 0.7s linear infinite;
}

/* 🆕 حلقه داخلی */
.loader::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(201, 168, 76, 0.4);
  animation: spin 0.5s linear infinite reverse;
}


@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* ==================== FOOTER ==================== */
.site-footer {  
  padding: 36px 24px;  

  /* 🆕 Glass footer */  
  background: rgba(10, 10, 12, 0.9);  
  -webkit-backdrop-filter: blur(12px);  
  backdrop-filter: blur(12px);  
  border-top: 1px solid var(--glass-border);  
  position: relative;  
}  

/* 🆕 خط طلایی بالای footer */  
.site-footer::before {  
  content: '';  
  position: absolute;  
  top: 0;  
  left: 5%;  
  width: 90%;  
  height: 1px;  
  background: linear-gradient(  
    90deg,  
    transparent,  
    rgba(201, 168, 76, 0.3) 25%,  
    rgba(201, 168, 76, 0.5) 50%,  
    rgba(201, 168, 76, 0.3) 75%,  
    transparent  
  );  
}  

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-brand span {
  color: var(--gold);
}

.footer-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--cream-dim);
  -webkit-transition: color var(--transition-normal);
  transition: color var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

.footer-nav a:hover {  
  color: var(--gold);  
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);  
}  

.footer-copy {
  font-size: 0.75rem;
  color: var(--cream-dim);
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE - BREAKPOINTS FOR ALL DEVICES
   ========================================================================== */

/* ==================== LARGE DESKTOPS (1441px - 1920px) ==================== */
@media screen and (min-width: 1441px) and (max-width: 1920px) {
  :root {
    --sidebar-width: 320px;
  }

  .props-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* ==================== DESKTOPS (1201px - 1440px) ==================== */
@media screen and (min-width: 1201px) and (max-width: 1440px) {
  :root {
    --sidebar-width: 280px;
  }

  .props-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* ==================== SMALL DESKTOPS & LARGE LAPTOPS (1025px - 1200px) ==================== */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
  :root {
    --sidebar-width: 260px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .main-nav {
    gap: 16px;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .props-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ==================== TABLETS - LANDSCAPE (1024px) ==================== */
@media screen and (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
    --header-height: 64px;
  }

  /* Show hamburger, hide nav */
  .hamburger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .main-nav,
  .header-cta {
    display: none !important;
  }

  /* Show mobile filter button */
  .mobile-filter-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  /* Layout adjustments */
  .search-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .search-results {
    padding: 16px;
  }

  /* Grid */
  .props-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }

  .props-grid.list-view .prop-card {
    grid-template-columns: 200px 1fr;
  }

  .props-grid.list-view .card-image {
    min-height: 140px;
  }
}

/* ==================== TABLETS - PORTRAIT (768px - 1023px) ==================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {

  .header-inner {
    padding: 0 16px;
  }

  .search-hero {
    padding: 40px 20px;
  }

  .search-hero h1 {
    font-size: 2rem;
  }

  .results-bar {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== TABLETS & LARGE PHONES (601px - 767px) ==================== */
@media screen and (min-width: 601px) and (max-width: 767px) {
  .search-hero {
    padding: 32px 16px;
  }

  .search-hero h1 {
    font-size: 1.8rem;
  }

  .search-hero p {
    font-size: 0.9rem;
  }

  .search-results {
    padding: 14px;
  }

  .results-bar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
  }

  .results-actions {
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .props-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .props-grid.list-view .prop-card {
    grid-template-columns: 1fr;
  }

  .props-grid.list-view .card-image {
    min-height: 180px;
  }

  .card-image {
    height: 150px;
  }

  .footer-nav {
    gap: 16px;
  }
}

/* ==================== MOBILE - LARGE PHONES (481px - 600px) ==================== */
@media screen and (min-width: 481px) and (max-width: 600px) {
  .header-inner {
    padding: 0 12px;
    gap: 12px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hamburger {
    padding: 6px;
  }

  .hamburger span {
    width: 20px;
  }

  .search-hero {
    padding: 28px 14px;
  }

  .search-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .search-hero p {
    font-size: 0.85rem;
  }

  .filter-sidebar {
    padding: 14px;
  }

  .search-results {
    padding: 12px;
  }

  .results-info {
    font-size: 1rem;
  }

  .view-toggle {
    gap: 2px;
  }

.view-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(20, 20, 24, 0.8);
    border-color: rgba(240, 235, 224, 0.07);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

.view-btn:hover {  
  border-color: rgba(201, 168, 76, 0.3);  
  background: rgba(201, 168, 76, 0.06);  
}  

.view-btn.active {  
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));  
  border-color: var(--gold);  
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.35);  
}  

  .view-btn svg {
    width: 14px;
    height: 14px;
  }

.sort-select {  
  padding: 8px 30px 8px 12px;  
  color: var(--cream);  
  font-size: 0.8rem;  
  -webkit-appearance: none;  
  -moz-appearance: none;  
  appearance: none;  
  cursor: pointer;  
  border-radius: 8px;  
  -webkit-tap-highlight-color: transparent;  

  /* 🆕 Glass sort */  
  background-color: rgba(20, 20, 24, 0.8);  
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");  
  background-repeat: no-repeat;  
  background-position: right 10px center;  
  border: 1px solid rgba(240, 235, 224, 0.07);  
  -webkit-backdrop-filter: blur(6px);  
  backdrop-filter: blur(6px);  
  transition: all var(--transition-normal);  
}  

.sort-select:focus {  
  border-color: rgba(201, 168, 76, 0.4);  
  outline: none;  
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);  
}  

  .props-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .props-grid.list-view .card-image {
    min-height: 160px;
  }

  .card-image {
    height: 170px;
  }

  .card-badges {
    gap: 3px;
  }

  .card-badge {
    padding: 2px 6px;
    font-size: 0.5rem;
  }

  .wishlist-btn {
    width: 30px;
    height: 30px;
  }

  .wishlist-btn svg {
    width: 12px;
    height: 12px;
  }

  .card-content {
    padding: 12px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-location {
    font-size: 0.75rem;
  }

  .card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;

    /* 🆕 خط جداکننده طلایی */
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

  .card-features span {
    font-size: 0.7rem;
  }

  .card-price {
    font-size: 1.2rem;
  }

  .card-link {
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  .type-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 4px;
    font-size: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    -webkit-tap-highlight-color: transparent;

    /* 🆕 Glass button */
    background: rgba(26, 26, 31, 0.7);
    border: 1px solid rgba(240, 235, 224, 0.07);
    color: var(--cream-dim);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .type-btn:hover {
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--cream);
    background: rgba(201, 168, 76, 0.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 15px rgba(201, 168, 76, 0.1),
      0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
  }

  .type-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    color: var(--ink);
    box-shadow:
      0 0 20px rgba(201, 168, 76, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .type-btn svg {
    width: 16px;
    height: 16px;
  }

  .btn-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .num-btn {
    padding: 7px 2px;
    font-size: 0.7rem;
    min-width: auto;
  }

  .check-list {
    gap: 6px;
  }

  .check-box-label {
    font-size: 0.75rem;
  }

  .custom-check {
    width: 16px;
    height: 16px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 16px;
    flex: 0 0 16px;
  }

  .site-footer {
    padding: 24px 14px;
  }

  .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav {
    gap: 12px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .footer-nav a {
    font-size: 0.75rem;
  }
}

/* ==================== MOBILE - STANDARD PHONES (361px - 480px) ==================== */
@media screen and (min-width: 361px) and (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .header-inner {
    padding: 0 10px;
    gap: 10px;
  }

  .logo {
    font-size: 1rem;
  }

  .hamburger {
    padding: 4px;
  }

  .hamburger span {
    width: 18px;
    height: 2px;
  }

  .search-hero {
    padding: 24px 12px;
  }

  .search-hero h1 {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }

  .search-hero p {
    font-size: 0.8rem;
  }

  .filter-sidebar {
    padding: 12px;
  }

  .filter-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .filter-header h2 {
    font-size: 1.1rem;
  }

  .filter-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .filter-label {
    font-size: 0.6rem;
    margin-bottom: 6px;
  }

  .search-input-wrap {
    padding: 8px;
    gap: 6px;
  }

  .search-input-wrap svg {
    width: 14px;
    height: 14px;
  }

  .search-input-wrap input {
    font-size: 0.8rem;
  }

  .select-wrap select {
    padding: 8px 28px 8px 8px;
    font-size: 0.8rem;
  }

  .search-results {
    padding: 10px;
  }

.results-bar {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.results-info span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

  .mobile-filter-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .mobile-filter-btn svg {
    width: 14px;
    height: 14px;
  }

  .view-btn {
    width: 30px;
    height: 30px;
  }

  .view-btn svg {
    width: 14px;
    height: 14px;
  }

  .sort-select {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 120px;
    padding: 6px 22px 6px 8px;
    font-size: 0.7rem;
  }

  .props-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card-image {
    height: 160px;
  }

  .card-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
  }

  .card-badge {
    padding: 2px 5px;
    font-size: 0.5rem;
  }

  .wishlist-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  .wishlist-btn svg {
    width: 12px;
    height: 12px;
  }

  .card-content {
    padding: 10px;
  }

  .card-title {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .card-location {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .card-features {
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .card-features span {
    font-size: 0.65rem;
  }

  .card-price {
    font-size: 1.1rem;
  }

  .card-link {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .type-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .type-btn {
    padding: 8px 2px;
    font-size: 0.5rem;
  }

  .type-btn svg {
    width: 14px;
    height: 14px;
  }

  .range-inputs {
    gap: 6px;
    margin-bottom: 8px;
  }

  .range-inputs input {
    padding: 6px;
    font-size: 0.75rem;
  }

  .btn-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .num-btn {
    padding: 6px 2px;
    font-size: 0.65rem;
    min-width: auto;
  }

  .check-list {
    gap: 6px;
  }

  .check-box-label {
    font-size: 0.7rem;
  }

.custom-check {  
  width: 18px;  
  height: 18px;  
  position: relative;  
  flex: 0 0 18px;  
  border-radius: 5px;  
  transition: all var(--transition-normal);  

  background: rgba(26, 26, 31, 0.8);  
  border: 1px solid rgba(240, 235, 224, 0.1);  
}  
.check-box-label input:checked + .custom-check {  
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));  
  border-color: var(--gold);  
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.35);  
}  

.check-box-label input:checked + .custom-check::after {  
  content: '✓';  
  position: absolute;  
  top: 50%;  
  left: 50%;  
  transform: translate(-50%, -50%);  
  color: var(--ink);  
  font-size: 0.65rem;  
  font-weight: bold;  
}  
  .apply-filters-btn {
    padding: 10px;
    font-size: 0.8rem;
  }

  .no-results {
    padding: 40px 16px;
  }

  .no-results svg {
    width: 40px;
    height: 40px;
  }

  .no-results h3 {
    font-size: 1.1rem;
  }

  .no-results p {
    font-size: 0.85rem;
  }

  .site-footer {
    padding: 20px 12px;
  }

  .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
  }

  .footer-brand {
    font-size: 1rem;
  }

  .footer-nav {
    gap: 10px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .footer-nav a {
    font-size: 0.7rem;
  }

  .footer-copy {
    font-size: 0.65rem;
  }
}

/* ==================== MOBILE - SMALL PHONES (320px - 360px) ==================== */
@media screen and (max-width: 360px) {
  :root {
    --header-height: 54px;
  }

  .header-inner {
    padding: 0 8px;
    gap: 8px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .hamburger {
    padding: 4px;
  }

  .hamburger span {
    width: 16px;
    height: 2px;
  }

  .mobile-menu {
    width: 100%;
    max-width: 100%;
  }

  .mobile-menu-header {
    padding: 12px;
  }

  .mobile-logo {
    font-size: 1.1rem;
  }

  .mobile-close {
    width: 32px;
    height: 32px;
  }

  .mobile-nav a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .search-hero {
    padding: 20px 10px;
  }

  .search-hero h1 {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .search-hero p {
    font-size: 0.75rem;
  }

  .filter-sidebar {
    padding: 10px;
  }

  .filter-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .filter-header h2 {
    font-size: 1rem;
  }

  .filter-reset-top {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .filter-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .filter-label {
    font-size: 0.55rem;
    margin-bottom: 5px;
  }

  .search-input-wrap {
    padding: 7px;
    gap: 5px;
  }

  .search-input-wrap svg {
    width: 12px;
    height: 12px;
  }

  .search-input-wrap input {
    font-size: 0.75rem;
  }

  .select-wrap select {
    padding: 7px 24px 7px 7px;
    font-size: 0.75rem;
  }

  .search-results {
    padding: 8px;
  }

  .results-bar {
    padding-bottom: 8px;
    margin-bottom: 10px;
    gap: 6px;
  }

  .results-info {
    font-size: 0.9rem;
  }

  .mobile-filter-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .mobile-filter-btn svg {
    width: 12px;
    height: 12px;
  }

  .view-btn {
    width: 28px;
    height: 28px;
  }

  .view-btn svg {
    width: 12px;
    height: 12px;
  }

  .sort-select {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 100px;
    padding: 5px 20px 5px 6px;
    font-size: 0.65rem;
  }

  .props-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-image {
    height: 150px;
  }

  .card-badges {
    top: 4px;
    left: 4px;
    gap: 2px;
  }

  .card-badge {
    padding: 2px 4px;
    font-size: 0.45rem;
  }

  .wishlist-btn {
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
  }

  .wishlist-btn svg {
    width: 10px;
    height: 10px;
  }

  .card-content {
    padding: 8px;
  }

  .card-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .card-location {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .card-features {
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .card-features span {
    font-size: 0.6rem;
  }

  .card-price {
    font-size: 1rem;
  }

  .card-link {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .type-btn {
    padding: 6px 2px;
    font-size: 0.5rem;
  }

  .type-btn svg {
    width: 12px;
    height: 12px;
  }

  .range-inputs {
    gap: 4px;
    margin-bottom: 6px;
  }

  .range-inputs input {
    padding: 5px;
    font-size: 0.7rem;
  }

  .btn-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .num-btn {
    padding: 5px 2px;
    font-size: 0.6rem;
    min-width: auto;
  }

  .check-list {
    gap: 4px;
  }

  .check-box-label {
    font-size: 0.65rem;
  }

  .custom-check {
    width: 14px;
    height: 14px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 14px;
    flex: 0 0 14px;
  }

  .range-display {
    font-size: 0.65rem;
  }

  .apply-filters-btn {
    padding: 8px;
    font-size: 0.75rem;
    margin-top: 6px;
  }

  .no-results {
    padding: 30px 12px;
  }

  .no-results svg {
    width: 36px;
    height: 36px;
  }

  .no-results h3 {
    font-size: 1rem;
  }

  .no-results p {
    font-size: 0.8rem;
  }

  .no-results button {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .site-footer {
    padding: 16px 10px;
  }

  .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;
  }

  .footer-brand {
    font-size: 0.95rem;
  }

  .footer-nav {
    gap: 8px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .footer-nav a {
    font-size: 0.65rem;
  }

  .footer-copy {
    font-size: 0.6rem;
  }
}

/* ==================== VERY SMALL PHONES (below 320px) ==================== */
@media screen and (max-width: 319px) {
  :root {
    --header-height: 50px;
  }

  .header-inner {
    padding: 0 6px;
    gap: 6px;
  }

  .logo {
    font-size: 0.85rem;
  }

  .search-hero h1 {
    font-size: 1.1rem;
  }

  .props-grid {
    gap: 6px;
  }

  .card-image {
    height: 130px;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-price {
    font-size: 0.95rem;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   SPECIAL CASES & PREFERENCES
   ========================================================================== */

/* ==================== LANDSCAPE ORIENTATION ON MOBILE ==================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .search-hero {
    padding: 16px 12px;
  }

  .search-hero h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .search-hero p {
    font-size: 0.75rem;
  }

  .site-header {
    position: relative;
  }

  .filter-sidebar {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
  }

  .card-image {
    height: 140px;
  }
}

/* ==================== HIGH DENSITY DISPLAYS (Retina, etc.) ==================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .hero-bg {
    background-image: url('https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?w=3840&q=80');
  }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .prop-card:hover {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }

  .prop-card:hover .card-image img {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }

  .mobile-menu {
    -webkit-transition: none;
    transition: none;
  }
}

/* ==================== HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(240, 235, 224, 0.4);
    --cream-dim: rgba(240, 235, 224, 0.8);
  }

  .prop-card {
    border-width: 2px;
  }

  .card-badge {
    border: 1px solid currentColor;
  }

  .type-btn,
  .num-btn,
  .view-btn {
    border-width: 2px;
  }
}

/* ==================== DARK MODE (for browsers that support it) ==================== */
@media (prefers-color-scheme: dark) {
  /* Already optimized for dark mode by default */
}

/* ==================== FOLDABLE DEVICES (Surface Duo, etc.) ==================== */
@media screen and (min-width: 540px) and (max-width: 712px) and (min-height: 400px) { 
    .search-layout {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .filter-sidebar {
    width: 260px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 260px;
    flex: 0 0 260px;
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  .search-results {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== 🆕 PREMIUM ANIMATIONS ==================== */

/* ورود کارت‌ها */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.prop-card {
  animation: cardReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* تاخیر پله‌ای کارت‌ها */
.prop-card:nth-child(1)  { animation-delay: 0.05s; }
.prop-card:nth-child(2)  { animation-delay: 0.10s; }
.prop-card:nth-child(3)  { animation-delay: 0.15s; }
.prop-card:nth-child(4)  { animation-delay: 0.20s; }
.prop-card:nth-child(5)  { animation-delay: 0.25s; }
.prop-card:nth-child(6)  { animation-delay: 0.30s; }
.prop-card:nth-child(7)  { animation-delay: 0.35s; }
.prop-card:nth-child(8)  { animation-delay: 0.40s; }
.prop-card:nth-child(9)  { animation-delay: 0.45s; }

/* shimmer روی عناصر لود */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* pulse ملایم برای badge‌های مهم */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3); }
  50%       { box-shadow: 0 2px 20px rgba(201, 168, 76, 0.6); }
}

.card-badge.gold {
  animation: goldPulse 2.5s ease-in-out infinite;
}

/* گلو breathing روی active type-btn */
@keyframes glowBreathe {
  0%, 100% { box-shadow: 0 0 15px rgba(201, 168, 76, 0.3), 0 4px 12px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 30px rgba(201, 168, 76, 0.5), 0 4px 12px rgba(0,0,0,0.3); }
}

.type-btn.active{
  animation: glowBreathe 2s ease-in-out infinite;
}

/* Fade in smooth برای loader */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.loading-overlay {
  animation: fadeIn 0.2s ease both;
}

/* ==================== PRINT STYLES ==================== */
@media print {

  .site-header,
  .filter-sidebar,
  .mobile-overlay,
  .mobile-menu,
  .wishlist-btn,
  .mobile-filter-btn,
  .view-toggle,
  .sort-select,
  .apply-filters-btn,
  .site-footer,
  .no-results button {
    display: none !important;
  }

  .search-layout {
    display: block;
  }

  .search-results {
    padding: 0;
  }

  .props-grid {
    gap: 16px;
  }

  .prop-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }

  .prop-card {
    background: white;
    border: 1px solid #ccc;
  }

  .card-title,
  .card-price {
    color: black;
  }
}

/* ==================== iOS SAFARI SPECIFIC FIXES ==================== */
@supports (-webkit-touch-callout: none) {
  /* iOS specific styles */

  .filter-sidebar {
    height: -webkit-fill-available;
  }

  .mobile-menu {
    height: -webkit-fill-available;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
  }

  /* Prevent iOS from zooming on inputs */
  input[type="text"],
  input[type="number"],
  select {
    font-size: 16px;
  }
}

/* ==================== ANDROID CHROME SPECIFIC ==================== */
@supports (-webkit-appearance: none) and (display: contents) {

  .filter-sidebar,
  .mobile-menu {
    height: 100vh;
  }
}

/* ==================== FIREFOX SPECIFIC ==================== */
@-moz-document url-prefix() {
  .filter-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
  }

  .type-btn,
  .num-btn {
    -moz-appearance: none;
    appearance: none;
  }
}

/* ==================== IE11 LEGACY SUPPORT ==================== */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
  .search-layout {
    display: -ms-flexbox;
    display: flex;
  }

  .filter-sidebar {
    -ms-flex: 0 0 300px;
    flex: 0 0 300px;
  }

  .props-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 260px 260px 260px;
    grid-template-columns: repeat(auto-fill, 260px);
  }
}

@media screen and (max-width: 1024px) {
  .filter-sidebar {
    display: none;
  }
  .filter-sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    overflow-y: auto;
  }
}