/* ==========================================================================
   Souq Junction: 3 Homepage Redesign Concepts (Scoped CSS)
   Does not alter existing app.css rules.
   ========================================================================== */

/* ---------- Top Preview Switcher Bar ---------- */
.vpb-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.vpb-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.vpb-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.vpb-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.vpb-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
}
.vpb-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.vpb-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.vpb-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  text-decoration: none;
}
.vpb-btn.active {
  background: #1f5eff;
  color: #fff;
  border-color: #1f5eff;
  box-shadow: 0 0 12px rgba(31,94,255,0.5);
}
.vpb-btn.live-btn {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border-color: rgba(16,185,129,0.3);
}
.vpb-btn.live-btn:hover {
  background: rgba(16,185,129,0.25);
  color: #6ee7b7;
}

/* ==========================================================================
   CONCEPT 1: MODERN MARKETPLACE (Dubizzle / OLX Pro Style)
   ========================================================================== */
.v1-page {
  background: #f8fafc;
  color: #0f172a;
}
.v1-hero {
  background: #081636 url('../img/riyadh-hero-bg.jpg') center 42% / cover no-repeat;
  color: #fff;
  padding: 3.75rem 1.25rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.v1-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 54, 0.42) 0%, rgba(11, 31, 77, 0.52) 45%, rgba(8, 22, 54, 0.76) 100%),
              radial-gradient(circle at 50% 30%, rgba(31, 94, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.v1-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.v1-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 22, 54, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.v1-hero-pill span.dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}
.v1-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}
.v1-hero-title span {
  color: #60a5fa;
  text-shadow: 0 2px 16px rgba(37, 99, 235, 0.6);
}
.v1-hero-sub {
  font-size: 1.12rem;
  color: #f1f5f9;
  margin: 0 0 2rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Multi-Tab Search Box */
.v1-search-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: 0 20px 50px rgba(11,31,77,0.3);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
[dir="rtl"] .v1-search-box { text-align: right; }

.v1-search-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem 0.6rem;
  border-bottom: 1px solid #edf2f7;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.v1-search-tabs::-webkit-scrollbar {
  display: none;
}
.v1-search-tab {
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  color: #64748b;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.v1-search-tab:hover {
  color: #1f5eff;
  background: #f1f5f9;
}
.v1-search-tab.active {
  background: #1f5eff;
  color: #fff;
}
.v1-search-tab-more {
  margin-left: auto;
  color: #1f5eff;
  background: #eff6ff;
  border: 1px dashed #bfdbfe;
  font-weight: 600;
  font-size: 13px;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  white-space: nowrap;
}
[dir="rtl"] .v1-search-tab-more {
  margin-left: 0;
  margin-right: auto;
}
.v1-search-tab-more:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.v1-search-fields {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem;
  flex-wrap: wrap;
}
.v1-search-input-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.v1-search-input-wrap:focus-within {
  border-color: #1f5eff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,94,255,0.12);
}
.v1-search-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #0f172a;
}
.v1-city-select-wrap {
  width: 190px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.v1-city-select-wrap select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
}
.v1-search-btn {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.v1-search-btn:hover {
  background: #059669;
}

/* Trending Tags */
.v1-trending-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: #cbd5e1;
}
.v1-trending-tags span.title {
  font-weight: 600;
  color: #94a3b8;
}
.v1-tag-link {
  color: #fff;
  background: rgba(255,255,255,0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.v1-tag-link:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Trust Bar */
.v1-trust-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
}
.v1-trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.v1-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.v1-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1f5eff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}
.v1-trust-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
.v1-trust-text p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* Category Grid 3D-Card */
.v1-section {
  padding: 3rem 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
}
.v1-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.v1-section-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0f172a;
}
.v1-section-head p {
  font-size: 14px;
  color: #64748b;
  margin: 0.25rem 0 0;
}
.v1-view-all {
  font-size: 14px;
  font-weight: 700;
  color: #1f5eff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.v1-view-all:hover {
  text-decoration: underline;
}

