/* ==========================================
   QUICK SEARCH BOX (WYSZUKIWARKA NA STRONIE GŁÓWNEJ)
   ========================================== */
.ip-quick-search-wrapper {
  background-color: #313131; /* Ciemne tło maskujące jeśli używasz go na sekcji */
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  font-family: Montserrat, sans-serif;
}

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

/* Zakładki u góry */
.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;
}

/* Stan aktywny (Zaznaczony) */
.ip-qs-tabs input[type="radio"]:checked + .ip-qs-tab-label {
  background-color: #6da0ef; /* Kolor niebieski z Twojego brandu */
  color: #ffffff;
  border: 1px solid #6da0ef;
}

/* Stan nieaktywny hover */
.ip-qs-tab-label:hover {
  color: #ffffff;
}

/* Dolna część z inputem i przyciskiem */
.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);
}

/* ==========================================
   SHOWCASE KATEGORII (LISTA 6 OFERT)
   ========================================== */
.ip-category-showcase {
  font-family: Montserrat, sans-serif;
}

.ip-showcase-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.ip-gold-text {
  color: #c5a059; /* Złoty akcent */
}

/* Mały paska dzielący pod tytułem z projektu */
.ip-showcase-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #c5a059 0%, #6da0ef 100%);
  margin: 0 auto 32px auto;
  border-radius: 2px;
}

.ip-showcase-actions {
  text-align: center;
  margin-top: 40px;
}

.ip-btn-see-all {
  display: inline-block;
  color: #c5a059;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  padding: 12px 24px;
  background: #ffffff;
  border-radius: 4px;
}

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

/* Responsywność */
@media (max-width: 768px) {
  .ip-qs-tabs {
    flex-direction: column;
  }
  .ip-qs-inputs {
    flex-direction: column;
  }
  .ip-showcase-title {
    font-size: 28px;
  }
}

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

/* Responsywność dla 2 i 1 kolumny */
@media (max-width: 1200px) {
  .ip-listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ==========================================
   MOBILNY SLIDER (Karty ofert na telefonie)
   ========================================== */
.ip-showcase-mobile-nav {
    display: none; /* Domyślnie ukryte na desktopie */
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

/* Przyciski Strzałek */
.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;
    padding: 0;
}

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

/* Kontener kropeczek */
.ip-nav-dots {
    display: flex;
    gap: 12px;
}

/* Pojedyncza kropeczka */
.ip-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #8d8d8d; /* Szary, wygaszony kontur */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

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

/* Włączenie slidera na urządzeniach mobilnych */
@media (max-width: 768px) {
    .ip-category-showcase .ip-mobile-slider-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;
        
    }

    .ip-category-showcase .ip-mobile-slider-grid::-webkit-scrollbar {
        display: none; /* Ukrywa pasek w Chrome/Safari */
    }

    .ip-category-showcase .ip-preview-card {
        width: 100%; /* Każda karta zajmuje 100% szerokości dostępnego miejsca */
        scroll-snap-align: start; /* Zatrzymuje przewijanie równo do lewej krawędzi */
        flex-shrink: 0;
    }

    .ip-showcase-mobile-nav {
        display: flex; /* Pokazujemy strzałki i kropki na mobile */
    }
}

/* Responsywność wyszukiwarki */
@media (max-width: 768px) {
  .ip-quick-search-wrapper {
    padding: 24px 16px; /* Znacznie zmniejszony padding na telefonach */
  }

  .ip-qs-tabs {
    flex-direction: row; /* Zatrzymujemy zakładki obok siebie */
    border-radius: 4px;
    overflow: hidden;
  }

  .ip-qs-tab-label {
    padding: 10px 4px;
    font-size: 11px; /* Zmniejszona czcionka, żeby zmieściły się 3 teksty w rzędzie */
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 !important; /* Usuwa potencjalne błędy zaokrągleń między elementami */
  }

  .ip-qs-inputs {
    flex-direction: column;
  }
  
  .ip-showcase-title {
    font-size: 28px;
  }
}