/* ================================================================
   OKZ.ca — Premium Design System v2.0
   Senior UI/UX  ·  March 2026
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --navy:          #0B1437;
  --navy-700:      #152050;
  --navy-600:      #1a2d6e;
  --primary:       #1a56db;
  --primary-dark:  #1648c0;
  --primary-light: #EFF6FF;
  --accent:        #F59E0B;
  --accent-dark:   #D97706;
  --accent-light:  #FFFBEB;
  --success:  #059669;
  --danger:   #DC2626;
  --warning:  #D97706;
  --info:     #0891B2;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --surface:     #FFFFFF;
  --surface-alt: #F8FAFC;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-pill: 9999px;
  --s-xs:  0 1px 2px rgba(15,23,42,.06);
  --s-sm:  0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
  --s-md:  0 4px 8px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --s-lg:  0 10px 20px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
  --s-xl:  0 20px 40px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.04);
  --s-2xl: 0 32px 64px rgba(15,23,42,.16);
  --s-glow: 0 0 0 3px rgba(26,86,219,.18);
  --s-gold: 0 4px 16px rgba(245,158,11,.35);
  --s-blue: 0 4px 16px rgba(26,86,219,.30);
  --t-fast: .15s ease;
  --t-base: .25s ease;
  --t-slow: .40s ease;
  --header-h: 70px;
}

/* ── Base ───────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--surface-alt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); transition: color var(--t-fast); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.text-primary   { color: var(--primary)    !important; }
.bg-primary     { background: var(--primary) !important; }
.btn-primary    { background: var(--primary) !important; border-color: var(--primary) !important; }

/* ================================================================
   SITE HEADER
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), var(--s-lg);
}

.site-header .navbar {
  padding: 0;
  min-height: var(--header-h);
  background: transparent !important;
}

/* Logo */
.okz-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.okz-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  color: var(--navy);
  letter-spacing: -.5px;
  box-shadow: var(--s-gold);
  flex-shrink: 0;
  font-family: var(--font);
}

.okz-logo-text {
  font-size: 21px; font-weight: 700;
  color: #fff; letter-spacing: -.6px; line-height: 1;
}

.okz-logo-text em { font-style: normal; color: var(--accent); }

/* Header Search */
.header-search-form {
  flex: 1; max-width: 420px;
  margin: 0 24px;
}

.header-search-inner {
  display: flex; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  height: 42px; overflow: hidden;
  transition: all var(--t-base);
}

.header-search-inner:focus-within {
  background: rgba(255,255,255,.13);
  border-color: rgba(245,158,11,.45);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}

.header-search-inner input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: .875rem; font-family: var(--font); padding: 0 16px;
}

.header-search-inner input::placeholder { color: rgba(255,255,255,.42); }

.header-search-inner button {
  background: transparent; border: none;
  color: rgba(255,255,255,.5); padding: 0 14px; height: 100%;
  cursor: pointer; display: flex; align-items: center;
  transition: color var(--t-fast);
}

.header-search-inner button:hover { color: var(--accent); }
.header-search-inner button svg { width: 16px; height: 16px; }

/* Nav */
.site-header .navbar-nav { gap: 2px; }

.site-header .nav-link {
  color: rgba(255,255,255,.72) !important;
  font-size: .875rem; font-weight: 500;
  padding: 8px 13px !important;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.site-header .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}

/* Post Ad CTA */
.btn-post-ad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--navy) !important; font-weight: 700; font-size: .8125rem;
  padding: 9px 18px; border-radius: var(--r-pill); border: none;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; transition: all var(--t-base);
  box-shadow: var(--s-gold); white-space: nowrap; line-height: 1;
}

.btn-post-ad:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245,158,11,.48);
  color: var(--navy) !important; filter: brightness(1.04);
}

.btn-post-ad svg { width: 14px; height: 14px; }

