/* =================================================== */
/* DESIGN TOKENS                                       */
/* =================================================== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --accent: #7c3aed;
  --accent-2: #ec4899;

  --dark: #0b1220;
  --dark-2: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f8fafc;
  --light-2: #f1f5f9;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --white: #ffffff;

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;

  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-sunset: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-ocean: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
  --grad-mesh:
    radial-gradient(at 20% 30%, rgba(79, 70, 229, .35) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(124, 58, 237, .35) 0px, transparent 50%),
    radial-gradient(at 70% 80%, rgba(236, 72, 153, .25) 0px, transparent 50%),
    radial-gradient(at 20% 90%, rgba(14, 165, 233, .30) 0px, transparent 50%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .15);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .25);
  --shadow-primary: 0 15px 40px -12px rgba(79, 70, 229, .5);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --container: 1240px;
  --nav-h: 76px;
}

/* =================================================== */
/* RESET & BASE                                        */
/* =================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--light-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =================================================== */
/* NAVBAR                                              */
/* =================================================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: all .3s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 800; color: var(--dark);
  letter-spacing: -.5px;
}
.logo-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
}
.logo:hover .logo-icon::after { transform: translateX(100%); }
.logo b { color: var(--primary); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; color: var(--gray);
  position: relative;
}
.nav-links a:hover { color: var(--primary); background: var(--light-2); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.nav-links .btn-nav-cta {
  background: var(--grad-primary); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-primary);
  transition: all .3s var(--ease);
}
.nav-links .btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -12px rgba(79,70,229,.6);
  color: #fff;
}

/* =================================================== */
/* MENU TOGGLE                                        */
/* =================================================== */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: var(--dark);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .3s var(--ease), transform .2s var(--ease);
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--light-2); }
.menu-toggle:active { transform: scale(.94); }
.menu-toggle i {
  pointer-events: none;
  transition: transform .3s var(--ease);
}
body.nav-open .menu-toggle i { transform: rotate(90deg); }

/* =================================================== */
/* HERO                                                */
/* =================================================== */
.hero {
  position: relative;
  min-height: 680px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1220 0%, #1e1b4b 50%, #0b1220 100%);
  padding: 80px 0 140px;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80');
  background-size: cover; background-position: center;
  opacity: .18;
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }

.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-mesh);
  mix-blend-mode: overlay;
}

.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
  animation: float 20s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.blob-2 { width: 350px; height: 350px; background: var(--accent); bottom: -80px; left: -80px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent-2); top: 40%; left: 30%; animation-delay: -10s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(.95); }
}

.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: #e2e8f0;
  margin-bottom: 28px;
  animation: fadeDown .8s var(--ease) both;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  position: relative;
}
.hero-badge .pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeUp .9s var(--ease) both;
}
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 40%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.gradient-text::after {
  content: ''; position: absolute;
  bottom: 0; right: 0; left: 0; height: 12px;
  background: linear-gradient(90deg, transparent, rgba(165,180,252,.35), transparent);
  border-radius: 6px;
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.8;
  animation: fadeUp 1s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search Box */
.search-box {
  background: rgba(255, 255, 255, .98);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  animation: fadeUp 1.1s var(--ease) both;
  position: relative;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 8px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-field > i {
  position: absolute;
  right: 18px;
  color: var(--gray-light);
  font-size: 15px;
  pointer-events: none;
  transition: color .3s var(--ease);
}
.search-field input,
.search-field select {
  width: 100%;
  padding: 16px 46px 16px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--light);
  color: var(--dark);
  outline: none;
  transition: all .3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.search-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
  cursor: pointer;
}
.search-field input:focus,
.search-field select:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.search-field:focus-within > i { color: var(--primary); }

.search-btn {
  background: var(--grad-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: var(--shadow-primary);
  transition: all .3s var(--ease);
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -10px rgba(79, 70, 229, .7);
}
.search-btn:active { transform: translateY(0); }

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 40px;
  animation: fadeUp 1.2s var(--ease) both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}
.trust-item i { color: #a5b4fc; font-size: 16px; }

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg { width: 100%; height: 100px; display: block; }

/* =================================================== */
/* STATS                                               */
/* =================================================== */
.stats-section {
  padding: 0 0 40px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 45px -20px rgba(15, 23, 42, .15);
  border: 1px solid var(--border-soft);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.stat-card:hover::after { transform: scaleY(1); }
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(79, 70, 229, .3);
  border-color: rgba(79, 70, 229, .2);
}
.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
  transition: transform .4s var(--ease);
}
.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-6deg); }
.stat-card:nth-child(2) .stat-icon { background: var(--grad-ocean); box-shadow: 0 15px 40px -12px rgba(14, 165, 233, .5); }
.stat-card:nth-child(3) .stat-icon { background: var(--grad-sunset); box-shadow: 0 15px 40px -12px rgba(236, 72, 153, .5); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 15px 40px -12px rgba(16, 185, 129, .5); }

