/* أقسام الصفحة الرئيسية — مستوحاة من Airbnb مع هوية الموقع البرتقالية */
.home-sections {
    padding: 0 0 2rem;
    direction: rtl;
    position: relative;
}

.home-section {
    margin-bottom: 2.5rem;
    position: relative;
}

/* طبقات خلفية — شفافة؛ الخلفية الموحّدة من html (amartil-airbnb) */
.home-section:nth-child(odd),
.home-section:nth-child(even) {
    background: transparent;
}

.home-section:nth-child(even) {
    padding: 0;
    margin-bottom: 2.5rem;
}

.home-section:nth-child(even)::before {
    display: none;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
    gap: 1rem;
}

.home-section__title-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.home-section__title-link:hover {
    color: #222222;
    text-decoration: none;
}

.home-section__title-link:hover .home-section__title {
    color: #222222;
}

.home-section__title {
    font-family: var(--ab-font, 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.25;
    color: #ff6e00;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.home-section__title i {
    display: none;
}

.home-section__arrow {
    font-size: 1.8rem;
    line-height: 1;
    color: #222222;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.home-section__arrow i {
    font-size: inherit;
    color: #ff6e00;
}

.home-section__title-link:hover .home-section__arrow {
    transform: translateX(-4px);
    opacity: 1;
}

.home-section__nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.home-section__nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    transition: box-shadow 0.2s, border-color 0.2s;
    padding: 0;
}

.home-section__nav-btn:hover:not(:disabled) {
    border-color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.home-section__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-section__track-wrap {
    position: relative;
    overflow: hidden;
}

.home-section__track {
    --hs-gap: 1rem;
    --hs-visible: 4.15; /* 4 بطاقات كاملة + لمحة عن الخامسة */
    display: flex;
    gap: var(--hs-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    cursor: grab;
}

.home-section__track.is-drag-scroll {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.home-section__track.is-drag-scroll * {
    pointer-events: none;
}

.home-section__track::-webkit-scrollbar {
    display: none;
}

/* بطاقة معاينة أفقية — 4 كاملة + الخامسة ظاهرة جزئياً (مثل browse) */
.hs-card {
    flex: 0 0 calc((100% - (var(--hs-visible) - 1) * var(--hs-gap)) / var(--hs-visible));
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
}

.hs-card:hover {
    text-decoration: none;
    color: inherit;
}

.hs-card__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 10 / 13;
    background: #f7f7f7;
    margin-bottom: 0.75rem;
    box-shadow: none;
}

@media (min-width: 992px) {
    .hs-card__media {
        aspect-ratio: auto;
        height: 30rem;
        min-height: 260px;
    }
}

.hs-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.hs-card:hover .hs-card__media img {
    transform: scale(1.04);
}

.hs-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #222222;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ebebeb;
}

.hs-card__price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.92);
    color: #222;
    font-size: 15px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

/* أسعار بطاقات البحث في index.php */
#productContainer .item .price,
#productContainer .item .listing-price {
    direction: ltr;
    unicode-bidi: isolate;
}

.hs-card__body {
    padding: 0 2px;
}

.hs-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #727272;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-card__meta {
    font-size: 14px;
    color: #717171;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* بطاقة «عرض الكل» — نفس مقاس بطاقة الإعلان */
.hs-card--view-all .hs-card__media {
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebebeb;
}

.hs-card--view-all .hs-card__media img {
    width: 42%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
    transform: scaleX(-1);
    transition: transform 0.25s ease;
}

.hs-card--view-all:hover .hs-card__media {
    background: #ececec;
    border-color: #dddddd;
}

.hs-card--view-all:hover .hs-card__media img {
    transform: scaleX(-1) scale(1.08);
}

.hs-card--view-all .hs-card__title {
    text-align: center;
    color: #222222;
}

/* بطاقات المدونة — نفس أبعاد ومسافات بطاقات العقارات */
.hs-blog-card .hs-card__media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 10 / 13;
}

@media (min-width: 992px) {
    .hs-blog-card .hs-card__media {
        aspect-ratio: auto;
        height: 30rem;
        min-height: 260px;
        max-height: 30rem;
    }
}

