/* Single Ad Custom Layout (RTL) */
html[dir="rtl"] .single-ad-rtl{
    direction: rtl;
}

/* =========================
   Slider (outer corner)
   ========================= */
html[dir="rtl"] .single-ad-carousel-wrap{
    border-top-left-radius: 16px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
}

html[dir="rtl"] .single-ad-carousel-wrap,
html[dir="rtl"] .single-ad-carousel-wrap .carousel,
html[dir="rtl"] .single-ad-carousel-wrap .carousel-inner,
html[dir="rtl"] .single-ad-carousel-wrap .carousel-item,
html[dir="rtl"] .single-ad-carousel-wrap img{
    border-radius: inherit;
}

/* =========================
   Side Bar (outer corner + outward shift)
   ========================= */
html[dir="rtl"] .single-ad-rtl .col-lg-3,
html[dir="rtl"] .single-ad-rtl .col-md-4{
    padding-right: 0 !important;
}

html[dir="rtl"] .single-ad-rtl .single-ad-sidebar-fix{
    border-top-right-radius: 16px !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    overflow: hidden !important;

    margin-right:-6px;
}

/* Prevent Bootstrap inner rounded corners inside sidebar */
html[dir="rtl"] .single-ad-rtl .single-ad-sidebar-fix .rounded,
html[dir="rtl"] .single-ad-rtl .single-ad-sidebar-fix [class*="rounded-"],
html[dir="rtl"] .single-ad-rtl .single-ad-sidebar-fix .list-group,
html[dir="rtl"] .single-ad-rtl .single-ad-sidebar-fix .list-group-item{
    border-radius: 5 !important;
}

.rounded-start-5{
  border-top-left-radius: var(--bs-border-radius-xxl) !important;
  border-bottom-left-radius: var(--bs-border-radius-xxl) !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.rounded-start-5:last-of-type{
  border-top-right-radius: var(--bs-border-radius-xxl) !important;
  border-bottom-right-radius: var(--bs-border-radius-xxl) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.rounded-start-5:not(:first-of-type):not(:last-of-type){
  border-radius: 0 !important;
}
html[dir="rtl"] .col-md-8.col-lg-9 > *{
    border-top-left-radius: var(--bs-border-radius-xxl) !important;
    border-bottom-left-radius: var(--bs-border-radius-xxl) !important;
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
    overflow:hidden;
    margin-right:20px;
}

/* منع الزوايا الداخلية من جهة اليمين فقط */
html[dir="rtl"] .col-md-8.col-lg-9 > * .rounded,
html[dir="rtl"] .col-md-8.col-lg-9 > * [class*="rounded-"],
html[dir="rtl"] .col-md-8.col-lg-9 > * .card{
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
}
/* إصلاح الزاوية السفلية لبلوك معلومات البائع */
html[dir="rtl"] .col-md-4.col-lg-3 > *{
    border-bottom-right-radius: var(--bs-border-radius-xxl) !important;
}
/* إزاحة محتوى السايدبار قليلاً للخارج */
html[dir="rtl"] .single-ad-rtl .col-lg-3.col-md-4 > *{
    margin-right:12px;
}
.transition-all {
    transition: all 0.2s ease-in-out;
}

.hover\:opacity-80:hover {
    opacity: 0.8;
}

.hover\:bg-light:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3), 0 8px 10px -6px rgba(245, 158, 11, 0.2) !important;
}

.hover\:shadow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* تعديل لون الأيقونات في وضع النهار */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-close {
    filter: none;
}

/* تحسين مظهر الزر في جميع الأجهزة */
.btn-warning.rounded-pill {
    position: relative;
    overflow: hidden;
}

.btn-warning.rounded-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* تحسين التباعد للهيدر */
@media (min-width: 768px) {
    .gap-3 {
        gap: 1.2rem !important;
    }
}