/* Booking request form (tgwv-hotels) — uses theme tokens with neutral fallbacks. */
.tgwv-hotel-request {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--tgwv-color-border, #e2e8f0);
    border-radius: 12px;
    background: var(--tgwv-color-light, #fff);
    color: var(--tgwv-color-text, #1f2937);
}
.tgwv-hotel-request__title { margin: 0 0 8px; font-size: 1.5rem; }
.tgwv-hotel-request__subtitle { margin: 0 0 16px; color: var(--tgwv-color-muted, #6b7280); }
.tgwv-hotel-request__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.tgwv-hotel-request__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.tgwv-hotel-request__field--wide { grid-column: 1 / -1; }
.tgwv-hotel-request__field input,
.tgwv-hotel-request__field select,
.tgwv-hotel-request__field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--tgwv-color-border, #cbd5e1);
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
}
.tgwv-hotel-request__field textarea { min-height: 88px; resize: vertical; }
.tgwv-hotel-request__field :focus-visible { outline: 3px solid var(--tgwv-color-primary, #1d4ed8); outline-offset: 1px; }
.tgwv-hotel-request__field [aria-invalid="true"] { border-color: #b91c1c; }
.tgwv-hotel-request__error { display: block; margin-top: 2px; color: #b02a37; font-size: 0.8rem; font-weight: 500; line-height: 1.3; }
.tgwv-hotel-request__price { font-weight: 400; color: var(--tgwv-color-primary, #1d4ed8); min-height: 1.2em; }
.tgwv-hotel-request__price-note,
.tgwv-hotel-request__notice { margin: 14px 0 0; font-size: 0.9rem; color: var(--tgwv-color-muted, #6b7280); }
.tgwv-hotel-request__status { margin: 14px 0 0; min-height: 1.2em; }
.tgwv-hotel-request__status.is-success { padding: 10px 12px; border-radius: 8px; background: #ecfdf5; color: #065f46; }
.tgwv-hotel-request__status.is-error { padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #991b1b; }
.tgwv-hotel-request__submit {
    margin-top: 16px;
    min-height: 46px;
    padding: 10px 28px;
    border: 0;
    border-radius: 8px;
    background: var(--tgwv-color-primary, #1d4ed8);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.tgwv-hotel-request__submit:disabled { opacity: 0.6; cursor: progress; }
.tgwv-hotel-request__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575px) {
    .tgwv-hotel-request { padding: 16px; border-radius: 10px; }
    .tgwv-hotel-request__grid { grid-template-columns: 1fr; }
    .tgwv-hotel-request__dates { grid-template-columns: 1fr; }
    .tgwv-hotel-request__submit { width: 100%; }
}

/* Phase 10B — date range picker that strikes sold-out nights of the chosen room type */
.tgwv-hotel-request__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; grid-column: 1 / -1; }
.tgwv-hotel-request__date-field { grid-column: 1 / -1; position: relative; }
.tgwv-hotel-request__date-trigger {
    width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; cursor: pointer;
    border: 1px solid var(--tgwv-color-border, #cbd5e1); border-radius: 8px; background: #fff; color: inherit; font: inherit; font-weight: 400;
}
.tgwv-hotel-request__date-trigger.is-empty { color: var(--tgwv-color-muted, #6b7280); }
.tgwv-hotel-request__date-trigger:focus-visible { outline: 3px solid var(--tgwv-color-primary, #1d4ed8); outline-offset: 1px; }
.tgwv-hotel-request__date-trigger[aria-invalid="true"] { border-color: #b91c1c; }
.tgwv-hotel-request__calendar {
    position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(720px, 92vw);
    padding: 14px; border: 1px solid var(--tgwv-color-border, #e2e8f0); border-radius: 12px; background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18); font-weight: 400;
}
.tgwv-hotel-request__calendar-nav { position: relative; z-index: 2; display: flex; justify-content: space-between; margin-bottom: 4px; pointer-events: none; }
.tgwv-hotel-request__calendar-nav .tgwv-hotel-request__nav { pointer-events: auto; }
.tgwv-hotel-request__nav { width: 40px; height: 40px; border: 1px solid var(--tgwv-color-border, #e2e8f0); border-radius: 8px; background: #fff; font-size: 1.3rem; cursor: pointer; }
.tgwv-hotel-request__nav:disabled { opacity: 0.35; cursor: default; }
.tgwv-hotel-request__months { display: flex; gap: 24px; }
/* Titles share the arrow row visually; they never take the arrows' clicks. */
.tgwv-hotel-request__month-title { position: relative; z-index: 1; text-align: center; font-weight: 600; margin: -34px 0 10px; line-height: 24px; text-transform: capitalize; pointer-events: none; }
.tgwv-hotel-request__month table { border-collapse: collapse; }
.tgwv-hotel-request__month th { width: 42px; padding: 4px 0; font-size: 0.8rem; font-weight: 600; color: var(--tgwv-color-muted, #6b7280); text-align: center; text-transform: capitalize; }
.tgwv-hotel-request__month td { padding: 1px; text-align: center; }
.tgwv-hotel-request__day {
    width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.tgwv-hotel-request__day:hover:not([aria-disabled="true"]) { background: #eef2ff; }
.tgwv-hotel-request__day:focus-visible { outline: 3px solid var(--tgwv-color-primary, #1d4ed8); outline-offset: -2px; }
.tgwv-hotel-request__day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--tgwv-color-border, #cbd5e1); }
.tgwv-hotel-request__day[aria-disabled="true"] { color: #9ca3af; cursor: not-allowed; }
.tgwv-hotel-request__day.is-closed { color: #b91c1c; text-decoration: line-through; text-decoration-thickness: 2px; background: #fef2f2; }
.tgwv-hotel-request__day.is-closed.is-checkout-only { cursor: pointer; }
.tgwv-hotel-request__day.is-past { text-decoration: none; background: transparent; color: #cbd5e1; }
.tgwv-hotel-request__day.is-in-range { background: #dbeafe; border-radius: 0; }
.tgwv-hotel-request__day.is-start,
.tgwv-hotel-request__day.is-end { background: var(--tgwv-color-primary, #1d4ed8); color: #fff; text-decoration: none; }
.tgwv-hotel-request__calendar-status { min-height: 1.2em; margin: 8px 0 0; font-size: 0.9rem; color: var(--tgwv-color-muted, #6b7280); }
.tgwv-hotel-request__calendar-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.tgwv-hotel-request__link { min-height: 40px; padding: 0 10px; border: 0; background: none; color: var(--tgwv-color-primary, #1d4ed8); font: inherit; font-weight: 600; cursor: pointer; }
/* Phones: the calendar stays under its field and takes the field's width; the days share that width. */
@media (max-width: 639px) {
    .tgwv-hotel-request__calendar { left: 0; right: 0; width: auto; max-width: none; padding: 12px; }
    .tgwv-hotel-request__month table { width: 100%; }
    .tgwv-hotel-request__month th { width: auto; font-size: 0.7rem; letter-spacing: -0.02em; }
    .tgwv-hotel-request__day { display: block; width: 100%; max-width: 44px; height: 42px; margin: 0 auto; }
}
.tgwv-hotel-request [hidden] { display: none !important; }

/* Popup used by the hotel hero and room showcase: the request form in a <dialog>, in the site brand colour. */
.tgwv-hotel-modal {
    --tgwv-color-primary: var(--tgwv-brand, #b3122e);
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    overflow: visible;
}
.tgwv-hotel-modal::backdrop { background: rgba(10, 15, 30, 0.62); backdrop-filter: blur(2px); }
.tgwv-hotel-modal[open] { animation: tgwv-hotel-modal-pop 0.22s ease-out; }
.tgwv-hotel-modal .tgwv-hotel-request {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    margin: 0;
    padding: 28px 28px 24px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.tgwv-hotel-modal .tgwv-hotel-request__title { padding-right: 40px; font-size: 1.5rem; }
.tgwv-hotel-modal .tgwv-hotel-request__submit { width: 100%; text-transform: uppercase; letter-spacing: 0.04em; }
.tgwv-hotel-modal .tgwv-hotel-request__day:hover:not([aria-disabled="true"]) { background: #fdecec; }
.tgwv-hotel-modal .tgwv-hotel-request__day.is-in-range { background: #fde2e2; }
.tgwv-hotel-modal__close {
    position: absolute; z-index: 2; top: 14px; right: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: #f3f4f6; color: #374151; cursor: pointer;
}
.tgwv-hotel-modal__close:hover { background: #e5e7eb; }
@keyframes tgwv-hotel-modal-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
body.tgwv-hotel-modal-open { overflow: hidden; }
@media (max-width: 767px) {
    .tgwv-hotel-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
    .tgwv-hotel-modal .tgwv-hotel-request { max-height: 92dvh; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tgwv-hotel-modal[open] { animation: none; }
}
