/* =====================================
   Linglobe Search Page
===================================== */

.search-page {
  background: #f8fafc;
  color: #111827;
}

/* Hero */
.search-hero {
  padding: 120px 24px 96px;
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 144, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef8ff);
}

.search-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.search-kicker {
  margin: 0 0 14px;
  color: #1E90FF;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-hero h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.search-hero p {
  max-width: 720px;
  margin: 24px auto 0;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Search Box */
.search-box-wrap {
  margin: 42px auto 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(15, 95, 168, 0.12);
}

.search-input {
  width: 100%;
  border: none;
  padding: 20px 26px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.search-button {
  border: none;
  background: #1E90FF;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-button:hover {
  background: #0f5fa8;
}

/* Filters */
.search-filter-row {
  max-width: 640px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.search-select {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  padding: 13px 52px 13px 18px;
  background-color: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #334155 50%),
    linear-gradient(135deg, #334155 50%, transparent 50%);
  background-position:
    calc(100% - 28px) 50%,
    calc(100% - 22px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

/* Results */
.search-results-section {
  padding: 82px 24px 110px;
}

.search-results-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.search-results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.search-results-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #1E90FF;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-results-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.result-count {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Result Cards */
.search-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.search-result-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(15, 95, 168, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.search-result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 95, 168, 0.16);
  border-color: rgba(30, 144, 255, 0.35);
}

.search-result-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.search-result-card:hover .search-result-image img {
  transform: scale(1.04);
}

.search-result-body {
  padding: 22px 22px 24px;
}

.search-result-region {
  display: inline-block;
  margin-bottom: 10px;
  color: #1E90FF;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-result-body h3 {
  margin: 0;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.35;
}

.search-result-body p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.75;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.search-result-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1E90FF;
  font-size: 0.72rem;
  font-weight: 800;
}

.no-results {
  margin: 34px 0 0;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1100px) {
  .search-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .search-hero {
    padding: 88px 20px 68px;
  }

  .search-box-wrap {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .search-input {
    padding: 18px 20px;
  }

  .search-button {
    padding: 15px 20px;
  }

  .search-filter-row {
    grid-template-columns: 1fr;
  }

  .search-results-section {
    padding: 64px 20px 86px;
  }

  .search-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-result-grid {
    grid-template-columns: 1fr;
  }
}