/* ═══════════════════════════════════════════════════════════
   SouqWalk Theme — main.css
   Modern UAE Marketplace Theme
   ═══════════════════════════════════════════════════════════ */

/* ── 0. CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Brand Colors (overrideable via Customizer) */
  --sw-primary: #ff5c28;
  --sw-primary-dark: #e04a18;
  --sw-primary-light: #ff7a4e;
  --sw-secondary: #1a1a2e;
  --sw-secondary-mid: #16213e;
  --sw-highlight: #ffb900;
  --sw-bg: #f8f6f2;
  --sw-bg-card: #ffffff;
  --sw-text: #1a1a2e;
  --sw-text-muted: #6b7280;
  --sw-text-light: #9ca3af;
  --sw-border: #e8e4dc;
  --sw-border-light: #f1ede4;

  /* Shadows */
  --sw-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sw-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --sw-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --sw-shadow-lg:
    0 20px 60px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.08);
  --sw-shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.18);

  /* Border Radius */
  --sw-radius-sm: 6px;
  --sw-radius: 12px;
  --sw-radius-md: 16px;
  --sw-radius-lg: 24px;
  --sw-radius-xl: 32px;
  --sw-radius-pill: 999px;

  /* Typography */
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-serif: "Playfair Display", serif;

  /* Transitions */
  --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sw-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sw-dur-fast: 150ms;
  --sw-dur: 280ms;
  --sw-dur-slow: 500ms;

  /* Spacing */
  --sw-section-py: clamp(60px, 8vw, 100px);
  --sw-container: 1240px;
  --sw-gutter: clamp(16px, 4vw, 32px);

  /* Header */
  --header-h: 64px;
}

/* ── 1. RESETS & BASE ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--sw-text);
  background: var(--sw-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea {
  font: inherit;
}

section {
  overflow: hidden;
}

/* ── 2. LAYOUT UTILITIES ──────────────────────────────────── */
.sw-container {
  max-width: var(--sw-container);
  margin-inline: auto;
  padding-inline: var(--sw-gutter);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-primary);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sw-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sw-secondary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--sw-text-muted);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-desc {
  margin-inline: auto;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sw-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--sw-radius-pill);
  border: 2px solid transparent;
  transition: all var(--sw-dur) var(--sw-ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--sw-dur-fast);
}
.btn-primary:hover {
  background: var(--sw-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 92, 40, 0.35);
}
.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--sw-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--sw-radius-pill);
  border: 1.5px solid var(--sw-border);
  transition: all var(--sw-dur) var(--sw-ease);
}
.btn-ghost:hover {
  border-color: var(--sw-primary);
  color: var(--sw-primary);
  background: rgba(255, 92, 40, 0.04);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--sw-primary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--sw-radius-pill);
  border: 2px solid var(--sw-primary);
  transition: all var(--sw-dur) var(--sw-ease);
}
.btn-outline:hover {
  background: var(--sw-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--sw-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--sw-radius-pill);
  border: 1.5px solid var(--sw-primary);
  transition: all var(--sw-dur) var(--sw-ease);
  white-space: nowrap;
}
.btn-outline-sm:hover {
  background: var(--sw-primary);
  color: #fff;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--sw-radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all var(--sw-dur) var(--sw-ease);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.full-width {
  width: 100%;
  justify-content: center;
}

.post-ad-btn {
  background: var(--sw-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--sw-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--sw-dur) var(--sw-ease);
  box-shadow: 0 4px 14px rgba(255, 92, 40, 0.3);
}
.post-ad-btn:hover {
  background: var(--sw-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 92, 40, 0.4);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── 5. HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--sw-border);
  transition: box-shadow var(--sw-dur) var(--sw-ease);
}
.site-header.scrolled {
  box-shadow: var(--sw-shadow-md);
}

/* Topbar */
.header-topbar {
  background: var(--sw-secondary);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar-divider {
  color: rgba(255, 255, 255, 0.2);
}
.topbar-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--sw-dur-fast);
}
.topbar-link:hover {
  color: #fff;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Main header */
.header-main {
  background: #fff;
}
.header-main-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sw-secondary);
  line-height: 1;
}
.logo-accent {
  color: var(--sw-primary);
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--sw-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Primary Nav */
.primary-nav {
  flex: 1;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sw-secondary);
  padding: 8px 12px;
  border-radius: var(--sw-radius-sm);
  transition: all var(--sw-dur-fast);
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
}
.nav-chevron {
  transition: transform var(--sw-dur-fast);
  flex-shrink: 0;
}
.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-lg);
  border: 1px solid var(--sw-border);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--sw-dur) var(--sw-ease);
  pointer-events: none;
  z-index: 200;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--sw-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sw-secondary);
  transition: all var(--sw-dur-fast);
}
.dropdown-menu li a:hover {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
  padding-left: 20px;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: var(--sw-radius-md);
  box-shadow: var(--sw-shadow-xl);
  border: 1px solid var(--sw-border);
  opacity: 0;
  visibility: hidden;
  transition: all var(--sw-dur) var(--sw-ease);
  pointer-events: none;
  z-index: 200;
  width: 600px;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 24px;
}
.mega-col {
  padding: 0 16px;
}
.mega-col + .mega-col {
  border-left: 1px solid var(--sw-border-light);
}
.mega-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-text-muted);
  margin-bottom: 12px;
}
.mega-col ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--sw-secondary);
  transition:
    color var(--sw-dur-fast),
    padding-left var(--sw-dur-fast);
}
.mega-col ul li a:hover {
  color: var(--sw-primary);
  padding-left: 6px;
}

