/* What the new search understood, and help when it found little (app/views/listing/_smart_search_notice.html.erb). A plain file, not a
   <style> tag in the page, in the way of listing-cards.css. */
.le-ss { background: #f7f8fa; border-bottom: 1px solid #e6e8eb; padding: 10px 0 6px; font-family: Asap, Arial, sans-serif; }
/* nothing to say (no note, no help): no band at all */
.le-ss:not(:has(.container > :not([hidden]):not(script):not(link):not(style))) { display: none; }
.le-ss-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.le-ss-label { font: 600 12px/1.2 Montserrat, Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #7a7f87; margin-right: 2px; }
.le-ss-chip { display: inline-flex; align-items: baseline; gap: 5px; background: #fff; border: 1px solid #d9dce1; border-radius: 999px; padding: 3px 11px; font-size: 13px; color: #222; }
.le-ss-chip small { font-size: 11px; color: #7a7f87; text-transform: uppercase; letter-spacing: .04em; }
.le-ss-chip b { font-weight: 600; text-transform: capitalize; }
.le-ss-pending { border-style: dashed; color: #555; }
.le-ss-note { margin: 0 0 6px; font-size: 13px; color: #555; }
.le-ss-ask { margin: 0 0 8px; font: 600 15px/1.5 Asap, Arial, sans-serif; color: #222; }
.le-ss-ask a { display: inline-block; margin-left: 10px; color: #b12305; text-decoration: none; }
.le-ss-ask a:hover { text-decoration: underline; }
.le-ss-help { margin: 0 0 6px; font-size: 14px; color: #222; }
.le-ss-help a { display: inline-block; margin: 0 8px 4px 0; color: #0275d8; text-decoration: none; font-weight: 600; }
.le-ss-help a:hover { color: #014c8c; text-decoration: underline; }
@media (max-width: 480px) { .le-ss-chip { font-size: 12px; padding: 2px 9px; } }
.le-ss-applied { border-color: #b12305; background: #fff6f4; }
.le-where-status { color: #555; }
.le-where-status.le-where-bad { color: #b12305; }
.le-ss-note a { color: #0275d8; font-weight: 600; text-decoration: none; }
.le-ss-note a:hover { color: #014c8c; text-decoration: underline; }

/* a business's distance from the place named in the search, and the Nearby Listings section */
.le-geo-note { font: 500 13px/1.4 Montserrat, sans-serif; color: #555; margin: 2px 0 8px; }
.le-geo-note .le-pin { margin-right: 4px; }
.le-geo-approx { color: #8a6d3b; }
.le-ss-section { border-top: 2px solid #eee; margin-top: 24px; padding-top: 16px; }
.le-ss-section-title { font: 700 22px Montserrat, sans-serif; margin: 0 0 4px; }
.le-ss-section-note { font: 500 14px/1.5 Montserrat, sans-serif; color: #666; margin: 0 0 8px; }
.le-ss-section[hidden] { display: none !important; }

/* the search bar of the new search (app/views/shared/_smart_search_panel.html.erb): one bar to type a sentence, where to look, and sentences
   to try; on the home page also a heading and four short explanations. The banner and the colours are the site's own. */
.le-panel { max-width: 1000px; margin: 0 auto; font-family: Montserrat, Arial, sans-serif; text-align: center; }
.le-panel .le-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.le-panel-title { margin: 0 0 8px; font: 700 34px/1.2 Montserrat, Arial, sans-serif; color: #fff; text-transform: none; }
.le-panel-title span { color: #fff; border-bottom: 3px solid #b12305; }
.le-panel-sub { margin: 0 0 22px; font: 500 17px/1.5 Montserrat, Arial, sans-serif; color: rgba(255, 255, 255, .92); text-transform: none; }

.le-bar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; text-align: left; color: #222; }
.le-panel-hero .le-bar { box-shadow: 0 6px 28px rgba(0, 0, 0, .35); }
.le-panel-plain .le-bar { border: 1px solid #d9d9d9; }
.le-bar-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; color: #777; }
.le-bar-main .easy-autocomplete { flex: 1 1 auto; width: 100% !important; min-width: 0; }
.le-bar-input, .le-bar-main .easy-autocomplete input { width: 100%; height: auto; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; padding: 10px 0; font: 500 17px/1.3 Montserrat, Arial, sans-serif; color: #222; text-overflow: ellipsis; }
.le-bar-input::placeholder { color: #8a8f98; }
.le-bar .easy-autocomplete-container { z-index: 30; }

.le-where { position: relative; flex: none; border-left: 1px solid #e1e3e6; padding-left: 6px; }
.le-where-button { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; background: transparent; border: 0; border-radius: 999px; padding: 10px 12px; font: 600 15px/1.2 Montserrat, Arial, sans-serif; color: #222; cursor: pointer; }
.le-where-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-where-button:hover, .le-where-button:focus { background: #f3f4f6; outline: 0; }
.le-where-button .le-icon:first-child { color: #b12305; }
.le-caret { width: 16px !important; height: 16px !important; }
.le-where-menu { position: absolute; right: 0; top: calc(100% + 14px); z-index: 40; width: 330px; background: #fff; border: 1px solid #e1e3e6; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); padding: 14px 16px 6px; text-align: left; color: #222; }
.le-where-menu[hidden] { display: none !important; }
.le-where-title { margin: 0 0 8px; font: 600 12px/1.2 Montserrat, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #7a7f87; }
.le-where-option { padding: 8px 0 10px; border-top: 1px solid #f0f1f3; }
.le-where-option:first-of-type { border-top: 0; }
.le-where-option label { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 15px/1.3 Montserrat, Arial, sans-serif; cursor: pointer; }
.le-where-option input[type=radio] { margin: 0; accent-color: #b12305; }
.le-where-option small { display: block; margin: 2px 0 0 24px; font: 500 12px/1.4 Montserrat, Arial, sans-serif; color: #777; }
.le-where-controls { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0 24px; }
.le-where-text, .le-select { width: 100%; height: 36px; padding: 4px 10px; border: 1px solid #d0d3d8; border-radius: 8px; background: #fff; font: 500 14px/1.2 Montserrat, Arial, sans-serif; color: #222; }

.le-bar .le-bar-go { flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 13px 28px !important; border-radius: 999px; font: 700 15px/1 Montserrat, Arial, sans-serif; }

.le-panel-tiles { list-style: none; margin: 22px 0 0; padding: 14px 6px; display: grid; grid-template-columns: repeat(2, 1fr); text-align: left; background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.le-panel-tiles li { display: flex; align-items: center; gap: 12px; padding: 4px 16px; color: #fff; }
.le-panel-tiles li + li { border-left: 1px solid rgba(255, 255, 255, .25); }
.le-tile-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #b12305; }
.le-panel-tiles b { display: block; font: 700 14px/1.3 Montserrat, Arial, sans-serif; }
.le-panel-tiles small { display: block; font: 500 12px/1.4 Montserrat, Arial, sans-serif; color: rgba(255, 255, 255, .82); }

/* the sentence helper under the search bar: what was understood, and sentences to try (public/js/smart-search-ask.js) */
.le-ask { max-width: 1000px; margin: 14px auto 0; font: 500 13px/1.5 Montserrat, sans-serif; }
.le-ask-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.le-ask-preview[hidden] { display: none !important; }
.le-ask-label { font-weight: 600; }
.le-ask-chip { background: #fff; color: #222; border: 1px solid #d9d9d9; border-radius: 999px; padding: 2px 10px; }
.le-ask-chip small { color: #777; text-transform: uppercase; font-size: 10px; }
.le-ask-note { flex-basis: 100%; margin: 0; }
.le-ask-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.le-ask-example { background: transparent; border-radius: 999px; padding: 6px 16px; font: 500 14px/1.3 Montserrat, sans-serif; cursor: pointer; }
.le-ask-example::before { content: "\201C"; }
.le-ask-example::after { content: "\201D"; }
/* on the dark banner of the home page */
.le-ask-hero { color: #fff; text-align: center; }
.le-ask-hero .le-ask-preview, .le-ask-hero .le-ask-examples { justify-content: center; }
.le-ask-hero .le-ask-example { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.le-ask-hero .le-ask-example:hover, .le-ask-hero .le-ask-example:focus { background: rgba(255, 255, 255, .28); }
/* on a white page */
.le-ask-plain { color: #555; }
.le-ask-plain .le-ask-example { border: 1px solid #b12305; color: #b12305; background: #fff; }
.le-ask-plain .le-ask-example:hover, .le-ask-plain .le-ask-example:focus { background: #fbece8; }

@media (max-width: 991px) {
  .le-panel-tiles { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .le-panel-tiles li:nth-child(3) { border-left: 0; }
}
@media (max-width: 767px) {
  .le-panel-title { font-size: 26px; }
  .le-panel-sub { font-size: 15px; margin-bottom: 16px; }
  .le-bar { flex-wrap: wrap; border-radius: 22px; padding: 10px 12px; row-gap: 6px; }
  .le-bar-main { flex-basis: 100%; }
  .le-bar-input, .le-bar-main .easy-autocomplete input { font-size: 15px; }
  .le-where { flex: 1 1 auto; border-left: 0; padding-left: 0; }
  .le-where-button { max-width: none; width: 100%; justify-content: flex-start; background: #f3f4f6; }
  .le-where-menu { left: 0; right: auto; width: min(330px, calc(100vw - 48px)); }
  .le-bar .le-bar-go { padding: 12px 22px !important; }
  .le-panel-tiles { grid-template-columns: 1fr; }
  .le-panel-tiles li + li { border-left: 0; }
}
