/* ==========================================
   SEARCH PAGE – 3BIKES CLEAN VERSION
========================================== */

.search #primary {
  box-sizing: border-box;
}

/* ======================
   BEST MATCH
====================== */

.search .search-best-match {
  margin: 30px 0 40px;
  padding: 25px;
  border: 1px solid #e6eef4;
  border-left: 5px solid #1e73be;
  background: #f8fbfe;
  border-radius: 8px;
}

.search .best-match-label {
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #1e73be;
}

.search .best-match-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.search .best-match-content {
  padding: 20px;
}

.search .best-match-content h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.search .best-match-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ======================
   FACETS
====================== */

.search .ep-facets-wrapper {
  background: #f6f7f8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 35px;
}

.search .facet-group {
  margin-bottom: 18px;
}

.search .facet-group h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
  color: #2a5c88;
}

.search .facet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search .facet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e9ecef;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  color: #444;
  transition: .2s ease;
}

.search .facet-pill:hover {
  background: #d9dee3;
}

.search .facet-pill.is-active {
  background: #2a5c88;
  color: #fff;
}

.search .facet-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  font-size: 12px;
}

/* ======================
   TOOLBAR
====================== */

.search .search-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.search .search-count {
  color: #666;
  font-weight: 500;
}

.search .search-sort-form select {
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

/* ======================
   META INFO
====================== */

.search .search-meta-info {
  text-align: center;
  margin: 30px 0 15px;
  font-size: 0.9rem;
  color: #8a8a8a;
}

/* ======================
   PAGINATION
====================== */

.search .search-pagination {
  margin: 40px 0;
  text-align: center;
}

.search .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #2e8ec7;
}

.search .page-numbers.current {
  background: #2e8ec7;
  color: #fff;
  border-color: #2e8ec7;
}

.search .page-numbers:hover {
  background: #f2f7fb;
}

/* ======================
   MOBILE
====================== */

@media (max-width: 768px) {

  .search .best-match-content h2 {
    font-size: 20px;
  }

  .search .search-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

}
/* ==========================================
   AUTOSUGGEST – ISOLATED SAFE STYLE
========================================== */

.ep-autosuggest-box {
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border-radius: 8px;
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  font-size: 14px;
}

.ep-autosuggest-box a {
  display: block;
  padding: 10px 14px;
  color: #2a5c88;
  text-decoration: none;
  line-height: 1.4;
}

.ep-autosuggest-box a:hover,
.ep-autosuggest-box a.active {
  background: #f3f5f7;
}

.ep-autosuggest-box img {
  max-width: 80px;
  height: auto;
  border-radius: 6px;
}
/* ==========================================
   AUTOSUGGEST – 3BIKES PREMIUM VERSION
========================================== */

.ep-autosuggest-box {
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  border-radius: 12px;
  z-index: 9999;
  max-height: 480px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Item */
.ep-autosuggest-box a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.4;
  color: #1d3557;
  text-decoration: none;
  transition: background .2s ease;
}

.ep-autosuggest-box a:hover,
.ep-autosuggest-box a.active {
  background: #f4f8fc;
}

/* Thumbnails */
.ep-autosuggest-box img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Best match */
.ep-autosuggest-box .as-best-match {
  font-weight: 600;
  padding-top: 16px;
}

/* Section title */
.ep-autosuggest-box .as-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a8a9a;
  padding: 8px 18px 4px;
}

/* Footer link */
.ep-autosuggest-box .as-view-all {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  color: #1e73be;
  text-decoration: none;
  border-top: 1px solid #eef2f6;
}

.ep-autosuggest-box .as-view-all:hover {
  background: #f4f8fc;
}

/* Scrollbar (desktop only subtle) */
.ep-autosuggest-box::-webkit-scrollbar {
  width: 6px;
}

.ep-autosuggest-box::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 3px;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .ep-autosuggest-box {
    border-radius: 16px;
    max-height: 75vh;
  }

  .ep-autosuggest-box img {
    width: 56px;
    height: 42px;
  }

  .ep-autosuggest-box a {
    font-size: 14px;
    padding: 10px 14px;
  }

}

/* =====================================================
   AUTOSUGGEST – 3BIKES PREMIUM (ISOLATED CLEAN VERSION)
===================================================== */

.ep-autosuggest-box {
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  border-radius: 12px;
  z-index: 9999;
  max-height: 480px;
  overflow-y: auto;
  padding: 8px 0;
  font-size: 14px;
}