.hs-blog-card .hs-card__meta {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* بطاقات الطلبات */
.hs-req-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hs-req-card .hs-card__title {
    font-size: 13px;
}

.hs-req-code {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* ===== البطاقة التفصيلية الواضحة لطلبات الكراء/الشراء ===== */
.amartil-req-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    direction: rtl;
    text-align: right;
    font-size: 1.55rem;
    line-height: 1.75;
    color: #222222;
    height: auto;
    width: 100%;
    box-sizing: border-box;
}
.amartil-req-card.is-fulfilled {
    overflow: hidden;
    border-color: #cbd5e1;
}
.amartil-req-card .req-fulfilled-ribbon {
    position: absolute;
    bottom: 37px;
    right: -48px;
    width: 210px;
    padding: 9px 0;
    background: #fff900;
    color: #ff0000;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transform: rotate(-45deg);
    transform-origin: center;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
    z-index: 3;
    pointer-events: none;
}
.amartil-req-card .req-body {
    margin-top: 10px;
}
.amartil-req-card .req-body > :last-child {
    margin-bottom: 0 !important;
}
.amartil-req-card .req-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffac4e;
    letter-spacing: 0.01em;
}

.amartil-req-card .req-badge.pending  { background: #f59e0b; }
.amartil-req-card .req-badge.rejected { background: #ef4444; }
.amartil-req-card .req-intro {
    font-size: 1.7rem;
    font-weight: 500;
    color: #222222;
    line-height: 1.85;
    margin: 0 0 12px;
}
.amartil-req-card .req-intro .req-kw {
    font-weight: 700;
    color: #222222;
}

/* تمييز الميزانية — صفحة قسم الطلبات فقط */
.req-cards-browse .amartil-req-card .req-intro .req-kw {
    display: inline-block;
    padding: 1px 10px 3px;
    margin: 0 1px;
    border-radius: 6px;
    background: url('/assets/img/background.webp') center center / 100% 100% no-repeat;
    font-weight: 700;
    color: #001338;
    white-space: nowrap;
    vertical-align: baseline;
    line-height: 1.5;
}
.amartil-req-card .req-details {
    font-size: 1.55rem;
    color: #374151;
    line-height: 1.8;
    margin: 0 0 10px;
    padding-right: 8px;
}
.home-sections .amartil-req-card .req-details {
    display: none;
}
.home-sections .amartil-req-card .req-cta-inline {
    display: none;
}
.home-sections .amartil-req-card .req-badge.approved {
    display: none;
}
.amartil-req-card .req-chips {
    font-size: 1.45rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 12px;
}
.amartil-req-card .req-cta-inline {
    font-size: 1.55rem;
    color: #1f2937;
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 12px;
    line-height: 1.8;
    border: 1px solid #ebebeb;
}
.amartil-req-card .req-cta-inline strong {
    font-weight: 700;
    color: #111827;
}
.amartil-req-card .req-countdown {
    color: #4b5563;
    border-radius: 10px;
    font-size: 1.55rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}
.amartil-req-card .req-countdown.urgent {
    min-height: 48px;
    padding: 12px 16px;
    background: rgb(218, 62, 0);
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
}
.amartil-req-card .req-countdown.urgent.alert { background: rgb(255, 115, 0); }
.amartil-req-card .req-countdown.expired {
    background: #7f1d1d;
    color: #fecaca;
    font-weight: 600;
    font-size: 1.5rem;
    padding: 12px 16px;
}

/* شريط التصنيف + البحث — browse.php?section=requests */
.req-browse-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 1.25rem;
    direction: rtl;
}

/* بحث بكود الطلب */
.req-code-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    direction: rtl;
    flex-shrink: 0;
}

.req-code-search-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.req-code-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.req-code-search-input {
    width: 130px !important;
    max-width: 130px;
    min-width: 0;
    flex: 0 0 auto;
    padding: 10px 18px !important;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    direction: ltr;
    text-align: left;
    box-shadow: none !important;
}

.req-code-search-input:focus {
    outline: none;
    border-color: #ff7800;
    box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.15);
}

.req-code-search-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 18px;
    border: 1px solid #ff7800;
    border-radius: 999px;
    background: #ff7800;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.req-code-search-btn:hover {
    background: #e66d00;
    border-color: #e66d00;
}

.req-code-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #717171;
    font-size: 1.4rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.req-code-search-clear:hover {
    border-color: #ff7800;
    color: #ff7800;
    text-decoration: none;
}

/* تفاصيل الطلب للأدمن — browse.php?section=requests */
.req-admin-panel {
    margin-top: 1rem;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fafc;
}

