/* ===== Camping Booking Page ===== */
.camping-booking-section { padding: 60px 0; }

/* Grid with named areas */
.camping-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 25px;
  margin-bottom: 40px;
  grid-template-areas:
    "camping-options    my-new-card      extras-essentials"
    "camping-options    payment-info-old extras-essentials";
}
.camping-info-card { grid-area: camping-options; }
.my-new-card       { grid-area: my-new-card; }
.payment-info-card { grid-area: payment-info-old; }
.extras-info-card  { grid-area: extras-essentials; }

/* Close the reserved glamping gap when that booking option is disabled. */
.camping-container--without-glamping {
  grid-template-rows: auto;
  grid-template-areas: "camping-options payment-info-old extras-essentials";
  align-items: start;
}

/* Do not reserve a grid track for an optional information card with no content. */
.camping-container--without-payment {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-template-rows: auto;
  grid-template-areas: none;
  align-items: start;
}
.camping-container--without-payment > .camping-info-card,
.camping-container--without-payment > .my-new-card,
.camping-container--without-payment > .payment-info-card,
.camping-container--without-payment > .extras-info-card {
  grid-area: auto;
}

@media (max-width: 992px) {
  .camping-container { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; grid-template-areas: none; }
  .camping-info-card, .payment-info-card, .my-new-card, .extras-info-card { grid-area: unset; }
}
@media (max-width: 768px) {
  .camping-container { grid-template-columns: 1fr; grid-template-areas: none; }
}

