
.wp-ubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.wp-ubs-item {
    border: 1px solid #ddd;
    padding: 15px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wp-ubs-item h3 {
    margin-top: 0;
}

.wp-ubs-item img {
    max-width: 100%;
    height: auto;
}

.wp-ubs-price-category {
    background-color: #f4f8ff;
    border-left: 4px solid #0073aa;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .wp-ubs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wp-ubs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   WPUBS Booking Site Page Enhancements (v1.6.6)
   Adds transparent background, spacing fixes, and scroll gallery
   ============================================================ */

.wpubs-booking-container {
  background: rgba(255, 255, 255, 0.85); /* 85% transparency */
  border-radius: 10px;
  padding: 25px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Headings and text spacing */
.wpubs-booking-container h1,
.wpubs-booking-container h2,
.wpubs-booking-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

.wpubs-booking-features {
  margin: 0 auto 25px auto;
  max-width: 900px;
  line-height: 1.6;
  color: #333;
}

/* Horizontal image gallery */
.wpubs-gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.wpubs-gallery-scroll img {
  max-height: 280px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.wpubs-gallery-scroll img:hover {
  transform: scale(1.05);
}

/* Booking form card styling */
.wpubs-booking-form {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  margin: 20px auto;
}

.wpubs-booking-form input,
.wpubs-booking-form button {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .wpubs-gallery-scroll img {
    max-height: 200px;
  }
  .wpubs-booking-container {
    padding: 15px;
  }
}

/* ==== WPUBS Archive Layout Enhancements ==== */

.wp-ubs-archive,
.wpubs-booking-container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 25px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wp-ubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.wp-ubs-item {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-ubs-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.wpubs-item-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.wpubs-item-title {
  font-size: 1.4em;
  margin: 10px 0 5px;
  color: #333;
  text-align: center;
}

.wpubs-item-excerpt {
  font-size: 0.95em;
  color: #444;
  text-align: center;
}

/* ===========================
   WPUBS Booking Features Grid
   =========================== */

.wpubs-booking-features {
  margin: 25px auto;
  text-align: center;
  max-width: 900px;
}

.wpubs-booking-features h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #222;
}

.wpubs-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  gap: 12px 18px;
  margin-top: 10px;
}

.wpubs-feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-width: 160px;
}

.wpubs-feature-item .dashicons {
  margin-right: 8px;
  font-size: 18px;
  color: #0073aa;
}

.wpubs-feature-text {
  font-size: 0.9em; /* Slightly smaller than body */
  color: #333;
  text-align: left;
}

@media (max-width: 600px) {
  .wpubs-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
