/* search.css */

.page-search {
  background-color: #ffffff;
}

.main-search {
  padding: 22px 0 100px;
}

.search-hero {
  position: relative;
  display: flex;
  flex-direction: column;
}

.search-breadcrumb {
  margin-bottom: 80px; 
  color: #363636;
  font-size: 16px;
  line-height: 24px;
}

.search-title {
  text-align: center;
  color: #000000;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 22px;
  line-height: 1.4;
}

.search-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1288px;
  width: 100%;
  margin: 0 auto 22px;
  height: 70px;
}

.search-input-box {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  border: 1px solid #979797;
  border-radius: 6px;
  margin-right: 44px;
  padding: 0 20px;
  background-color: #fff;
  transition: border-color var(--transition-fast);
}

.search-input-box:focus-within {
  border-color: var(--color-primary);
}

.search-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

.search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  color: #333;
  padding-left: 10px;
  background: transparent;
}

.search-submit-btn {
  width: 188px;
  height: 100%;
  background-color: #dc0016;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-submit-btn:hover,
.search-submit-btn:focus-visible {
  background-color: #ba0013;
  outline: none;
}

.search-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}

.search-filter-btn {
  width: 132px;
  height: 30px;
  border-radius: 15px;
  background-color: #e4e4e4;
  color: #030303;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.search-filter-btn.is-active,
.search-filter-btn:hover,
.search-filter-btn:focus-visible {
  background-color: #dc0016;
  color: #ffffff;
  outline: none;
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 130px;
  text-align: center;
}

.search-empty-title {
  color: #080a09;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
}

.search-empty-suggestion {
  color: #080a09;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 112px;
}

.search-empty-illustration {
  width: 196px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-empty-illustration img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======== Search Results List ======== */
.search-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1288px;
  margin: 30px auto 0;
}

.search-results-content.is-hidden,
.search-empty-state.is-hidden {
  display: none !important;
}

.search-divider {
  width: 100%;
  height: 1px;
  background-color: #ededed;
  margin: 0 0 30px;
}

.search-summary {
  width: 100%;
  font-size: 18px;
  color: #333333;
  margin: 0 0 40px;
  text-align: left;
}

.search-result-item {
  display: flex;
  width: 100%;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.search-result-image {
  flex: 0 0 420px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-result-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 10px 0 24px;
}

.search-result-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 40px;
}

.search-result-breadcrumbs {
  font-size: 14px;
  color: #999;
}

.search-result-breadcrumbs span {
  margin: 0 8px;
  color: #ccc;
}

.search-result-breadcrumbs a {
  color: #999;
  transition: color 0.2s ease;
}

.search-result-breadcrumbs a:hover {
  color: var(--color-primary);
}

/* ======== Responsive ======== */
@media (max-width: 991px) {
  .search-breadcrumb {
    margin-bottom: 40px;
  }
  
  .search-title {
    font-size: 28px;
  }

  .search-bar-wrapper {
    height: 54px;
    margin-bottom: 30px;
  }

  .search-input-box {
    margin-right: 20px;
  }

  .search-submit-btn {
    width: 120px;
    font-size: 18px;
  }

  .search-result-item {
    gap: 30px;
  }

  .search-result-image {
    flex: 0 0 320px;
  }

  .search-result-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .search-result-desc {
    margin-bottom: 20px;
  }
  
  .search-empty-state {
    margin-top: 80px;
  }
  
  .search-empty-suggestion {
    margin-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .main-search {
    padding-bottom: 60px;
  }

  .search-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .search-title {
    font-size: 24px;
  }

  .search-bar-wrapper {
    height: 48px;
    margin-bottom: 20px;
  }

  .search-input-box {
    margin-right: 12px;
    padding: 0 12px;
  }

  .search-input {
    font-size: 15px;
  }

  .search-submit-btn {
    width: 80px;
    font-size: 16px;
  }

  .search-filters {
    gap: 16px;
  }

  .search-filter-btn {
    width: 100%;
    max-width: 120px;
    height: 32px;
    font-size: 14px;
  }

  .search-empty-state {
    margin-top: 60px;
  }

  .search-empty-title {
    font-size: 20px;
  }

  .search-empty-suggestion {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .search-summary {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .search-result-item {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .search-result-image {
    flex: none;
    width: 100%;
  }

  .search-result-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .search-result-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  
  .search-result-breadcrumbs {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .search-result-breadcrumbs span {
    margin: 0 4px;
  }
}