.req-admin-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.req-admin-renew-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: #00b01c;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.req-admin-renew-btn:hover:not(:disabled) {
    background: #c2410c;
}

.req-admin-renew-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.req-renew-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10050;
    padding: 8px 14px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.req-renew-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.req-renew-toast.is-error {
    background: #dc2626;
}

.req-admin-panel-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.req-admin-panel-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.req-admin-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
}

.req-admin-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.req-admin-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #64748b;
}

.req-admin-value {
    font-size: 1.3rem;
    color: #0f172a;
    word-break: break-word;
}

.req-admin-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
}

.req-admin-phone:hover {
    background: #bbf7d0;
    color: #14532d;
    text-decoration: none;
}

.req-admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.6;
}

.req-admin-badge-warning { background: #fef3c7; color: #92400e; }
.req-admin-badge-success { background: #dcfce7; color: #166534; }
.req-admin-badge-danger  { background: #fee2e2; color: #991b1b; }
.req-admin-badge-info    { background: #dbeafe; color: #1e40af; }
.req-admin-badge-secondary { background: #e2e8f0; color: #334155; }

/* تصنيفات صفحة الطلبات — browse.php?section=requests */
.req-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    direction: rtl;
}

.req-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.req-category-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.75em;
    height: 1.75em;
    padding: 0 0.4em;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    border: 1.5px solid rgba(255, 120, 0, 0.45);
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.req-category-tab:hover .req-category-tab__count {
    border-color: #ff7800;
    color: #ea580c;
}

.req-category-tab.is-active .req-category-tab__count {
    background: #fff;
    color: #ff7800;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14), inset 0 0 0 1px rgba(255, 120, 0, 0.12);
}

.req-category-tab:hover {
    border-color: #ff7800;
    color: #ff7800;
    text-decoration: none;
}

.req-category-tab.is-active {
    background: #ff7800;
    border-color: #ff7800;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 120, 0, 0.25);
}

.req-category-tab--fulfilled:hover {
    border-color: #475569;
    color: #475569;
}

.req-category-tab--fulfilled.is-active {
    background: #475569;
    border-color: #475569;
    color: #fff;
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.28);
}

.req-category-tab--fulfilled .req-category-tab__count {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    border-color: rgba(71, 85, 105, 0.4);
    box-shadow: 0 1px 3px rgba(71, 85, 105, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.req-category-tab--fulfilled:hover .req-category-tab__count {
    border-color: #475569;
    color: #334155;
}

.req-category-tab--fulfilled.is-active .req-category-tab__count {
    background: #fff;
    color: #475569;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14), inset 0 0 0 1px rgba(71, 85, 105, 0.12);
}

.req-cards-browse {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 1rem 0;
    direction: rtl;
    align-items: start;
}

/* شبكة طلبات الكراء/الشراء في نتائج البحث — 4 عناصر (3 + عرض الكل) */
.req-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
    direction: rtl;
    align-items: start;
}

.req-cards > .amartil-req-card,
.req-cards > .hs-card {
    min-width: 0;
    width: 100%;
    max-width: none;
    flex: unset;
}

.req-cards > .hs-card--view-all {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    align-self: stretch;
}

.req-cards > .hs-card--view-all .hs-card__media {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 180px;
    height: auto;
    margin-bottom: 0.75rem;
}

.req-cards > .hs-card--view-all .hs-card__body {
    flex: 0 0 auto;
}

@media (max-width: 1199px) {
    .req-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .req-cards-browse {
        grid-template-columns: repeat(2, 1fr);
    }

    .req-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .req-browse-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .req-category-tabs {
        width: 100%;
    }

    .req-code-search {
        width: 100%;
        flex-wrap: wrap;
    }

    .req-code-search-group {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
    }

    .req-code-search-input {
        flex: 1 1 auto;
        width: auto !important;
        max-width: none;
    }

    .req-code-search-input,
    .req-code-search-btn {
        font-size: 1.25rem;
        padding: 9px 12px;
    }

    .req-category-tab {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        font-size: 1.25rem;
        padding: 9px 12px;
    }

    .req-cards-browse {
        grid-template-columns: 1fr;
    }

    .req-cards {
        grid-template-columns: 1fr;
    }
}

.amartil-req-card .req-type-chip {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff3e6;
    color: #c45a00;
    font-size: 1.25rem;
    font-weight: 700;
}

.amartil-req-card .req-type-chip.req-type-rent {
    background: #e8f4ff;
    color: #0058b4;
}

.amartil-req-card .req-type-chip.req-type-buy {
    background: #ecfdf3;
    color: #047857;
}

.amartil-req-card .req-type-chip.req-type-exchange {
    background: #f3e8ff;
    color: #6b21a8;
}

/* داخل كاروسيل الصفحة الرئيسية: عرض ثابت، ارتفاع حسب المحتوى */
.home-section--requests .home-section__track {
    align-items: flex-start;
}

.home-section--requests .home-section__track .hs-card--view-all {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.home-section--requests .home-section__track .hs-card--view-all .hs-card__media {
    aspect-ratio: auto;
    height: auto;
    min-height: 180px;
    flex: 1 1 auto;
    margin-bottom: 0.75rem;
}

.home-section--requests .home-section__track .hs-card--view-all .hs-card__body {
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .home-section--requests .home-section__track .hs-card--view-all .hs-card__media {
        min-height: 180px;
    }
}

.home-section__track .amartil-req-card {
    flex: 0 0 calc((100% - (var(--hs-visible) - 1) * var(--hs-gap)) / var(--hs-visible));
    flex-grow: 0;
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
    align-self: flex-start;
    height: auto;
}

.home-section__empty {
    color: #717171;
    font-size: 14px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(247, 154, 56, 0.1);
    border-radius: 12px;
    width: 100%;
}

/* هيدر شفاف — نفس خلفية الصفحة */
.hero,
.hero--compact {
    min-height: auto !important;
    padding-bottom: 0 !important;
    background-color: transparent !important;
}
.hero .background,
.hero--compact .background {
    display: none !important;
}
.hero--compact .hero-wrapper {
    padding-bottom: 0.5rem;
}

.hero--with-quick-search.hero--compact .hero-wrapper {
    padding-bottom: 0;
}

/* منع تداخل hero-wrapper مع #productContainer (إلغاء margin-top السالب من .block section) */
.home-page .block section.home-section {
    margin-top: 0;
}

.home-page #productContainer {
    padding-top: 3rem;
}

/* نص القائمة داكن على الخلفية البيضاء (الصفحة الرئيسية بدون هيرو بحث) */
.hero--compact .main-navigation .navbar ul.navbar-nav > .nav-item > a:not(.btn),
.hero--compact .main-navigation .navbar .nav-link,
.hero--compact .main-navigation .navbar .dropdown-toggle,
.hero--compact .main-navigation a.button1,
.hero--compact .main-navigation .site-nav-link--cta {
    color: #222222 !important;
}
.hero--compact .main-navigation .navbar {
    border-color: transparent !important;
}
.hero--compact .navbar-toggler-icon {
    filter: none;
}

@media (max-width: 991px) {
    .home-section__track {
        --hs-visible: 2;
    }
}

@media (max-width: 575px) {
    .home-section__title {
        font-size: clamp(1.55rem, 5.5vw, 1.85rem);
    }

    .home-section__title i {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.5rem;
    }

    .home-section__arrow {
        font-size: 2rem;
    }

    .home-section__track {
        --hs-visible: 1.15;
    }

    .hs-card {
        flex: 0 0 calc((100% - (var(--hs-visible) - 1) * var(--hs-gap)) / var(--hs-visible));
        min-width: 0;
    }

    .home-section__track .amartil-req-card {
        flex: 0 0 calc((100% - (var(--hs-visible) - 1) * var(--hs-gap)) / var(--hs-visible));
        min-width: 0;
    }

    .home-section__nav {
        display: none;
    }
}

/* submit service tabs */
.service-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.service-type-tab {
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    color: #374151;
}

.service-type-tab:hover {
    border-color: #ff7800;
    color: #ff7800;
}

.service-type-tab.active {
    border-color: #222222;
    background: #f7f7f7;
    color: #222222;
    box-shadow: none;
}

.service-fields-hidden {
    display: none !important;
}

/* لا نتائج بحث + اقتراحات عشوائية */
.browse-no-results {
    text-align: center;
    padding: 2rem 1rem 1rem;
    margin-bottom: 0.5rem;
}

.browse-no-results-msg {
    font-size: 1.15rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem;
}

.browse-suggestions-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ff7800;
    margin: 0 0 1.25rem;
}

.browse-suggestions-grid {
    margin-top: 0.5rem;
}