.v1-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.v1-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.v1-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31,94,255,0.12);
  border-color: #93c5fd;
  text-decoration: none;
}
.v1-cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 0.85rem;
  transition: transform 0.2s;
}
.v1-cat-card:hover .v1-cat-icon {
  transform: scale(1.08);
}
.v1-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.v1-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Featured VIP Rail */
.v1-vip-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.v1-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.v1-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.08);
  border-color: #cbd5e1;
  text-decoration: none;
}
.v1-card-img-wrap {
  aspect-ratio: 16/10;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.v1-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.v1-card:hover .v1-card-img-wrap img {
  transform: scale(1.04);
}
.v1-card-img-empty {
  font-size: 2.2rem;
  opacity: 0.4;
}
.v1-badge-vip {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
[dir="rtl"] .v1-badge-vip { left: auto; right: 0.6rem; }

.v1-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.v1-card-cat {
  font-size: 12px;
  font-weight: 600;
  color: #1f5eff;
  margin-bottom: 0.25rem;
}
.v1-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v1-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: auto;
  margin-bottom: 0.5rem;
}
.v1-card-price span.curr {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}
.v1-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.6rem;
  font-size: 12px;
  color: #64748b;
}
.v1-card-city {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.v1-quick-actions {
  display: flex;
  gap: 0.35rem;
}
.v1-quick-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  border: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.v1-quick-btn.wa:hover {
  background: #25d366;
  color: #fff;
}
.v1-quick-btn.tel:hover {
  background: #1f5eff;
  color: #fff;
}

/* Popular Cities Strip */
.v1-city-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.v1-city-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.v1-city-card:hover {
  border-color: #1f5eff;
  box-shadow: 0 6px 18px rgba(31,94,255,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.v1-city-icon {
  font-size: 24px;
  margin-bottom: 0.4rem;
}
.v1-city-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}
.v1-city-sub {
  font-size: 12px;
  color: #64748b;
}

/* Post CTA Banner */
.v1-cta-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(16,185,129,0.25);
  margin-top: 2rem;
}
.v1-cta-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.v1-cta-text p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin: 0;
}
.v1-cta-btn {
  background: #ffffff;
  color: #059669;
  font-weight: 800;
  font-size: 16px;
  padding: 0.85rem 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  white-space: nowrap;
}
.v1-cta-btn:hover {
  background: #f8fafc;
  color: #047857;
  transform: scale(1.02);
  text-decoration: none;
}


/* ==========================================================================
   CONCEPT 2: CLEAN MINIMALIST & VISUAL-FIRST (Airbnb / Gumtree 2026 Style)
   ========================================================================== */
.v2-page {
  background: #ffffff;
  color: #1e293b;
}
.v2-hero {
  padding: 3.5rem 1.25rem 2.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}
.v2-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.v2-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 0.5rem;
}
.v2-hero-sub {
  font-size: 1.15rem;
  color: #64748b;
  margin: 0 0 2rem;
}

/* Floating Search Capsule */
.v2-search-capsule {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  max-width: 720px;
  margin: 0 auto;
  transition: box-shadow 0.2s, border-color 0.2s;
}
[dir="rtl"] .v2-search-capsule {
  padding: 0.4rem 1.4rem 0.4rem 0.5rem;
}
.v2-search-capsule:focus-within {
  border-color: #0f172a;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.v2-sc-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
[dir="rtl"] .v2-sc-item { text-align: right; }
.v2-sc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.v2-sc-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  width: 100%;
}
.v2-sc-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
  flex: none;
}
.v2-sc-btn {
  background: #1f5eff;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: transform 0.15s, background 0.15s;
}
.v2-sc-btn:hover {
  background: #1646cc;
  transform: scale(1.05);
}

/* Category Ribbon */
.v2-ribbon {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.85rem 1.25rem;
  position: sticky;
  top: 48px;
  z-index: 100;
}
.v2-ribbon-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.v2-ribbon-inner::-webkit-scrollbar { display: none; }
.v2-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.v2-pill:hover {
  border-color: #0f172a;
  color: #0f172a;
  text-decoration: none;
}
.v2-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Visual Photo Feed */
.v2-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.25rem;
}
.v2-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.v2-card:hover {
  text-decoration: none;
  color: inherit;
}
.v2-img-box {
  aspect-ratio: 1/1;
  border-radius: 16px;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
}
.v2-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.v2-card:hover .v2-img-box img {
  transform: scale(1.05);
}
.v2-heart-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  color: #64748b;
  transition: color 0.15s, transform 0.15s;
}
[dir="rtl"] .v2-heart-btn { right: auto; left: 0.75rem; }
.v2-heart-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}
.v2-tag-overlay {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
[dir="rtl"] .v2-tag-overlay { left: auto; right: 0.65rem; }

.v2-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-card-meta {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 0.35rem;
}
.v2-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.v2-card-price span.badge-neg {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: #ecfdf5;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-inline-start: 0.4rem;
}

/* 3-Step Simple Guide */
.v2-steps-wrap {
  background: #f8fafc;
  border-radius: 24px;
  padding: 3rem 2rem;
  margin-top: 3rem;
}
.v2-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.v2-step-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.v2-step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1f5eff;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.v2-step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
.v2-step-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}