.stat-card h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -.5px;
}
.stat-card p {
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

/* =================================================== */
/* SECTIONS                                            */
/* =================================================== */
.section { padding: 80px 0; }
.section-featured { background: linear-gradient(180deg, transparent, rgba(79, 70, 229, .03)); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(79, 70, 229, .08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.5px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.count-pill {
  background: var(--grad-primary);
  color: #fff;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
}
.section-desc {
  color: var(--gray);
  font-size: 15px;
  margin-top: 6px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--border);
  transition: all .3s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateX(-4px);
}

/* =================================================== */
/* GRID & CARDS                                        */
/* =================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .5s var(--ease);
  opacity: 0;
  transform: translateY(30px);
  animation: cardIn .6s var(--ease) forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-primary);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.card:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px -30px rgba(79, 70, 229, .35);
}

.card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--light-2);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-img img { transform: scale(1.1) rotate(.5deg); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, .5) 100%);
  pointer-events: none;
}

.no-image {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--gray-light); font-size: 44px;
  background: linear-gradient(135deg, var(--light-2), var(--border));
}

.card-badges {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
  z-index: 2;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, .3);
}
.badge-sale { background: linear-gradient(135deg, #ef4444, #dc2626); }
.badge-rent { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { box-shadow: 0 6px 20px -4px rgba(245, 158, 11, .4); }
  50% { box-shadow: 0 6px 28px -4px rgba(245, 158, 11, .9); }
}

.tour-float {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(79, 70, 229, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(79, 70, 229, .8);
  transition: all .3s var(--ease);
  z-index: 2;
}
.tour-float:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -8px rgba(124, 58, 237, .9);
  color: #fff;
}
.tour-float i { font-size: 14px; }

.card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--dark);
  min-height: 52px;
  letter-spacing: -.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s var(--ease);
}
.card:hover .card-title { color: var(--primary); }

.card-addr {
  color: var(--gray);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-addr i { color: var(--primary); font-size: 13px; flex-shrink: 0; }

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  background: var(--light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all .3s var(--ease);
}
.features span:hover {
  background: rgba(79, 70, 229, .1);
  color: var(--primary);
}
.features i { color: var(--primary); font-size: 12px; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}
.price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.price-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-unit { font-size: 12px; color: var(--gray); font-weight: 600; }

.card-action {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--light);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all .3s var(--ease);
  flex-shrink: 0;
}
.card-action:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: rotate(-45deg) scale(1.1);
  box-shadow: var(--shadow-primary);
}

/* =================================================== */
/* EMPTY STATE                                         */
/* =================================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-icon {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(124,58,237,.1));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 44px;
  color: var(--primary);
}
.empty-state h3 {
  font-size: 22px; font-weight: 800; color: var(--dark);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--gray); font-size: 15px; margin-bottom: 24px;
}

/* =================================================== */
/* CTA                                                 */
/* =================================================== */
.cta-section { padding: 40px 0 80px; }

.cta-box {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  background: linear-gradient(135deg, #0b1220 0%, #312e81 50%, #0b1220 100%);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(49, 46, 129, .6);
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-mesh);
  opacity: .7;
}
.cta-blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, .4), transparent 70%);
  top: -200px; right: -150px;
  filter: blur(40px);
  animation: float 15s ease-in-out infinite;
}
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.cta-content p {
  color: #cbd5e1;
  font-size: clamp(14px, 1.8vw, 17px);
  margin-bottom: 32px;
  line-height: 1.8;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =================================================== */
/* BUTTONS                                             */
/* =================================================== */
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-primary);
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -10px rgba(79, 70, 229, .7);
  color: #fff;
}
.btn-primary.full { width: 100%; justify-content: center; padding: 16px; }
.btn-lg { padding: 16px 34px; font-size: 15px; }

