/* ==========================================
   HOME: QUICK SEARCH BOX (PEŁNA SZEROKOŚĆ)
   ========================================== */
.ip-home-quick-search-wrapper,
.ip-quick-search-wrapper {
  background-color: #313131;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  font-family: Montserrat, sans-serif;
  box-sizing: border-box;
}

.ip-qs-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ip-qs-tabs {
  display: flex;
  overflow: hidden;
}

.ip-qs-tabs input[type="radio"] {
  display: none;
}

.ip-qs-tab-label {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  color: #ffffffcc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #ffffff33;
}

label.ip-qs-tab-label:first-of-type {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: none;
}

label.ip-qs-tab-label:last-of-type {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-left: none;
}

.ip-qs-tabs input[type="radio"]:checked + .ip-qs-tab-label {
  background-color: #6da0ef;
  color: #ffffff;
  border: 1px solid #6da0ef;
}

.ip-qs-tab-label:hover {
  color: #ffffff;
}

.ip-qs-inputs {
  display: flex;
  gap: 12px;
}

.ip-qs-input {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 4px !important;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  color: #1e1e1e;
}

.ip-qs-input::placeholder {
  color: #1e1e1e80;
  font-weight: 300;
}

.ip-qs-input:focus {
  outline: 1px solid #c5a059;
}

.ip-qs-btn {
  background-color: #c5a059;
  color: #050609;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ip-qs-btn:hover,
.ip-qs-btn:focus {
  background-color: #c5a059 !important;
  color: #ffffff !important;
  box-shadow:
    0px 0px 15px 0px rgba(109, 160, 239, 0.5),
    0px 0px 25px 4px rgba(252, 245, 223, 0.25);
}

.ip-btn-see-all:hover,
.ip-btn-see-all:focus {
  background: #c5a059 !important;
  color: #1e1e1e !important;
}

/* ==========================================
   WYSZUKIWARKA: RESPONSyWNOŚĆ (Zakładki obok siebie)
   ========================================== */
@media (max-width: 768px) {
  .ip-home-quick-search-wrapper,
  .ip-quick-search-wrapper {
    padding: 24px 16px; /* Zmniejszony padding */
  }

  .ip-qs-tabs {
    flex-direction: row; /* Zatrzymujemy obok siebie */
    border-radius: 4px;
    border: 1px solid #ffffff33;
  }

  .ip-qs-tab-label {
    padding: 10px 4px;
    font-size: 11px; /* Mniejszy tekst aby się zmieściło */
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-right: 1px solid #ffffff33 !important;
    border-radius: 0 !important;
  }

  .ip-qs-tab-label:last-child {
    border-right: none !important;
  }

  .ip-qs-inputs {
    flex-direction: column;
  }
}

/* ==========================================
   HOME: LATEST OFFERS SLIDER (DESKTOP)
   ========================================== */
.ip-home-slider-container {
  position: relative;
  width: 100%;
  font-family: Montserrat, sans-serif;
}

.ip-home-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.ip-home-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.ip-home-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================
   WSPÓLNE KONTROLKI (STRZAŁKI I KROPKI)
   ========================================== */
.ip-ad-nav-controls,
.ip-showcase-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Przyciski Strzałek - CZYSTE, TWOJE STYLE */
.ip-ad-prev,
.ip-ad-next,
.ip-nav-prev,
.ip-nav-next {
  background: transparent !important;
  border: 2px solid #c5a059;
  color: #c5a059;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ip-ad-prev:hover,
.ip-ad-next:hover,
.ip-nav-prev:hover,
.ip-nav-next:hover {
  background: #c5a059;
  color: #050609;
}

.ip-ad-dots,
.ip-nav-dots {
  display: flex;
  gap: 12px;
}

.ip-ad-dot,
.ip-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #8d8d8d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ip-ad-dot.active,
.ip-nav-dot.active {
  background-color: #c5a059;
  border-color: #c5a059;
}

/* ==========================================
   GŁÓWNY GRID KART OFERT (3 KOLUMNY)
   ========================================== */
.ip-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .ip-listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   ZASADY WYŚWIETLANIA (UKRYWANIE MOBILE/DESKTOP)
   ========================================== */
/* Domyślnie (Na Desktopie) chowamy kontrolki mobilne */
.ip-showcase-mobile-nav {
  display: none !important;
}

/* Zachowanie dla telefonów (ZAMIANA GRID NA SLIDER) */
@media (max-width: 768px) {
  /* 1. Ukrywamy kontrolki i slajdy desktopowe */
  .ip-desktop-nav-controls,
  .ip-desktop-only-slide {
    display: none !important;
  }

  /* 2. Wyświetlamy kontrolki mobilne pierwszego slajdu */
  .ip-showcase-mobile-nav {
    margin-top: 0px !important;
    display: flex !important;
  }

  /* 3. Zamieniamy Grid w przewijany rząd */
  .ip-listings-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Ukrywa pasek w Firefox */
    gap: 16px;
    padding-bottom: 10px;
  }

  .ip-listings-grid::-webkit-scrollbar {
    display: none; /* Ukrywa pasek w Chrome/Safari */
  }

  .ip-preview-card {
    width: 100%; /* Każda karta 100% szerokości */
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}
