/* سايق الكويت — واجهة Mobile First فوق Bootstrap 5 RTL */
:root {
  --sk-primary: #0d6e6e;
  --sk-primary-dark: #0a5555;
  --sk-accent: #f2a007;
  --sk-accent-dark: #d18a00;
  --sk-bg: #f5f7f8;
  --sk-text: #1d2733;
  --sk-muted: #5c6773;
  --sk-radius: 14px;
  --bs-primary: var(--sk-primary);
  --bs-primary-rgb: 13, 110, 110;
  --bs-link-color: var(--sk-primary);
  --bs-link-color-rgb: 13, 110, 110;
  --bs-link-hover-color: var(--sk-primary-dark);
  --bs-body-font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --bs-body-color: var(--sk-text);
  --bs-body-bg: var(--sk-bg);
  --bs-border-radius: 10px;
}

body { font-family: var(--bs-body-font-family); padding-bottom: 72px; -webkit-tap-highlight-color: transparent; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

.skip-link { position: absolute; top: .5rem; right: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* الأزرار */
.btn { border-radius: 10px; font-weight: 500; }
.btn-lg { min-height: 50px; }
.btn-primary { --bs-btn-bg: var(--sk-primary); --bs-btn-border-color: var(--sk-primary); --bs-btn-hover-bg: var(--sk-primary-dark); --bs-btn-hover-border-color: var(--sk-primary-dark); --bs-btn-active-bg: var(--sk-primary-dark); --bs-btn-disabled-bg: var(--sk-primary); }
.btn-outline-primary { --bs-btn-color: var(--sk-primary); --bs-btn-border-color: var(--sk-primary); --bs-btn-hover-bg: var(--sk-primary); --bs-btn-hover-border-color: var(--sk-primary); --bs-btn-active-bg: var(--sk-primary); --bs-btn-active-border-color: var(--sk-primary); }
.btn-accent { background: var(--sk-accent); border-color: var(--sk-accent); color: #1d1d1d; }
.btn-accent:hover, .btn-accent:focus { background: var(--sk-accent-dark); border-color: var(--sk-accent-dark); color: #111; }
.btn-whatsapp { background: #1f9e53; border-color: #1f9e53; color: #fff; }
.btn-whatsapp:hover { background: #17843f; color: #fff; }
.btn-check:checked + .btn-outline-primary, .btn-check:checked + .btn-outline-secondary { color: #fff; }
.btn-check:checked + .btn-outline-secondary { background: var(--sk-primary); border-color: var(--sk-primary); }
.chip { border-radius: 999px; }
.pagination { --bs-pagination-active-bg: var(--sk-primary); --bs-pagination-active-border-color: var(--sk-primary); --bs-pagination-color: var(--sk-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--sk-primary); --bs-nav-pills-link-active-color: #fff; --bs-nav-link-color: var(--sk-primary); --bs-nav-link-hover-color: var(--sk-primary-dark); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff; font-weight: 700; }
.form-control, .form-select { border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: #5fb3b3; box-shadow: 0 0 0 .2rem rgba(13, 110, 110, .18); }
.form-label { font-weight: 500; }

/* الهيدر */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header .navbar-brand { font-weight: 700; color: var(--sk-primary) !important; }
.site-header .nav-link.active { color: var(--sk-primary) !important; font-weight: 700; }

/* الواجهة الرئيسية */
.hero { background: linear-gradient(160deg, #e3f2f1 0%, #f5f7f8 60%); }
.hero-title { font-size: clamp(1.5rem, 4.8vw, 2.4rem); font-weight: 700; line-height: 1.5; color: #123; }
.search-box { border-radius: var(--sk-radius); border: 0; }
.cta-card { border-radius: var(--sk-radius); background: #fff; }
.section-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.lead-sm { font-size: 1.02rem; line-height: 1.9; }
.service-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem .5rem; background: #fff; border-radius: var(--sk-radius); text-align: center; text-decoration: none; color: var(--sk-text); min-height: 110px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .15s; }
.service-tile:hover { transform: translateY(-2px); color: var(--sk-primary); }
.service-tile span { font-weight: 500; font-size: .92rem; }
.service-card:hover { border-color: var(--sk-primary); }
.step-card { background: #fff; border-radius: var(--sk-radius); padding: 1.25rem; height: 100%; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sk-primary); color: #fff; font-weight: 700; margin-bottom: .5rem; }

/* البطاقات */
.card { border-radius: var(--sk-radius); border-color: #e3e8ec; }
.listing-card, .provider-card { transition: box-shadow .15s, transform .15s; }
.listing-card:hover, .provider-card:hover { box-shadow: 0 6px 18px rgba(16, 40, 60, .08); transform: translateY(-1px); }
.listing-meta li { margin-bottom: .15rem; }
.meta-icon { display: inline-block; width: 1.4em; }
.badge-offer { background: #dff3ef; color: #0b5f55; }
.badge-request { background: #fff1d6; color: #7a5200; }
.avatar { border-radius: 50%; object-fit: cover; background: #e8eef0; flex-shrink: 0; aspect-ratio: 1; }
.avatar-lg { width: 96px; height: 96px; }
.min-w-0 { min-width: 0; }
.empty-state { background: #fff; border: 1px dashed #cfd8dd; border-radius: var(--sk-radius); padding: 1.5rem; text-align: center; color: var(--sk-muted); }
.stars { color: #c9cfd4; letter-spacing: 1px; }
.stars .on, .stars:not(:has(span)) { color: #f2a007; }
.rating-summary .stars .on { color: #f2a007; }
.detail-list dt { font-weight: 500; color: var(--sk-muted); }
.detail-list dd { margin-bottom: .5rem; }
.vehicle-box { background: #f3f7f8; border-radius: 12px; padding: .75rem; }
.vehicle-box img, .vehicle-box .vehicle-art { flex-shrink: 0; object-fit: contain; }
.vehicle-art { display: block; max-width: 100%; height: auto; }
.reply-box { background: #f3f7f8; border-inline-start: 3px solid var(--sk-primary); padding: .5rem .75rem; border-radius: 8px; }
.contact-card { top: 80px; }
.safety-notice { background: #fff8e6; border: 1px solid #f3dca4; border-radius: 12px; padding: .75rem; line-height: 1.8; }
.disclaimer-note { opacity: .85; }

/* النماذج متعددة الخطوات */
.narrow { max-width: 820px; }
.narrow-sm { max-width: 520px; }
.narrow-form { max-width: 760px; margin-inline: auto; }
.choice-tile { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .5rem; min-height: 64px; justify-content: center; }
.choice-tile small { opacity: .75; }
.summary-box { background: #f3f7f8; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; line-height: 2; }
.summary-box dt { color: var(--sk-muted); font-weight: 500; }
.sticky-actions { position: sticky; bottom: 72px; background: #fff; padding-top: .5rem; z-index: 5; }
@media (min-width: 992px) { .sticky-actions { bottom: 0; } }
[data-steps].js-steps [data-step]:not(.current) { display: none; }
.area-multi-list { max-height: 300px; overflow-y: auto; background: #fff; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: #c9cfd4; cursor: pointer; line-height: 1; padding: 0 .1rem; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f2a007; }
.star-input input:focus-visible + label { outline: 2px solid var(--sk-primary); border-radius: 4px; }
/* ترتيب النجوم: row-reverse مع RTL يجعل 1 على اليمين */
/* حقل المصيدة للبوتات: مخفي دون إزاحة (الإزاحة البعيدة تُوسّع الصفحة في RTL فيصغّرها الجوال فتبدو بيضاء) */
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.copy-box { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #f3f7f8; border-radius: 10px; padding: .5rem .75rem; font-weight: 700; }
.steps-list li { margin-bottom: .5rem; line-height: 1.9; }

/* الإكمال التلقائي */
.suggest-list { position: absolute; inset-inline: 0; top: 100%; z-index: 1050; max-height: 320px; overflow-y: auto; box-shadow: 0 8px 20px rgba(0,0,0,.1); border-radius: 10px; }
.suggest-list .list-group-item { cursor: pointer; }
.suggest-list .list-group-item.active { background: var(--sk-primary); border-color: var(--sk-primary); }
.ac-wrap { position: relative; }

/* الحساب */
.account-nav { display: flex; gap: .25rem; overflow-x: auto; background: #fff; border-radius: 12px; padding: .35rem; scrollbar-width: none; }
.account-nav a { white-space: nowrap; padding: .5rem .85rem; border-radius: 9px; text-decoration: none; color: var(--sk-text); font-weight: 500; }
.account-nav a.active { background: var(--sk-primary); color: #fff; }
.stat-card { background: #fff; border-radius: var(--sk-radius); padding: 1rem; text-align: center; height: 100%; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--sk-primary); }
.stat-label { font-size: .85rem; color: var(--sk-muted); }
.status-active { background: #d8f3e3; color: #135c33; }
.status-pending_review { background: #e3ecff; color: #26448c; }
.status-paused, .status-draft { background: #eceff1; color: #455a64; }
.status-expired { background: #fbe9e7; color: #8d2e1f; }
.status-rejected { background: #ffdede; color: #8a1111; }
.success-card { border-color: #b8e2cb; background: #f2fbf6; }

/* الفوتر والتنقل السفلي */
.site-footer { background: #10323a; color: #d5e3e6; }
.site-footer a { color: #e9f3f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 1030; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid #e3e8ec; padding: .3rem 0 calc(.3rem + env(safe-area-inset-bottom)); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .72rem; color: var(--sk-muted); text-decoration: none; padding: .25rem 0; min-height: 52px; justify-content: center; position: relative; }
.bottom-nav a.active { color: var(--sk-primary); font-weight: 700; }
.bottom-nav .bn-icon { width: 24px; height: 24px; flex-shrink: 0; }
.bottom-nav a.active::before { content: ""; position: absolute; top: calc(-.3rem - 1px); width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sk-primary); }
.bn-add .bn-plus { background: var(--sk-accent); color: #111; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; margin-top: -20px; box-shadow: 0 3px 10px rgba(0,0,0,.18); border: 3px solid #fff; }
.bottom-nav a.bn-add { color: var(--sk-text); font-weight: 500; }
.page-content h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.25rem; }
.page-content { line-height: 2; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.progress { --bs-progress-bar-bg: var(--sk-primary); }

/* SweetAlert2 */
.swal2-container { direction: rtl; font-family: var(--bs-body-font-family); }
.sk-swal { font-family: var(--bs-body-font-family); border-radius: 16px; }
.sk-swal .swal2-title { font-size: 1.15rem; line-height: 1.8; font-weight: 700; color: var(--sk-text); }
.sk-swal .swal2-html-container { font-size: .98rem; line-height: 1.9; text-align: right; }
.sk-swal .swal2-html-container ul { padding-inline-start: 1.2rem; }
.sk-swal .swal2-actions { gap: .5rem; }
.sk-toast.swal2-toast { padding: .6rem .9rem; box-shadow: 0 8px 24px rgba(16, 40, 60, .15); }
.sk-toast .swal2-title { font-size: .95rem; margin: 0 .5rem; }
.swal2-timer-progress-bar { background: var(--sk-primary); }
.vehicle-preview { background: #f3f7f8; border-radius: 12px; padding: .75rem; text-align: center; }
.vehicle-preview img { max-width: 100%; height: auto; }

/* التواصل والدعم */
.route-card { background: #fff; border: 1px solid #e3e8ec; border-radius: 12px; padding: .9rem 1rem; }
a.route-card:hover { border-color: var(--sk-primary); }
.ticket-status { font-weight: 500; }
.ticket-status-open { background: #e3ecff; color: #26448c; }
.ticket-status-pending { background: #fff1d6; color: #7a5200; }
.ticket-status-answered { background: #d8f3e3; color: #135c33; }
.ticket-status-closed { background: #eceff1; color: #455a64; }
.ticket-msg { border-radius: 12px; padding: .75rem 1rem; max-width: 92%; }
.ticket-msg.from-user { background: #fff; border: 1px solid #e3e8ec; margin-inline-start: auto; }
.ticket-msg.from-staff { background: #eaf5f4; border: 1px solid #c6e3e0; margin-inline-end: auto; }
.ticket-msg .meta { font-size: .78rem; color: var(--sk-muted); margin-bottom: .25rem; }
.ticket-msg .body { white-space: pre-wrap; word-break: break-word; line-height: 1.9; }
.code-input { font-size: 1.8rem; letter-spacing: .6rem; text-align: center; font-weight: 700; }
