.footer-static-icon {
  width: 23px;
  height: auto;
}

.footer-animated-icon {
  width: 25px;
  height: auto;
}

.mobile-btm-menu {
  display: none;
  /* Hidden by default */
  overflow: hidden;
  background-color: #fff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* bottom: env(safe-area-inset-bottom, 0px); ✅ Key fix */
  width: 100%;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-btm-menu a {
  flex: 1;
  /* Makes the buttons equally spaced */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #6a6a6a;
  text-align: center;
  padding: 15px 5px 15px 5px;
  text-decoration: none;
  font-family: futura;
  font-size: 14px;
  margin-top: 5px;
  /* border: 1px solid #000; */
}

.mobile-btm-menu a i {
  font-size: 25px;
  /* Icon size */
  margin-bottom: 4px;
  /* Adjust spacing between icon and text */
  color: inherit;
  /* Inherit color from parent */
  transition: color 0.3s ease;
  /* Smooth color transition on hover */
}

.mobile-btm-menu a:hover {
  background: #f1f1f1;
  color: black;
}

.mobile-btm-menu a.active {
  background-color: #fff;
  color: #D2DF57;
  font-weight: 550;
}

.search-bar-footer-mobile {
  display: none;
}

/* Show the menu only on mobile devices */
@media (max-width: 768px) {
  .search-bar-footer-mobile {
    position: fixed !important;
    display: flex;
    bottom: 110px;
    /* Default position when menu is visible */
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 100;
    /* Added 'bottom' to the transition list for smoothness */
    transition: width 0.3s ease, bottom 0.3s ease;
    background-color: transparent;
  }

  /* When bottom menu is hidden → slide the search bar down to 20px */
  .mobile-btm-menu.hidden+.search-bar-footer-mobile {
    bottom: 20px;
  }

  /* Optional: If you want it to shrink when collapsed */
  .search-bar-footer-mobile.collapsed {
    width: 50px;
  }

  .search-bar-footer-mobile .input-wrap {
    position: relative;
    border: transparent;
    width: 100%;
  }

  #footer-form .input-wrap {
    background-color: transparent;
    border: none;
  }

  .search-bar-footer-mobile input {
    background-color: #222;
    height: 45px;
    color: white;
    border-radius: 30px;
    width: 100%;
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  }

  #footer-form .input-wrap input {
    padding: 0 0 0 30px;
    width: 100%;
  }

  .search-bar-footer-mobile input::placeholder {
    color: white;
    opacity: 1;
    font-size: 12px;
  }

  .search-bar-footer-mobile button {
    position: absolute;
    top: 50%;
    margin-top: 2px;
    left: 15px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
  }

  /* “Collapsed” state */
  .search-bar-footer-mobile.collapsed {
    width: 35px;
  }

  .search-bar-footer-mobile.collapsed input {
    width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  .search-bar-footer-mobile.collapsed button {
    right: 0;
    left: 0;
    margin: auto;
    width: 35px;
    height: 35px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 50%;
  }

  #footer-form .input-wrap button {
    border-radius: 30px;
    padding: 0px 0px;
    background-color: transparent !important;
  }

  .mobile-btm-menu {
    display: flex;
    /* Make it visible */
  }

  .home-video-player {
    display: none;
  }
}

@media (max-width: 550px) {
  .mobile-btm-menu a {
    padding: 5px 5px 5px 5px;
  }

  .mobile-btm-menu a i {
    font-size: 25px;
    /* Icon size */
    margin-bottom: 4px;
    /* Adjust spacing between icon and text */
    color: inherit;
    /* Inherit color from parent */
    transition: color 0.3s ease;
    /* Smooth color transition on hover */
    font-family: "DM Sans", sans-serif;
  }

  .mobile-btm-menu a span {
    font-size: 11px;
    /* Adjust font size for the label text */
    color: inherit;
    /* Inherit color from parent */
    transition: color 0.3s ease;
    /* Smooth color transition on hover */
    margin-top: -8px;
    font-family: "DM Sans", sans-serif;
  }

  .mobile-btm-menu a:hover {
    background: #f1f1f1;
    color: black;
    font-family: "DM Sans", sans-serif;
  }

  .mobile-btm-menu a.active {
    background-color: #fff;
    color: #40E0D0;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
  }

  .new-message-indicator {
    top: -15px !important;
    right: 4px !important;
  }
}

.messages-count-container {
  position: relative;
  margin: 0;
}

.new-message-indicator {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #ef4444;
  border-radius: 50%;
  color: white;
  top: -25px;
  right: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}