/* 導覽列搜尋：放大鏡按鈕與搜尋面板（resources/views/components/site-search.blade.php） */
.nav_search_btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #212529;
  cursor: pointer;
}
.nav_search_btn:hover,
.nav_search_btn[aria-expanded="true"] {
  background: rgba(39, 155, 204, .12);
  color: var(--wk-primary, #279BCC);
}
html.site_search_open,
html.site_search_open body {
  overflow: hidden;
}

.site_search[hidden] { display: none; }
.site_search_backdrop {
  position: fixed;
  top: var(--site-search-top, 80px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1028;
  background: rgba(0, 0, 0, .35);
}
.site_search_panel {
  position: fixed;
  top: var(--site-search-top, 80px);
  left: 0;
  right: 0;
  z-index: 1029;
  max-height: calc(100vh - var(--site-search-top, 80px));
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: #333;
}
.site_search_inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 22px;
}
.site_search_form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site_search_back {
  display: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
}
.site_search_box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 2px solid var(--wk-primary, #279BCC);
  border-radius: 999px;
  background: #fff;
  color: #8a8a8a;
}
.site_search_box input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font-size: 16px;
}
.site_search_submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--wk-primary, #279BCC);
  color: #fff;
  font-weight: 700;
}
.site_search_section { margin-top: 18px; }
.site_search_label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--wk-title, #1E6482);
  font-size: .95rem;
  font-weight: 700;
}
.site_search_clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: .85rem;
  font-weight: 400;
}
.site_search_clear:hover { color: #dc3545; }
.site_search_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site_search_chip {
  padding: 5px 14px;
  border-radius: 999px;
  background: #EEF7FB;
  color: var(--wk-title, #1E6482);
  font-size: .95rem;
  text-decoration: none;
}
.site_search_chip:hover {
  background: var(--wk-primary, #279BCC);
  color: #fff;
}
.site_search_recent_list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site_search_recent_list li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.site_search_recent_link {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 2px;
  overflow: hidden;
  color: #333;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.site_search_recent_link:hover { color: var(--wk-primary, #279BCC); }
.site_search_recent_del {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9a9a;
  font-size: 20px;
  line-height: 1;
}
.site_search_recent_del:hover { background: #f4f4f4; color: #dc3545; }

/* 手機：全螢幕搜尋頁，左上角返回 */
@media (max-width: 767px) {
  .nav_search_btn { width: 36px; height: 36px; margin: 0 2px 0 0; }
  .site_search_backdrop { display: none; }
  /* 蓋過 AI 客服按鈕（9999）與節慶特效（最高 10050） */
  .site_search_panel {
    top: 0;
    bottom: 0;
    z-index: 10060;
    max-height: none;
    box-shadow: none;
  }
  .site_search_inner { padding: 10px 12px 24px; }
  .site_search_form {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: -10px -12px 0;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
  }
  .site_search_back { display: flex; align-items: center; justify-content: center; }
  .site_search_box { padding: 0 12px; }
  .site_search_box input { height: 36px; }
  .site_search_submit { height: 40px; padding: 0 16px; }
}