.mega-featured {
  background: rgba(255, 92, 40, 0.04);
  border-radius: var(--sw-radius);
}
.mega-promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}
.mega-promo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-primary);
}
.mega-promo strong {
  font-size: 1rem;
  color: var(--sw-secondary);
}
.mega-promo-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sw-primary);
}
.mega-promo-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sw-primary);
  text-decoration: underline;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--sw-radius-sm);
  color: var(--sw-text-muted);
  transition: all var(--sw-dur-fast);
}
.btn-icon:hover {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--sw-radius-sm);
  transition: background var(--sw-dur-fast);
}
.hamburger:hover {
  background: rgba(255, 92, 40, 0.06);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sw-secondary);
  border-radius: 2px;
  transition: all var(--sw-dur) var(--sw-ease);
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100dvh;
  background: #fff;
  z-index: 9000;
  transition: right var(--sw-dur-slow) var(--sw-ease);
  overflow-y: auto;
  box-shadow: var(--sw-shadow-xl);
}
.mobile-nav-drawer.is-open {
  right: 0;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 32px;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sw-border);
}
.mobile-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sw-secondary);
}
.mobile-logo span {
  color: var(--sw-primary);
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--sw-text-muted);
  transition: all var(--sw-dur-fast);
}
.mobile-nav-close:hover {
  background: rgba(255, 92, 40, 0.08);
  color: var(--sw-primary);
}
.mobile-menu {
  padding: 16px 0;
  flex: 1;
}
.mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--sw-secondary);
  border-bottom: 1px solid var(--sw-border-light);
  transition: all var(--sw-dur-fast);
}
.mobile-menu li a:hover {
  color: var(--sw-primary);
  background: rgba(255, 92, 40, 0.04);
  padding-left: 32px;
}
.mobile-nav-footer {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 8999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sw-dur-slow);
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── 6. HERO SECTION ──────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: clamp(540px, 90vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--sw-secondary) 0%,
    #0f3460 40%,
    #1a1a2e 100%
  );
  padding-block: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--sw-primary), transparent);
  top: -200px;
  right: -100px;
  animation: heroShapeFloat1 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--sw-highlight), transparent);
  bottom: -150px;
  left: 10%;
  opacity: 0.04;
  animation: heroShapeFloat2 10s ease-in-out infinite;
}
.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--sw-primary-light), transparent);
  top: 30%;
  left: 40%;
  opacity: 0.08;
  animation: heroShapeFloat1 12s ease-in-out infinite reverse;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes heroShapeFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 20px) scale(0.95);
  }
}
@keyframes heroShapeFloat2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--sw-radius-pill);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--sw-highlight);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 185, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 185, 0, 0);
  }
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}

.hero-subheading {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

/* Search Bar */
.hero-search-wrap {
  margin-bottom: 28px;
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
}
.search-tab {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--sw-radius-sm) var(--sw-radius-sm) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  transition: all var(--sw-dur-fast);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.search-tab.active,
.search-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sw-secondary);
}

.hero-search-box {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 var(--sw-radius) var(--sw-radius) var(--sw-radius);
  box-shadow: var(--sw-shadow-xl);
  overflow: hidden;
  height: 58px;
  backdrop-filter: blur(12px);
}

.search-location-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--sw-text-muted);
  flex-shrink: 0;
  min-width: 130px;
}
.search-location-select select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sw-secondary);
  cursor: pointer;
}

.search-divider {
  width: 1px;
  background: var(--sw-border);
  margin-block: 14px;
  flex-shrink: 0;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input-wrap input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 0.96rem;
  color: var(--sw-secondary);
  background: transparent;
}
.search-input-wrap input::placeholder {
  color: var(--sw-text-light);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-xl);
  border: 1px solid var(--sw-border);
  overflow: hidden;
  z-index: 100;
}

.search-submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sw-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 28px;
  transition: background var(--sw-dur-fast);
  flex-shrink: 0;
}
.search-submit-btn:hover {
  background: var(--sw-primary-dark);
}

.search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.search-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: var(--sw-radius-pill);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--sw-dur-fast);
}
.search-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat {
  text-align: center;
  padding: 0 24px;
}
.hero-stat:first-child {
  padding-left: 0;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}
.hero-card-stack {
  position: relative;
  height: 380px;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--sw-radius-md);
  box-shadow: var(--sw-shadow-xl);
  overflow: hidden;
  transition: transform var(--sw-dur-slow) var(--sw-ease);
}

.hero-card-main {
  width: 260px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroCardFloat 6s ease-in-out infinite;
}
@keyframes heroCardFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

.hcard-img {
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
/* .hcard-img::before {
  content: "🏎️";
  font-size: 3rem;
} */
.hcard-content {
  padding: 16px;
}
.hcard-badge {
  display: inline-block;
  background: var(--sw-highlight);
  color: var(--sw-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--sw-radius-pill);
  margin-bottom: 8px;
}
.hcard-content h4 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--sw-secondary);
  margin-bottom: 4px;
}
.hcard-content p {
  font-size: 0.78rem;
  color: var(--sw-text-muted);
  margin-bottom: 8px;
}
.hcard-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sw-primary);
}

.hero-card-float {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: auto;
  min-width: 160px;
}
.hero-card-float strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sw-secondary);
}
.hero-card-float span {
  font-size: 0.8rem;
  color: var(--sw-text-muted);
}
.hcard-mini-icon {
  font-size: 1.5rem;
}

.hero-card-2 {
  right: 0;
  top: 40px;
  border-radius: var(--sw-radius);
  animation: heroCardFloat2 7s ease-in-out infinite;
}
.hero-card-3 {
  left: -20px;
  bottom: 80px;
  border-radius: var(--sw-radius);
  animation: heroCardFloat2 9s ease-in-out infinite reverse;
}

.hero-card-2 img {
  width: 34px;
}

.hero-card-3 img {
  width: 34px;
}
@keyframes heroCardFloat2 {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
}

