/* Mobile first – keep the original styles untouched */
@media (max-width: 767.98px) {
  .mobile-search-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: inherit;
    padding: 0.4rem;
    cursor: pointer;
  }

  .mobile-search-bar {
    display: none;                /* hidden by default */
  }
  .mobile-search-bar.open {
    display: block;               /* shown after icon click */
    position: absolute;
    top: 100%;
    right: 0;
    width: 100vw;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  .mobile-search-bar.open input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .mobile-search-toggle {
    display: none !important;
  }
  .mobile-search-bar {
    display: block !important;   /* always visible on desktop */
  }
}

@media (max-width: 767.98px) {
  .mobile-search-bar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100vw;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }
  .mobile-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
  }

}

@media (min-width: 1024px) {
  .navbar-serach {
    display: none;
  }
}
