/* ============================================
   NORTHSTAR AGENCY - CLASSIC MINIMALIST STYLES
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Classic Elegant Color Palette */
  --primary-color: #1a1a1a;
  --primary-light: #333333;
  --secondary-color: #8b7355;
  --accent-color: #c9b896;
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --gray: #757575;
  --dark-gray: #424242;
  
  /* Subtle Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  
  /* Spacing - More breathing room */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography - Classic fonts */
  --font-primary: 'Playfair Display', serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Transitions - Subtle and smooth */
  --transition: 0.3s ease;
  
  /* Border */
  --border: 1px solid var(--medium-gray);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.8;
  color: var(--primary-color);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* RTL Support */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .footer-container {
  flex-direction: row-reverse;
}

body.rtl .slider-controls {
  flex-direction: row-reverse;
}

/* ============================================
   SMOKE EFFECT
   ============================================ */
.smoke-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  padding: 1.5rem 0;
}

/* Default navbar for all pages */
.navbar {
  background: var(--white);
  border-bottom: var(--border);
  box-shadow: var(--shadow-subtle);
}

/* Homepage navbar - transparent at top */
body.homepage .navbar {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

/* Homepage navbar when scrolled */
body.homepage .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  padding: 1rem 0;
  border-bottom: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  /* Ensure language dropdown also stays in the flow */
  .nav-links .lang-dropdown {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* For RTL languages - override any RTL flex behavior */
[dir="rtl"] .nav-links,
.rtl .nav-links {
  flex-direction: column !important;
}

@media (max-width: 768px) {
  [dir="rtl"] .nav-links,
  .rtl .nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 100px;
  width: 140px;
  opacity: 0.9;
  transition: all var(--transition);
}

/* Logo in transparent state - HOMEPAGE ONLY */
body.homepage .navbar:not(.scrolled) .logo {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 3rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 400;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
  letter-spacing: 0.5px;
}

/* Nav links in transparent state - HOMEPAGE ONLY */
body.homepage .navbar:not(.scrolled) .nav-links li a {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

/* Hover color in transparent state - HOMEPAGE ONLY */
body.homepage .navbar:not(.scrolled) .nav-links li a:hover {
  color: var(--accent-color);
}

.location-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.7;
}

.lang-btn {
  background: transparent;
  color: var(--primary-color);
  border: black;
  padding: 0.5rem 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px;
}

/* Language button in transparent state - HOMEPAGE ONLY */
body.homepage .navbar:not(.scrolled) .lang-btn {
  color: var(--white);
  border-color: black;
}

.lang-btn:hover {
  background: var(--white);
  color: black;
  border-color: black;
}

/* Hover in transparent state - HOMEPAGE ONLY */
body.homepage .navbar:not(.scrolled) .lang-btn:hover {
  background: var(--white);
  color: black;
  border-color: black;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition);
}

/* Mobile toggle in transparent state - HOMEPAGE ONLY */
body.homepage .navbar:not(.scrolled) .mobile-menu-toggle span {
  background-color: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter: grayscale(20%);
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 8px;
  color: var(--white);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--white);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.slider-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.slider-btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

.slider-dots {
  display: flex;
  gap: 1rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: var(--white);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.info-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.cards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.card {
  position: relative;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition);
  z-index: 3;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-8px);
}

.card:hover::after {
  transform: scaleX(1);
}

/* Card Image Section */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  transition: background 0.3s ease;
}

.card:hover .card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Card Content Section */
.card-content {
  padding: 2rem 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.card-icon {
  display: none; /* Hide the old emoji icons */
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: var(--primary-color);
  letter-spacing: 1px;
  transition: color var(--transition);
}

.card:hover h3 {
  color: var(--secondary-color);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .card {
    height: 350px;
  }
  
  .card-image-wrapper {
    height: 180px;
  }
  
  .card-content {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .card {
    height: 320px;
  }
  
  .card-image-wrapper {
    height: 160px;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
}
/* ============================================
   FOOTER – PREMIUM AGENCY STYLE
   ============================================ */

.footer {
  background: #f7f7f7;
  color: var(--primary-color);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
}

/* LEFT */

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  max-width: 240px;
  height: auto;
  opacity: 0.95;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 320px;
  font-weight: 300;
}

/* RIGHT */

.footer-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.footer-info h4,
.footer-socials h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  color: var(--gray);
  line-height: 1.8;
}

.footer-info strong {
  font-weight: 500;
  color: var(--primary-color);
}

.footer-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-info a:hover {
  opacity: 1;
}

.location-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* SOCIALS */

.socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background: transparent;
}

.socials a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.socials img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.socials a:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* BOTTOM */

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-right {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-logo {
    max-width: 200px;
  }
}