.hero-card-4 {
  right: -10px;
  bottom: 40px;
  border-radius: var(--sw-radius);
  width: auto;
  animation: heroCardFloat 8s ease-in-out infinite 1s;
}
.hcard-notification {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sw-secondary);
  white-space: nowrap;
}
.hcard-notification svg {
  color: #10b981;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollIndicatorFade 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes scrollIndicatorFade {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ── 7. TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: var(--sw-secondary);
  padding: 18px 0;
  border-bottom: 3px solid var(--sw-primary);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 28px;
}
.trust-item svg {
  color: var(--sw-highlight);
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── 8. SECTION COMMON ────────────────────────────────────── */
.section-categories,
.section-listings,
.section-how-it-works,
.section-about,
.section-faqs,
.section-testimonials,
.section-stats,
.section-app,
.section-popular-searches {
  padding-block: var(--sw-section-py);
}
.section-alt {
  background: var(--sw-bg-card);
}

/* ── 9. CATEGORIES GRID ───────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--sw-bg-card);
  border: 1.5px solid var(--sw-border);
  border-radius: var(--sw-radius);
  padding: 16px 18px;
  transition: all var(--sw-dur) var(--sw-ease);
  position: relative;
  overflow: hidden;
  group: true;
}
.category-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cat-color, var(--sw-primary));
  transform: scaleY(0);
  transition: transform var(--sw-dur) var(--sw-ease);
  transform-origin: center;
}
.category-card:hover {
  border-color: var(--cat-color, var(--sw-primary));
  box-shadow: 0 8px 28px
    color-mix(in srgb, var(--cat-color, var(--sw-primary)) 20%, transparent);
  transform: translateY(-3px);
}
.category-card:hover::before {
  transform: scaleY(1);
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--sw-radius);
  background: color-mix(
    in srgb,
    var(--cat-color, var(--sw-primary)) 12%,
    white
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--sw-dur) var(--sw-ease-back);
}
.category-card:hover .cat-icon-wrap {
  transform: scale(1.1);
}
.cat-icon {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon i {
  font-size: 1.3rem;
}

.cat-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cat-content {
  flex: 1;
  min-width: 0;
}
.cat-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sw-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-sub {
  font-size: 0.76rem;
  color: var(--sw-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cat-color, var(--sw-primary));
}

.cat-arrow {
  color: var(--sw-text-light);
  flex-shrink: 0;
  transition: all var(--sw-dur) var(--sw-ease);
  opacity: 0;
}
.category-card:hover .cat-arrow {
  opacity: 1;
  color: var(--cat-color, var(--sw-primary));
  transform: translateX(4px);
}

/* ── 10. LISTING CARDS ────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.listings-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.listing-card {
  background: var(--sw-bg-card);
  border-radius: var(--sw-radius);
  border: 1.5px solid var(--sw-border);
  overflow: hidden;
  transition: all var(--sw-dur) var(--sw-ease);
  position: relative;
}
.listing-card:hover {
  border-color: rgba(255, 92, 40, 0.3);
  box-shadow: var(--sw-shadow-md);
  transform: translateY(-4px);
}

.listing-thumb {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.listing-thumb-sm {
  height: 130px;
}
.listing-thumb-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
  transition: transform var(--sw-dur) var(--sw-ease-back);
}
.listing-card:hover .listing-thumb-emoji {
  transform: scale(1.15);
}

.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--sw-radius-pill);
}
.badge-featured {
  background: var(--sw-highlight);
  color: var(--sw-secondary);
}
.badge-new {
  background: #10b981;
  color: #fff;
}
.badge-hot {
  background: var(--sw-primary);
  color: #fff;
}
.badge-sold {
  background: var(--sw-text-muted);
  color: #fff;
}

.listing-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sw-text-muted);
  transition: all var(--sw-dur-fast);
  opacity: 0;
  transform: scale(0.8);
  backdrop-filter: blur(4px);
}
.listing-card:hover .listing-save-btn {
  opacity: 1;
  transform: scale(1);
}
.listing-save-btn:hover {
  background: #fff;
  color: var(--sw-primary);
  transform: scale(1.1) !important;
}
.listing-save-btn.is-saved {
  color: var(--sw-primary);
  opacity: 1;
}
.listing-save-btn.is-saved svg {
  fill: var(--sw-primary);
}

.listing-cat-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  padding: 3px 10px;
  border-radius: var(--sw-radius-pill);
  backdrop-filter: blur(4px);
}

.listing-content {
  padding: 14px 16px 16px;
}
.listing-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.listing-title-sm {
  font-size: 0.86rem;
  -webkit-line-clamp: 1;
}
.listing-title a {
  color: var(--sw-secondary);
  transition: color var(--sw-dur-fast);
}
.listing-title a:hover {
  color: var(--sw-primary);
}

.listing-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sw-primary);
  margin-bottom: 8px;
}
.listing-detail {
  font-size: 0.78rem;
  color: var(--sw-text-muted);
  margin-bottom: 6px;
}
.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.listing-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--sw-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-time {
  font-size: 0.73rem;
  color: var(--sw-text-light);
  white-space: nowrap;
}

/* ── 11. SELL BANNER ──────────────────────────────────────── */
.sell-banner {
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    var(--sw-primary) 80%,
    var(--sw-primary-light) 100%
  );
  padding: clamp(50px, 6vw, 80px) 0;
  overflow: hidden;
  position: relative;
}
.sell-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.08)'/%3E%3C/svg%3E");
}
.sell-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.sell-banner-content {
  color: #fff;
}
.sell-banner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--sw-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}
.sell-banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.sell-banner-content h2 span {
  color: var(--sw-highlight);
}
.sell-banner-content p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.sell-banner-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sell-banner-visual {
  display: flex;
  justify-content: center;
}
.sell-visual-graphic {
  position: relative;
  width: 280px;
  height: 200px;
}
.sell-step-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--sw-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--sw-shadow-md);
  animation: sellCardFloat 4s ease-in-out infinite;
}
.sell-step-card span {
  font-size: 1.3rem;
}
.sell-step-1 {
  top: 0;
  left: 0;
  animation-delay: 0s;
}
.sell-step-2 {
  top: 60px;
  left: 80px;
  animation-delay: 0.5s;
}
.sell-step-3 {
  top: 120px;
  left: 40px;
  animation-delay: 1s;
}
@keyframes sellCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.sell-confetti {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  animation: sellCardFloat 3s ease-in-out infinite 0.5s;
}

/* ── 12. HOW IT WORKS ─────────────────────────────────────── */
.hiw-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  background: var(--sw-border-light);
  border-radius: var(--sw-radius-pill);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}
.hiw-tab {
  padding: 10px 28px;
  border-radius: var(--sw-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sw-text-muted);
  transition: all var(--sw-dur) var(--sw-ease);
}
.hiw-tab.active {
  background: #fff;
  color: var(--sw-primary);
  box-shadow: var(--sw-shadow-sm);
}

.hiw-steps {
  display: none;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: flex-start;
  gap: 0;
}
.hiw-steps.active {
  display: grid;
}

.hiw-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.hiw-step-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--sw-text-light);
  margin-bottom: 16px;
}
.hiw-step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  transition: transform var(--sw-dur) var(--sw-ease-back);
}
.hiw-step:hover .hiw-step-icon {
  transform: scale(1.2) rotate(-5deg);
}
.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sw-secondary);
  margin-bottom: 8px;
}
.hiw-step p {
  font-size: 0.86rem;
  color: var(--sw-text-muted);
  line-height: 1.6;
}

.hiw-connector {
  display: flex;
  align-items: flex-start;
  padding-top: 72px;
  flex-shrink: 0;
}
.hiw-connector-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--sw-primary), var(--sw-highlight));
  border-radius: 2px;
  position: relative;
}
.hiw-connector-line::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: -8px;
  font-size: 0.8rem;
  color: var(--sw-primary);
}

/* ── 13. ABOUT SECTION ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-img-wrap {
  position: relative;
  height: 420px;
}
.about-img-main {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--sw-secondary), #0f3460);
  border-radius: var(--sw-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--sw-shadow-xl);
}
.about-img-emoji {
  font-size: 5rem;
}
.about-img-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.about-stat-cards {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.about-stat-card {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--sw-shadow-md);
  border: 1.5px solid var(--sw-border);
}
.about-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sw-primary);
  margin-bottom: 2px;
}
.about-stat-card span {
  font-size: 0.78rem;
  color: var(--sw-text-muted);
  font-weight: 500;
}
.about-stat-card-2 strong {
  color: var(--sw-highlight);
}

.about-badge-wrap {
  position: absolute;
  top: 20px;
  right: -20px;
}
.about-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sw-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-md);
  white-space: nowrap;
}

.about-content .section-title {
  margin-bottom: 16px;
}
.about-lead {
  font-size: 1.05rem;
  color: var(--sw-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-content > p {
  color: var(--sw-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.about-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pillar-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.about-pillar strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sw-secondary);
  margin-bottom: 4px;
}
.about-pillar p {
  font-size: 0.86rem;
  color: var(--sw-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── 14. STATS SECTION ────────────────────────────────────── */
