/* Search */
.search-box .form-control,
.search-box .form-select {
    height: 48px;
    border-radius: 10px;
}
.form-select {
    direction: rtl; /* اتجاه عربي */
    text-align: right; /* النص يمين */

    /* تحريك السهم ناحية الشمال */
    background-position: left 0.75rem center;
    padding-left: 2.5rem; /* مساحة للسهم */
    padding-right: 0.75rem;

    /* تأكيد إن Bootstrap ما يكسرش */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search-btn {
    background: #ff6600;
    color: #fff;
    border-radius: 10px;
    width: 48px;
}

.search-btn:hover {
    background: #e95500;
}

/* Cards */
.service-card {
    border: 1px solid #d9d9d9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}

.service-card i {
    margin-bottom: 15px;
    color: #000;
}

.service-card h5 {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: bold;
    margin-top: 15px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}
.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: clamp(20px, 3vw, 35px);
    text-align: center;
    height: 100%;
    transition: 0.35s ease;
}

.service-icon {
    width: 100%;
    max-width: 150px;
    margin: 0 auto 15px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الصورة */
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
    margin-bottom: 15px;
}

/* Hover animation */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.service-card:hover img {
    transform: scale(1.1) rotate(-2deg);
    filter: brightness(1.1);
}

/* دخول تدريجي عند تحميل الصفحة */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeUp 0.6s ease both;
}

/* تأخير بسيط لكل كارد */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.service-card:nth-child(3) {
    animation-delay: 0.3s;
}
.service-card:nth-child(4) {
    animation-delay: 0.4s;
}
.service-card:nth-child(5) {
    animation-delay: 0.5s;
}
.service-card:nth-child(6) {
    animation-delay: 0.6s;
}
.services-header {
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

/* صورة الباكجراوند */
.services-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay */
.services-overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.55); */
    z-index: 2;
}

/* المحتوى فوق كل حاجة */
.services-content {
    position: relative;
    z-index: 3;
    text-align: right;
    padding-right: clamp(20px, 80vw, 100px);
}
/* على الموبايل */
@media (max-width: 768px) {
    /* أو أي breakpoint للموبايل */
    .services-content {
        padding-right: 0; /* يلغي البادينج ناحية اليمين */
    }
}
/* العنوان */
.services-content h2 {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: bold;
    margin-bottom: 15px;
}

.services-content .highlight {
    color: #ff5e00;
}

/* الوصف */
.services-content p {
    font-size: clamp(14px, 2vw, 16px);
    opacity: 0.95;
    font-weight: 600;
    text-align: right !important;
}
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper .form-control {
    height: 48px;
    padding-left: 50px; /* مساحة للزر */
    border-radius: 12px;
}

.search-input-wrapper .search-btn {
    position: absolute;
    top: 50%;
    left: 2px; /* RTL */
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    background: #ff5e00;
    padding: 10px;
}

.custom-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* الاتجاه عربي */
.custom-pagination {
    direction: rtl;
    gap: 6px;
}

/* الشكل العام */
.custom-pagination .page-link {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid #c1ccd2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: clamp(18px, 5vw, 24px);
    padding: 0;
    transition: all 0.3s ease;
    margin: 6px;
}

/* hover */
.custom-pagination .page-link:hover {
    background-color: #f5f5f5;
}

/* active */
.custom-pagination .active .page-link {
    background-color: #ff5e00;
    color: #fff;
    border-color: #ff5e00;
}

/* النقاط (...) */
.custom-pagination .dots .page-link {
    border: none;
    background: transparent;
    cursor: default;
}
.market-layout {
    padding: clamp(16px, 2vw, 32px);
    direction: rtl;
}

/* ===== Card ===== */
.market-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.market-card:hover {
    transform: translateY(-4px);
}

/* Image */
.market-thumb {
    position: relative;
    height: 210px;
    margin: 6px;
}

.market-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.market-rate {
    position: absolute;
    top: clamp(8px, 1vw, 12px);
    left: clamp(8px, 1vw, 12px);
    background: #111;
    color: #fff;
    font-size: clamp(12px, 1vw, 14px);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Body */
.market-info {
    padding: clamp(12px, 1.5vw, 14px);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
}

.market-title {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    margin-bottom: 6px;
}

.market-author {
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    margin-bottom: 8px;
}

.market-desc {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #555;
    margin-bottom: 14px;
}

/* Footer */
.market-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #d9d9d9;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 400;
    color: #ff5e00;
}

.market-price {
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    color: #000;
}

.market-btn {
    background: #ff5e00;
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: clamp(13px, 1.2vw, 15px);
    padding: clamp(6px, 1vw, 10px) clamp(14px, 1.5vw, 18px);
}

.market-btn:hover {
    background: #e55a00;
}

/* ===== Filters ===== */
.market-filters {
    background: #fff;
    border-radius: 14px;
    padding: clamp(16px, 1.5vw, 24px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.filter-title {
    font-size: clamp(14px, 1.4vw, 16px);
    margin: 16px 0 10px;
}

.filter-item {
    display: block;
    font-size: clamp(13px, 1.2vw, 15px);
    margin-bottom: 6px;
}
/* Sidebar */
.flt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Box */
.flt-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
}

/* Header */
.flt-head {
    width: 100%;
    background: none;
    border: none;
    padding: clamp(12px, 1.5vw, 16px);
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Arrow */
.flt-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Body */
.flt-body {
    padding: 0 clamp(12px, 1.5vw, 16px);
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.35s ease;
}

/* Items */
.flt-item {
    display: block;
    font-size: clamp(13px, 1.3vw, 15px);
    padding: 6px 0;
}

/* Active */
.flt-box.active .flt-body {
    max-height: 300px;
    padding-bottom: 12px;
}

.flt-box.active .flt-arrow {
    transform: rotate(-135deg);
}
/* Rating */
.rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 1px;
}
/* Price Filter */
.price-filter {
    padding-top: 10px;
}

.price-range {
    width: 100%;
    margin: 10px 0;
    accent-color: #ff5e00;
}

.price-text {
    font-size: 13px;
    color: #555;
}
/* ===== Custom Checkbox ===== */
.flt-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ff5e00;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* Checked */
.flt-item input[type="checkbox"]:checked {
    background-color: #ff5e00;
    border-color: #ff5e00;
}

/* Checkmark */
.flt-item input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 12px;
    color: #fff;
}

/* Hover effect */
.flt-item:hover input[type="checkbox"] {
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.cuida--user-outline {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg class='user-outline'%3E%3Cg fill='%23FF5E00' fill-rule='evenodd' class='Vector' clip-rule='evenodd'%3E%3Cpath d='M12 10a3 3 0 1 0 0-6a3 3 0 0 0 0 6m0 2a5 5 0 1 0 0-10a5 5 0 0 0 0 10m-7.361 3.448C5.784 13.93 7.509 13 9.714 13h4.572c2.205 0 3.93.93 5.075 2.448C20.482 16.935 21 18.916 21 21a1 1 0 1 1-2 0c0-1.782-.446-3.3-1.235-4.348C17 15.638 15.867 15 14.285 15h-4.57c-1.582 0-2.715.638-3.48 1.652C5.445 17.7 5 19.218 5 21a1 1 0 1 1-2 0c0-2.084.518-4.065 1.639-5.552'/%3E%3Cpath d='M3 21a1 1 0 0 1 1-1h15.962a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