/* Card headers already colored via shared rules */
.pitch-options { display: flex; flex-direction: column; gap: 25px; }
.pitch-option { border: 2px solid rgba(0,0,0,0.1); border-radius: 10px; padding: 20px; transition: all 0.3s ease; }
.pitch-option:hover { border-color: var(--teal); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.pitch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.pitch-header h4 { color: var(--brown); margin: 0; display: flex; align-items: center; font-size: 1.2rem; }
.pitch-header h4 i { margin-right: 8px; color: var(--teal); }
.pitch-price { background-color: var(--yellow); color: var(--brown); padding: 8px 15px; border-radius: 20px; font-weight: bold; font-size: 1.1rem; }

.payment-details li,
.extras-list li { line-height: 1.5; }

/* Booking form card */
.booking-form-card { max-width: 800px; margin: 0 auto; }
.booking-form-header h3 { font-size: 1.5rem; }
.booking-form-header h3 i { margin-right: 10px; }
.camping-booking-form .field-help {
  display: block;
  margin-top: 7px;
  color: #6f6771;
  font-size: .84rem;
  line-height: 1.45;
}
.camping-booking-form .basket-line {
  border-bottom: 1px solid rgba(42,157,143,.18);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.camping-booking-form #basket-summary { color: var(--brown); font-weight: 700; text-align: right; }
.pitch-basket {
  border: 1px solid rgba(60,36,21,.16);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 22px;
  background: #fcfbfa;
}
.pitch-basket legend { padding: 0 8px; color: var(--brown); font-weight: 700; }
.pitch-basket > .field-help { margin: -2px 0 14px; }
.pitch-basket-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #e5dfda;
  border-radius: 11px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.pitch-basket-item + .pitch-basket-item { margin-top: 10px; }
.pitch-basket-item.has-quantity { border-color: var(--teal); background: rgba(42,157,143,.045); box-shadow: 0 0 0 2px rgba(42,157,143,.09); }
.pitch-basket-item.is-sold-out { opacity: .62; }
.pitch-basket-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pitch-basket-copy > i { width: 22px; color: var(--teal); text-align: center; }
.pitch-basket-copy span,.pitch-basket-copy strong,.pitch-basket-copy small { display: block; }
.pitch-basket-copy small { margin-top: 3px; color: #6f6771; line-height: 1.4; }
.pitch-basket-quantity { display: flex; align-items: center; gap: 9px; }
.pitch-basket-quantity label { margin: 0; font-size: .84rem; color: #6f6771; }
.pitch-basket-quantity select {
  width: 88px;
  min-width: 88px;
  height: 48px;
  box-sizing: border-box;
  padding: 0 32px 0 14px;
  border: 1px solid #cfc5d2;
  border-radius: 10px;
  background-color: #fff;
  color: var(--brown);
  -webkit-text-fill-color: var(--brown);
  color-scheme: light;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 1;
}
.pitch-basket-quantity select option {
  background: #fff;
  color: var(--brown);
}

/* Images strip */
.glamping-images-small {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; align-items: flex-start;
}
.glamping-img-thumb {
  width: 450px; height: 350px; object-fit: cover; border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s ease-in-out;
}
.glamping-img-thumb:hover { transform: scale(1.05); }
@media (max-width: 500px) {
  .glamping-images-small { flex-direction: column; align-items: center; }
  .glamping-img-thumb { width: 180px; height: 120px; }
}

/* ===== “My New Card” (middle column) ===== */
.my-new-card {
  background-color: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; height: 100%;
}
.my-new-card-header { padding: 20px; text-align: center; background-color: var(--teal); color: white; }
.my-new-card-header h3 { font-size: 1.8rem; margin-bottom: 0; display: flex; align-items: center; justify-content: center; }
.my-new-card-header h3 i { margin-right: 10px; font-size: 1.5rem; }
.my-new-card-content { padding: 25px; line-height: 1.8; color: var(--brown); flex-grow: 1; }
.my-new-card-content p { margin-bottom: 15px; }
.my-new-card-content ul li { margin-bottom: 8px; display: flex; align-items: center; }
.my-new-card-content ul li i { margin-right: 8px; color: var(--yellow); }

/* ===== Host Class Page ===== */
.intro-card { margin-bottom: 40px; text-align: center; }
.intro-header { background-color: var(--yellow); color: var(--brown); padding: 30px; }
.intro-header h2 {
  font-family: "Cabin Sketch", cursive; font-size: 2.2rem; margin: 0; display: flex; align-items: center; justify-content: center;
}
.intro-header h2 i { margin-right: 15px; }

.host-info-list li { line-height: 1.5; }

.fee-breakdown { margin-bottom: 25px; }
.fee-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.fee-item.optional { border-bottom: none; padding-bottom: 0; }
.fee-label { display: flex; align-items: center; flex: 1; }
.fee-label i { margin-right: 10px; color: var(--teal); width: 20px; text-align: center; }
.fee-amount { font-size: 1.2rem; font-weight: bold; color: var(--brown); }
.fee-note { margin-top: 10px; padding-left: 30px; }

.payment-terms { margin-top: 25px; padding-top: 25px; border-top: 1px solid rgba(0,0,0,0.1); }
.payment-terms h4 { color: var(--brown); margin-bottom: 15px; display: flex; align-items: center; }
.payment-terms h4 i { margin-right: 10px; color: var(--orange); }
.payment-list li { padding: 8px 0; display: flex; align-items: center; }
.payment-list li i { margin-right: 10px; color: var(--teal); width: 16px; text-align: center; }

.host-form-section { margin-bottom: 40px; }
.host-form-card { max-width: 900px; margin: 0 auto; }

.form-section { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 30px; }
.form-section h4 { color: var(--brown); margin-bottom: 20px; font-size: 1.3rem; display: flex; align-items: center; }
.form-section h4 i { margin-right: 10px; color: var(--teal); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.checkbox-group label { margin-bottom: 0; line-height: 1.5; cursor: pointer; }

/* host page responsiveness */
@media (max-width: 768px) {
  .host-info-container { grid-template-columns: 1fr; }
  .intro-header h2 { font-size: 1.8rem; }
  .intro-content p { font-size: 1.1rem; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .pitch-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .camping-container { grid-template-columns: 1fr; }
}

/* Keep the information-rich camping journey comfortable to read on a phone
   without spending vertical space on desktop-sized section gaps. */
@media (max-width: 620px) {
  .camping-booking-section { padding-block: 32px 40px; }
  .camping-container {
    gap: 16px;
    margin-bottom: 24px;
  }
  .pitch-options { gap: 16px; }
  .pitch-option { padding: 16px; }
  .pitch-header { margin-bottom: 12px; }
  .camping-help {
    margin-top: 24px;
    padding: 20px;
  }
  .camping-booking-form #basket-summary { text-align: left; }
  .pitch-basket { padding: 14px; }
  .pitch-basket-item { grid-template-columns: 1fr; gap: 11px; }
  .pitch-basket-quantity { justify-content: space-between; }
  .pitch-basket-quantity select { width: 96px; min-width: 96px; }
}