/* ============================================
   MOBILE MENU STYLES
   ============================================ */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: right var(--transition);
    gap: 1.5rem;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  /* Override transparent styles when mobile menu is open */
  .nav-links.active li a {
    color: var(--primary-color);
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1000;
  }

  /* When mobile menu is open, ensure navbar has background */
  .nav-links.active ~ .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  /* Reset logo color when mobile menu is open - HOMEPAGE ONLY */
  body.homepage .nav-links.active ~ .navbar .logo {
    filter: none;
  }

  .hero {
    height: 85vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    letter-spacing: 4px;
    font-family: var(--font-serif);
  }

  .slider-controls {
    bottom: 2rem;
    gap: 1.5rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .cards-container {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    height: 80px;
    width: 120px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .hero-cta {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
  }

  .card-content {
    padding: 2.5rem 1.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .info-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* For RTL layout */
.rtl .scroll-progress {
  left: auto;
  right: 0;
}

/* ============================================
   ACCESSIBILITY & PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus,
button:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

::selection {
  background: var(--secondary-color);
  color: var(--white);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .hero,
  .slider-controls,
  .footer-socials,
  .mobile-menu-toggle {
    display: none;
  }

  body {
    color: #000;
  }

  .card {
    break-inside: avoid;
    border: 1px solid #000;
  }
}

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #25d366;
  color: white;
  padding: 12px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: 0.3s;
  z-index: 9999;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
}

.wa-icon {
  height: 22px;
  width: 22px;
}

/* RTL adjustment for WhatsApp button */
.rtl .whatsapp-btn {
  left: auto;
  right: 25px;
}

/* FORCE transparent navbar on homepage - LAST RESORT */
body.homepage .navbar:not(.scrolled) {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.homepage .navbar:not(.scrolled) .logo {
  filter: brightness(0) invert(1) !important;
}

body.homepage .navbar:not(.scrolled) .nav-links li a {
  color: white !important;
}

body.homepage .navbar:not(.scrolled) .lang-btn {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

body.homepage .navbar:not(.scrolled) .mobile-menu-toggle span {
  background-color: white !important;
}
/* WhatsApp Widget */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.wa-icon {
  width: 26px;
  height: 26px;
}

/* Chat box */
.wa-chat {
  display: none;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  overflow: hidden;
}

.wa-chat.active {
  display: block;
}

.wa-header {
  background: #075e54;
  color: #fff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.wa-messages {
  padding: 14px;
  background: #ece5dd;
}

.wa-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  font-family: var(--font-serif);
}

.wa-message.bot {
  background: #fff;
}

.wa-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #ddd;
}

.wa-input input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.wa-input button {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  cursor: pointer;
}
/* ============================================
   MOBILE VERSION
   ============================================ */
@media (max-width: 768px) {
  .wa-chat {
    width: calc(100vw - 40px); /* Full width minus margins */
    max-width: 360px;
    bottom: 85px;
    left: 20px;
  }
  
  .rtl .wa-chat {
    left: auto;
    right: 20px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .wa-chat {
    width: 270px; /* Narrower margins */
    max-width: none;
    bottom: 80px;
    left: 15px;
    right: 15px;
  }
  
  .wa-header {
    padding: 12px;
  }
  
  .wa-messages {
    padding: 12px;
    min-height: 80px;
  }
  
  .wa-message {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .wa-input {
    padding: 8px;
    gap: 6px;
  }
  
  .wa-input input {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .wa-input button {
    padding: 8px 12px;
  }
  
  .rtl .wa-chat {
    left: 15px;
    right: 15px;
  }
}

/* Very small screens - Full width */
@media (max-width: 380px) {
  .wa-chat {
    width: calc(100vw - 20px);
    left: 10px;
    right: 10px;
    bottom: 75px;
  }
  
  .rtl .wa-chat {
    left: 10px;
    right: 10px;
  }
}
/* ============================================
   RTL (Right-to-Left) SUPPORT FOR ARABIC
   Add this to your styles.css file
   ============================================ */

/* Base RTL Styles */
.rtl {
  direction: rtl;
  text-align: right;
}

/* Navbar RTL */
.rtl .navbar {
  direction: rtl;
}

.rtl .nav-links {
  flex-direction: row-reverse;
}

.rtl .nav-links a {
  margin-left: 2rem;
  margin-right: 0;
}

.rtl .language-switcher {
  margin-right: auto;
  margin-left: 0;
}

/* Hero Section RTL */
.rtl .hero-content {
  text-align: right;
}

.rtl .hero-title,
.rtl .hero-subtitle {
  direction: rtl;
}

/* Cards RTL */
.rtl .cards-container {
  direction: rtl;
}

.rtl .card-content {
  text-align: right;
}

/* Properties Grid RTL */
.rtl .properties-grid {
  direction: rtl;
}

.rtl .property-card {
  text-align: right;
}

.rtl .property-meta {
  direction: rtl;
}

.rtl .property-meta span {
  margin-left: 1rem;
  margin-right: 0;
}

.rtl .property-meta span:first-child {
  margin-left: 0;
}

/* Details Modal RTL */
.rtl .details-content {
  text-align: right;
  direction: rtl;
}

.rtl .details-grid {
  direction: rtl;
}

.rtl .details-box {
  text-align: right;
}

/* Carousel Buttons RTL - Flip positions */
.rtl .carousel-btn.prev {
  right: auto;
  left: 20px;
}

.rtl .carousel-btn.next {
  left: auto;
  right: 20px;
}

/* Form Elements RTL */
.rtl .form-group {
  text-align: right;
}

.rtl input,
.rtl textarea,
.rtl select {
  text-align: right;
  direction: rtl;
}

.rtl .form-group label {
  text-align: right;
}

/* Footer RTL */
.rtl .footer {
  direction: rtl;
  text-align: right;
}

.rtl .footer-content {
  direction: rtl;
}

.rtl .footer-section {
  text-align: right;
}

.rtl .social-links {
  direction: rtl;
}

/* Buttons RTL */
.rtl .btn,
.rtl .cta-button {
  direction: rtl;
}

/* Arrow Icons RTL - Flip direction */
.rtl .read-more-btn::after,
.rtl .view-property-btn::after {
  transform: scaleX(-1);
}

/* Lists RTL */
.rtl ul,
.rtl ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

/* Breadcrumbs RTL */
.rtl .breadcrumb {
  direction: rtl;
}

/* Pagination RTL */
.rtl .pagination {
  direction: rtl;
}

/* Table RTL */
.rtl table {
  direction: rtl;
}

.rtl th,
.rtl td {
  text-align: right;
}

/* Icon Positioning RTL */
.rtl .icon-left {
  margin-right: 0;
  margin-left: 0.5rem;
}

.rtl .icon-right {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* Flex Direction RTL */
.rtl .flex-row {
  flex-direction: row-reverse;
}

/* Language Switcher */
.rtl #langSwitcher {
  direction: ltr; /* Keep flags in correct order */
}

/* WhatsApp Widget RTL */
.rtl .wa-widget {
  left: 20px;
  right: auto;
}

.rtl .wa-chat {
  direction: rtl;
  text-align: right;
}

.rtl .wa-messages {
  direction: rtl;
}

.rtl .wa-message {
  text-align: right;
}

/* Mobile Menu RTL */
@media (max-width: 768px) {
  .rtl .nav-links {
    text-align: right;
  }
  
  .rtl .nav-links a {
    margin-left: 0;
    margin-right: 0;
  }
  
  .rtl .mobile-menu-toggle {
    left: 1rem;
    right: auto;
  }
}

/* Slider Controls RTL */
.rtl .slider-controls {
  direction: ltr; /* Keep navigation controls in original position */
}

/* Price Display RTL */
.rtl .property-price::before {
  content: '£';
  margin-left: 0.25rem;
  margin-right: 0;
}

/* Ensure Numbers Display Correctly */
.rtl .price,
.rtl .number {
  direction: ltr;
  display: inline-block;
}

/* Status Badges RTL */
.rtl .status-badge {
  text-align: center;
}

/* Modal Close Button RTL */
.rtl .modal-close {
  left: 20px;
  right: auto;
}

/* Section Headers RTL */
.rtl .section-header {
  text-align: right;
}

.rtl .section-header h2 {
  text-align: right;
}

/* Contact Info RTL */
.rtl .contact-info {
  text-align: right;
}

.rtl .contact-item {
  text-align: right;
}

/* Legal Cards RTL */
.rtl .legal-card {
  text-align: right;
}

.rtl .legal-card ul {
  list-style-position: inside;
}

/* Architecture Projects RTL */
.rtl .projects-grid {
  direction: rtl;
}

.rtl .project-card {
  text-align: right;
}

/* Article Cards RTL */
.rtl .articles-grid {
  direction: rtl;
}

.rtl .article-card {
  text-align: right;
}

/* Search and Filter RTL */
.rtl .search-bar {
  direction: rtl;
}

.rtl .filter-group {
  text-align: right;
}

/* Tags RTL */
.rtl .tags {
  direction: rtl;
}

.rtl .tag {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* Tooltips RTL */
.rtl .tooltip {
  direction: rtl;
  text-align: right;
}

/* Loading States RTL */
.rtl .loading-message,
.rtl .error-message,
.rtl .no-results {
  text-align: center;
  direction: rtl;
}

/* Animations - Respect RTL */
.rtl [data-aos="fade-right"] {
  transform: translateX(50px);
}

.rtl [data-aos="fade-left"] {
  transform: translateX(-50px);
}

/* Specific Font Adjustments for Arabic */
.rtl body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arabic Typesetting', 'Traditional Arabic';
}

.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
  font-weight: 600; /* Arabic text often looks better with medium weight */
}

/* Fine-tune spacing for Arabic text */
.rtl p {
  line-height: 1.8; /* Slightly more line height for readability */
}

/* Ensure text doesn't get cut off */
.rtl * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =========================
   LANGUAGE DROPDOWN
   ========================= */

.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid black;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
}

.lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.3rem 0;
  min-width: 120px;
  display: none;
  z-index: 1000;
}

.lang-menu li {
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}

.lang-menu li:hover {
  background: var(--light-gray);
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-menu li.active {
  font-weight: 600;
  background: var(--light-gray);
}

