/* ===== All Saudia | كل السعودية — brand layer =====
   Green  #00693A (main)   Dark green #004D2A / #00351D
   Gold   #E6B325 (accent) Red #C8102E (prices, featured, alerts) */
:root {
  --as-green: #00693A;
  --as-green-dark: #004D2A;
  --as-green-deep: #00351D;
  --as-gold: #E6B325;
  --as-gold-dark: #B8860B;
  --as-red: #C8102E;
}

/* ---------- Logo sizes ---------- */
.navbar-brand.logo { padding-top: 6px; padding-bottom: 6px; margin-inline-end: 1rem; }
.navbar-brand .main-logo {
  height: 46px !important; max-height: 46px !important;
  width: auto !important; max-width: 300px !important; object-fit: contain;
}
@media (max-width: 991.98px) {
  .navbar-brand .main-logo { height: 40px !important; max-height: 40px !important; max-width: 250px !important; }
}
@media (max-width: 575.98px) {
  .navbar-brand .main-logo { height: 32px !important; max-height: 32px !important; max-width: 62vw !important; }
  .navbar-brand.logo { margin-inline-end: .25rem; }
}

/* ---------- Header: gold + red brand stripe ---------- */
#mainNavbar { border-bottom: 0 !important; box-shadow: 0 3px 0 var(--as-gold), 0 5px 0 var(--as-red); }
.pace .pace-progress { background: var(--as-red) !important; }