/* Login btn */
.btn-nav-login {
  color: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: transparent !important;
  font-size: .875rem !important; font-weight: 500;
  padding: 8px 16px !important; border-radius: var(--r-pill) !important;
  transition: all var(--t-fast) !important; white-space: nowrap;
}

.btn-nav-login:hover {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.36) !important;
  color: #fff !important;
}

/* User chip */
.user-nav-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  padding: 5px 12px 5px 5px;
  cursor: pointer; transition: all var(--t-fast);
  color: rgba(255,255,255,.88) !important;
  font-size: .875rem !important; font-weight: 500;
  text-decoration: none;
}

.user-nav-chip:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
  color: #fff !important;
}

.user-nav-chip img,
.user-initials-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

.user-initials-avatar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-600) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--s-xl);
  padding: 6px; min-width: 210px;
  animation: dropIn .15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.dropdown-item {
  border-radius: var(--r-md);
  padding: 9px 13px; font-size: .875rem; font-weight: 500;
  color: var(--gray-700);
  display: flex; align-items: center; gap: 10px;
  transition: all var(--t-fast);
}

.dropdown-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.text-danger:hover { background: #FEF2F2; color: var(--danger); }
.dropdown-divider { border-color: var(--gray-100); margin: 4px 0; }

/* Toggler */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,.18) !important;
  padding: 6px 10px !important;
  border-radius: var(--r-md) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.78)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
  background: var(--navy-700);
  border-top: 1px solid rgba(255,255,255,.06);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 12px; margin-top: 0;
}

/* Mobile Search Bar */
.header-mobile-search {
  background: var(--navy-700);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 10px 0 12px;
}

.header-mobile-search .mobile-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
  overflow: hidden; height: 42px;
}

.header-mobile-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: .875rem; font-family: var(--font); padding: 0 14px;
}

.header-mobile-search input::placeholder { color: rgba(255,255,255,.4); }

.header-mobile-search .btn-mobile-search {
  background: var(--accent); border: none;
  color: var(--navy); font-weight: 700; padding: 0 18px;
  height: 100%; cursor: pointer; font-size: .8125rem;
  display: flex; align-items: center; gap: 6px; font-family: var(--font);
}

/* Flash */
.flash-wrap { background: var(--surface); border-bottom: 1px solid var(--gray-100); }

.alert {
  border-radius: var(--r-lg); border: none;
  padding: 14px 18px; font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}

.alert-success { background: #ECFDF5; color: #065F46; }
.alert-danger   { background: #FEF2F2; color: #991B1B; }
.alert-warning  { background: #FFFBEB; color: #92400E; }
.alert-info     { background: #EFF6FF; color: #1E40AF; }

.main-content { min-height: calc(100vh - var(--header-h) - 360px); }

/* ================================================================
   HERO SECTION
   ================================================================ */

.okz-hero {
  background: linear-gradient(160deg, #080f2a 0%, #0c1a4e 35%, #0a1e50 65%, #06102e 100%);
  position: relative; overflow: hidden;
  padding: 88px 0 100px;
}

.okz-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(26,86,219,.38) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 85% 60%, rgba(245,158,11,.09) 0%, transparent 55%),
    radial-gradient(ellipse 30% 40% at 15% 70%, rgba(8,145,178,.1) 0%, transparent 55%);
  pointer-events: none;
}

.okz-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: var(--r-pill);
  padding: 7px 18px; color: #fbbf24;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 28px;
}

.hero-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800; color: #fff;
  letter-spacing: -.04em; line-height: 1.08;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem; color: rgba(255,255,255,.58);
  max-width: 480px; margin: 0 auto 44px; line-height: 1.65;
}

/* Hero Search */
.hero-search-outer { max-width: 680px; margin: 0 auto 40px; }

.hero-search-bar {
  display: flex; align-items: stretch; height: 62px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-2xl); overflow: hidden;
  transition: all var(--t-base);
}

.hero-search-bar:focus-within {
  background: rgba(255,255,255,.1);
  border-color: rgba(245,158,11,.4);
  box-shadow: 0 0 0 4px rgba(245,158,11,.1), var(--s-2xl);
}

