@font-face {
  font-family: 'Gloock';
  src: url('../../assets/lib/fonts/Gloock Regular.svg') format('svg'),
    url('../../assets/lib/fonts/Gloock Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.provider-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.provider-nav-item {
  margin-right: 20px;
}

.provider-nav-link {
  color: var(--bs-brown);
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  line-height: 160%;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.provider-nav-link:hover,
.provider-nav-link.active {
  border-bottom: 4px solid var(--bs-brown);
}

.providers-hero {
  min-height: 800px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  overflow: visible;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.providers-hero h1 {
  color: #745356;
  font-family: 'Gloock', serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 30px;
}

.search-bar-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.search-bar {
  display: flex;
  width: 676px;
  height: 54px;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  padding: 4px 4px 3px 4px;
}

.search-type-dropdown {
  position: relative;
}

.search-type {
  background-color: #f4e7e7;
  color: var(--bs-brown);
  border-radius: 50px;
  padding: 0 28px 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 160%;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 100%;
}

.healthcare-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.search-type:hover {
  background-color: #e4caca;
}

.search-type:active {
  background-color: #d8b5b5;
}

.search-type::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' fill='%23745356' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.search-input-container {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  border: none;
  padding: 0 40px 0 12px;
  outline: none;
  font-size: 20px;
  height: 100%;
  line-height: 160%;
  border-radius: 50px;
}

.search-icon {
  position: absolute;
  right: 16px;
  color: var(--bs-brown);
}

.providers-filters {
  padding: 40px 0;
}

.providers-filters h2 {
  color: #745356;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 24px;
}

.appointment-type {
  background-color: #f4e7e7;
  border-radius: 50px;
  padding: 4px;
  margin-right: 4px;
  margin-left: 4px;
}

/* .gender-type {
  background-color: #f4e7e7;
  border-radius: 50px;
  padding: 4px;
  margin-right: 4px;
  margin-left: 4px;
} */

.btn-filter {
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 20px;
  color: var(--bs-brown);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-filter svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1;
}

.btn-filter.active {
  background-color: #ffffff;
  color: var(--bs-brown);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-filter:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.3);
}

.filter-dropdown {
  border-bottom: 1px solid #e0e0e0;
}

.filter-btn {
  width: 100%;
  text-align: left;
  background-color: transparent;
  border: none;
  padding: 10px 0;
  font-size: 20px;
  color: var(--bs-brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn svg {
  transition: transform 0.3s ease;
}

.filter-dropdown .filter-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 16px;
  color: var(--bs-brown);
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  display: block;
  cursor: pointer;
}

.dropdown-item:hover {
  font-weight: 600;
}

.provider-signup {
  background-color: #835d61;
  padding: 40px 0;
  margin-top: 40px;
}

.provider-signup .btn-light {
  background-color: #ffffff;
  color: #745356;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.provider-signup .btn-outline-light {
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.provider-signup .btn-light:hover {
  background-color: #f4e7e7;
}

.provider-signup .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.separator {
  margin: 0 5px;
  color: var(--bs-brown);
}

@media (max-width: 1440px) {
  .providers-hero {
    min-height: 600px;
  }
}

@media (max-width: 992px) {
  .providers-hero {
    min-height: 500px;
  }

  .providers-filters h2 {
    font-size: 24px;
  }

  .provider-nav-list {
    justify-content: center;
  }

  .search-bar {
    width: 100%;
    max-width: 676px;
  }
}

@media (max-width: 768px) {
  .providers-filters>.container>h2 {
    display: none;
    /* Hide title on mobile */
  }

  .appointment-type-mobile,
  .gender-type-mobile {
    background-color: #f4e7e7;
    border-radius: 16px;
    align-items: center;
    height: 100%;
    width: 100%;
    display: grid;
    place-items: stretch;
    overflow: hidden;
  }

  .appointment-type-mobile {
    grid-template-columns: 1fr 1fr;
  }

  /* .gender-type-mobile {
    grid-template-columns: 1fr 1fr 1fr;
  } */

  .appointment-type-mobile .separator {
    display: none;
    /* Hide separator */
  }

  .appointment-type-mobile .btn-filter,
  .gender-type-mobile .btn-filter {
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 0px;
    gap: 4px;
    border: none;
    background-color: transparent;
    box-shadow: none;
    width: 100%;
    height: 100%;
  }

  .appointment-type-mobile .btn-filter.active,
  .gender-type-mobile .btn-filter.active {
    background-color: #745356;
    color: white;
  }

  .provider-nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .provider-nav-item {
    margin: 0 10px 10px;
  }

  .providers-hero {
    min-height: 400px;
  }

  .providers-hero h1 {
    font-size: 32px;
  }

  .search-bar {
    width: 90%;
    height: auto;
    max-width: 576px;
  }

  .search-type {
    padding: 12px 28px 12px 18px;
  }

  .search-input {
    padding: 12px 40px 12px 12px;
  }

  .appointment-type {
    justify-content: center;
  }

  .btn-filter {
    padding: 8px 16px;
    font-size: 20px;
  }

  .provider-dropdown-menu {
    width: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .search-type-dropdown.active .provider-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  /* Mobile Filter Select Styles */
  .mobile-filter-label {
    display: block;
    font-size: 14px;
    /* Adjust as needed */
    font-weight: 600;
    /* Adjust as needed */
    color: var(--bs-brown);
    margin-bottom: 8px;
  }

  .mobile-filter-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #fef9f9;
    /* Light background */
    border: 1px solid #E0BDBD;
    /* Border color */
    border-radius: 50px;
    /* Fully rounded corners */
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .mobile-filter-select:hover {
    background-color: #f4e7e7;
    /* Slightly darker on hover */
  }

  .mobile-filter-select span {
    font-size: 16px;
    /* Adjust as needed */
    color: #A08C8E;
    /* Placeholder text color */
  }

  /* Style for when a value is selected (you'll need JS to add this class) */
  .mobile-filter-select.has-value span {
    color: var(--bs-brown);
    /* Regular text color */
    font-weight: 500;
  }

  .mobile-filter-select svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .mobile-filter-select.dropdown-toggle::after {
    display: none;
  }

  .mobile-filter-select[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .mobile-dropdown-menu {
    display: none;
    position: absolute;
    width: auto !important;
    min-width: auto !important;
    z-index: 1001;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid #E0BDBD;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-top: 4px;
  }

  .mobile-dropdown-menu.show {
    display: block;
  }

  .mobile-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 15px;
    color: var(--bs-brown);
  }

  .mobile-dropdown-menu .dropdown-item:hover,
  .mobile-dropdown-menu .dropdown-item:focus {
    background-color: #f4e7e7;
    color: var(--bs-brown);
  }

  .btn.mobile-search-button {
    background-color: var(--bs-brown);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
  }

  .btn.mobile-search-button:hover {
    background-color: #835d61;
    color: #ffffff;
  }

  .btn.mobile-search-button:active {
    background-color: #65484b;
    color: #ffffff;
  }
}

@media (max-width: 576px) {
  .providers-hero {
    min-height: 340px;
  }

  .providers-hero h1 {
    font-size: 28px;
  }

  .search-bar {
    width: 100%;
  }

  .search-type {
    font-size: 13px;
    padding-right: 24px;
  }

  .search-type::after {
    right: 10px;
  }

  .appointment-type {
    flex-wrap: wrap;
    justify-content: center;
  }

  .providers-filters h2 {
    font-size: 22px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .search-bar {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 16px;
  }

  .search-type {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    justify-content: center;
  }

  .healthcare-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
  }

  .search-type::after {
    right: 30%;
  }

  .search-input-container {
    padding: 10px 0;
  }

  .provider-dropdown-menu {
    width: 90%;
    max-width: 300px;
    left: 5%;
    transform: translateX(0) translateY(-10px);
  }

  .search-type-dropdown.active .provider-dropdown-menu {
    transform: translateX(0) translateY(0);
  }
}

.provider-dropdown-menu {
  position: absolute;
  top: 115%;
  left: 0;
  width: 180px;
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 8px 8px 20px 0 rgba(146, 104, 108, 0.2);
  border: none;
  overflow: hidden;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

.search-type-dropdown.active .provider-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.provider-dropdown-item {
  padding: 10px 16px;
  font-size: 20px;
  color: var(--bs-brown);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  margin-bottom: 2px;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.provider-dropdown-item:last-child {
  margin-bottom: 0;
}

.provider-dropdown-item:hover {
  background-color: #f4e7e7;
  color: var(--bs-brown);
}

/* Add position relative to the dropdown wrapper */
.dropdown {
  position: relative;
}

.mobile-dropdown-menu {
  display: none;
  position: absolute;
  width: auto;
  /* Override potential 100% width */
  min-width: auto;
  /* Override potential min-width */
  z-index: 1001;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #E0BDBD;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin-top: 4px;
}

.mobile-dropdown-menu.show {
  display: block;
}

.mobile-dropdown-menu .dropdown-item {
  padding: 10px 16px;
  font-size: 15px;
  color: var(--bs-brown);
}

.mobile-dropdown-menu .dropdown-item:hover,
.mobile-dropdown-menu .dropdown-item:focus {
  background-color: #f4e7e7;
  color: var(--bs-brown);
}

.mobile-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1020;
  padding-top: 10px;
  padding-bottom: 0px;
}

.mobile-header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bs-brown);
  font-family: 'Geist', sans-serif;
  width: 100% !important;
}

.mobile-sos-button {
  background-color: #A98A8D !important;
  color: #ffffff !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  margin-bottom: 8px !important;
  position: absolute;
  right: 10px;
}

.mobile-sos-button:hover {
  background-color: #8d7073;
  color: #ffffff;
}