.section-stats {
  background: linear-gradient(135deg, var(--sw-secondary) 0%, #0f3460 100%);
  padding-block: clamp(50px, 7vw, 80px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--sw-radius-md);
  overflow: hidden;
}
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 40px 24px;
  text-align: center;
  transition: background var(--sw-dur-fast);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* ── 15. TESTIMONIALS ─────────────────────────────────────── */
.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--sw-bg);
  border-radius: var(--sw-radius-md);
  padding: 28px 24px;
  border: 1.5px solid var(--sw-border);
  transition: all var(--sw-dur) var(--sw-ease);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 8rem;
  color: rgba(255, 92, 40, 0.08);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(255, 92, 40, 0.3);
  box-shadow: var(--sw-shadow-md);
  transform: translateY(-4px);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--sw-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-primary), var(--sw-highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sw-secondary);
  margin-bottom: 2px;
}
.testimonial-author span {
  font-size: 0.76rem;
  color: var(--sw-text-muted);
}
.testimonial-city-badge {
  margin-left: auto;
  background: rgba(255, 92, 40, 0.08);
  color: var(--sw-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--sw-radius-pill);
  flex-shrink: 0;
}

/* ── 16. FAQs ─────────────────────────────────────────────── */
.faqs-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}
.faqs-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px + 34px);
}
.faqs-intro .section-title {
  margin-bottom: 12px;
}
.faqs-intro p {
  color: var(--sw-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--sw-border);
}
.faq-item:first-child {
  border-top: 1px solid var(--sw-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sw-secondary);
  gap: 16px;
  transition: color var(--sw-dur-fast);
}
.faq-question:hover {
  color: var(--sw-primary);
}
.faq-question[aria-expanded="true"] {
  color: var(--sw-primary);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--sw-primary);
}
.faq-icon {
  flex-shrink: 0;
  color: var(--sw-text-muted);
  transition:
    transform var(--sw-dur) var(--sw-ease),
    color var(--sw-dur-fast);
}
.faq-answer {
  overflow: hidden;
}
.faq-answer[hidden] {
  display: none;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9rem;
  color: var(--sw-text-muted);
  line-height: 1.75;
}

/* ── 17. APP SECTION ──────────────────────────────────────── */
.app-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.app-content .section-title {
  margin-bottom: 16px;
}
.app-content > p {
  color: var(--sw-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.app-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--sw-secondary);
  font-weight: 500;
}
.app-features svg {
  color: var(--sw-primary);
  flex-shrink: 0;
}

.app-download-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.app-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sw-secondary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--sw-radius);
  transition: all var(--sw-dur) var(--sw-ease);
  box-shadow: var(--sw-shadow-sm);
}
.app-store-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--sw-shadow-md);
}
.app-store-btn div {
  display: flex;
  flex-direction: column;
}
.app-store-btn div span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}
.app-store-btn div strong {
  font-size: 1rem;
  font-weight: 700;
}
.app-store-google {
  background: #1a73e8;
}
.app-store-google:hover {
  background: #1557b0;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--sw-text-muted);
}
.app-stars {
  font-size: 0.9rem;
}

/* Phone mockup */
.app-visual {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
}
.phone-frame {
  width: 240px;
  background: var(--sw-secondary);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    var(--sw-shadow-xl),
    0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.phone-notch {
  width: 80px;
  height: 24px;
  background: var(--sw-secondary);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: var(--sw-bg);
  border-radius: 24px;
  overflow: hidden;
  padding: 12px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.phone-logo {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sw-secondary);
}
.phone-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sw-bg-card);
  border-radius: var(--sw-radius-pill);
  padding: 8px 12px;
  font-size: 0.7rem;
  color: var(--sw-text-muted);
  border: 1px solid var(--sw-border);
}
.phone-listing-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sw-bg-card);
  border-radius: var(--sw-radius);
  padding: 10px;
  border: 1px solid var(--sw-border);
}
.plm-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--sw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.phone-listing-mini div {
  flex: 1;
}
.phone-listing-mini strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sw-secondary);
}
.phone-listing-mini span {
  font-size: 0.66rem;
  color: var(--sw-text-muted);
}
.plm-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--sw-highlight);
  color: var(--sw-secondary);
  padding: 2px 7px;
  border-radius: var(--sw-radius-pill);
  white-space: nowrap;
}
.plm-tag-hot {
  background: var(--sw-primary);
  color: #fff;
}

.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  background: var(--sw-bg-card);
  border-radius: var(--sw-radius);
  padding: 10px;
  border: 1px solid var(--sw-border);
  font-size: 1rem;
  margin-top: auto;
}
.pbn-active {
  background: var(--sw-primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 92, 40, 0.15),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: phoneGlow 4s ease-in-out infinite;
}
@keyframes phoneGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ── 18. POPULAR SEARCH CLOUDS ────────────────────────────── */
.popular-search-clouds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.search-cloud-tag {
  background: var(--sw-bg-card);
  border: 1.5px solid var(--sw-border);
  color: var(--sw-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--sw-radius-pill);
  transition: all var(--sw-dur) var(--sw-ease);
}
.search-cloud-tag:hover {
  background: var(--sw-primary);
  border-color: var(--sw-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 92, 40, 0.3);
}