.hero-search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 1rem; font-family: var(--font); padding: 0 24px;
}

.hero-search-bar input::placeholder { color: rgba(255,255,255,.4); }

.hero-search-sep {
  width: 1px; background: rgba(255,255,255,.1);
  margin: 12px 0; flex-shrink: 0;
}

.hero-search-bar select {
  background: transparent; border: none; outline: none;
  color: rgba(255,255,255,.65); font-family: var(--font); font-size: .875rem;
  padding: 0 16px; max-width: 170px; cursor: pointer;
}

.hero-search-bar select option { background: #0c1a4e; color: #fff; }

.hero-search-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none; color: var(--navy); font-weight: 700;
  font-size: .875rem; font-family: var(--font);
  padding: 0 32px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: filter var(--t-fast); white-space: nowrap;
}

.hero-search-btn:hover { filter: brightness(1.06); }
.hero-search-btn svg  { width: 16px; height: 16px; }

/* Popular tags */
.hero-tags {
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 52px;
}

.hero-tag-label {
  font-size: .8125rem; color: rgba(255,255,255,.42); font-weight: 500;
}

.hero-tag {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-pill); padding: 5px 13px;
  font-size: .8125rem; color: rgba(255,255,255,.65);
  text-decoration: none; transition: all var(--t-fast);
}

.hero-tag:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22); color: #fff;
}

/* Stats */
.hero-stats {
  display: flex; justify-content: center;
  align-items: center; gap: 0; flex-wrap: wrap;
}

.hero-stat {
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  display: block; font-size: 1.75rem; font-weight: 800;
  color: #fff; letter-spacing: -.04em; line-height: 1.1;
}

.hero-stat-lbl {
  display: block; font-size: .75rem;
  color: rgba(255,255,255,.42); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; margin-top: 4px;
}

/* ================================================================
   TRUST BAR
   ================================================================ */

.trust-bar {
  background: rgba(11,20,55,.98);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 16px 0;
}

.trust-bar-inner {
  display: flex; justify-content: center;
  gap: 0; flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 28px;
  border-right: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  font-size: .8125rem; font-weight: 500;
}

.trust-item:last-child { border-right: none; }
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ================================================================
   SECTION SCAFFOLD
   ================================================================ */

.okz-section       { padding: 80px 0; }
.okz-section-white { background: var(--surface); }
.okz-section-gray  { background: var(--gray-50); }

.section-eyebrow {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--gray-900);
  letter-spacing: -.03em; margin-bottom: 10px; line-height: 1.2;
}

.section-sub {
  font-size: .9375rem; color: var(--gray-500); line-height: 1.6;
}

.view-all-link {
  font-size: .875rem; font-weight: 600; color: var(--primary);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast), color var(--t-fast);
}

.view-all-link:hover { gap: 10px; color: var(--primary-dark); }
.view-all-link svg   { width: 15px; height: 15px; }

/* ================================================================
   CATEGORY CARDS
   ================================================================ */

.cat-card-link { text-decoration: none; display: block; }

.cat-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 26px 16px 22px; text-align: center;
  transition: all var(--t-base); cursor: pointer;
  position: relative; overflow: hidden;
}

.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--primary-light) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--t-base); pointer-events: none;
}

.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--s-lg); transform: translateY(-5px);
}

.cat-card:hover::after { opacity: 1; }

.cat-icon-ring {
  width: 58px; height: 58px; border-radius: var(--r-xl);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: transform var(--t-base); position: relative; z-index: 1;
}

.cat-card:hover .cat-icon-ring { transform: scale(1.1) rotate(-3deg); }
.cat-icon-ring svg { width: 26px; height: 26px; }

.cat-name {
  font-size: .875rem; font-weight: 600; color: var(--gray-800);
  margin-bottom: 4px; transition: color var(--t-fast);
  position: relative; z-index: 1; line-height: 1.3;
}

