/* =========================
   EmpireG Search Page
   ========================= */
.eg-search-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.eg-search-head {
  margin-bottom: 20px;
}

.eg-search-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(17,24,39,.05);
}

.eg-search-title svg {
  color: #49b545;
  flex-shrink: 0;
}

.eg-search-simple {
  padding: 20px;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(17,24,39,.05);
}

.eg-search-field input[type="text"],
.eg-search-field input[type="search"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.eg-search-field input:focus {
  outline: none;
  border-color: #49b545;
  box-shadow: 0 0 0 4px rgba(73,181,69,.1);
}

.eg-search-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.eg-search-extended {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eg-search-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.eg-search-card {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(17,24,39,.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.eg-search-card:hover {
  box-shadow: 0 12px 28px rgba(17,24,39,.08);
}

.eg-search-card--wide {
  grid-column: auto;
}

.eg-search-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 14px;
  color: #111827;
  background: linear-gradient(180deg, rgba(73,181,69,.06) 0%, transparent 100%);
  border-bottom: 1px solid #e7eaf0;
}

.eg-search-card__head svg {
  color: #49b545;
  flex-shrink: 0;
}

.eg-search-card__body {
  padding: 16px 18px;
}

.eg-search-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
}

.eg-search-card__body input[type="text"],
.eg-search-card__body input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.eg-search-card__body input:focus {
  outline: none;
  border-color: #49b545;
  box-shadow: 0 0 0 4px rgba(73,181,69,.1);
}

.eg-search-card__body select {
  padding: 10px 12px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
  max-width: 100%;
}

.eg-search-card__body select:focus {
  outline: none;
  border-color: #49b545;
}

.eg-search-options {
  margin-top: 12px;
}

.eg-search-options select,
.eg-search-options input {
  margin-bottom: 8px;
}

.eg-search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eg-search-inline select,
.eg-search-inline input {
  max-width: 100%;
}

.eg-search-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
  max-height: 300px;
  overflow-y: auto;
}

.eg-search-categories label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: #374151;
}

.eg-search-categories label:hover {
  background: rgba(73,181,69,.08);
}

.eg-search-categories input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #49b545;
  cursor: pointer;
}

.eg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.eg-btn--primary {
  background: linear-gradient(135deg, #2bb42b 0%, #49b545 100%);
  color: #fff;
}

.eg-btn--primary:hover {
  background: linear-gradient(135deg, #49b545 0%, #5cc55f 100%);
  box-shadow: 0 6px 20px rgba(73,181,69,.35);
  transform: translateY(-2px);
}

.eg-btn--secondary {
  background: #fff;
  color: #49b545;
  border: 2px solid #49b545;
}

.eg-btn--secondary:hover {
  background: #49b545;
  color: #fff;
}

.eg-btn--ghost {
  background: rgba(15,23,42,.05);
  color: #374151;
  border: 1px solid #e7eaf0;
}

.eg-btn--ghost:hover {
  background: rgba(15,23,42,.08);
  border-color: #d1d5db;
}

.eg-btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.eg-search-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.eg-search-msg {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  padding: 14px 18px;
  background: rgba(73,181,69,.08);
  border: 1px solid rgba(73,181,69,.2);
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
}

@media (max-width: 768px) {
  .eg-search-grid {
    grid-template-columns: 1fr;
  }
  .eg-search-title {
    font-size: 20px;
    padding: 12px 14px;
  }
  .eg-search-actions {
    flex-direction: column;
  }
  .eg-btn {
    width: 100%;
  }
  .eg-search-categories {
    grid-template-columns: 1fr;
  }
}