/* ============================================================
   MOBILE BOOKING — Compact trigger pill + Bottom sheet
   Visible only on mobile (≤768px).
   ============================================================ */

/* ============================================================
   TRIGGER PILL (.res-bar-trigger)
   ============================================================ */
.res-bar-trigger {
  display: none; /* shown via media query */
  position: fixed;
  bottom: 0.875rem;
  left: 1rem;
  right: 1rem;
  height: 56px;
  background-color: var(--clr-white);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
  align-items: center;
  padding: 0 0.375rem 0 1.125rem;
  gap: 0.5rem;
  z-index: 50;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.res-bar-trigger__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

[data-trigger-dates] {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-trigger-guests] {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--clr-muted);
  white-space: nowrap;
}

.res-bar-trigger__cta {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--clr-dark);
  color: var(--clr-white);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background-color var(--t-fast);
}

.res-bar-trigger:hover .res-bar-trigger__cta,
.res-bar-trigger:active .res-bar-trigger__cta {
  background-color: #2d4a2d;
}

/* ============================================================
   BOTTOM SHEET (.res-bar-sheet)
   ============================================================ */
.res-bar-sheet {
  /* Hidden until .is-open is added */
}

.res-bar-sheet__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 190;
}

.res-bar-sheet__panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--clr-white);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.16);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 200;
  max-height: 90svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Open state */
.res-bar-sheet.is-open .res-bar-sheet__overlay {
  opacity: 1;
  pointer-events: auto;
}

.res-bar-sheet.is-open .res-bar-sheet__panel {
  transform: translateY(0);
}

/* Drag handle */
.res-bar-sheet__handle {
  width: 40px;
  height: 4px;
  background-color: #E0DAC8;
  border-radius: 2px;
  margin: 0.875rem auto 0;
}

/* Header */
.res-bar-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--clr-border);
}

.res-bar-sheet__title {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-dark);
}

.res-bar-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  flex-shrink: 0;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.res-bar-sheet__close:hover {
  background-color: var(--clr-bg);
  border-color: var(--clr-dark);
}

.res-bar-sheet__close svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* ============================================================
   FORM INSIDE SHEET (.res-bar)
   ============================================================ */
.res-bar {
  padding: 0 1.25rem 2rem;
}

/* Date field */
.res-bar__field--date {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
}

.res-bar__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.res-bar__date-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.res-bar__date-ico {
  width: 18px;
  height: 18px;
  color: var(--clr-muted);
  flex-shrink: 0;
}

.res-bar__input--date {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--clr-dark);
  background: none;
  border: none;
  outline: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
}

.res-bar__input--date::placeholder {
  color: rgba(26, 43, 26, 0.3);
  font-weight: 400;
}

/* Counters section */
.res-bar__counters {
  /* rows flow naturally */
}

.res-bar__counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
}

.res-bar__counter-row:last-child {
  border-bottom: none;
}

.res-bar__counter-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-dark);
}

.res-bar__counter-label small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--clr-muted);
}

.res-bar__counter-ctrl {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.res-bar__cnt-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--clr-border);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  flex-shrink: 0;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}

.res-bar__cnt-btn:hover,
.res-bar__cnt-btn:active {
  border-color: var(--clr-gold);
  background-color: var(--clr-gold);
  color: var(--clr-white);
}

.res-bar__cnt-btn:disabled {
  opacity: 0.28;
  pointer-events: none;
}

.res-bar__cnt-val {
  font-size: 1rem;
  font-weight: 500;
  min-width: 24px;
  text-align: center;
  color: var(--clr-dark);
}

/* Submit button */
.res-bar__submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--clr-dark);
  color: var(--clr-white);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--t-fast), transform var(--t-fast);
}

.res-bar__submit:hover,
.res-bar__submit:active {
  background-color: #2d4a2d;
  transform: translateY(-1px);
}

/* ============================================================
   VISIBILITY
   ============================================================ */
@media (max-width: 768px) {
  .res-bar-trigger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .res-bar-trigger,
  .res-bar-sheet__overlay,
  .res-bar-sheet__panel {
    display: none !important;
  }
}

/* ============================================================
   HOTEL SELECTOR MODAL
   ============================================================ */
.hotel-select__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hotel-select__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%);
  width: min(440px, calc(100vw - 2rem));
  background: var(--clr-white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  z-index: 295;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.hotel-select.is-open .hotel-select__overlay {
  opacity: 1;
  pointer-events: auto;
}

.hotel-select.is-open .hotel-select__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.hotel-select__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.875rem;
  border-bottom: 1px solid var(--clr-border);
}

.hotel-select__title {
  font-family: var(--ff-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin: 0;
}

.hotel-select__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  flex-shrink: 0;
  padding: 0;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.hotel-select__close:hover {
  background-color: var(--clr-bg);
  border-color: var(--clr-dark);
}

.hotel-select__close svg {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.hotel-select__sub {
  font-size: 0.8125rem;
  color: var(--clr-muted);
  padding: 0.625rem 1.25rem 0;
  margin: 0;
}

.hotel-select__list {
  padding: 0.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hotel-select__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--clr-border);
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}

.hotel-select__item:hover {
  border-color: var(--clr-gold);
  background-color: rgba(196, 146, 42, 0.04);
  transform: translateX(3px);
}

.hotel-select__item-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotel-select__item-badge svg {
  width: 20px;
  height: 20px;
}

.hotel-select__item-badge--colonial {
  background: rgba(196, 146, 42, 0.12);
  color: var(--clr-gold);
}

.hotel-select__item-badge--sea {
  background: rgba(14, 116, 144, 0.10);
  color: #0e7490;
}

.hotel-select__item-badge--nature {
  background: rgba(55, 65, 40, 0.09);
  color: #3a4a2a;
}

.hotel-select__item-info {
  flex: 1;
  min-width: 0;
}

.hotel-select__item-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-dark);
  line-height: 1.3;
}

.hotel-select__item-zone {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 2px;
}

.hotel-select__item-arrow {
  width: 16px;
  height: 16px;
  color: var(--clr-muted);
  flex-shrink: 0;
  transition: transform var(--t-fast), color var(--t-fast);
}

.hotel-select__item:hover .hotel-select__item-arrow {
  transform: translateX(3px);
  color: var(--clr-gold);
}

/* ============================================================
   HOTEL BUTTONS IN SHEET
   ============================================================ */
.res-bar__field--hotel {
  padding: 0.75rem 0 0.625rem;
  border-bottom: 1px solid var(--clr-border);
}

.res-bar__hotel-opts {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.625rem;
}

.res-bar__hotel-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--clr-border);
  text-align: left;
  width: 100%;
  background: none;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.res-bar__hotel-btn:hover,
.res-bar__hotel-btn.is-active {
  border-color: var(--clr-gold);
  background-color: rgba(196, 146, 42, 0.07);
}

.res-bar__hotel-btn-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-dark);
  line-height: 1.3;
}

.res-bar__hotel-btn.is-active .res-bar__hotel-btn-name {
  color: var(--clr-gold);
}

.res-bar__hotel-btn-zone {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-muted);
}

/* Mobile: slides up as a bottom sheet */
@media (max-width: 768px) {
  .hotel-select__panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    border-radius: 1.25rem 1.25rem 0 0;
    width: 100%;
    max-height: 90svh;
    overflow-y: auto;
  }

  .hotel-select.is-open .hotel-select__panel {
    transform: translateY(0);
  }
}