.cat-card:hover .cat-name { color: var(--primary); }
.cat-count { font-size: .75rem; color: var(--gray-400); font-weight: 500; position: relative; z-index: 1; }

/* Icon palettes */
.ic-blue    { background: #EFF6FF; color: #1D4ED8; }
.ic-teal    { background: #ECFEFF; color: #0E7490; }
.ic-green   { background: #F0FDF4; color: #15803D; }
.ic-orange  { background: #FFF7ED; color: #C2410C; }
.ic-purple  { background: #F5F3FF; color: #6D28D9; }
.ic-rose    { background: #FFF1F2; color: #BE123C; }
.ic-amber   { background: #FFFBEB; color: #B45309; }
.ic-indigo  { background: #EEF2FF; color: #3730A3; }
.ic-emerald { background: #ECFDF5; color: #047857; }
.ic-sky     { background: #F0F9FF; color: #0369A1; }
.ic-pink    { background: #FDF2F8; color: #9D174D; }
.ic-lime    { background: #F7FEE7; color: #3F6212; }

/* ================================================================
   AD CARDS
   ================================================================ */

.ad-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all var(--t-base);
  height: 100%; display: flex; flex-direction: column;
}

.ad-card:hover {
  box-shadow: var(--s-xl);
  border-color: rgba(26,86,219,.18);
  transform: translateY(-5px);
}

/* Both old and new image wrapper names */
.ad-img-wrap,
.ad-image-wrapper {
  position: relative; width: 100%;
  padding-top: 70%; overflow: hidden;
  background: var(--gray-100); flex-shrink: 0;
}

.ad-img-wrap img,
.ad-image-wrapper img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform var(--t-slow);
}

.ad-card:hover .ad-img-wrap img,
.ad-card:hover .ad-image-wrapper img { transform: scale(1.05); }

/* Badges */
.ad-badge-featured {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  color: var(--navy); font-size: .6875rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 4px;
}

.ad-badge-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.58); backdrop-filter: blur(4px);
  color: #fff; font-size: .6875rem; font-weight: 600;
  padding: 4px 9px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Legacy badge */
.ad-image-wrapper .badge { position: absolute; }

.ad-card-body {
  padding: 16px 18px 18px;
  flex: 1; display: flex; flex-direction: column;
}

/* Old .card-body inside .ad-card */
.ad-card .card-body { padding: 16px 18px 18px; flex: 1; }

.ad-price, .ad-card .price {
  font-size: 1.1875rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.03em;
  margin-bottom: 8px; line-height: 1.1;
}

.ad-title {
  font-size: .875rem; font-weight: 600; color: var(--gray-800);
  text-decoration: none; line-height: 1.4; display: block;
  margin-bottom: auto; padding-bottom: 12px;
  transition: color var(--t-fast);
}

.ad-title:hover { color: var(--primary); }

.ad-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: var(--gray-400); font-weight: 500;
  padding-top: 10px; border-top: 1px solid var(--gray-100); margin-top: 10px;
}

.ad-footer svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ================================================================
   CITY CHIPS
   ================================================================ */

.city-chip {
  display: block; background: var(--surface);
  border: 1px solid var(--gray-200); border-radius: var(--r-xl);
  padding: 20px 16px; text-align: center; text-decoration: none;
  transition: all var(--t-base);
}

.city-chip:hover {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: var(--s-md); transform: translateY(-3px);
}

.city-chip-icon {
  width: 40px; height: 40px; background: var(--gray-100);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; transition: all var(--t-base);
}

.city-chip-icon svg { width: 18px; height: 18px; color: var(--gray-500); }
.city-chip:hover .city-chip-icon { background: var(--primary); }
.city-chip:hover .city-chip-icon svg { color: #fff; }

.city-chip-name {
  font-size: .9375rem; font-weight: 600; color: var(--gray-800);
  transition: color var(--t-fast); margin-bottom: 3px;
}

.city-chip:hover .city-chip-name { color: var(--primary); }
.city-chip-count { font-size: .75rem; color: var(--gray-400); font-weight: 500; }

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  font-family: var(--font); font-weight: 600; letter-spacing: .01em;
  border-radius: var(--r-md); transition: all var(--t-base);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border: none !important; color: #fff !important; box-shadow: var(--s-blue);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(26,86,219,.42) !important;
  transform: translateY(-1px); color: #fff !important;
}

.btn-outline-primary {
  border: 1.5px solid var(--primary) !important;
  color: var(--primary) !important; background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #fff !important; box-shadow: var(--s-blue);
}

.btn-outline-secondary {
  border: 1.5px solid var(--gray-200) !important;
  color: var(--gray-600) !important; background: var(--surface) !important;
}

.btn-outline-secondary:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important; background: var(--primary-light) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--navy); border: none; font-weight: 700; box-shadow: var(--s-gold);
}

.btn-gold:hover {
  filter: brightness(1.05); box-shadow: 0 8px 24px rgba(245,158,11,.48);
  transform: translateY(-1px); color: var(--navy);
}

.btn-navy {
  background: var(--navy); color: #fff; border: none;
}

.btn-navy:hover {
  background: var(--navy-700); color: #fff;
  box-shadow: var(--s-lg); transform: translateY(-1px);
}

.btn-lg  { padding: 13px 26px !important; font-size: 1rem !important; border-radius: var(--r-lg) !important; }
.btn-sm  { padding: 7px 14px !important; font-size: .8125rem !important; border-radius: var(--r-md) !important; }
.btn-xl  { padding: 15px 32px !important; font-size: 1.0625rem !important; border-radius: var(--r-lg) !important; }

/* ================================================================
   CARDS GENERAL
   ================================================================ */

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--s-xs); overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--gray-100);
  padding: 18px 22px; font-weight: 600;
  color: var(--gray-800); font-size: .9375rem;
}

.card-body { padding: 20px 22px; }

/* ================================================================
   FORMS
   ================================================================ */

.form-control, .form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md); padding: 10px 14px;
  font-family: var(--font); font-size: .9rem;
  color: var(--gray-800); background: var(--surface);
  transition: all var(--t-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: var(--s-glow); outline: none; background: var(--surface);
}

.form-label {
  font-size: .8125rem; font-weight: 600; color: var(--gray-600);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em;
}

.input-group-text {
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50); color: var(--gray-400);
}

/* ================================================================
   FILTER SIDEBAR
   ================================================================ */

.filter-sidebar .card-header {
  background: var(--navy); color: #fff;
  border-radius: 0 !important; font-size: .875rem;
}

.filter-sidebar .card-header .btn-sm {
  font-size: .75rem; padding: 4px 10px;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.85) !important;
}

