/* RTL adjustments for Arabic site */
body {
  direction: rtl;
  text-align: right;
}
/* Ensure navbar aligns correctly in RTL */
.navbar-nav {
  margin-right: auto !important;
}
/* Neutralize bootstrap ml-auto used in template */
.ml-auto { margin-left: 0 !important; }
.mr-auto { margin-right: auto !important; }
/* Align search input placeholder to right */
.form-control::placeholder { text-align: right; }
/* Footer small tweaks */
.footer_text, .copyright_text { text-align: right; }

/* Force carousel arrows to left side for RTL layout (override Bootstrap) */
#main_slider .carousel-control-prev,
#main_slider .carousel-control-next {
  position: absolute !important;
  right: auto !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.45) !important;
  border-radius: 50% !important;
  z-index: 9999 !important;
  opacity: 0.95 !important;
  border: none !important;
}

/* place "next" slightly to the right of prev so both are visible on left edge */
#main_slider .carousel-control-next { left: 64px !important; }

#main_slider .carousel-control-prev i,
#main_slider .carousel-control-next i {
  color: #fff !important;
  font-size: 18px !important;
}

/* Limit navbar logo size to prevent layout break when replacing logo */
.navbar-brand img,
.navbar-brand img[alt] {
  max-height: 60px !important;
  width: auto !important;
  display: block !important;
}

@media (max-width: 768px) {
  .navbar-brand img { max-height: 42px !important; }
}

/* lift the logo slightly so it overlaps the navbar line */
.navbar-default .navbar-brand img {
  margin-top: -8px !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  .navbar-default .navbar-brand img { margin-top: -4px !important; transform: none !important; }
}

/* Gallery thumbnails */
.gallery-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}
.hidden-photos .col-md-4 { display: none; }
.hidden-photos .col-md-4.d-none { display: none; }
.hidden-photos .col-md-4:not(.d-none) { display: block; }
.show-more-row { margin-top: 15px; }