/* ── 19. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--sw-secondary);
  color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter {
  background: color-mix(in srgb, var(--sw-secondary) 85%, black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.newsletter-icon {
  color: var(--sw-primary);
  flex-shrink: 0;
}
.newsletter-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.newsletter-content p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}
.newsletter-form {
  flex-shrink: 0;
}
.newsletter-input-wrap {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--sw-radius-pill);
  overflow: hidden;
  height: 48px;
}
.newsletter-input-wrap input {
  flex: 1;
  min-width: 260px;
  padding: 0 20px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
}
.newsletter-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-main {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-logo strong {
  color: var(--sw-primary);
}
.footer-brand-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--sw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--sw-dur-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover {
  background: var(--sw-primary);
  color: #fff;
  border-color: var(--sw-primary);
  transform: translateY(-2px);
}

.app-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.app-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--sw-radius-sm);
  transition: all var(--sw-dur-fast);
}
.app-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--sw-dur-fast);
}
.footer-links li a:hover {
  color: var(--sw-primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.copyright a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--sw-dur-fast);
}
.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}
.payment-methods {
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-icon {
  opacity: 0.6;
  transition: opacity var(--sw-dur-fast);
}
.payment-icon:hover {
  opacity: 1;
}

/* ── 20. BACK TO TOP ──────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--sw-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 92, 40, 0.4);
  z-index: 500;
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  transition: all var(--sw-dur) var(--sw-ease);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--sw-primary-dark);
  transform: translateY(-3px) scale(1.05);
}

/* ── 21. ANIMATIONS ───────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition:
    opacity 0.7s var(--sw-ease),
    transform 0.7s var(--sw-ease);
}
[data-animate="fade-up"] {
  transform: translateY(32px);
}
[data-animate="fade-down"] {
  transform: translateY(-32px);
}
[data-animate="fade-left"] {
  transform: translateX(40px);
}
[data-animate="fade-right"] {
  transform: translateX(-40px);
}
[data-animate="stagger"] {
  opacity: 1;
  transform: none;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s var(--sw-ease),
    transform 0.5s var(--sw-ease);
}
[data-animate="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}

/* ── 22. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .listings-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faqs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faqs-intro {
    position: static;
  }
  .app-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sell-banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sell-banner-visual {
    display: none;
  }
  .hiw-steps.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hiw-connector {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }
  .primary-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .btn-ghost {
    display: none;
  }

  .header-topbar {
    display: none;
  }

  .header-main-inner {
    justify-content: space-between;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listings-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-carousel {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-bar-inner {
    justify-content: flex-start;
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-divider {
    display: none;
  }
  .trust-item {
    padding: 4px 0;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-input-wrap input {
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-stat-divider {
    width: auto;
    height: 1px;
  }
  .search-location-select {
    display: none;
  }
  .search-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .listings-grid,
  .listings-grid-5 {
    grid-template-columns: 1fr;
  }
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-search-box {
    height: auto;
    flex-direction: column;
  }
  .search-submit-btn {
    height: 48px;
    justify-content: center;
    border-radius: 0 0 var(--sw-radius) var(--sw-radius);
  }
  .search-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .search-tab {
    white-space: nowrap;
  }
}

/* ── 23. MISC / UTILITY ───────────────────────────────────── */
::selection {
  background: rgba(255, 92, 40, 0.2);
  color: var(--sw-secondary);
}
:focus-visible {
  outline: 2px solid var(--sw-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--sw-border) 25%,
    var(--sw-border-light) 50%,
    var(--sw-border) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--sw-radius-sm);
}
@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ════════════════════════════════════════════════════════════
   CATEGORIES BAR — Desktop only
   ════════════════════════════════════════════════════════════ */

.categories-bar {
  background: #fff;
  border-top: 1px solid var(--sw-border);
  border-bottom: 3px solid var(--sw-primary);
  position: relative;
  z-index: 990;
  overflow: visible; /* must be visible so mega panels aren't clipped */
}

.categories-bar-inner {
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.cat-bar-nav {
  width: 100%;
  overflow: visible;
}

.cat-bar-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  /* overflow-x: auto removed — was clipping absolute-positioned mega panels */
  overflow: visible;
  scrollbar-width: none;
}
.cat-bar-menu::-webkit-scrollbar {
  display: none;
}

/* Each category item */
.cat-bar-item {
  position: relative;
  flex-shrink: 0;
}

.cat-bar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 44px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sw-secondary);
  white-space: nowrap;
  transition: all 200ms;
  border-right: 1px solid var(--sw-border-light);
  position: relative;
}
.cat-bar-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sw-primary);
  transform: scaleX(0);
  transition: transform 200ms var(--sw-ease);
}
.cat-bar-item:hover .cat-bar-link,
.cat-bar-item:focus-within .cat-bar-link {
  color: var(--sw-primary);
  background: rgba(255, 92, 40, 0.04);
}
.cat-bar-item:hover .cat-bar-link::after {
  transform: scaleX(1);
}
.cat-bar-link svg:first-child {
  color: var(--sw-primary);
  flex-shrink: 0;
}

.cat-chevron {
  color: var(--sw-text-light);
  transition: transform 220ms var(--sw-ease);
  margin-left: 2px;
}
.cat-bar-item:hover .cat-chevron {
  transform: rotate(180deg);
}

/* ── Categories Mega Panel ── */
.cat-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 560px;
  background: #fff;
  border-radius: 0 var(--sw-radius-md) var(--sw-radius-md) var(--sw-radius-md);
  box-shadow: var(--sw-shadow-xl);
  border: 1px solid var(--sw-border);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 260ms var(--sw-ease);
  pointer-events: none;
  z-index: 1100; /* above sticky header z-index:1000 */
}
/* Keep within viewport on items near right edge */
.cat-bar-item:nth-last-child(-n + 3) .cat-mega-panel {
  left: auto;
  right: 0;
  border-radius: var(--sw-radius-md) 0 var(--sw-radius-md) var(--sw-radius-md);
}
.cat-bar-item:hover .cat-mega-panel,
.cat-bar-item:focus-within .cat-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cat-mega-inner {
  display: flex;
  gap: 0;
  padding: 0;
}

/* Two Panel Layout */
.cat-mega-two-panel {
  display: flex;
  width: 100%;
  min-height: 300px;
}

/* Left Panel - Subcategories */
.cat-mega-left {
  width: 280px;
  border-right: 1px solid var(--sw-border);
  padding: 16px 0;
  background: #fafafa;
}

.cat-subcategory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-subcategory-item {
  position: relative;
}

.cat-subcategory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sw-text);
  transition: all 200ms;
}

.cat-subcategory-link:hover {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
  padding-left: 24px;
}

.cat-subcategory-link svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 200ms;
  color: var(--sw-primary);
}

.cat-subcategory-item:hover .cat-subcategory-link svg,
.cat-subcategory-item.active .cat-subcategory-link svg {
  opacity: 1;
  transform: translateX(0);
}

.cat-subcategory-item.active .cat-subcategory-link {
  background: rgba(255, 92, 40, 0.08);
  color: var(--sw-primary);
  font-weight: 600;
}

/* Right Panel - Sub-subcategories */
.cat-mega-right {
  flex: 1;
  padding: 20px 24px;
  background: #fff;
}

.cat-mega-right-content {
  opacity: 0;
  transform: translateY(4px);
  transition: all 250ms var(--sw-ease);
}

.cat-mega-right-content.show {
  opacity: 1;
  transform: translateY(0);
}

.cat-mega-right-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-text-muted);
  margin-bottom: 16px;
}

.cat-mega-right-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cat-mega-right-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--sw-text);
  border-radius: var(--sw-radius-sm);
  transition: all 180ms;
}

.cat-mega-right-list a:hover {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
  transform: translateX(2px);
}

/* Old styles kept for backward compatibility */
.cat-mega-cols {
  display: flex;
  gap: 0;
  flex: 1;
}