.btn-outline {
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .25);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s var(--ease);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-3px);
  color: #fff;
}

/* =================================================== */
/* DETAIL PAGE                                         */
/* =================================================== */
.detail-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}
.gallery { position: relative; }
.main-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  background: var(--light-2);
  position: relative;
}
.main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.main-img:hover img { transform: scale(1.03); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .65;
  transition: all .3s var(--ease);
  border: 2px solid transparent;
}
.thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.thumbs img.active { opacity: 1; border-color: var(--primary); box-shadow: var(--shadow-primary); }

.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.detail-head h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  flex: 1;
  letter-spacing: -.5px;
}
.addr {
  color: var(--gray);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
.addr i { color: var(--primary); }

.price-big {
  font-size: 34px;
  font-weight: 900;
  margin: 18px 0;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-big small {
  font-size: 15px;
  color: var(--gray);
  -webkit-text-fill-color: var(--gray);
  font-weight: 600;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 22px;
  background: var(--light);
  border-radius: var(--radius);
  margin: 22px 0;
}
.specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease);
}
.specs li:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); }
.specs i { color: var(--primary); width: 20px; font-size: 14px; }
.specs span { color: var(--gray); font-size: 13px; }
.specs b { margin-right: auto; font-weight: 800; color: var(--dark); }

.description { margin-top: 20px; }
.description h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.description h3::before {
  content: '';
  width: 4px; height: 22px;
  background: var(--grad-primary);
  border-radius: 3px;
}
.description p {
  color: #475569;
  line-height: 2;
  white-space: pre-line;
  font-size: 15px;
}

.contact-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}
.contact-cta a { flex: 1; justify-content: center; }
.contact-cta .btn-outline {
  background: var(--light);
  border-color: var(--border);
  color: var(--dark);
}
.contact-cta .btn-outline:hover {
  background: var(--light-2);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-tour {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all .3s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, .5);
}
.btn-tour:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -10px rgba(124, 58, 237, .7);
  color: #fff;
}
.btn-tour-lg { padding: 16px; font-size: 15px; margin: 24px 0; }

