/* ── Layout: search bar row ───────────────────────────────────────── */
.lp-smart-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-smart-search .form-control {
  flex: 1 1 240px;
}

/* ── Clear-X inside input ─────────────────────────────────────────── */
.sm-clear {
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.sm-clear:hover {
  color: #333333;
}
.sm-clear[hidden] {
  display: none;
}

/* ── Search-tips tooltip (desktop + mobile) ───────────────────────── */
.sm-search-hints {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

/* Icon outline, italic, no fill */
.sm-hint-icon {
  background: transparent;
  color: #337ab7;
  padding-top:2px;
  border: 1px solid #337ab7;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  user-select: none;
  display:block;
  font-family: calibri-italic;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;

}

/* Tooltip panel (desktop) */
.sm-hint-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  z-index: 99999999;

  background: #fff;
  color: #333333;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  padding: 12px;
  width: 400px;
  box-sizing: border-box;
}

/* Show on hover or focus (desktop) */
.sm-search-hints:hover .sm-hint-box,
.sm-search-hints:focus-within .sm-hint-box {
  display: block;
}

/* Close-button inside tooltip */
.sm-hint-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
  line-height: 1;
  color: #333333;
  cursor: pointer;
  user-select: none;
}

/* ── Mobile (≤767px) overrides ────────────────────────────────────── */
@media (max-width:767px) {
  /* Show via tapped state */
  .sm-search-hints.touched .sm-hint-box {
    display: block;
  }

  /* Show close-button */
  .sm-hint-close {
    display: block;
  }

  /* Full-width panel with gutters */
  .sm-hint-box {
    position: fixed !important;
    top: auto;
    bottom: auto;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100% - 16px) !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
    border-radius: 4px !important;
    z-index: 1000000 !important;
    transform: none !important;
  }
}

.sm-chips { margin-top:4px; }
.sm-chip {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 16px;
  background: #e0e0e0;
  color: #333333;
  text-decoration: none;
  font-size: 0.9em;
}
.sm-chip:hover { background: #d0d0d0; }


  /* FACET CSS */

/* ==== Facet Sidebar (left column) ==== */


/* ==== Facet Sidebar ==== */
.sm-facet-sidebar {
  background: #fff;
  border-radius: 1em;
  box-shadow: 0 2px 10px #0002;
  padding: 1.5em 1em;
  max-width: 270px;
  margin-bottom: 1.5em;
}
.facet-group { margin-bottom: 1.5em; }
.facet-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5em;
}
.facet-count {
  background: #f0f0f0;
  color: #666;
  font-size: 0.95em;
  border-radius: 1em;
  padding: 0.2em 0.7em;
  margin-left: 0.5em;
  vertical-align: middle;
}
.sm-facet-sidebar input[type="checkbox"] {
  accent-color: #1976d2;
  margin-right: 0.5em;
}
.facet-apply-btn {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 1em;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.8em;
}
.facet-clear {
  color: #999;
  margin-left: 1em;
  text-decoration: underline;
  font-size: 0.97em;
}

/* ==== Two Column Layout ==== */
.sm-search-main-wrap {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}
.sm-facet-sidebar-wrap {
  min-width: 260px;
  max-width: 320px;
  flex-shrink: 0;
}
.sm-container {
  flex: 1 1 0%;
  min-width: 0;
}

/* ==== Filters Button & Mobile Modal ==== */
.sm-mobile-filters-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 3050;
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 2em;
  font-size: 1.12em;
  font-weight: 600;
  padding: 0.65em 1.7em 0.65em 1.1em;
  box-shadow: 0 2px 16px #1976d225;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  transition: background 0.16s;
}
.sm-mobile-filters-btn:active,
.sm-mobile-filters-btn:focus {
  background: #f7faff;
}
.sm-filter-icon {
  font-size: 1.25em;
  margin-right: 6px;
  vertical-align: middle;
}
.sm-filters-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(0,0,0,0.38);
  transition: background 0.2s;
}
.sm-filters-overlay.show { display: block; }
.sm-filters-modal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 -8px 28px rgba(0,0,0,0.15);
  animation: smSlideUp 0.33s;
}
@keyframes smSlideUp {
  from { transform: translateY(100%);}
  to { transform: translateY(0);}
}
.sm-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3em 1.5em 1em 1.5em;
  font-size: 1.13em;
  font-weight: 700;
  color: #333333;
  border-bottom: 1px solid #eee;
}
.sm-filters-close {
  background: none;
  border: none;
  font-size: 2em;
  color: #1976d2;
  cursor: pointer;
  line-height: 1;
}
.sm-filters-body {
  padding: 1.2em 1.3em;
  color: #333333;
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .sm-mobile-filters-btn { display: flex; }
  .sm-facet-sidebar-wrap { display: none !important; }
  .sm-container {
    flex: 1 1 0%;
    min-width: 0;
    margin-top:0px !important;
  }
  .sm-heading{
    font-size:1.5rem;
    margin-top:13px !important;
    margin-bottom:10px !important;
    color:#333;
  }
}

@media (min-width: 901px) {
  .sm-filters-overlay, .sm-mobile-filters-btn { display: none !important; }
  .sm-facet-sidebar-wrap { display: block !important; }
}

/* ==== Disabled Facet Styles ==== */
.sm-facet-sidebar input[type="checkbox"]:disabled + span,
.sm-facet-sidebar input[type="checkbox"]:disabled ~ .facet-count {
  color: #bbb !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}
.sm-facet-sidebar input[type="checkbox"]:disabled {
  cursor: not-allowed !important;
  filter: grayscale(1) brightness(1.1);
}
.sm-facet-sidebar label[style*="opacity:0.5"] {
  pointer-events: none;
}