.cat-mega-col {
  padding: 0 20px;
  flex: 1;
}
.cat-mega-col + .cat-mega-col {
  border-left: 1px solid var(--sw-border-light);
}

.cat-mega-head {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sw-border-light);
}

.cat-mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-mega-col ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.86rem;
  color: var(--sw-secondary);
  transition:
    color 150ms,
    padding-left 150ms;
}
.cat-mega-col ul li a:hover {
  color: var(--sw-primary);
  padding-left: 6px;
}

/* Promo block in mega panel */
.cat-mega-promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 92, 40, 0.06),
    rgba(255, 185, 0, 0.06)
  );
  border-radius: var(--sw-radius);
  border: 1px solid rgba(255, 92, 40, 0.12);
  min-width: 160px;
  margin-left: 16px;
}
.cat-promo-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-primary);
}
.cat-mega-promo strong {
  font-size: 0.96rem;
  color: var(--sw-secondary);
  font-weight: 700;
}
.cat-promo-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sw-primary);
}
.cat-promo-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sw-primary);
  text-decoration: underline;
  margin-top: 4px;
}

/* Hide categories bar on mobile/tablet */
@media (max-width: 1024px) {
  .categories-bar {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE HERO CATEGORIES GRID
   ════════════════════════════════════════════════════════════ */

/* Hidden on desktop, shown only on mobile */
.hero-mobile-cats {
  display: none;
}

@media (max-width: 1024px) {
  .hero-mobile-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-mobile-cats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 22px;
  }
}

.hero-mobile-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--sw-radius);
  padding: 12px 6px;
  text-decoration: none;
  transition: all 220ms var(--sw-ease);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.hero-mobile-cat::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mc-color, var(--sw-primary));
  transform: scaleX(0);
  transition: transform 200ms;
}
.hero-mobile-cat:hover,
.hero-mobile-cat:active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.hero-mobile-cat:hover::before {
  transform: scaleX(1);
}

.hmc-icon {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 220ms var(--sw-ease-back);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hmc-icon i {
  font-size: 1.3rem;
}

.hmc-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero-mobile-cat:hover .hmc-icon {
  transform: scale(1.2);
}

.hmc-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════
   MOBILE DRAWER UPDATES
   ════════════════════════════════════════════════════════════ */

/* Auth section at top of drawer */
.mobile-auth-section {
  padding: 16px 24px 12px;
  border-bottom: 1px solid var(--sw-border);
}

.mobile-auth-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Logged-in user card */
.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--sw-border-light);
  margin-bottom: 12px;
}
.mobile-user-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sw-primary);
  flex-shrink: 0;
}
.mobile-user-card-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sw-secondary);
  margin-bottom: 2px;
}
.mobile-user-card-info span {
  font-size: 0.76rem;
  color: var(--sw-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  display: block;
}

.mobile-user-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-user-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--sw-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sw-secondary);
  transition: all 150ms;
}
.mobile-user-links a:hover {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
}
.mobile-user-links svg {
  color: var(--sw-text-muted);
}
.mobile-logout-link {
  color: #ef4444 !important;
}
.mobile-logout-link:hover {
  background: rgba(239, 68, 68, 0.06) !important;
}
.mobile-logout-link svg {
  color: #ef4444 !important;
}

/* ── Mobile Categories Section ── */
.mobile-categories-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--sw-border);
}

.mobile-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-text-muted);
  margin-bottom: 16px;
  padding: 0 8px;
}

/* Mobile Categories Grid */
.mobile-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mobile-cat-card {
  position: relative;
  background: var(--sw-bg);
  border-radius: var(--sw-radius);
  overflow: hidden;
  transition: all 200ms;
}

.mobile-cat-card:active {
  transform: scale(0.97);
}

.mobile-cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  text-align: center;
}

.mobile-cat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--sw-radius-sm);
  color: var(--sw-primary);
  border: 1px solid var(--sw-border);
}

.mobile-cat-icon svg,
.mobile-cat-icon i {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.mobile-cat-icon img.cat-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mobile-cat-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sw-secondary);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-cat-arrow {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 92, 40, 0.12);
  border-radius: 50%;
  color: var(--sw-primary);
  transition: all 200ms;
}

.mobile-cat-card:active .mobile-cat-arrow {
  background: var(--sw-primary);
  color: #fff;
}

/* Mobile Subcategories View */
.mobile-subcategories-view,
.mobile-subsubcategories-view {
  padding: 0;
  animation: slideInRight 300ms var(--sw-ease);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-subcat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sw-border);
  background: var(--sw-bg);
}

.mobile-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--sw-text-muted);
  transition: all 180ms;
  border: 1px solid var(--sw-border);
}

.mobile-back-btn:active {
  background: var(--sw-primary);
  color: #fff;
  transform: scale(0.95);
}

.mobile-subcat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-secondary);
  flex: 1;
}

.mobile-subcat-list {
  padding: 8px 0;
}

.mobile-subcat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sw-secondary);
  border-bottom: 1px solid var(--sw-border-light);
  transition: all 150ms;
}

.mobile-subcat-list a:active {
  background: rgba(255, 92, 40, 0.06);
  color: var(--sw-primary);
}

.mobile-subcat-list a svg {
  color: var(--sw-text-light);
  flex-shrink: 0;
}

/* Nav menu section */
.mobile-nav-menu-wrap {
  padding: 8px 0 24px;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav-menu-wrap .mobile-menu {
  margin: 0;
  padding: 0;
}

/* WordPress auto-generated mobile menu items */
.mobile-menu li {
  list-style: none;
  border-bottom: 1px solid var(--sw-border-light);
}
.mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--sw-secondary);
  transition: all 150ms;
}
.mobile-menu li a:hover {
  color: var(--sw-primary);
  background: rgba(255, 92, 40, 0.04);
  padding-left: 32px;
}

/* WordPress menu submenu items in mobile drawer */
.mobile-menu .sub-menu {
  background: var(--sw-bg);
}
.mobile-menu .sub-menu li a {
  padding-left: 40px;
  font-size: 0.86rem;
  color: var(--sw-text-muted);
}
.mobile-menu .sub-menu li a:hover {
  padding-left: 48px;
  color: var(--sw-primary);
}

/* primary-nav: hide on mobile — consistent with categories-bar breakpoint */
@media (max-width: 1024px) {
  .primary-nav {
    display: none;
  }
  /* Hide search toggle icon on mobile */
  .header-actions .search-toggle {
    display: none;
  }
  /* Hide user menu widget on mobile — drawer handles it */
  .sw-user-menu {
    display: none !important;
  }
  /* Hide sign-in button on mobile — drawer handles it */
  .header-actions .btn-ghost {
    display: none !important;
  }
}

/* Hamburger: only show on mobile */
@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE DRAWER — Layout & Structure Fixes
   ════════════════════════════════════════════════════════════ */

