/* =========================================================
   RAHA OUTDOOR — CLICKABLE PREMIUM BANNER SLIDER
   File: raha-banner-slider.css
   ========================================================= */

.raha-banner-slider,
.raha-banner-slider * {
  box-sizing: border-box;
}

.raha-banner-slider {
  --rbs-accent: #e87524;
  --rbs-accent-dark: #c75a16;
  --rbs-duration: 5500ms;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 28px;
  padding: 10px;
  direction: rtl;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.raha-banner-slider button,
.raha-banner-slider a {
  font-family: inherit;
}

.rbs-viewport {
  position: relative;
  width: 100%;
  height: clamp(380px, 34vw, 590px);
  overflow: hidden;
  border-radius: 28px;
  background: #171411;
  box-shadow:
    0 26px 68px rgba(43, 29, 18, 0.18),
    0 4px 14px rgba(43, 29, 18, 0.08);
  touch-action: pan-y;
}

.rbs-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.rbs-slide.is-active {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.rbs-slide.is-leaving {
  z-index: 2;
  visibility: visible;
  pointer-events: none;
}

.rbs-slide.is-entering-next {
  animation: rbsEnterNext 0.86s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rbs-slide.is-entering-previous {
  animation: rbsEnterPrevious 0.86s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rbsEnterNext {
  from {
    opacity: 0;
    transform: translate3d(-5%, 0, 0) scale(1.045);
    filter: brightness(0.82);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(1);
  }
}

@keyframes rbsEnterPrevious {
  from {
    opacity: 0;
    transform: translate3d(5%, 0, 0) scale(1.045);
    filter: brightness(0.82);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(1);
  }
}

.rbs-slide-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.rbs-picture,
.rbs-image {
  width: 100%;
  height: 100%;
  display: block;
}

.rbs-image {
  object-fit: cover;
  object-position: var(--desktop-position, center);
  transform: scale(1);
}

.rbs-slide.is-active .rbs-image {
  animation: rbsImageZoom 8s ease-out forwards;
}

@keyframes rbsImageZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.055);
  }
}

.rbs-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(12, 10, 8, 0.01) 48%,
      rgba(12, 10, 8, 0.24) 100%
    );
}

.rbs-shade::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(232, 117, 36, 0.18),
      transparent 31%
    );
  transition: opacity 0.3s ease;
}

.rbs-slide-link:hover .rbs-shade::before {
  opacity: 1;
}

.rbs-open-indicator {
  position: absolute;
  right: 23px;
  bottom: 22px;
  z-index: 8;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(24, 18, 14, 0.55);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.rbs-open-indicator svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.rbs-slide-link:hover .rbs-open-indicator {
  border-color: var(--rbs-accent);
  background: var(--rbs-accent);
  transform: translateX(-4px) scale(1.06);
}

.rbs-arrow {
  position: absolute;
  z-index: 20;
  top: 50%;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 15px;
  background: rgba(22, 17, 13, 0.48);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.rbs-arrow:hover {
  border-color: var(--rbs-accent);
  background: var(--rbs-accent);
  transform: translateY(-50%) scale(1.06);
}

.rbs-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.rbs-arrow--previous {
  right: 19px;
}

.rbs-arrow--next {
  left: 19px;
}

.rbs-navigation {
  position: absolute;
  right: 50%;
  bottom: 18px;
  z-index: 22;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(22, 17, 13, 0.48);
  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.17);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  transform: translateX(50%);
}

.rbs-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.rbs-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    width 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.rbs-dot:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1.14);
}

.rbs-dot.is-active {
  width: 31px;
  background: var(--rbs-accent);
}

.rbs-counter {
  min-width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.67);
  direction: ltr;
  font-size: 9px;
  font-weight: 800;
}

.rbs-current {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.rbs-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 25;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.rbs-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffb17a, var(--rbs-accent));
  transform: scaleX(0);
  transform-origin: right center;
}

@keyframes rbsProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.rbs-arrow:focus-visible,
.rbs-dot:focus-visible,
.rbs-slide-link:focus-visible {
  outline: 3px solid rgba(255, 177, 122, 0.78);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .rbs-viewport {
    height: clamp(370px, 57vw, 500px);
    border-radius: 23px;
  }

  .rbs-image {
    object-position:
      var(--tablet-position, var(--mobile-position, center));
  }

  .rbs-arrow {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .rbs-arrow--previous {
    right: 13px;
  }

  .rbs-arrow--next {
    left: 13px;
  }

  .rbs-open-indicator {
    right: 17px;
    bottom: 17px;
    width: 46px;
    height: 46px;
  }

  .rbs-navigation {
    bottom: 14px;
  }
}

@media (max-width: 640px) {
  .raha-banner-slider {
    margin-bottom: 18px;
    padding: 5px;
  }

  .rbs-viewport {
    height: clamp(285px, 82vw, 365px);
    min-height: 0;
    border-radius: 18px;
  }

  .rbs-image {
    object-position: var(--mobile-position, center);
  }

  .rbs-shade {
    background:
      linear-gradient(
        180deg,
        rgba(12, 10, 8, 0.01) 52%,
        rgba(12, 10, 8, 0.25) 100%
      );
  }

  .rbs-arrow {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }

  .rbs-arrow svg {
    width: 16px;
    height: 16px;
  }

  .rbs-arrow--previous {
    right: 8px;
  }

  .rbs-arrow--next {
    left: 8px;
  }

  .rbs-open-indicator {
    right: 11px;
    bottom: 11px;
    width: 36px;
    height: 36px;
  }

  .rbs-open-indicator svg {
    width: 16px;
    height: 16px;
  }

  .rbs-navigation {
    bottom: 8px;
    min-height: 37px;
    gap: 8px;
    padding: 6px 9px;
  }

  .rbs-dots {
    gap: 5px;
  }

  .rbs-dot {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .rbs-dot.is-active {
    width: 22px;
  }

  .rbs-counter {
    min-width: 43px;
    font-size: 7px;
  }

  .rbs-current {
    font-size: 12px;
  }

  .rbs-progress {
    height: 3px;
  }
}

@media (max-width: 380px) {
  .rbs-viewport {
    height: 300px;
  }

  .rbs-arrow {
    width: 32px;
    height: 32px;
  }

  .rbs-open-indicator {
    width: 33px;
    height: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rbs-slide,
  .rbs-image,
  .rbs-progress-fill {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