/* Post-ad button: yellow, turns red on hover */
.btn-highlight, a.btn-highlight {
  background: var(--as-gold) !important; border-color: var(--as-gold) !important; color: #1b1b1b !important; font-weight: 700;
}
.btn-highlight:hover, a.btn-highlight:hover { background: var(--as-red) !important; border-color: var(--as-red) !important; color: #fff !important; }

/* ---------- Hero: green gradient with a gold/red base line ---------- */
.hero-wrap {
  background: linear-gradient(135deg, var(--as-green) 0%, var(--as-green-dark) 55%, var(--as-green-deep) 100%) !important;
  box-shadow: inset 0 -5px 0 var(--as-gold), inset 0 -8px 0 var(--as-red);
  position: relative; overflow: hidden;
}
.hero-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(230,179,37,.18), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(200,16,46,.14), transparent 45%);
}
.hero-wrap > * { position: relative; }
.hero-wrap h1 { color: #fff !important; }
.hero-wrap h1::after { content: ""; display: block; width: 90px; height: 4px; margin: .6rem auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--as-red) 0 33%, var(--as-gold) 33% 100%); }
.hero-wrap h5 { color: #FFE7A3 !important; }
.hero-wrap .btn-primary, .hero-wrap button[type="submit"] {
  background: var(--as-gold) !important; border-color: var(--as-gold) !important; color: #1b1b1b !important; font-weight: 700;
}
.hero-wrap .btn-primary:hover, .hero-wrap button[type="submit"]:hover { background: var(--as-red) !important; border-color: var(--as-red) !important; color: #fff !important; }

/* ---------- Section titles: gold marker, red for featured ---------- */
.page-section .card-header { border-inline-start: 5px solid var(--as-gold) !important; }
.page-section--premium-listings .card-header { border-inline-start-color: var(--as-red) !important; }
.page-section .card-header h1, .page-section .card-header h2, .page-section .card-header h3,
.page-section .card-header h4 { color: var(--as-green-deep); }

/* Category tiles: gold border on hover */
.page-section--categories .card, .page-section--categories a > div { transition: border-color .15s, transform .15s, box-shadow .15s; }
.page-section--categories .card:hover, .page-section--categories a:hover > div {
  border-color: var(--as-gold) !important; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,105,58,.12);
}

/* Prices in red */
h4.fs-4.fw-bold.mt-3.text-center, .item-price, .listing-price, .price { color: var(--as-red) !important; }

/* Stats counters: gold icons */
.page-section--stats .bi, .page-section--stats i { color: var(--as-gold) !important; }

/* Featured badges / ribbons */
.badge.bg-danger, .ribbon, .featured-badge { background-color: var(--as-red) !important; }
.badge.bg-warning { background-color: var(--as-gold) !important; color: #1b1b1b !important; }

/* ---------- Footer: deep green with gold top line ---------- */
footer > .container-fluid.bg-black { background: var(--as-green-deep) !important; border-top: 4px solid var(--as-gold) !important; }
footer .menu-type-title { color: var(--as-gold) !important; }
footer a.link-light:hover { color: var(--as-gold) !important; }

/* ---------- Auth pages side panel ---------- */
.bg-primary.auth-aside, .auth-side, [class*="auth"] .bg-primary {
  background: linear-gradient(160deg, var(--as-green) 0%, var(--as-green-deep) 100%) !important;
}

/* Login / register side panel: brand gradient instead of the pale mask */
.auth-login-register .hero-mask { background: transparent !important; opacity: 1 !important; }
.auth-login-register .hero-wrap { box-shadow: inset -5px 0 0 var(--as-gold), inset -8px 0 0 var(--as-red); }
.auth-login-register .hero-content h1, .auth-login-register .hero-content h2 { color: #fff !important; }
.auth-login-register .hero-content p { color: #FFE7A3 !important; }

/* ---------- Language banner (home, after the categories) ---------- */
.as-lang-banner-wrap .card { border: 0; background: transparent; }
.as-lang-banner-wrap .card-body { padding: 0; }
.as-lang-banner {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 14px; text-decoration: none !important;
  background: linear-gradient(120deg, var(--as-green-deep) 0%, var(--as-green) 70%);
  color: #fff !important; box-shadow: inset 0 -4px 0 var(--as-gold), 0 6px 18px rgba(0,53,29,.18);
  transition: transform .15s, box-shadow .15s;
}
.as-lang-banner:hover { transform: translateY(-2px); box-shadow: inset 0 -4px 0 var(--as-red), 0 10px 22px rgba(0,53,29,.25); }
.as-lb-badge {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--as-gold); color: #1b1b1b; font-weight: 800; font-size: 1.25rem;
}
.as-lb-text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.5; }
.as-lb-text strong { font-size: 1.2rem; color: #fff; }
.as-lb-text span { color: #FFE7A3; font-size: .95rem; }
.as-lb-cta { flex: 0 0 auto; background: #fff; color: var(--as-green-deep); font-weight: 700; padding: .5rem 1rem; border-radius: 999px; white-space: nowrap; }
.as-lang-banner:hover .as-lb-cta { background: var(--as-red); color: #fff; }
@media (max-width: 575.98px) {
  .as-lang-banner { flex-wrap: wrap; padding: 1rem; }
  .as-lb-badge { width: 44px; height: 44px; font-size: 1.05rem; }
  .as-lb-cta { width: 100%; text-align: center; }
}

/* ===== Phase 9: homepage proposal (slider, quick searches, guides, mobile button) =====
   Purple is a light accent only (Riyadh Season slide) — waiting for Ibrahim's approval. */
:root { --as-purple: #5B2A86; --as-sand: #F7F3E8; }

/* quick searches under the search box */
.as-home-slider { margin-top: -6px; }
.as-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 4px auto 18px; max-width: 1100px; }
.as-quick-lbl { color: #555; font-weight: 600; font-size: .9rem; }
.as-quick a { background: #fff; border: 1px solid #d6e6dc; color: var(--as-green-dark); padding: 5px 14px; border-radius: 999px; font-size: .9rem; text-decoration: none; transition: .15s; }
.as-quick a:hover { background: var(--as-green); color: #fff; border-color: var(--as-green); }

/* auto slider (pure CSS; pauses on hover) */
.as-slider { position: relative; overflow: hidden; border-radius: 18px; max-width: 1100px; margin: 0 auto 26px; box-shadow: 0 8px 28px rgba(0, 53, 29, .18); }
.as-track { display: flex; width: 600%; direction: ltr; animation: as-slide 30s infinite; }
.as-slider:hover .as-track, .as-slider:hover .as-dots span { animation-play-state: paused; }
.as-slide { width: 16.6667%; min-height: 210px; padding: 28px 34px; color: #fff !important; text-decoration: none !important; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto auto; column-gap: 22px; align-content: center; position: relative; }
.as-slider[dir="rtl"] .as-slide { direction: rtl; }
.as-slide i { grid-row: 1 / span 4; font-size: 74px; opacity: .9; align-self: center; filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); }
.as-sk { font-size: .95rem; opacity: .9; }
.as-slide strong { font-size: 2rem; line-height: 1.3; }
.as-st { font-size: 1.05rem; opacity: .95; }
.as-sc { justify-self: start; margin-top: 12px; background: var(--as-gold); color: #1d1d1b; font-weight: 700; padding: 7px 18px; border-radius: 999px; }
.as-s1 { background: linear-gradient(120deg, #3d1a5e, var(--as-purple) 55%, #8a3d7a); }
.as-s2 { background: linear-gradient(120deg, var(--as-green-deep), var(--as-green) 60%, #2f8f5b); }
.as-s3 { background: linear-gradient(120deg, #4a2c17, #7a4a25 60%, #a8742f); }
.as-s4 { background: linear-gradient(120deg, #7a0d1f, var(--as-red) 60%, #e0573b); }
.as-s5 { background: linear-gradient(120deg, #1d1d1b, #2e3b33 55%, var(--as-green-dark)); }
@keyframes as-slide {
  0%, 16% { transform: translateX(0); }
  20%, 36% { transform: translateX(-16.6667%); }
  40%, 56% { transform: translateX(-33.3333%); }
  60%, 76% { transform: translateX(-50%); }
  80%, 96% { transform: translateX(-66.6667%); }
  100% { transform: translateX(-83.3333%); }
}
.as-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.as-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); animation: as-dot 30s infinite; }
.as-dots span:nth-child(2) { animation-delay: 6s; } .as-dots span:nth-child(3) { animation-delay: 12s; }
.as-dots span:nth-child(4) { animation-delay: 18s; } .as-dots span:nth-child(5) { animation-delay: 24s; }
@keyframes as-dot { 0%, 19% { background: var(--as-gold); width: 24px; border-radius: 6px; } 20%, 100% { background: rgba(255,255,255,.45); width: 9px; } }
@media (prefers-reduced-motion: reduce) { .as-track, .as-dots span { animation: none; } }
@media (max-width: 575.98px) {
  .as-slider { border-radius: 14px; margin: 0 10px 20px; }
  .as-slide { min-height: 170px; padding: 20px 18px; column-gap: 14px; }
  .as-slide i { font-size: 46px; }
  .as-slide strong { font-size: 1.35rem; }
  .as-st { font-size: .9rem; }
  .as-quick { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0 10px; scrollbar-width: none; }
  .as-quick a { white-space: nowrap; }
}

/* floating "post an ad" button — mobile only */
.as-fab { display: none; }
@media (max-width: 767.98px) {
  .as-fab { display: inline-flex; gap: 8px; align-items: center; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1030;
    background: var(--as-gold); color: #1d1d1b !important; font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.25); border: 2px solid #fff; }
}

/* guides (home block + /page/guide) */
.as-home-guides { max-width: 1320px; margin: 10px auto 26px; padding: 0 12px; }
.as-hg-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--as-gold); margin-bottom: 14px; }
.as-hg-head h2 { font-size: 1.35rem; font-weight: 700; color: var(--as-green-deep); margin: 0 0 6px; }
.as-hg-head a { color: var(--as-green); font-weight: 600; text-decoration: none; }
.as-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.as-gcard { display: flex; flex-direction: column; gap: 6px; background: var(--as-sand); border: 1px solid #eadfc3; border-inline-start: 4px solid var(--as-green); border-radius: 12px; padding: 14px 16px; color: #1d1d1b !important; text-decoration: none !important; transition: .15s; }
.as-gcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); border-inline-start-color: var(--as-gold); }
.as-gcard i { color: var(--as-green); font-size: 1.4rem; }
.as-gcard strong { font-size: 1rem; line-height: 1.5; }
.as-gcat { font-size: .8rem; color: #7a6a3d; }
.as-guide-badge { align-self: flex-start; background: var(--as-green); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.as-guide p { line-height: 2; font-size: 1.05rem; }
.as-guide-src { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #cbd9cf; }
.as-guide-note { font-size: .85rem; color: #777; }
.as-guide-hub > p { font-size: 1.05rem; line-height: 1.9; margin-bottom: 18px; }

/* footer: our other sites + group line */
.as-group-line { text-align: center; font-size: .9rem; padding: 10px 0 2px; opacity: .95; }
.as-group-line a { color: var(--as-gold) !important; font-weight: 700; text-decoration: none; }
/* slider lives inside the core text-area card: remove the card frame */
.as-home-slider > .card { border: 0; background: transparent; box-shadow: none; }
.as-home-slider > .card > .card-body { padding: 0; }
.page-section--text-area .card:has(.as-slider) { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.page-section--text-area .card:has(.as-slider) > .card-body { padding: 0 !important; }
.as-quick-lbl { white-space: nowrap; }
@media (max-width: 575.98px) {
  .as-fab { bottom: 14px; padding: 10px 20px; }
}
/* verified seller badge */
.as-verified { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; background: #e8f5ee; color: var(--as-green) !important; border: 1px solid #b9dcc8; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.as-verified-soft { background: #f4f4f4; color: #555 !important; border-color: #ddd; font-weight: 600; }
/* "near me" chip */
.as-quick a.as-near { background: var(--as-green); color: #fff; border-color: var(--as-green); }
.as-quick a.as-near:hover { background: var(--as-green-dark); }
