/* RH4 Booking – premium two-column layout (desktop) + mobile-first stacking */

.rh4-booking-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.rh4-booking-title{
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 14px;
}

.rh4-booking-meta{
  font-size: 14px;
  color: #475569;
  margin-bottom: 18px;
}

.rh4-booking-grid{
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 22px;
  align-items: start;
}

/* Sticky summary on desktop */
@media (min-width: 1025px){
  .rh4-booking-side{
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* Mobile summary toggle */
.rh4-summary-toggle{
  display: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.rh4-summary-toggle__chev{
  float: right;
  opacity: .6;
  transition: transform .15s ease;
}
.rh4-booking-side.is-collapsed .rh4-summary-toggle__chev{ transform: rotate(-90deg); }
.rh4-booking-side.is-collapsed .rh4-summary-body{ display: none; }

@media (max-width: 768px){
  .rh4-summary-toggle{ display: block; }
}

@media (max-width: 980px){
  .rh4-booking-grid{ grid-template-columns: 1fr; }
}

.rh4-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15,23,42,.06);
}

.rh4-card__pad{ padding: 18px; }

.rh4-card h2{
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
}

/*
  Avada/Fusion sometimes applies grid rules directly on <form> and inputs.
  These overrides force our intended layout and prevent tiny/shrunk fields.
*/
.rh4-booking-wrap .rh4-form{ display: block !important; }

.rh4-booking-wrap .rh4-form-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: start !important;
}
@media (min-width: 721px){
  .rh4-booking-wrap .rh4-form-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.rh4-booking-wrap .rh4-field{
  margin: 0 !important;
  min-width: 0 !important;
}
.rh4-booking-wrap .rh4-field label{
  display: block !important;
  margin: 0 0 6px !important;
}

.rh4-booking-wrap .rh4-field input[type="text"],
.rh4-booking-wrap .rh4-field input[type="email"],
.rh4-booking-wrap .rh4-field input[type="tel"],
.rh4-booking-wrap .rh4-field select,
.rh4-booking-wrap .rh4-field textarea{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Guests cards (generated dynamically) */
.rh4-booking-wrap .rh4-booking__guests{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
@media (min-width: 981px){
  .rh4-booking-wrap .rh4-booking__guests{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Buttons row */
.rh4-booking-wrap .rh4-actions{
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.rh4-booking-wrap .rh4-actions .rh4-btn{ white-space: nowrap; }

.rh4-form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px){ .rh4-form-row{ grid-template-columns: 1fr; } }

.rh4-field{ margin: 0 0 12px; }
.rh4-field label{ display:block; font-size: 13px; font-weight: 700; color:#0f172a; margin: 0 0 6px; }

.rh4-field input[type="text"],
.rh4-field input[type="email"],
.rh4-field input[type="tel"],
.rh4-field select,
.rh4-field textarea{
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.20);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15,23,42,.03);
  font-size: 15px;
}

.rh4-field textarea{ height: 110px; resize: vertical; }

.rh4-field input:focus,
.rh4-field select:focus,
.rh4-field textarea:focus{
  outline: none;
  border-color: rgba(6, 95, 70, .65);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}

.rh4-divider{
  height: 1px;
  background: rgba(15,23,42,.10);
  margin: 16px 0;
}

.rh4-actions{ display:flex; gap: 10px; justify-content: flex-start; align-items: center; flex-wrap: wrap; }

.rh4-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, box-shadow .2s ease, background-color .2s ease;
}

.rh4-btn:focus-visible{
  outline: 3px solid rgba(34,197,94,.35);
  outline-offset: 2px;
}

.rh4-btn--primary{
  background: #1f6f43;
  border-color: #1f6f43;
  color: #fff;
}

.rh4-btn--secondary{
  background: #fff;
  border-color: rgba(15,23,42,.18);
  color: #0f172a;
}

.rh4-btn--primary:hover{ filter: brightness(.96); }

/* Sticky handled at the aside level (see top of file) */

.rh4-summary-img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display:block;
}

.rh4-summary-title{
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

.rh4-summary-sub{
  font-size: 13px;
  color: #475569;
  margin: 0 0 10px;
}

.rh4-kv{ display:grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed rgba(15,23,42,.12); }
.rh4-kv:last-child{ border-bottom: 0; }
.rh4-k{ color:#475569; }
.rh4-v{ color:#0f172a; font-weight: 800; text-align: right; }

.rh4-note{
  margin-top: 12px;
  font-size: 13px;
  color: #475569;
  background: rgba(2, 132, 199, .08);
  border: 1px solid rgba(2, 132, 199, .18);
  padding: 10px 12px;
  border-radius: 12px;
}


/* --- UI polish v0.9.9.23 --- */

.rh4-progress{margin:12px 0 18px;}
.rh4-progress ol{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:wrap;}
.rh4-step{display:flex;align-items:center;gap:8px;color:#6b778c;font-weight:600;font-size:13px;line-height:1;}
.rh4-step__dot{width:10px;height:10px;border-radius:999px;border:2px solid rgba(16,24,40,.25);display:inline-block;}
.rh4-step--done{color:#2f855a;}
.rh4-step--done .rh4-step__dot{background:#2f855a;border-color:#2f855a;}
.rh4-step--active{color:#1f2937;}
.rh4-step--active .rh4-step__dot{background:#1f2937;border-color:#1f2937;}

/* subtle connectors */
.rh4-progress ol .rh4-step:not(:last-child)::after{content:"";display:inline-block;width:24px;height:2px;background:rgba(16,24,40,.12);margin-left:2px;}

@media (max-width: 640px){
  .rh4-progress ol{gap:8px;}
  .rh4-progress ol .rh4-step:not(:last-child)::after{width:14px;}
  .rh4-step__label{display:none;}
}

.rh4-price{border:1px solid rgba(16,24,40,.12);background:rgba(255,255,255,.65);border-radius:12px;padding:12px 12px 10px;margin-top:12px;}
.rh4-price__label{font-size:12px;color:#6b778c;font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
.rh4-price__amount{font-size:22px;font-weight:800;margin-top:6px;line-height:1.1;color:#111827;}
.rh4-price__ccy{font-size:13px;font-weight:800;color:#6b778c;margin-left:4px;}
.rh4-price__sub{margin-top:6px;font-size:12px;color:#6b778c;}

/* Buttons: keep on one row on desktop, stack on small */
.rh4-actions{gap:10px;}
@media (min-width: 900px){
  .rh4-actions .rh4-btn{min-width: 220px;}
}
@media (max-width: 520px){
  .rh4-actions{flex-direction:column;align-items:stretch;}
  .rh4-actions .rh4-btn{width:100%;}
}

/* Loading state */
.rh4-form.is-loading .rh4-btn--primary{ opacity:.7; cursor:wait; }
.rh4-spinner{
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color: rgba(255,255,255,1);
  margin-left:10px;
  animation: rh4spin .8s linear infinite;
}
@keyframes rh4spin{ to{ transform:rotate(360deg);} }

/* Field errors */
.rh4-field.is-error input,
.rh4-field.is-error select,
.rh4-field.is-error textarea{
  border-color: rgba(220,38,38,.55) !important;
  box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}
.rh4-error-msg{ margin-top:6px; font-size:12px; color: rgb(185,28,28); }

/* Checkout sidebar details (toggle) */
.rh4-details{margin-top:12px;border:1px solid rgba(16,24,40,.12);border-radius:12px;background:#fff;overflow:hidden}
.rh4-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-weight:700}
.rh4-details>summary::-webkit-details-marker{display:none}
.rh4-details>summary:after{content:'▾';opacity:.65}
.rh4-details[open]>summary:after{content:'▴'}
.rh4-details-body{padding:0 12px 10px 12px;color:rgba(17,24,39,.78)}
.rh4-list{margin:6px 0 0 18px;padding:0}
.rh4-list li{margin:6px 0;line-height:1.35}



/* Premium reservation choice cards */
.rh4-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px;}
.rh4-choice-card{position:relative;display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border:1px solid rgba(15,23,42,.12);border-radius:16px;background:#fff;cursor:pointer;transition:border-color .2s ease, box-shadow .2s ease, transform .05s ease;}
.rh4-choice-card:hover{border-color:rgba(31,111,67,.35);box-shadow:0 10px 24px rgba(15,23,42,.06);}
.rh4-choice-card.is-selected{border-color:#1f6f43;box-shadow:0 0 0 3px rgba(31,111,67,.12),0 14px 30px rgba(15,23,42,.08);}
.rh4-choice-input{position:absolute;opacity:0;pointer-events:none;}
.rh4-choice-body{display:block;flex:1 1 auto;min-width:0;}
.rh4-choice-title{display:block;font-size:16px;font-weight:800;color:#111827;line-height:1.25;margin-bottom:4px;}
.rh4-choice-sub{display:block;font-size:13px;line-height:1.5;color:#5b6472;}
.rh4-choice-check{width:22px;height:22px;border-radius:999px;border:2px solid rgba(15,23,42,.18);margin-top:2px;flex:0 0 auto;position:relative;}
.rh4-choice-card.is-selected .rh4-choice-check{border-color:#1f6f43;background:#1f6f43;}
.rh4-choice-card.is-selected .rh4-choice-check:after{content:"";position:absolute;inset:5px;border-radius:999px;background:#fff;}
.rh4-choice-note{margin-top:10px;font-size:13px;color:#5b6472;}
@media (max-width: 720px){.rh4-choice-grid{grid-template-columns:1fr;}}
