/* Global live search */
.global-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  border: 1px solid #eee4e3;
  background: #f8f5f4;
  color: #8a8085;
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 0.88rem "Hind Siliguri", sans-serif;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.global-search-trigger:hover {
  background: #fff;
  border-color: #f2c4cc;
  color: #b9001c;
  box-shadow: 0 8px 20px rgba(230, 0, 35, 0.1);
}

.global-search-trigger svg,
.live-search-head label svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav nav {
  margin-left: 0;
}

.live-search-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 78px;
  z-index: 21;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #f0e7e5;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 60px rgba(29, 13, 14, 0.16);
  max-height: calc(100dvh - 78px);
  overflow: auto;
  animation: search-drop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes search-drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.live-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid #f0eae8;
}

.live-search-head label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f3f2;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  color: #8a8181;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.live-search-head label:focus-within {
  background: #fff;
  border-color: #e60023;
  color: #e60023;
  box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.1);
}

.live-search-head input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
  color: #14141b;
  font: 600 1rem "Hind Siliguri", sans-serif;
}

.live-search-head button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff0f2;
  color: #c50020;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-search-head button:hover {
  background: #e60023;
  color: #fff;
  transform: rotate(90deg);
}

.live-search-results {
  padding: 20px 0 30px;
}

.live-search-results > p {
  color: #756d72;
  margin: 4px 0;
}

.live-search-results h3 {
  margin: 6px 0 14px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.live-search-results .card-grid {
  margin-bottom: 22px;
}

.live-search-results .restaurant-card {
  cursor: pointer;
}

@media (max-width: 800px) {
  .global-search-trigger {
    margin-left: auto;
    min-width: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .global-search-trigger span {
    display: none;
  }

  .live-search-panel {
    top: 68px;
    max-height: calc(100dvh - 68px);
    border-radius: 0 0 22px 22px;
  }

  .live-search-results .restaurants {
    grid-template-columns: repeat(2, 1fr);
  }
}