.mobile-nav-drawer {
  display: flex;
  flex-direction: column;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Auth section fixed at top, menu scrollable below */
.mobile-auth-section {
  flex-shrink: 0;
}

.mobile-nav-menu-wrap {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Post Ad button — always visible on mobile in header */
@media (max-width: 1024px) {
  .post-ad-btn {
    display: inline-flex !important;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE AUTH SECTION — button refinements
   ════════════════════════════════════════════════════════════ */

.mobile-auth-btns .btn-primary,
.mobile-auth-btns .btn-ghost {
  display: flex !important; /* override the desktop hide */
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ════════════════════════════════════════════════════════════
   CATEGORIES BAR — additional refinements
   ════════════════════════════════════════════════════════════ */

/* Sticky behaviour — categories bar sticks below header on scroll */
.site-header.scrolled .categories-bar {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* First item no left border */
.cat-bar-item:first-child .cat-bar-link {
  border-left: none;
}

/* ════════════════════════════════════════════════════════════
   HERO MOBILE CATEGORIES — refined grid
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-mobile-cats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }
  .hmc-icon {
    font-size: 1.4rem;
  }
  .hmc-label {
    font-size: 0.68rem;
  }
  .hero-mobile-cat {
    padding: 10px 4px;
    border-radius: 10px;
  }
}

@media (max-width: 380px) {
  .hero-mobile-cats {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .hmc-label {
    font-size: 0.62rem;
  }
  .hero-mobile-cat {
    padding: 8px 3px;
  }
}

/* ════════════════════════════════════════════════════════════
   PRIMARY NAV — WP-generated menu class overrides
   ════════════════════════════════════════════════════════════ */

/* WordPress adds class="menu-item" — style it same as nav-item */
.primary-nav .menu-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sw-secondary);
  border-radius: var(--sw-radius-sm);
  transition:
    color 200ms,
    background 200ms;
}
.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a {
  color: var(--sw-primary);
  background: rgba(255, 92, 40, 0.06);
}
.primary-nav .menu-item.current-menu-item > a {
  font-weight: 700;
}

/* WP submenu dropdown */
.primary-nav .menu-item.menu-item-has-children {
  position: relative;
}
.primary-nav .menu-item.menu-item-has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  margin-left: 4px;
  transition: transform 200ms;
}
.primary-nav .menu-item.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg) translateY(-2px);
}
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-xl);
  border: 1px solid var(--sw-border);
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 220ms var(--sw-ease);
  z-index: 600;
}
.primary-nav .menu-item.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu .menu-item > a {
  padding: 9px 12px;
  font-size: 0.86rem;
  border-radius: 6px;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   SINGLE LISTING PAGE  (single-sw_listing.php)
   ════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.sw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--sw-text-muted);
  padding: 20px 0 0;
  margin-bottom: 24px;
}
.sw-breadcrumb a { color: var(--sw-text-muted); transition: color 150ms; }
.sw-breadcrumb a:hover { color: var(--sw-primary); }
.sw-bc-sep { opacity: 0.4; }

/* Layout */
.sw-listing-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding-bottom: 60px;
}

/* Gallery */
.sw-listing-gallery { margin-bottom: 28px; }
.sw-gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sw-secondary);
  aspect-ratio: 16/10;
}
.sw-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-gallery-placeholder {
  border-radius: 16px;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.5);
  font-size: 0.88rem;
}
.sw-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.sw-sold-overlay span {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .12em;
  background: rgba(239,68,68,.85);
  padding: 8px 32px;
  border-radius: 6px;
  transform: rotate(-12deg);
}
.sw-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  z-index: 3;
  transition: all 180ms;
  color: var(--sw-secondary);
}
.sw-gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.sw-gallery-prev { left: 12px; }
.sw-gallery-next { right: 12px; }
.sw-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 3;
}
.sw-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.sw-gallery-thumb {
  width: 68px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 150ms;
}
.sw-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-gallery-thumb.is-active { border-color: var(--sw-primary); }
.sw-listing-video {
  margin-top: 10px;
}
.sw-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sw-primary);
  text-decoration: none;
}
.sw-video-link:hover { text-decoration: underline; }

/* Listing body */
.sw-listing-body {}
.sw-listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sw-listing-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--cat-color, var(--sw-primary)) 12%, transparent);
  color: var(--cat-color, var(--sw-primary));
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-decoration: none;
}
.sw-listing-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sw-secondary);
  line-height: 1.2;
}
.sw-listing-price-wrap { text-align: right; flex-shrink: 0; }
.sw-listing-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sw-primary);
  line-height: 1;
}
.sw-listing-price small { font-size: 0.75rem; font-weight: 500; color: var(--sw-text-muted); }
.sw-condition-badge {
  display: inline-block;
  background: var(--sw-bg);
  border: 1px solid var(--sw-border);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  color: var(--sw-text-muted);
  margin-top: 6px;
}
.sw-listing-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--sw-text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sw-border-light);
}
.sw-lm-item { display: flex; align-items: center; gap: 5px; }
.sw-lm-ref code {
  background: #f0f4ff;
  color: #4f46e5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}
.sw-listing-description { margin-bottom: 28px; }
.sw-listing-description h2,
.sw-listing-attributes h2,
.sw-listing-location h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sw-secondary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--sw-border-light);
}
.sw-listing-desc-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--sw-text);
}
.sw-listing-desc-text p { margin-bottom: 12px; }

/* Attribute grid */
.sw-listing-attributes { margin-bottom: 28px; }
.sw-attr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--sw-border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sw-attr-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sw-border-light);
  border-right: 1px solid var(--sw-border-light);
}
.sw-attr-item:nth-child(even) { border-right: none; }
.sw-attr-item:nth-last-child(-n+2) { border-bottom: none; }
.sw-attr-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sw-text-muted); margin-bottom: 3px; }
.sw-attr-value { font-size: 0.9rem; font-weight: 600; color: var(--sw-secondary); }

/* Location */
.sw-listing-location { margin-bottom: 28px; }
.sw-listing-address-line { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--sw-text); margin-bottom: 12px; font-weight: 500; }
.sw-single-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--sw-border-light); }
.sw-map-placeholder { height: 200px; background: var(--sw-bg); border-radius: 12px; border: 1.5px dashed var(--sw-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--sw-text-muted); }
.sw-map-placeholder-link { text-decoration: none; display: block; }
.sw-map-placeholder span { font-size: 0.85rem; font-weight: 600; color: var(--sw-primary); }