/* ================================================================
   PAGINATION
   ================================================================ */

.pagination .page-link {
  border: 1.5px solid var(--gray-200); color: var(--gray-600);
  border-radius: var(--r-md) !important; margin: 0 3px;
  font-size: .875rem; font-weight: 500; padding: 8px 14px;
  transition: all var(--t-fast); background: var(--surface);
}

.pagination .page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary); color: var(--primary);
}

.pagination .page-item.active .page-link {
  background: var(--primary); border-color: var(--primary);
  color: #fff; box-shadow: var(--s-blue);
}

.pagination .page-item.disabled .page-link { opacity: .45; }

/* ================================================================
   BREADCRUMB
   ================================================================ */

.breadcrumb { background: none; padding: 0; margin: 0; font-size: .875rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-300); }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray-700); font-weight: 500; }

/* ================================================================
   AD DETAIL
   ================================================================ */

.thumbnail-image {
  cursor: pointer; border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: all var(--t-fast); opacity: .65;
}

.thumbnail-image:hover, .thumbnail-image.active {
  border-color: var(--primary); opacity: 1;
}

.ad-sidebar-price-card {
  border: 1px solid var(--gray-200); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--s-md);
  position: sticky; top: calc(var(--header-h) + 16px);
}

.ad-price-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2055 100%);
  padding: 28px 24px 24px;
}

