/*
Theme Name: Yachbat Child
*/

/* ---------------------------------
   Yacht Filter Form (List Page)
--------------------------------- */



#yacht-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  align-items: center;
  margin-bottom: 2rem;
}

#yacht-filter .filter-group {
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

#yacht-filter label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #333;
}

#yacht-filter select {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 1rem;
}

#yacht-filter .yacht-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#yacht-filter .yacht-submit button {
  background-color: #0073e6;
  color: white;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#yacht-filter .yacht-submit button:hover {
  background-color: #005bb5;
}

/* ---------------------------------
   Homepage Form Shortcode Styles
--------------------------------- */
.homepage-form-container {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.homepage-form-container .form-top-border {
  height: 6px;
  width: 100%;
  background: #ff6f00;
  border-radius: 6px 6px 0 0;
  position: absolute;
  top: 0;
  left: 0;
}

.form-logo {
  max-width: 60px;
  margin: 1.5rem auto 0.5rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.yacht-form.modern .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.yacht-form.modern label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  display: block;
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.5;
}

.input-icon select {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.2rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  appearance: none;
}

.custom-search-button {
  width: 100%;
  padding: 0.9rem;
  background: #003bff;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.custom-search-button:hover {
  background: #002ccc;
}

/* ---------------------------------
   Tour Listing (Product Cards)
--------------------------------- */
.tour-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.tour-box {
  display: flex;
  gap: 2rem;
  background: #f9fafe;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: 0 1px 10px rgba(0,0,0,0.03);
  align-items: flex-start;
}

.tour-box-image img {
  width: 280px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.tour-box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tour-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.tour-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tour-price {
  font-weight: bold;
  color: #1e40af;
  font-size: 1.1rem;
}

.tour-buttons a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* View Deals button */
.custom-view-deals {
  background: #fff;
  color: #ff6f00;
  border: 2px solid #ff6f00;
}

.custom-view-deals:hover {
  background: #ff6f00;
  color: white;
}

/* Book Now button */
.custom-book-now {
  background: #1e40af;
  color: white;
  border: none;
}

.custom-book-now:hover {
  background: #162f85;
}

/* ---------------------------------
   Responsive Fixes
--------------------------------- */
@media (max-width: 768px) {
  #yacht-filter {
    flex-direction: column;
  }

  .tour-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tour-box-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .tour-box-content {
    padding-top: 1rem;
    width: 100%;
  }

  .tour-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .tour-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .tour-buttons a {
    width: 100%;
    text-align: center;
  }
}