/* ==========================================================================
   CONCEPT 3: DYNAMIC PORTAL & HIGH-DENSITY HUB (Haraj & Power Classifieds)
   ========================================================================== */
.v3-page {
  background: #f1f5f9;
  color: #0f172a;
}
/* Live Ticker */
.v3-ticker {
  background: #0f172a;
  color: #94a3b8;
  font-size: 12.5px;
  padding: 0.45rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.v3-ticker-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.v3-ticker-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.v3-ticker-stat strong {
  color: #38bdf8;
}

/* Compact Banner Hero */
.v3-hero {
  background: #1e293b;
  color: #fff;
  padding: 2rem 1.25rem;
}
.v3-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.v3-hero-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  flex-wrap: wrap;
}
.v3-hero-input {
  flex: 1;
  min-width: 220px;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 0.5rem 0.8rem;
  color: #0f172a;
}
.v3-hero-city-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  outline: none;
  color: #0f172a;
}
.v3-hero-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}
.v3-quick-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.v3-qf-label {
  color: #94a3b8;
  font-weight: 600;
}
.v3-qf-chip {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s;
}
.v3-qf-chip:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Layout Toolbar */
.v3-toolbar {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.v3-toolbar-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
}
.v3-tb-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
}
.v3-tb-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.v3-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.2rem;
}
.v3-toggle-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}
.v3-toggle-btn.active {
  background: #f1f5f9;
  color: #0f172a;
}

/* High Density Feed (Grid or Compact List) */
.v3-feed-container {
  max-width: 1240px;
  margin: 1.25rem auto 3rem;
  padding: 0 1.25rem;
}

/* Grid Mode */
.v3-feed.grid-mode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.v3-feed.grid-mode .v3-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.v3-feed.grid-mode .v3-row:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
  text-decoration: none;
}
.v3-feed.grid-mode .v3-thumb {
  aspect-ratio: 16/10;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.v3-feed.grid-mode .v3-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v3-feed.grid-mode .v3-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Compact List Mode */
.v3-feed.list-mode {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.v3-feed.list-mode .v3-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.v3-feed.list-mode .v3-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  text-decoration: none;
}
.v3-feed.list-mode .v3-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f1f5f9;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
}
.v3-feed.list-mode .v3-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v3-feed.list-mode .v3-body {
  flex: 1;
  min-width: 0;
}
.v3-feed.list-mode .v3-row-price-wrap {
  text-align: right;
  flex: none;
}
[dir="rtl"] .v3-feed.list-mode .v3-row-price-wrap {
  text-align: left;
}

.v3-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.v3-item-price {
  font-size: 15px;
  font-weight: 800;
  color: #16a34a;
}
.v3-item-meta {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Services & Jobs High-Conversion Cards */
.v3-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.v3-spotlight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.v3-sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v3-sp-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
}
.v3-sp-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}
.v3-sp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.v3-sp-cta {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.v3-sp-cta.primary {
  background: #2563eb;
  color: #fff;
}
.v3-sp-cta.wa {
  background: #25d366;
  color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .v1-cat-grid, .v1-city-grid { grid-template-columns: repeat(3, 1fr); }
  .v1-vip-rail, .v2-feed-grid, .v3-feed.grid-mode { grid-template-columns: repeat(3, 1fr); }
  .v1-trust-inner { grid-template-columns: repeat(2, 1fr); }
  .v3-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .v1-hero-title, .v2-hero-title { font-size: 2rem; }
  .v1-cat-grid, .v1-city-grid { grid-template-columns: repeat(2, 1fr); }
  .v1-vip-rail, .v2-feed-grid, .v3-feed.grid-mode { grid-template-columns: repeat(2, 1fr); }
  .v1-trust-inner { grid-template-columns: 1fr; }
  .v2-steps-grid { grid-template-columns: 1fr; }
  .v3-spotlight-grid { grid-template-columns: 1fr; }
  .v1-search-fields { flex-direction: column; }
  .v1-city-select-wrap { width: 100%; }
  .v1-search-btn { width: 100%; justify-content: center; }
  .v2-search-capsule { flex-direction: column; border-radius: 18px; padding: 1rem; }
  .v2-sc-divider { display: none; }
  .v2-sc-btn { width: 100%; border-radius: 12px; }
}

@media (max-width: 480px) {
  .v1-vip-rail, .v2-feed-grid, .v3-feed.grid-mode { grid-template-columns: 1fr; }
}