.ad-price-big {
  font-size: 2.25rem; font-weight: 800; color: #fff;
  letter-spacing: -.05em; line-height: 1; margin-bottom: 6px;
}

.ad-price-tag {
  display: inline-block;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* ================================================================
   BACK TO TOP
   ================================================================ */

#back-to-top {
  width: 44px !important; height: 44px !important;
  background: var(--navy) !important; border-radius: var(--r-lg) !important;
  border: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: var(--s-xl) !important; transition: all var(--t-base) !important; padding: 0 !important;
}

#back-to-top:hover {
  background: var(--primary) !important; transform: translateY(-3px) !important;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer { background: var(--navy); }

.footer-top {
  padding: 60px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--navy);
  font-family: var(--font); box-shadow: var(--s-gold); margin-bottom: 14px;
}

.footer-brand-name {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  letter-spacing: -.5px; margin-bottom: 10px;
}

.footer-brand-name em { font-style: normal; color: var(--accent); }

.footer-desc {
  font-size: .875rem; color: rgba(255,255,255,.42);
  line-height: 1.7; max-width: 220px;
}

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }

.footer-social-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); text-decoration: none;
  transition: all var(--t-fast);
}

.footer-social-btn:hover {
  background: var(--primary); border-color: var(--primary);
  color: #fff; transform: translateY(-2px);
}

.footer-social-btn svg { width: 16px; height: 16px; }

.footer-col-heading {
  font-size: .6875rem; font-weight: 700; color: rgba(255,255,255,.85);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
}

.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}

.footer-links a {
  color: rgba(255,255,255,.45); font-size: .875rem;
  text-decoration: none; transition: color var(--t-fast);
}

.footer-links a:hover { color: rgba(255,255,255,.88); }

.footer-bottom {
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-copy { font-size: .8125rem; color: rgba(255,255,255,.3); }

.footer-legal { display: flex; gap: 20px; }

.footer-legal a {
  font-size: .8125rem; color: rgba(255,255,255,.3);
  text-decoration: none; transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ================================================================
   UTILITIES
   ================================================================ */

.text-navy   { color: var(--navy)   !important; }
.text-accent { color: var(--accent) !important; }
.bg-navy     { background: var(--navy) !important; }

.rounded-xl  { border-radius: var(--r-xl)   !important; }
.rounded-2xl { border-radius: var(--r-2xl)  !important; }

.shadow-sm { box-shadow: var(--s-sm) !important; }
.shadow-md { box-shadow: var(--s-md) !important; }
.shadow-lg { box-shadow: var(--s-lg) !important; }
.shadow-xl { box-shadow: var(--s-xl) !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 991.98px) {
  .header-search-form { display: none; }
  .okz-hero { padding: 60px 0 72px; }
  .hero-search-bar { height: 54px; }
  .hero-search-sep, .hero-search-bar select { display: none; }
  .hero-search-btn { padding: 0 22px; }
  .hero-search-bar input { padding: 0 18px; }
  .hero-stat { padding: 0 20px; }
  .hero-stat-num { font-size: 1.4rem; }
  .okz-section { padding: 56px 0; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2rem; }
  .hero-sub   { font-size: .9375rem; margin-bottom: 32px; }
  .hero-pill  { font-size: .75rem; margin-bottom: 20px; }
  .hero-stat  { padding: 0 14px; }
  .hero-stat-num { font-size: 1.25rem; }
  .trust-item { padding: 6px 16px; font-size: .75rem; }
  .okz-section { padding: 44px 0; }
  .section-title { font-size: 1.5rem; }
  .footer-top { padding: 44px 0 36px; }
}

@media (max-width: 575.98px) {
  .hero-search-bar { border-radius: var(--r-xl); height: 50px; }
  .ad-price, .ad-card .price { font-size: 1.0625rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { justify-content: center; }
}
