.hero-search {
  margin-top: 0;
  margin-bottom: 20px;
}

.hero-search-input-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 21;
}

.hero-search-input {
  width: 100%;
  padding: 20px 55px !important;
  font-size: 1.13rem;
  border: 0 !important;
  border-radius: 30px;
  box-shadow: 0 18px 48px 0 rgba(28, 54, 96, 0.23), 0 10px 12px 0 rgba(0, 0, 0, 0.01) !important;
  background: #fff;
  font-weight: 100;
}

.hero-search-clear {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.hero-search-clear:hover {
  color: #333;
}

/* ======== STATUS BAR A ŘAZENÍ ======== */

.hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1150px; /* Nastav stejnou šířku jako má hlavní obsah grid stránky! */
  margin: 0 auto 10px auto;
  padding-top: 20px;
  padding-bottom:5px;
  font-size: 1rem;
  box-sizing: border-box;
}
.status-bar-inline {
  color: #18334c;
  font-weight: 500;
  text-align: left;
}
.status-bar-inline strong {
  color: #00aced;
  font-weight: 700;
  font-size: 1.21em;
  letter-spacing: 0.02em;
}
.status-bar-inline span {
  color: #18334c;
  font-weight: 500;
}
.order-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.01em;
}
.order-label {
  font-weight: 400;
  color: #45617c;
  margin-right: 6px;
  font-size: 1em;
}
.order-link {
  color: #18334c;
  font-weight: 500;
  font-size: 1em;
  padding: 2px 4px;
  border: none;
  background: none;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.16s, border-bottom 0.13s;
  outline: none;
}
.order-link.active,
.order-link:hover,
.order-link:focus {
  color: #00aced;
  text-decoration: underline;
  font-weight: 700;
}

/* Na mobilech pod sebe */
@media (max-width: 900px) {
  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 12px 0 12px 0;
    max-width: 100vw;
    font-size: 0.9rem;
  }
}

/* ======================= */

.hidden {
  display: none;
}

/* SPOLEČNÝ STYL PRO BOXY: POPULAR + AUTOCOMPLETE */
.hero-search-popular-box,
.hero-search-results-box {
  background: #f8fafc;
  border: 1px solid #f5f5f5;
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 48px 0 rgba(28, 54, 96, 0.23), 0 4px 12px 0 rgba(0,0,0,0.35);
  max-width: 700px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  min-width: 280px;
  padding: 0;
  font-size: 0.85rem;
  padding-bottom: 20px
}

.hero-search-popular-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-weight: 600;
  color: #1a4469;
  padding: 13px 18px 3px 18px;
  font-size: 1em;
  letter-spacing: .01em;
}

.hero-search-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  padding: 4px 12px 8px 12px;
}
@media (max-width: 900px) {
  .hero-search-popular-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 5px 4vw;
  }
}
@media (max-width: 600px) {
  .hero-search-popular-grid {
    grid-template-columns: 1fr;
    padding: 4px 2vw;
  }
}

.hero-search-popular-item {
  padding: 6px 0 6px 0;
  margin: 0;
  background: none;
  border: none;
  color: #23495e;
  font-size: 0.91em;
  font-weight: 400;
  border-radius: 8px;
  text-align: left;
  transition: background 0.16s, color 0.13s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.33em;
  min-width: 0;
}
.hero-search-popular-item:hover, .hero-search-popular-item:focus {
  background: #f3fafe;
  color: #00aced;
  outline: none;
}

.hero-search-popular-item .popular-name {
  font-weight: 400;
  font-size: 1em;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
  margin-right: 0px;
}
.hero-search-popular-item .popular-price {
  font-size: 0.98em;
  color: #00aced;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 0;
}

.hero-search-popular-close {
  font-size: 1.6em;
  font-weight: 300;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
  margin-left: 24px;
}
.hero-search-popular-close:hover,
.hero-search-popular-close:focus {
  color: #00aced;
  outline: none;
}

.hero-search-group {
  margin-bottom: 4px;
}
.hero-search-group-header {
  font-weight: 500;
  color: #7689a0;
  padding: 10px 23px 3px 23px;
  font-size: 0.97em;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-search-group-header .fa-city,
.hero-search-group-header .fa-flag {
  font-size: 0.95em;
  opacity: 0.45;
  margin-right: 4px;
}

.hero-search-result-row {
  font-size: 0.97em;
  font-weight: 500;
  padding: 8px 18px 8px 18px;
  cursor: pointer;
  color: #18334c;
  border-bottom: 1px solid #eef3f6;
  background: #fff;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.hero-search-result-row:last-child {
  border-bottom: none;
}
.hero-search-result-row:hover,
.hero-search-result-row:focus {
  background: #f3fafe;
  color: #00aced;
  font-weight: 600;
  outline: none;
}
.result-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-price {
  margin-left: 10px;
  color: #00aced;
  font-weight: 400;
  font-size: 0.99em;
}

.hero-search-notfound-box {
  background: #fff;
  border: 2px solid #e3eaf3;
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 40px rgba(40,72,120,0.17), 0 2px 8px rgba(0,0,0,0.04);
  max-width: 700px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  min-width: 280px;
  padding: 30px 40px 24px 40px;
  font-size: 1.03rem;
  z-index: 22;
}
.notfound-title {
  font-weight: 700;
  color: #1a4469;
  margin-bottom: 12px;
  font-size: 1.25em;
}
.notfound-desc {
  color: #6a7785;
  margin-bottom: 18px;
  font-size: 1em;
}
.notfound-links {
  display: flex;
  gap: 15px;
}
.nf-link {
  background: #f8fafd;
  border: 1px solid #e3eaf3;
  border-radius: 12px;
  font-size: 0.9em;
  padding: 10px 18px;
  text-align: center;
  font-weight: 600;
  color: #00aced;
  text-decoration: none;
  transition: box-shadow .16s, background .14s;
  min-width: 140px;
}
.nf-link:hover {
  background: #f3fafe;
  box-shadow: 0 2px 12px rgba(0,172,237,0.07);
  color: #0099cc;
}
.nf-link-price {
  color: #7689a0;
  font-weight: 500;
  font-size: 1em;
  margin-top: 3px;
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1.37em;
  pointer-events: none;
  z-index: 2;
}

.hero-search-clear-text {
  text-decoration: underline;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  transition: color .18s;
  margin: 10px 5px 5px 5px;
  font-weight: 500;
}

#hero-search-clear {
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-search-input {
    font-size: 0.7rem !important;
    padding-right: 5px !important;
}
   .order-switcher {font-size:0.8rem !important;
  }
}

