/* =========================================================
   search.css
   검색 페이지 전용 스타일 (모바일 + .is-web 오버라이드)
   ========================================================= */

/* ====== 공통 ====== */
.w100 { width: 100%; }
.w100 img { width: 100%; margin-bottom: 0.625rem; }

/* ====== 검색 폼 (모바일 전용 렌더링) ====== */
.search-form {
  margin: 0.9375rem 1.125rem 0 1.125rem;
}

.search-box {
  display: flex;
  justify-content: left;
  border-bottom: 2px solid #ff4b4b;
  padding-bottom: 0.5rem;
}

.search-box__icon img {
  width: 1.1875rem;
  padding-top: 0.5rem;
  padding-right: 0.6875rem;
}

.search-box__input {
  width: 100%;
}

.search-box__input input[type="text"] {
  width: 100%;
  height: 2.125rem;
  -webkit-appearance: none;
  color: #000;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  background: transparent;
}

.search-box__input input:focus {
  outline: none;
}

/* ====== 자동완성 드롭다운 ====== */
.search-dropdown {
  position: relative;
}

.search-dropdown__content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  width: 100%;
  box-sizing: border-box;
  max-height: 40vh;
  overflow-y: scroll;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
  border: 2px solid #ff4b4b;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  margin-top: -0.3vh;
  color: #999;
  font-size: medium;
  text-align: left;
}

.search-dropdown__content a {
  color: black;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
}

.search-dropdown__content a:hover {
  background-color: #f1f1f1;
}

.search-dropdown__content.show {
  display: block;
}

.search-dropdown__content mark {
  background-color: unset !important;
  color: #ff4b4b !important;
}

/* ====== 검색 홈: 헤딩 ====== */
.search-home__heading {
  padding: 0 1.25rem;
  margin-top: 1.625rem;
  text-align: left;
}

.search-home__heading-text {
  font-size: 1.3125rem;
  font-weight: 700;
  color: #000;
  line-height: 1.875rem;
}

/* ====== 검색 홈: 최근 검색어 ====== */
.search-home__section {
  padding: 0 1.25rem;
  text-align: left;
}

.search-home__section--recent {
  margin-top: 2.25rem;
}

.search-home__section--recommend {
  margin-top: 2.25rem;
}

.search-home__recommend-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  max-height: 5rem;
  overflow: hidden;
}

.search-home__section--hot {
  margin-top: 2.25rem;
}

.search-home__section--banner {
  margin-top: 2.25rem;
  text-align: left;
  padding: 0;
}

.search-home__section-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #000;
  display: flex;
}

.search-home__delete-btn {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.6875rem;
  border: none;
  background-color: #fff;
  cursor: pointer;
}

.search-home__recent-swiper {
  margin-top: 0.6875rem;
}

/* ====== 검색 홈: 추천/최근 검색어 칩 ====== */
/* RecentKeywords::render(), RecommendedKeywords::render()가 .keyword_recommend 클래스로 출력 */
.keyword_recommend {
  width: 5.125rem;
  font-size: 0.8125rem;
  background-color: #f1f1f1;
  border-radius: 1.1875rem;
  padding: 0.5rem 0.6875rem;
  margin: 0.25rem 0.625rem 0.25rem 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.keyword_recommend a {
  color: #333;
  text-decoration: none;
}

/* ====== 검색 홈: 인기 검색어 ====== */
.search-home__hot-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.search-home__hot-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #000;
}

.search-home__hot-title em {
  color: #ff4b4b;
  font-style: normal;
}

.search-home__hot-date {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 300;
  color: #ccc;
  padding-top: 0.3125rem;
  padding-bottom: 0.25rem;
}

.keywords li {
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  color: #333;
  padding-bottom: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular_rank {
  display: inline-block;
  width: 0.9375rem;
  margin-right: 1.1875rem;
  vertical-align: -0.0625rem;
  font-size: 0.9375rem;
  color: #777;
  font-weight: 700;
  text-align: right;
  padding: 0.375rem 0;
}

.popular_img {
  width: 3.0625rem;
  margin-right: 0.5rem;
  margin-left: -0.125rem;
  vertical-align: -1.25rem;
  border-radius: 0.375rem;
}

.popular_title {
  color: #333;
  font-weight: 700;
  width: 65%;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-right: auto;
}

.popular_right {
  width: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== 추천 티켓 ("이런 티켓은 어떠세요?") ====== */
.search-reco {
  position: relative;
  padding: 1.5rem 0;
}

.search-reco__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  text-align: left;
  padding: 0.6875rem;
}

.search-reco .swiper {
  width: 98%;
  height: 100%;
  padding-left: 2%;
}

/* ====== 웹 빈 검색어 메시지 ====== */
.search-empty-msg {
  text-align: center;
  padding: 9.375rem 0;
  font-size: 1.25rem;
  color: #999;
  font-weight: 400;
  line-height: 180%;
}

/* ====== .is-web 오버라이드 ====== */

/* 웹: GNB-검색결과 간격 축소 */
.is-web .w100 {
  padding-bottom: 0;
}
.is-web .w100 img {
  margin: 0 0 0.5rem ;
}
.is-web .content-list {
  padding-top: 1rem !important;
}

.is-web .search-reco {
  max-width: 68.75rem;
  margin: 1.25rem auto 0;
  padding: 1.25rem 0 2rem;
}

.is-web .search-reco__title {
  font-size: 1.125rem;
  padding: 0.75rem 0 0.75rem;
}

.is-web .search-reco .swiper {
  width: 100%;
  padding-left: 0;
}

/* 웹: 추천 Swiper 좌우 화살표 (메인 rolling_wrap 패턴) */
.search-reco .swiper-button-prev,
.search-reco .swiper-button-next {
  display: none;
}

.is-web .search-reco .swiper-button-prev,
.is-web .search-reco .swiper-button-next {
  display: flex;
  position: absolute;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #555;
  transform: translateY(-50%);
  z-index: 10;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.is-web .search-reco .swiper-button-prev { left: -3.5rem; }
.is-web .search-reco .swiper-button-next { right: -3.5rem; }

.is-web .search-reco .swiper-button-prev::after,
.is-web .search-reco .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.is-web .search-reco .swiper-button-prev:hover,
.is-web .search-reco .swiper-button-next:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  color: #222;
}
