/* ===========================
   BLACKTROPOLIS CUSTOM CSS (UPDATED 07-29-2025)
   Search bar layout improvements - desktop + mobile
=========================== */
/* =====================================
   BLACKTROPOLIS CUSTOM SEARCH FORM CSS
   Version: 07-30-2025
   ===================================== */


/* === 1. MAIN CONTAINER === */

.custom-lp-search-form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  max-width: 1100px;
  margin: 20px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


/* === 2. INPUT GROUPS === */

.custom-lp-search-form input[type="text"],
.custom-lp-search-form select {
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 5px 10px;
  min-width: 220px;
  flex: 1;
}

.custom-lp-search-form input::placeholder {
  font-size: 16px;
  color: #aaa;
}

.custom-lp-search-form select {
  height: 48px;
}

.custom-lp-search-form .search-checkbox-group {
  display: flex;
  align-items: center;
  margin: 5px 10px;
  white-space: nowrap;
}

.custom-lp-search-form .search-checkbox-group input[type="checkbox"] {
  margin-right: 6px;
  transform: scale(1.1);
}

.custom-lp-search-form .search-checkbox-group label {
  font-size: 16px;
}


/* === 3. BOTTOM ROW (Checkbox + Button) === */

.custom-lp-search-form button[type="submit"] {
  font-size: 16px;
  padding: 12px 22px;
  background-color: #f9a825;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px 10px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.custom-lp-search-form button[type="submit"]:hover {
  background-color: #e08900;
}


/* === 4. MOBILE RESPONSIVENESS === */

@media (max-width: 768px) {
  .custom-lp-search-form {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .custom-lp-search-form input[type="text"],
  .custom-lp-search-form select,
  .custom-lp-search-form button[type="submit"] {
    width: 100%;
    margin: 8px 0;
    font-size: 16px;
  }

  .custom-lp-search-form .search-checkbox-group {
    justify-content: flex-start;
    margin: 8px 0;
  }

  .custom-lp-search-form .search-checkbox-group label {
    font-size: 15px;
  }

  .custom-lp-search-form button[type="submit"] {
    font-size: 16px;
    padding: 14px;
  }
}

/* BT — Make sure SearchWP Live results are visible under the keyword field */
.searchwp-live-search-results {
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Ensure it anchors nicely under your input container */
.custom-lp-search-form .input-container {
    position: relative;
}

/* Optional: basic styling for result items */
.searchwp-live-search-results .searchwp-live-search-result {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.searchwp-live-search-results .searchwp-live-search-result:hover {
    background: #f7f7f7;
}

