/* Branches Hero Section */
.branches-hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  height: 70vh;
  min-height: 35rem;
  display: flex;
  align-items: center;
  background-color: #010101;
}

.branches-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

.branches-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.branches-hero__content {
  width: 100%;
  max-width: 50rem;
  text-align: center;
}

.branches-hero__title {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 2rem;
  text-align: center;
}

.branches-hero__filter {
  position: relative;
  width: auto;
  min-width: 20rem;
  max-width: 25rem;
  margin: 0 auto;
}

.branches-hero__search-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.branches-hero__search-wrapper:hover,
.branches-hero__search-wrapper:focus-within {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.branches-hero__search-icon {
  position: absolute;
  right: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.branches-hero__search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.25rem;
  font-size: 1.125rem;
  color: white;
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  border: none;
  outline: none;
  box-shadow: none;
  text-align: right;
}

.branches-hero__search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.branches-hero__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin-top: 0.5rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  max-height: 20rem;
  overflow-y: auto;
  display: none;
  border: 1px solid #e9ecef;
}

.branches-hero__dropdown-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-align: right;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
}

.branches-hero__dropdown-item:last-child {
  border-bottom: none;
}

.branches-hero__dropdown-item:hover {
  background-color: #f8f9fa;
  color: #010101;
  padding-right: 2rem;
}

.branches-hero__dropdown-item[data-value="all"] {
  font-weight: 600;
  color: #010101;
}

/* RTL Support for LTR elements */
html[dir="ltr"] .branches-hero__search-icon {
  right: auto;
  left: 1.25rem;
}

html[dir="ltr"] .branches-hero__search-input {
  padding: 1rem 1.25rem 1rem 3.5rem;
  text-align: left;
}

html[dir="ltr"] .branches-hero__dropdown-item {
  text-align: left;
}

html[dir="ltr"] .branches-hero__dropdown-item:hover {
  padding-right: 1.5rem;
  padding-left: 2rem;
}

/* Responsive Design */
@media (max-width: 80rem) {
  .branches-hero {
    height: 70vh;
  }
}

@media (max-width: 64rem) {
  .branches-hero {
    height: 70vh;
  }
  
  .branches-hero__title {
    font-size: 2.5rem;
  }
  
  .branches-hero__filter {
    min-width: 18rem;
    max-width: 22rem;
  }
}

@media (max-width: 48rem) {
  .branches-hero {
    height: 60vh;
    min-height: 25rem;
  }

  .branches-hero__inner {
    padding: 1.5rem 1rem;
  }

  .branches-hero__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .branches-hero__filter {
    width: 100%;
    min-width: auto;
    max-width: 100%;
  }
  
  .branches-hero__search-input {
    padding: 0.875rem 3rem 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .branches-hero__dropdown {
    max-height: 15rem;
  }
  
  .branches-hero__dropdown-item {
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 36rem) {
  .branches-hero {
    height: 50vh;
    min-height: 20rem;
  }
  
  .branches-hero__title {
    font-size: 1.75rem;
  }
  
  .branches-hero__search-input {
    font-size: 0.9375rem;
  }
}
