/* Group stay planner (group-stay.html). Uses the palette variables of /before-you-book/before-you-book.css. */
.gp-form { margin: 1.25rem 0 0; padding: clamp(.9rem, 3vw, 1.5rem); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.gp-form[hidden] { display: none; }
.gp-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
/* iOS Safari gives the native date field its own minimum width, so in two columns the fields ran into each
   other and past the card (owner's iPhone, 2026-11-24). Without the native look and with min-width: 0 on the
   column, each field takes exactly its column; the date text starts at the left. */
.gp-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; min-width: 0; font-weight: 700; font-size: .9rem; }
.gp-field input[type="date"] {
  -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; text-align: left;
  min-height: 44px; width: 100%; min-width: 0; max-width: 100%; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; /* under 16px iOS zooms the page on tap */
}
.gp-field input[type="date"]::-webkit-date-and-time-value { margin: 0; text-align: left; }
.gp-nights { min-height: 1.3em; margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.gp-slider { margin: .55rem 0 0; }
.gp-slider[hidden] { display: none; }
.gp-slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; }
.gp-slider output { min-width: 2.5ch; text-align: right; font-size: 1.25rem; font-weight: 800; color: var(--palm); }
.gp-slider input[type="range"] { display: block; width: 100%; height: 44px; margin: -.3rem 0 -.2rem; accent-color: var(--palm); cursor: pointer; }
.gp-hint { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.gp-availability { min-height: 1.3em; margin: 0 0 .4rem; color: var(--muted); font-size: .92rem; }
.gp-availability.is-free { color: var(--palm); font-weight: 700; }
.gp-availability.is-partial { color: var(--ink); }
.gp-free { color: var(--palm); font-weight: 800; }
.gp-result { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.gp-options { display: grid; gap: .45rem; }
.gp-option {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; padding: .4rem .6rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .12s ease;
}
.gp-option[hidden], .gp-more[hidden] { display: none; }
.gp-more {
  min-height: 44px; margin: .5rem 0 0; padding: .4rem .2rem; border: 0; background: none; cursor: pointer;
  color: var(--palm); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.gp-option:hover { border-color: var(--palm); }
.gp-option input { position: absolute; opacity: 0; pointer-events: none; }
.gp-option:has(input:checked) { border-color: var(--palm); background: #fff; box-shadow: 0 0 0 2px var(--palm) inset; }
.gp-option:has(input:focus-visible) { outline: 2px solid var(--palm); outline-offset: 3px; }
.gp-option-photos { display: flex; flex: none; }
.gp-option-photos img { width: 60px; height: 40px; border-radius: 8px; object-fit: cover; border: 2px solid #fff; }
.gp-option-photos img + img { margin-left: -22px; }
.gp-option-text { display: grid; flex: 1 1 10rem; gap: 0; line-height: 1.3; min-width: 0; }
.gp-option-text small { color: var(--muted); font-size: .85rem; }
.gp-option-text em { margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: var(--mist); color: var(--palm); font-size: .75rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.gp-alt { margin: .75rem 0 0; }
.gp-alt[hidden] { display: none; }
.gp-alt-title { margin: 0 0 .5rem; font-family: Manrope, Arial, sans-serif; font-size: .95rem; font-weight: 700; color: var(--muted); }
.gp-option-alt { background: #fff; border-style: dashed; }
.gp-result h2 { margin: 0 0 .25rem; padding: 0; border: 0; font-family: Manrope, Arial, sans-serif; font-size: 1.05rem; font-weight: 800; }
.gp-beds { margin: .75rem 0 0; padding: .7rem .9rem; border-left: 4px solid var(--sun); background: var(--mist); border-radius: 0 10px 10px 0; font-size: .95rem; }
.gp-beds[hidden], .gp-over[hidden] { display: none; }
.gp-over { margin: .75rem 0 0; font-weight: 700; }
.gp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.gp-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .55rem 1.2rem;
  border-radius: 999px; font-weight: 800; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.gp-actions a[hidden] { display: none; }
/* WhatsApp's own green (brand colours are kept as they are); dark text keeps the contrast above 7:1. */
.gp-request { background: #25d366; color: #0b2a17; }
.gp-request:hover { background: #1ebe5b; color: #0b2a17; }
.gp-book { border: 2px solid var(--palm); color: var(--palm); background: #fff; }
.gp-book:hover { background: var(--palm); color: #fff; }
.gp-note { margin: .4rem 0 0; color: var(--muted); font-size: .85rem; }
.gp-note:empty { display: none; }
.gp-add, .gp-copy {
  min-height: 44px; padding: .3rem 0; border: 0; background: none; cursor: pointer;
  color: var(--palm); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.gp-add { display: block; margin: .3rem 0 0; }
.gp-add[hidden] { display: none; }
.gp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .75rem; margin: .25rem 0 0; }
/* Touch feedback (owner, 2026-11-25): a pressed button or option visibly gives way, so a tap on the phone is
   answered at once. Text buttons dim instead of shrinking. */
.gp-option, .gp-actions a, .gp-more, .gp-add, .gp-copy { -webkit-tap-highlight-color: transparent; }
.gp-actions a:active { transform: scale(.97); }
.gp-option:active { transform: scale(.985); }
.gp-more, .gp-add, .gp-copy { transition: opacity .12s ease; }
.gp-more:active, .gp-add:active, .gp-copy:active { opacity: .55; }
/* «Show all combinations»: the added options rise in one after another, so the guest sees what was added. */
@keyframes gpReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gp-reveal { animation: gpReveal .24s ease-out both; animation-delay: min(calc(var(--gp-i, 0) * 35ms), 210ms); }
/* An option that was not on screen before (another bedroom or guest count) fades in instead of popping up. */
@keyframes gpEnter { from { opacity: 0; } to { opacity: 1; } }
.gp-enter { animation: gpEnter .2s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .gp-option, .gp-actions a, .gp-more, .gp-add, .gp-copy { transition: none; }
  .gp-actions a:active, .gp-option:active { transform: none; }
  .gp-reveal, .gp-enter { animation: none; }
}
#gp-copy-status { color: var(--palm); font-size: .9rem; font-weight: 700; }
.gp-plan { margin: 2rem 0 0; }
.gp-plan img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 480px) {
  .gp-actions a { flex: 1 1 auto; padding: .55rem .7rem; font-size: .95rem; }
}
@media (max-width: 330px) {
  .gp-dates { grid-template-columns: 1fr; }
}