.ep-autosuggest-box a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.4;
  color: #1d3557;
  text-decoration: none;
  transition: background .2s ease;
}

.ep-autosuggest-box a:hover,
.ep-autosuggest-box a.active,
.ep-autosuggest-box a.is-selected {
  background: #f4f8fc;
}

/* Best match label */
.ep-autosuggest-box .as-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a8a9a;
  padding: 10px 18px 4px;
}

/* Thumbnails desktop */
.ep-autosuggest-box .as-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.ep-autosuggest-box .as-thumb-small {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Titles */
.ep-autosuggest-box .as-title,
.ep-autosuggest-box .as-suggestion-title {
  font-weight: 500;
}

/* View all */
.ep-autosuggest-box .as-view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 600;
  color: #1e73be;
  border-top: 1px solid #eef2f6;
}

.ep-autosuggest-box .as-view-all i {
  font-size: 13px;
  transition: transform .2s ease;
}

.ep-autosuggest-box .as-view-all:hover i {
  transform: translateX(4px);
}

/* Scrollbar */
.ep-autosuggest-box::-webkit-scrollbar {
  width: 6px;
}

.ep-autosuggest-box::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 3px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .ep-autosuggest-box {
    border-radius: 16px;
    max-height: 75vh;
  }

  .ep-autosuggest-box a {
    padding: 10px 14px;
    font-size: 14px;
  }

  .ep-autosuggest-box .as-thumb {
    width: 60px;
    height: 45px;
  }

  .ep-autosuggest-box .as-thumb-small {
    width: 48px;
    height: 36px;
  }

}

/* =========================
   POLISH FINAL
========================= */

/* Best match card */
.ep-autosuggest-box .as-best-link {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px;
}

/* Title stronger */
.ep-autosuggest-box .as-title {
  font-weight: 600;
  color: #1d3557;
}

/* View all cleaner */
.ep-autosuggest-box .as-view-all {
  font-size: 15px;
  padding: 16px 18px;
}

/* Prevent weird wrapping */
.ep-autosuggest-box .as-view-all strong {
  font-weight: 600;
}

/* Arrow alignment */
.ep-autosuggest-box .as-view-all {
  align-items: center;
}

/* Mobile improvement */
@media (max-width: 768px) {

  .ep-autosuggest-box {
    margin-top: 6px;
  }

  .ep-autosuggest-box .as-best-link {
    padding: 14px;
  }

  .ep-autosuggest-box .as-title {
    font-size: 15px;
    line-height: 1.35;
  }

}
@media (min-width: 1024px) {

  .ep-autosuggest-box a:hover {
    transform: translateX(2px);
  }

}

.ep-autosuggest-box {
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
}

.ep-autosuggest-box .as-suggestion-item:not(:last-child) {
  border-bottom: 1px solid #f0f2f5;
}
/* =====================================
   SEARCH HEADER – PREMIUM POLISH
===================================== */

.search .page-header {
  background: #f4f8fc;
  padding: 28px 24px;
  border-radius: 10px;
  border-bottom: 3px solid #1e73be;
  margin-bottom: 30px;
}

.search .page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: #1d3557;
  margin: 0;
}

.search .page-title span {
  color: #1e73be;
}

/* Mobile */
@media (max-width: 768px) {

  .search .page-header {
    padding: 22px 18px;
  }

  .search .page-title {
    font-size: 22px;
  }

}

/* ==========================================
   SEARCH HEADER – alignement + liseré unique
   ========================================== */

/* Supprime surcharge carte + double border */
.search .page-header {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 25px;
}

/* Titre aligné comme catégories */
.search .page-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1e73be;
  padding-bottom: 10px;
  border-bottom: 4px solid #1e73be; /* liseré unique */
  margin-bottom: 25px;
}

/* Supprime ancien trait éventuel */
.search .page-header:after,
.search .page-header:before {
  display: none !important;
}

/* ===== VIEW ALL PREMIUM ALIGN ===== */

.as-view-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #2a5c88;
}

.as-view-text {
  line-height: 1.4;
}

.as-view-arrow {
  font-size: 16px;
  opacity: 0.7;
  transition: transform .2s ease;
}

.as-view-all:hover .as-view-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.post h2.entry-title a {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Kameron', serif;
  letter-spacing: -0.3px;
}