/* Contact card */
.sw-contact-card {
  background: #fff;
  border: 1.5px solid var(--sw-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sw-shadow-md);
  margin-bottom: 16px;
}
.sw-contact-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sw-contact-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sw-primary); }
.sw-contact-name { display: block; font-size: 0.95rem; font-weight: 700; color: var(--sw-secondary); }
.sw-contact-role { font-size: 0.76rem; color: var(--sw-text-muted); }
.sw-contact-actions { display: flex; flex-direction: column; gap: 10px; }
.sw-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms;
  border: none;
  width: 100%;
}
.sw-contact-btn--wa { background: #25d366; color: #fff; }
.sw-contact-btn--wa:hover { background: #1da851; }
.sw-contact-btn--phone { background: var(--sw-primary); color: #fff; }
.sw-contact-btn--phone:hover { background: var(--sw-primary-dark); }
.sw-contact-btn--email { background: var(--sw-bg); color: var(--sw-secondary); border: 1.5px solid var(--sw-border); }
.sw-contact-btn--email:hover { border-color: var(--sw-primary); color: var(--sw-primary); }
.sw-contact-safety { font-size: 0.72rem; color: var(--sw-text-muted); margin-top: 14px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.5; }

/* Info card */
.sw-info-card {
  background: var(--sw-bg);
  border: 1px solid var(--sw-border-light);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.sw-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sw-border-light);
  gap: 12px;
}
.sw-info-row:last-child { border-bottom: none; }
.sw-info-label { font-size: 0.78rem; color: var(--sw-text-muted); }
.sw-info-value { font-size: 0.82rem; font-weight: 600; color: var(--sw-secondary); }
.sw-status-active { color: #16a34a; }
.sw-status-sold   { color: #dc2626; }
.sw-status-paused { color: #d97706; }

/* Sidebar action buttons */
.sw-listing-actions-sidebar { display: flex; flex-direction: column; gap: 8px; }
.sw-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--sw-bg);
  border: 1.5px solid var(--sw-border);
  color: var(--sw-secondary);
  text-decoration: none;
  transition: all 150ms;
}
.sw-action-btn:hover { border-color: var(--sw-primary); color: var(--sw-primary); }
.sw-action-btn--danger { color: #dc2626; }
.sw-action-btn--danger:hover { border-color: #dc2626; color: #dc2626; }

/* Similar listings */
.sw-similar-listings { padding: 48px 0; border-top: 1px solid var(--sw-border-light); }
.listings-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Single listing responsive */
@media (max-width: 1024px) {
  .sw-listing-layout { grid-template-columns: 1fr; }
  .sw-listing-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sw-contact-card { grid-column: 1 / -1; }
  .listings-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sw-listing-title { font-size: 1.25rem; }
  .sw-listing-header { flex-direction: column; }
  .sw-listing-price-wrap { text-align: left; }
  .sw-listing-sidebar { grid-template-columns: 1fr; }
  .sw-attr-grid { grid-template-columns: 1fr; }
  .sw-attr-item { border-right: none !important; }
  .listings-grid-4 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   ARCHIVE / BROWSE LISTINGS PAGE  (archive-sw_listing.php)
   ════════════════════════════════════════════════════════════ */

.sw-archive-page { padding: 0 0 60px; }
.sw-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--sw-border-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sw-archive-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sw-secondary);
}
.sw-archive-count { font-size: 0.85rem; color: var(--sw-text-muted); margin-top: 2px; }
.sw-select-sm { font-size: 0.85rem; padding: 8px 12px; min-width: 180px; }

.sw-archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar filters */
.sw-archive-filters {
  background: #fff;
  border: 1px solid var(--sw-border-light);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sw-filter-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sw-border-light);
}
.sw-filter-section:last-of-type { border-bottom: none; }
.sw-filter-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sw-text-muted);
  margin-bottom: 10px;
}
.sw-filter-list { list-style: none; margin: 0; padding: 0; }
.sw-filter-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--sw-secondary);
  text-decoration: none;
  transition: all 140ms;
  cursor: pointer;
  width: 100%;
}
.sw-filter-item:hover { background: rgba(255,92,40,.06); color: var(--sw-primary); }
.sw-filter-item.is-active {
  background: rgba(255,92,40,.1);
  color: var(--cat-color, var(--sw-primary));
  font-weight: 700;
}
.sw-filter-icon { font-size: 0.9rem; flex-shrink: 0; }
.sw-filter-count {
  margin-left: auto;
  background: var(--sw-bg);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sw-text-muted);
  padding: 1px 7px;
  border-radius: 12px;
  flex-shrink: 0;
}
.sw-filter-item.is-active .sw-filter-count { background: rgba(255,92,40,.15); color: var(--cat-color, var(--sw-primary)); }
.sw-filter-sublist { list-style: none; padding: 0 0 0 14px; margin: 0; }
.sw-filter-item--sub { font-size: 0.8rem; padding: 5px 10px; }
.sw-filter-search-wrap { display: flex; gap: 8px; }
.sw-filter-search-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--sw-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-price-filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sw-input-sm { padding: 8px 10px; font-size: 0.82rem; }
.sw-price-sep { color: var(--sw-text-muted); flex-shrink: 0; }
.sw-filter-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #dc2626;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  transition: opacity 150ms;
}
.sw-filter-reset:hover { opacity: 0.75; }

/* Archive grid + empty state */
.sw-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sw-archive-empty { text-align: center; padding: 80px 40px; }
.sw-archive-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.sw-archive-empty h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--sw-secondary); margin-bottom: 10px; }
.sw-archive-empty p { color: var(--sw-text-muted); margin-bottom: 24px; }
.sw-no-listings-notice { font-size: 0.9rem; color: var(--sw-text-muted); padding: 40px; text-align: center; }
.sw-no-listings-notice .sw-link { color: var(--sw-primary); }

/* Pagination */
.sw-archive-pagination { margin-top: 40px; display: flex; justify-content: center; }
.sw-archive-pagination .page-numbers { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.sw-archive-pagination .page-numbers li a,
.sw-archive-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--sw-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sw-secondary);
  text-decoration: none;
  transition: all 150ms;
}
.sw-archive-pagination .page-numbers li a:hover { border-color: var(--sw-primary); color: var(--sw-primary); }
.sw-archive-pagination .page-numbers li .current { background: var(--sw-primary); border-color: var(--sw-primary); color: #fff; }

/* Responsive archive */
@media (max-width: 1024px) {
  .sw-archive-layout { grid-template-columns: 1fr; }
  .sw-archive-filters {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .sw-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sw-archive-filters { grid-template-columns: 1fr; }
  .sw-archive-grid { grid-template-columns: 1fr; }
}

/* Listing detail field */
.listing-detail { font-size: 0.76rem; color: var(--sw-text-muted); margin-bottom: 4px; }

/* Listing badge variants */
.badge-featured { background: var(--sw-primary); color: #fff; }
.badge-new      { background: #10b981; color: #fff; }
.badge-hot      { background: #f59e0b; color: var(--sw-secondary); }
.badge-sold     { background: #6b7280; color: #fff; }
