/* =========================================================
   NAV SEARCH – CONTAINER
========================================================= */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

/* =========================================================
   SEARCH TOGGLE (ICON)
========================================================= */
.search-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  color: inherit;
}

/* =========================================================
   SEARCH PANEL (HIDDEN BY DEFAULT)
========================================================= */
.search-panel {
  position: fixed;
  top: var(--nav-height, 64px);
  left: 5%;
  right: 5%;

  width: auto;
  max-width: none;

  padding: 14px 16px;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.14);

  display: none;
  opacity: 0;
  transform: translateY(-6px);

  transition:
    opacity .18s ease,
    transform .18s ease;

  z-index: 9998;
}
/* =========================================================
   FORCE FULL-WIDTH SEARCH INPUT (under sticky nav)
========================================================= */
#searchPanel {
  display: block;              /* контейнерът си е block */
}

#searchPanel input {
  display: block;
  width: 100% !important;      /* чук, заради други CSS-и */
  max-width: 100% !important;
  box-sizing: border-box;

  padding: 14px 16px;
  font-size: 16px;

  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
}

/* по желание – лек фокус */
#searchPanel input:focus {
  outline: none;
  border-color: var(--blue);
}




/* =========================================================
   SEARCH PANEL – OPEN STATE
========================================================= */
.search-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   SEARCH INPUT
========================================================= */
.search-input {
  width: 100%;

  font-size: 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
}
@media (max-width: 768px) {
  .search-panel {
    right: auto;
    left: 0;
    width: min(92vw, 420px);
  }
}

