/* ============================================================
   Laqat — SEO landing pages (/sa/...)
   Inherits styles.css variables; adds SEO-specific layout.
   ============================================================ */

/* Override a few root tokens to give SEO pages a slightly
   warmer background while staying within the same system.   */
:root {
  --seo-bg: #f8f7ff;
}
[data-theme="dark"] {
  --seo-bg: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --seo-bg: var(--bg); }
}

body.seo-page {
  background: var(--seo-bg);
  color: var(--t1);
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────── */
.seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--surf);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-sm);
}

.seo-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--p);
}
.seo-logo img { border-radius: 8px; }

.seo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-dark-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surf);
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.seo-dark-toggle:hover { border-color: var(--p); background: var(--p-light); }

.seo-lang-toggle {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surf);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.seo-lang-toggle:hover { border-color: var(--p); background: var(--p-light); }

.seo-search-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--p);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.seo-search-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ── Main container ─────────────────────────────────────── */
.seo-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 22px;
}
.seo-bc-item {
  color: var(--t3);
  text-decoration: none;
  transition: color .15s;
}
.seo-bc-item:hover { color: var(--p); }
.seo-bc-sep { color: var(--t3); margin: 0 2px; }

/* ── H1 & intro ─────────────────────────────────────────── */
.seo-main h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--t1);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.seo-intro {
  font-size: 15px;
  color: var(--t2);
  margin: 0 0 32px;
  max-width: 720px;
  line-height: 1.75;
}

/* ── Sections ────────────────────────────────────────────── */
.seo-section {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--sh-sm);
}

.seo-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--p-light);
}

/* ── Listing cards ───────────────────────────────────────── */
.seo-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.seo-listing-card {
  display: flex;
  flex-direction: column;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.seo-listing-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  border-color: var(--p);
}

.seo-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--border2);
  display: block;
}
.seo-card-img-empty {
  aspect-ratio: 4/3;
  background: var(--border2);
  display: grid;
  place-items: center;
}
.seo-card-img-empty::after {
  content: "📷";
  font-size: 28px;
  opacity: .3;
}

.seo-card-body { padding: 12px 14px; }

.seo-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.seo-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
}

.seo-card-price {
  font-weight: 700;
  color: var(--green);
  font-size: 13px;
}

.seo-card-source {
  background: var(--p-light);
  color: var(--p);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.seo-empty {
  color: var(--t3);
  font-size: 15px;
  text-align: center;
  padding: 24px 0;
}
.seo-empty a { color: var(--p); }

/* ── Chip links ──────────────────────────────────────────── */
.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-link-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--p);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.seo-link-chip:hover {
  background: var(--p-light);
  border-color: var(--p);
  transform: translateY(-1px);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.seo-faq-item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border2);
}
.seo-faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.seo-faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 6px;
}
.seo-faq-item p {
  font-size: 14px;
  color: var(--t2);
  margin: 0;
  line-height: 1.7;
}

/* ── CTA section ─────────────────────────────────────────── */
.seo-cta-section { text-align: center; }
.seo-cta-section h2 {
  border: none;
  padding-bottom: 0;
  margin-bottom: 10px;
  font-size: 20px;
}
.seo-cta-section p {
  color: var(--t2);
  font-size: 14px;
  margin: 0 0 20px;
}

.seo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  background: var(--p);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--p-glow);
  transition: opacity .15s, transform .15s;
}
.seo-cta-btn:hover { opacity: .9; transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────────────── */
.seo-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: var(--t3);
  border-top: 1px solid var(--border);
  line-height: 2;
  background: var(--surf);
}
.seo-footer a { color: var(--t3); text-decoration: none; transition: color .15s; }
.seo-footer a:hover { color: var(--p); }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .seo-header { padding: 10px 16px; }
  .seo-logo span { display: none; }
  .seo-main { padding: 18px 14px 40px; }
  .seo-section { padding: 18px 16px; border-radius: 16px; }
  .seo-listings { grid-template-columns: 1fr 1fr; }
  .seo-main h1 { font-size: 20px; }
}
