/* ==========================================================================
   SHABAB (الشباب) - Global Design System & Responsive Device Frame
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #000000;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Responsive Device Frame (Mobile & Tablet/Desktop Fluid Container) */
.device-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 956px;
  background: #FFFFFF;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: max-width 0.3s ease, border-radius 0.3s ease;
}

@media (min-width: 768px) {
  .device-viewport {
    max-width: 100%;
    height: 100vh;
    max-height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* Shared Header Frame 2 (Dynamic Responsive Header) */
.figma-header-frame {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 28px 20px 12px 20px;
  position: absolute;
  width: 100%;
  height: 88px;
  left: 0px;
  top: 0px;
  background: #65501E;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .figma-header-frame {
    padding: 16px clamp(32px, 5vw, 80px);
    height: 84px;
  }
  .figma-header-logo {
    max-width: 260px;
    height: 46px;
  }
  .logo-emblem-mini-img {
    width: clamp(160px, 16vw, 200px);
    height: 46px;
  }
  .figma-lang-frame {
    width: 96px;
    height: 44px;
    padding: 4px;
    border-radius: 8px;
  }
  .figma-lang-inner {
    gap: 4px;
  }
  .figma-lang-btn {
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
  }
}

.figma-header-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 220px;
  height: 50px;
  flex: none;
  cursor: pointer;
}

.logo-emblem-mini-img {
  width: clamp(140px, 38vw, 175px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Language Switcher Frame (Exact Match to Screenshot) */
.figma-lang-frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px;
  width: 86px;
  height: 42px;
  background: #FFFFFF;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.figma-lang-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 3px;
}

.figma-lang-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 100%;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 3.5vw, 14px);
  color: #000000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.figma-lang-btn.active,
.figma-lang-btn.active-en {
  background: #65501E;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(101, 80, 30, 0.3);
}

.figma-lang-btn.inactive,
.figma-lang-btn.inactive-ar {
  background: transparent;
  color: #000000;
  font-weight: 700;
}

/* Shared Footer Frame 43898 (Edge-to-Edge 100% Full Width) */
.figma-footer-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  gap: 10px;
  width: 100%;
  background: #65501E;
  flex-shrink: 0;
}

.footer-row-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  width: 100%;
  height: 42px;
}

.footer-logo-img {
  width: clamp(130px, 35vw, 160px);
  height: 42px;
  object-fit: contain;
}

.footer-countries-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 2.5vw, 12px);
  line-height: 18px;
  text-align: center;
  color: #FFFFFF;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.footer-row-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  width: 100%;
  height: 18px;
}

.footer-copyright,
.footer-links {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 2.5vw, 12px);
  line-height: 18px;
  text-align: center;
  color: #FFFFFF;
}

/* Shared Breadcrumbs System (Frame 125) */
.figma-frame-125 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.figma-frame-126,
.figma-frame-127,
.figma-frame-128 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
}

.breadcrumb-item {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 21px;
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.breadcrumb-item:hover {
  color: #65501E;
}

.breadcrumb-active {
  color: #65501E !important;
  font-weight: 600 !important;
}

.chevron-icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  color: rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  display: inline-block;
}

/* ─────────────────────────────────────────
   RTL (Arabic) Selective Direction Rules
───────────────────────────────────────── */

/* Elements that MUST ALWAYS stay LTR (Logos, Language Switcher, Phone, Media Gallery) */
.phone-number,
.shabab-text-element,
.figma-lang-frame,
.figma-lang-inner,
.logo-emblem-mini-img,
.footer-logo-img,
.detail-gallery-component,
.detail-main-banner-frame,
.detail-thumbs-row {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Working hours time range values stay LTR */
html[dir="rtl"] .hours-val {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

/* Breadcrumb chevron arrows flip in RTL */
html[dir="rtl"] .chevron-icon {
  transform: scaleX(-1);
}

/* Proper right text alignment for Arabic titles & content */
html[dir="rtl"] .figma-units-title,
html[dir="rtl"] .figma-units-desc,
html[dir="rtl"] .cities-heading,
html[dir="rtl"] .unit-name,
html[dir="rtl"] .detail-main-title,
html[dir="rtl"] .detail-main-desc,
html[dir="rtl"] .detail-section-heading {
  text-align: right;
}

