/* ===== HERO SEARCH V2 - MODERN DESIGN ===== */

/* Particle system animations */
@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-150vh) translateX(30px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes float-particle-left {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-150vh) translateX(-30px) rotate(-180deg);
    opacity: 0;
  }
}

.hero-search-v2__particle {
  position: absolute;
  pointer-events: none;
  width: 20px;
  height: 20px;
  opacity: 0.15;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-search-v2 {
  position: relative;
  padding: 60px var(--ip-pad) 80px;
  overflow: visible;
}

.hero-search-v2__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/domena5.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero-search-v2__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-search-v2__content {
  position: relative;
  z-index: 2;
}

.hero-search-v2__inner {
  max-width: var(--ip-max);
  margin: 0 auto;
  padding: 0 var(--ip-pad);
}

.hero-search-v2__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.hero-search-v2__subtitle {
  margin: 0 0 40px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* FORM */
.hero-search-v2__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-search-v2__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

.hero-search-v2__row--secondary {
  grid-template-columns: 1fr auto;
}

/* FIELD */
.hero-search-v2__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-search-v2__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.hero-search-v2__icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* INPUT */
.hero-search-v2__input {
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  color: #222;
  font-family: inherit;
  transition: all 0.2s ease;
}

.hero-search-v2__input::placeholder {
  color: #999;
}

.hero-search-v2__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* SUGGESTIONS */
.hero-search-v2__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: -7px;
}

.hero-search-v2__suggestions.show {
  display: block;
}

.hero-search-v2__field {
  position: relative;
}

.hero-search-v2__loading,
.hero-search-v2__no-results,
.hero-search-v2__error {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.hero-search-v2__no-results {
  color: #999;
}

.hero-search-v2__error {
  color: #dc3545;
}

.hero-search-v2__suggestions .hero-search-v2__result {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search-v2__suggestions .hero-search-v2__result:last-child {
  border-bottom: none;
}

.hero-search-v2__suggestions .hero-search-v2__result:hover {
  background: #f5f5f5;
}

.hero-search-v2__result--add {
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search-v2__result--add:hover {
  background: #f9f9f9;
}

.hero-search-v2__result--add strong {
  font-weight: 600;
  color: #666;
}

.hero-search-v2__result--add small {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}

.hero-search-v2__suggestions .hero-search-v2__result strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-weight: 600;
}

.hero-search-v2__suggestions .hero-search-v2__result small {
  display: block;
  color: #999;
  font-size: 12px;
  line-height: 1.3;
}

/* No results with add link */
.hero-search-v2__no-results {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.hero-search-v2__add-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  margin-top: 8px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hero-search-v2__add-link:hover {
  border-color: #007bff;
  background: #f0f8ff;
  color: #0056b3;
}

/* Location items */
.hero-search-v2__location-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
  color: #333;
  background: none !important;
  text-indent: 0 !important;
  list-style: none !important;
  font-size: 14px !important;
}

.hero-search-v2__location-item:last-child {
  border-bottom: none;
}

.hero-search-v2__location-item:hover {
  background: #f5f5f5;
}

/* Nadpisz stare style dla .wynik i .wynik2 w suggestions */
#podpowiedziWojewodztwa-v2 .wynik,
#podpowiedziWojewodztwa-v2 .wynik2 {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  cursor: pointer;
  transition: background 0.2s;
  color: #333 !important;
  background: none !important;
  text-indent: 0 !important;
  list-style: none !important;
  font-size: 14px !important;
  text-decoration: none;
  border: none !important;
}

#podpowiedziWojewodztwa-v2 .wynik:last-child,
#podpowiedziWojewodztwa-v2 .wynik2:last-child {
  border-bottom: none !important;
}

#podpowiedziWojewodztwa-v2 .wynik:hover,
#podpowiedziWojewodztwa-v2 .wynik2:hover {
  background: #f5f5f5 !important;
  text-indent: 0 !important;
}

.hero-search-v2__loading {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* SCOPE BUTTONS */
.hero-search-v2__scope {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-search-v2__scope-btn {
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-search-v2__scope-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.hero-search-v2__scope-btn--active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-search-v2__scope-btn strong {
  display: block;
  font-weight: 700;
}

/* SUBMIT BUTTON */
.hero-search-v2__submit {
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: fit-content;
  backdrop-filter: blur(4px);
}

.hero-search-v2__submit:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(220, 180, 220, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.hero-search-v2__submit svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* MOBILE (<600px) */
@media (max-width: 599.98px) {
  .hero-search-v2 {
    padding: 40px var(--ip-pad) 60px;
  }

  .hero-search-v2__title {
    font-size: 24px;
  }

  .hero-search-v2__subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-search-v2__row {
    grid-template-columns: 1fr;
  }

  .hero-search-v2__row--secondary {
    grid-template-columns: 1fr;
  }

  .hero-search-v2__submit {
    width: 100%;
    justify-content: center;
  }

  .hero-search-v2__scope {
    gap: 6px;
  }

  .hero-search-v2__scope-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* TABLET (600px - 959px) */
@media (min-width: 600px) and (max-width: 959.98px) {
  .hero-search-v2 {
    padding: 50px var(--ip-pad) 70px;
  }

  .hero-search-v2__title {
    font-size: 28px;
  }

  .hero-search-v2__row--secondary {
    grid-template-columns: 1fr;
  }

  .hero-search-v2__submit {
    width: 100%;
    justify-content: center;
  }
}