/* =================================================== */
/* ADMIN - TABLE                                       */
/* =================================================== */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: right;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.admin-table th {
  background: var(--light);
  font-weight: 800;
  color: var(--dark);
  font-size: 13px;
  letter-spacing: .3px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-table tr:hover td { background: #fafbff; }
.admin-table tr:last-child td { border-bottom: 0; }

.actions { display: flex; gap: 8px; }
.actions a, .actions button {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--light);
  color: var(--dark);
  transition: all .3s var(--ease);
}
.actions a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.actions button:hover { background: var(--danger); color: #fff; transform: translateY(-2px); }
.ok { color: var(--success); font-weight: 800; }
.no { color: var(--gray-light); }

/* =================================================== */
/* FLASH                                               */
/* =================================================== */
.flashes { margin: 20px auto; max-width: var(--container); padding: 0 24px; }
.flash {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  border-right: 4px solid;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .4s var(--ease);
}
@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.flash-success { background: #dcfce7; color: #166534; border-color: var(--success); }
.flash-danger { background: #fee2e2; color: #991b1b; border-color: var(--danger); }
.flash-info { background: #dbeafe; color: #1e40af; border-color: var(--info); }
.flash-warning { background: #fef3c7; color: #92400e; border-color: var(--warning); }

/* =================================================== */
/* FOOTER                                              */
/* =================================================== */
.footer {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #cbd5e1;
  padding: 60px 0 24px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, .5), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 36px;
}
.footer h3, .footer h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 800;
}
.footer p {
  font-size: 14px;
  line-height: 2.2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
}
.footer p i { color: var(--primary-light); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .06);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: all .3s var(--ease);
}
.socials a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}
.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
  color: #64748b;
}

/* =================================================== */
/* ADMIN FORM - MODERN                                 */
/* =================================================== */
.admin-form-section {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  min-height: calc(100vh - var(--nav-h));
}
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.form-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  background: #fff;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
.form-header-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}
.form-header h1 { font-size: 22px; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.form-header p { color: var(--gray); font-size: 14px; }

.modern-form { display: flex; flex-direction: column; gap: 24px; }
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: box-shadow .3s var(--ease);
}
.form-card:hover { box-shadow: var(--shadow); }
.form-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(180deg, #fafbff, #f4f6fb);
  border-bottom: 1px solid var(--border-soft);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.icon-blue { background: var(--grad-primary); }
.icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.form-card-head h2 { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.form-card-head p { font-size: 13px; color: var(--gray); }

.form-body { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group.full { grid-column: 1 / -1; }
.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}
.req { color: var(--danger); font-weight: 800; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i {
  position: absolute;
  right: 16px;
  color: var(--gray-light);
  font-size: 15px;
  pointer-events: none;
  transition: color .3s var(--ease);
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--dark);
  outline: none;
  transition: all .3s var(--ease);
}
.input-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}
.input-wrap:focus-within > i { color: var(--primary); }
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #cbd5e1; }
.input-wrap.textarea { align-items: flex-start; }
.input-wrap.textarea > i { top: 16px; }
.input-wrap textarea { resize: vertical; min-height: 120px; }

.hint { font-size: 12px; color: var(--gray); padding-right: 4px; }
.hint b { color: var(--primary); font-weight: 700; }

.switch-label {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.switch-label:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(245, 158, 11, .5); }
.switch-label input { display: none; }
.switch {
  width: 48px; height: 28px;
  background: #cbd5e1;
  border-radius: 50px;
  position: relative;
  transition: .3s;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.switch-label input:checked + .switch { background: linear-gradient(135deg, #f59e0b, #d97706); }
.switch-label input:checked + .switch::after { right: 23px; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text b { font-size: 14px; color: var(--dark); }
.switch-text small { font-size: 12px; color: var(--gray); }

.tour-card {
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  border-color: #ede9fe;
}
.tour-card .form-card-head {
  background: linear-gradient(180deg, #faf5ff, #f3e8ff);
  border-bottom-color: #ede9fe;
}

.slug-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: all .3s var(--ease);
}
.slug-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}
.slug-prefix {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #6d28d9;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  border-left: 1.5px solid #ede9fe;
  direction: ltr;
}
.slug-wrap input {
  flex: 1;
  border: 0 !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  font-family: 'Courier New', monospace;
  direction: ltr;
  text-align: left;
  font-size: 14px;
}
.slug-wrap input:focus { box-shadow: none !important; }
.btn-random {
  background: var(--grad-primary);
  color: #fff;
  padding: 0 18px;
  font-size: 16px;
  transition: all .3s var(--ease);
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.btn-random:hover { background: linear-gradient(135deg, #6d28d9, #5b21b6); }

.tour-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tour-type-option { cursor: pointer; }
.tour-type-option input { display: none; }
.tour-type-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: all .3s var(--ease);
  text-align: center;
}
.tour-type-box i { font-size: 22px; color: var(--gray-light); transition: all .3s var(--ease); }
.tour-type-box b { font-size: 13px; color: var(--dark); font-weight: 800; }
.tour-type-box small { font-size: 11px; color: var(--gray-light); }
.tour-type-option:hover .tour-type-box { border-color: #c7d2fe; transform: translateY(-2px); }
.tour-type-option input:checked + .tour-type-box {
  border-color: var(--accent);
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  box-shadow: 0 4px 16px -6px rgba(124, 58, 237, .4);
}
.tour-type-option input:checked + .tour-type-box i { color: var(--accent); transform: scale(1.15); }
.tour-type-option input:checked + .tour-type-box b { color: #6d28d9; }

.upload-box {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fafbff, #f8fafc);
  cursor: pointer;
  transition: all .3s var(--ease);
  overflow: hidden;
  min-height: 160px;
}
.upload-box:hover { border-color: var(--primary); background: linear-gradient(180deg, #eff6ff, #dbeafe); }
.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
}
.upload-inner i { font-size: 36px; color: var(--gray-light); transition: all .3s var(--ease); }
.upload-box:hover .upload-inner i { color: var(--primary); transform: translateY(-4px); }
.upload-inner b { font-size: 15px; color: #334155; font-weight: 800; }
.upload-inner small { font-size: 12px; color: var(--gray-light); }
.upload-preview { width: 100%; height: 220px; object-fit: cover; display: block; }

.current-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
}
.current-cover span { font-size: 13px; color: #166534; font-weight: 700; }
.current-cover img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 16px;
  background: var(--light);
  width: 100%;
}
.gallery-preview:empty { display: none; }
.gallery-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.15);
}

.existing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.existing-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.15);
}
.existing-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.existing-item form { position: absolute; top: 6px; left: 6px; }
.existing-item button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, .95);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.existing-item button:hover { background: #b91c1c; transform: scale(1.1); }

.form-actions {
  display: flex;
  gap: 14px;
  padding: 24px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: sticky;
  bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-save {
  flex: 1;
  background: var(--grad-primary);
  color: #fff;
  padding: 18px 28px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  border: 0;
}
.btn-save:hover { transform: translateY(-3px); box-shadow: 0 20px 45px -10px rgba(79, 70, 229, .7); }

.btn-cancel {
  padding: 18px 32px;
  border-radius: var(--radius);
  background: var(--light);
  color: var(--gray);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .3s var(--ease);
}
.btn-cancel:hover { background: var(--light-2); color: var(--dark); }

/* =================================================== */
/* RESPONSIVE                                          */
/* =================================================== */

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: span 2; justify-content: center; }
  .detail-wrap { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .main-img { height: 340px; }
  .form-body { grid-template-columns: 1fr; }
  .tour-types { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .menu-toggle { 
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    background: transparent;
    border: none;
    color: #0b1220;
    cursor: pointer;
    z-index: 9999;
    position: relative; 
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    transform: translateY(-120%);
    transition: transform .4s var(--ease), opacity .3s var(--ease);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  .nav-links .btn-nav-cta { text-align: center; margin-top: 8px; }

  .hero { min-height: 600px; padding: 60px 0 120px; }
  .hero-trust { gap: 20px; }
  .trust-item { font-size: 12px; }

  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer p { justify-content: center; }
  .socials { justify-content: center; }
  .cta-box { padding: 44px 24px; }
  .specs { grid-template-columns: 1fr; }

  .form-header { flex-direction: column; text-align: center; padding: 20px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 20px; gap: 14px; }
  .stat-icon { width: 52px; height: 52px; font-size: 20px; }
  .stat-card h3 { font-size: 24px; }
}

@media (max-width: 768px) {
  .hero { min-height: 560px; padding: 50px 0 110px; }
  .hero-wave svg { height: 80px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card {
    padding: 18px 16px;
    gap: 12px;
    border-radius: var(--radius);
  }
  .stat-icon { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
  .stat-card h3 { font-size: 22px; }
  .stat-card p { font-size: 12px; }

  .section { padding: 50px 0; }
  .section-head { margin-bottom: 32px; }
  .grid { gap: 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { min-height: 520px; padding: 40px 0 100px; }
  .hero-wave svg { height: 60px; }
  .hero-badge { font-size: 11px; padding: 8px 14px; }

  .search-grid { grid-template-columns: 1fr; }
  .search-btn { grid-column: auto; padding: 16px 20px; justify-content: center; }

  .stats-section { margin-top: -40px; padding-bottom: 30px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 16px 14px;
    gap: 10px;
    border-radius: var(--radius);
    flex-direction: row;
    align-items: center;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }
  .stat-card h3 { font-size: 20px; }
  .stat-card p { font-size: 11px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .card-img { height: 200px; }

  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .thumbs img { height: 60px; }

  .cta-actions { flex-direction: column; }
  .cta-actions a { width: 100%; }

  .form-body { grid-template-columns: 1fr; padding: 20px; }
  .tour-types { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; padding: 16px; }
  .btn-save, .btn-cancel { width: 100%; justify-content: center; }
  .slug-wrap { flex-wrap: wrap; }
  .slug-prefix { width: 100%; justify-content: center; border-left: 0; border-bottom: 1.5px solid #ede9fe; }
  .btn-random { width: 100%; padding: 14px; }

  .contact-cta { flex-direction: column; }
  .detail-head h1 { font-size: 20px; }
  .price-big { font-size: 26px; }

  .footer { padding: 40px 0 20px; }
  .footer-grid { gap: 24px; }
  .socials a { width: 40px; height: 40px; font-size: 15px; }

  .section-title { font-size: 22px; }
  .section-label { font-size: 11px; }
  .section-desc { font-size: 13px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .stat-icon { width: 46px; height: 46px; font-size: 17px; }
  .stat-card h3 { font-size: 22px; }
  .stat-card p { font-size: 12px; }

  .hero { min-height: 480px; padding: 30px 0 90px; }
  .hero-title { font-size: 28px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 14px; }
  .hero-badge { font-size: 10px; padding: 6px 12px; }

  .trust-item { font-size: 11px; }

  .section { padding: 40px 0; }
  .section-title { font-size: 20px; }
  .count-pill { font-size: 12px; padding: 2px 10px; }

  .card-body { padding: 18px 16px 16px; }
  .card-title { font-size: 15px; }
  .price-value { font-size: 18px; }
  .card-action { width: 40px; height: 40px; font-size: 14px; }

  .cta-box { padding: 36px 20px; border-radius: var(--radius-lg); }
  .cta-content h2 { font-size: 22px; }
  .cta-content p { font-size: 13px; }

  .form-header h1 { font-size: 18px; }
  .form-header-icon { width: 50px; height: 50px; font-size: 22px; }

  .footer h3, .footer h4 { font-size: 15px; }
  .footer p { font-size: 13px; }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 12px 14px; gap: 12px; }
  .stat-icon { width: 42px; height: 42px; font-size: 15px; }
  .stat-card h3 { font-size: 20px; }
  .stat-card p { font-size: 11px; }

  .logo { font-size: 18px; }
  .logo-icon { width: 38px; height: 38px; font-size: 17px; }
  .hero-title { font-size: 24px; }
  .search-field input,
  .search-field select { padding: 14px 42px 14px 14px; font-size: 13px; }
  .search-btn { font-size: 14px; padding: 14px 18px; }

  .section-title { font-size: 18px; }
  .card-img { height: 180px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 60px 0; }
  .stats-section { margin-top: 0; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .navbar, .footer, .cta-section, .hero-blobs, .hero-wave, .menu-toggle {
    display: none !important;
  }
  .hero { background: #fff; color: #000; min-height: auto; padding: 20px 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}


/* =================================================== */
/* لوگوی تصویری                                        */
/* =================================================== */
.logo-image {
  width: 100px;
  height: 65px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

/* =================================================== */
/* AUTH (صفحه ورود مدیر)                              */
/* =================================================== */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
}

.auth-box {
  background: #fff;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border-soft);
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-box h2 i {
  color: var(--primary);
}

.auth-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--dark);
}

.auth-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: all .3s var(--ease);
  background: #fff;
  color: var(--dark);
}

.auth-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}

.auth-box button {
  margin-top: 24px;
}

.auth-box .hint {
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.auth-box .hint b {
  color: var(--primary);
}

@media (max-width: 480px) {
  .auth-box {
    padding: 32px 24px;
  }
  .auth-box h2 {
    font-size: 20px;
  }
}


/* =================================================== */
/* ⭐ امکانات ملک (Facilities)                          */
/* =================================================== */

/* --- Grid امکانات در فرم ادمین --- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
}

.facility-checkbox {
  cursor: pointer;
  display: block;
}

.facility-checkbox input {
  display: none;
}

.facility-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: all .3s var(--ease);
  text-align: center;
}

.facility-box i {
  font-size: 24px;
  color: var(--gray-light);
  transition: all .3s var(--ease);
}

.facility-box b {
  font-size: 13px;
  color: var(--dark);
  font-weight: 700;
}

.facility-checkbox:hover .facility-box {
  border-color: #c7d2fe;
  transform: translateY(-2px);
}

.facility-checkbox input:checked + .facility-box {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eef2ff, #f3e8ff);
  box-shadow: 0 4px 16px -6px rgba(79, 70, 229, .4);
}

.facility-checkbox input:checked + .facility-box i {
  color: var(--primary);
  transform: scale(1.15);
}

.facility-checkbox input:checked + .facility-box b {
  color: var(--primary);
}

/* --- نمایش امکانات در صفحه ملک --- */
.facilities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.facility-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eef2ff, #f3e8ff);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: all .3s var(--ease);
}

.facility-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

.facility-badge i {
  font-size: 16px;
  color: var(--primary);
}

@media (max-width: 640px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facilities-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .facility-box {
    padding: 14px 8px;
  }
  .facility-box i { font-size: 20px; }
  .facility-box b { font-size: 12px; }
}


/* =================================================== */
/* ⭐ امکانات اضافی (Extra Facilities) - اضافه شده      */
/* =================================================== */
.extra-facilities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.extra-facility-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  align-items: stretch;
}

.extra-facility-row .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.extra-facility-row .input-wrap > i {
  position: absolute;
  right: 14px;
  color: var(--gray-light);
  font-size: 14px;
  pointer-events: none;
}

.extra-facility-row .input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
  outline: none;
  transition: all .3s var(--ease);
}

.extra-facility-row .input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}

.extra-facility-row .input-wrap:focus-within > i {
  color: var(--primary);
}

.btn-remove-facility {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fee2e2;
  color: #991b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  border: 0;
}

.btn-remove-facility:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.05);
}

.btn-add-facility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: var(--primary);
  border: 1.5px dashed #c7d2fe;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .3s var(--ease);
  margin-bottom: 8px;
}

.btn-add-facility:hover {
  background: var(--grad-primary);
  color: #fff;
  border-style: solid;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

@media (max-width: 640px) {
  .extra-facility-row {
    grid-template-columns: 1fr;
  }
  .btn-remove-facility {
    width: 100%;
    height: 40px;
  }
}

/* =================================================== */
/* ⭐ مشخصات کوتاه روی کارت‌ها (متراژ، اتاق، طبقه)      */
/* =================================================== */
.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
}

.card-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--light);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  transition: all .3s var(--ease);
}

.card-features span i {
  font-size: 11px;
  color: var(--primary);
}

.card:hover .card-features span {
  background: rgba(79, 70, 229, .08);
  color: var(--primary);
}

/* =================================================== */
/* ⭐ امکانات روی کارت‌ها                               */
/* =================================================== */
.card-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.card-facility {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #eef2ff, #f3e8ff);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  transition: all .3s var(--ease);
}

.card-facility i {
  font-size: 11px;
  color: var(--primary);
}

.card-facility b {
  font-weight: 700;
}

.card:hover .card-facility {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  transform: translateY(-1px);
}

.card-facility-more {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--light);
  border: 1px dashed var(--border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
}

/* =================================================== */
/* ⭐ دکمه جزئیات روی کارت                              */
/* =================================================== */
.card-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .5);
  transition: all .3s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-detail-btn i {
  font-size: 12px;
  transition: transform .3s var(--ease);
}

.card-detail-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(79, 70, 229, .7);
}

.card-detail-btn:hover i {
  transform: translateX(-4px);
}

/* --- موبایل --- */
@media (max-width: 480px) {
  .card-detail-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .card-facility,
  .card-features span {
    font-size: 10px;
    padding: 4px 8px;
  }
  .card-facility i,
  .card-features span i {
    font-size: 10px;
  }
}