/* Hotelik — formularz zapytania o wolny pokój: termin (kalendarz 2 miesiące), goście, pokoje; lista pokoi, pasek faktów */

.ht-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.ht-input {
  display: block; width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
  font: inherit; font-size: 15px; color: #111827;
  transition: border-color .15s, box-shadow .15s;
}
.ht-input::placeholder { color: #9ca3af; }
.ht-input:focus { outline: none; border-color: #00aa4f; box-shadow: 0 0 0 3px rgba(0, 170, 79, .18); }
textarea.ht-input { height: auto; resize: vertical; }

/* Pasek faktów pod zdjęciem: linie podziału między pozycjami */
.ht-facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid #e5e7eb; }
.ht-facts > div:nth-child(n+3) { border-top: 1px solid #e5e7eb; }
@media (min-width: 1024px) {
  .ht-facts > div:nth-child(n) { border-top: 0; border-left: 1px solid #e5e7eb; padding-left: 24px; }
  .ht-facts > div:first-child { border-left: 0; padding-left: 0; }
}

/* Lista pokoi: przycisk „Dodaj do zapytania” / „W zapytaniu” */
.ht-beds i { font-size: 14px; margin-right: 3px; }
.ht-room { transition: background-color .2s; }
.ht-pick .ht-pick-on { display: none; }
.ht-room.is-picked { background: #f0fbf5; }
.ht-room.is-picked .ht-pick { background: #00aa4f; color: #fff; }
.ht-room.is-picked .ht-pick .ht-pick-add { display: none; }
.ht-room.is-picked .ht-pick .ht-pick-on { display: inline; }

/* Galeria */
.ht-tile img { transition: transform .4s ease; }
.ht-tile:hover img { transform: scale(1.04); }
.ht-tile:focus-visible, .ht-pick:focus-visible { outline: 3px solid #00aa4f; outline-offset: 2px; }

/* Pole terminu: Przyjazd | Wyjazd */
.ht-range {
  display: grid; grid-template-columns: 1fr 1fr; width: 100%; text-align: left;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.ht-range:hover { border-color: #9ca3af; }
.ht-range:focus-visible, .ht-range[aria-expanded="true"] { outline: none; border-color: #00aa4f; box-shadow: 0 0 0 3px rgba(0, 170, 79, .18); }
.ht-range-part { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-bottom: 2px solid transparent; }
.ht-range-part + .ht-range-part { border-left: 1px solid #e5e7eb; }
.ht-range-part.is-active { border-bottom-color: #00aa4f; background: #f0fbf5; }
.ht-range-cap { font-size: 12px; font-weight: 700; color: #6b7280; display: inline-flex; align-items: center; gap: 6px; }
.ht-range-cap i { line-height: 1; }
.ht-range-val { font-size: 15px; font-weight: 800; color: #111827; white-space: nowrap; }
.ht-range-val.is-empty { color: #9ca3af; font-weight: 600; }

/* Liczniki: Dorośli / Dzieci */
.ht-step { display: flex; align-items: stretch; height: 42px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; overflow: hidden; }
.ht-step:focus-within { border-color: #00aa4f; box-shadow: 0 0 0 3px rgba(0, 170, 79, .18); }
.ht-step-btn { width: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #00aa4f; font-size: 18px; }
.ht-step-btn:hover:not(:disabled) { background: #f0fbf5; }
.ht-step-btn:disabled { color: #d1d5db; cursor: default; }
.ht-step-val {
  flex: 1; min-width: 0; border: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 800; color: #111827;
  -moz-appearance: textfield; appearance: textfield; background: transparent;
}
.ht-step-val:focus { outline: none; }
.ht-step-val::-webkit-outer-spin-button, .ht-step-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Pokoje: lista rozwijana z checkboxami (kilka naraz) */
.ht-multi-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.ht-multi-btn i { color: #6b7280; transition: transform .15s; line-height: 1; }
.ht-multi-btn[aria-expanded="true"] { border-color: #00aa4f; box-shadow: 0 0 0 3px rgba(0, 170, 79, .18); }
.ht-multi-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.ht-multi-btn.is-empty #ht-rooms-val { color: #6b7280; }
.ht-multi-panel {
  position: absolute; left: 0; right: 0; top: 70px; z-index: 35; background: #fff;
  border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 12px 32px rgba(17, 24, 39, .14); padding: 6px;
}
.ht-multi-panel[hidden] { display: none; }
.ht-multi-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.ht-multi-opt:hover { background: #f0fbf5; }
.ht-multi-opt input { width: 18px; height: 18px; accent-color: #00aa4f; flex-shrink: 0; }
.ht-multi-name { font-size: 15px; font-weight: 700; color: #111827; }
.ht-multi-cap { margin-left: auto; font-size: 13px; color: #6b7280; }
.ht-multi-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e5e7eb; margin-top: 6px; padding: 8px 4px 2px; }
.ht-warn { color: #b45309; }

/* Kalendarz: 2 miesiące obok siebie, na telefonie panel od dołu ekranu */
.ht-cal {
  position: absolute; right: 0; top: calc(100% - 22px); z-index: 40; width: 640px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .16); padding: 18px 20px 14px;
}
.ht-cal[hidden] { display: none; }
.ht-cal-top { display: none; }
.ht-cal-months { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ht-cal-nav {
  position: absolute; top: -4px; width: 34px; height: 34px; border-radius: 6px; color: #374151; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.ht-cal-nav[data-nav="-1"] { left: -6px; }
.ht-cal-nav[data-nav="1"] { right: -6px; }
.ht-cal-nav:hover:not(:disabled) { background: #f3f4f6; }
.ht-cal-nav:disabled { opacity: .25; cursor: default; }
.ht-cal-title { text-align: center; font-weight: 800; color: #111827; height: 28px; line-height: 28px; margin-bottom: 6px; text-transform: none; }
.ht-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.ht-cal-dow { font-size: 12px; font-weight: 700; color: #9ca3af; text-align: center; padding: 2px 0 6px; }
.ht-cal-day {
  height: 38px; font-size: 14px; font-weight: 600; color: #111827; border-radius: 6px;
  font-variant-numeric: tabular-nums; position: relative;
}
.ht-cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #00aa4f; }
.ht-cal-day:disabled { color: #d1d5db; cursor: default; text-decoration: line-through; text-decoration-color: #e5e7eb; }
.ht-cal-day:focus-visible { outline: 2px solid #00aa4f; outline-offset: -2px; }
.ht-cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #00aa4f; }
.ht-cal-day.in-range { background: #d4f4e0; border-radius: 0; }
.ht-cal-day.is-start, .ht-cal-day.is-end { background: #00aa4f; color: #fff; }
.ht-cal-day.is-start::after, .ht-cal-day.is-end::after { background: #fff; }
.ht-cal-day.is-start { border-radius: 6px 0 0 6px; }
.ht-cal-day.is-end { border-radius: 0 6px 6px 0; }
.ht-cal-day.is-start.is-end, .ht-cal-day.is-start.is-single { border-radius: 6px; }
.ht-cal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e7eb;
}
.ht-cal-sum { font-size: 14px; color: #374151; }
.ht-cal-sum strong { color: #111827; }
.ht-cal-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ht-cal-clear { font-size: 14px; font-weight: 700; color: #6b7280; padding: 8px 10px; border-radius: 6px; }
.ht-cal-clear:hover { color: #111827; background: #f3f4f6; }
.ht-cal-done { font-size: 14px; font-weight: 700; color: #fff; background: #00aa4f; padding: 9px 18px; border-radius: 6px; }
.ht-cal-done:hover { background: #008a3f; }
.ht-cal-done:disabled { background: #9ca3af; cursor: default; }
.ht-cal-backdrop { display: none; }

@media (max-width: 767px) {
  .ht-cal {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 88vh;
    border-radius: 8px 8px 0 0; padding: 0 16px 12px; overflow-y: auto; z-index: 120;
  }
  .ht-cal-top {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
    background: #fff; padding: 14px 0 10px; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px;
  }
  .ht-cal-top strong { font-size: 17px; font-weight: 800; color: #111827; }
  .ht-cal-x { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #374151; background: #f3f4f6; }
  .ht-cal-months { grid-template-columns: 1fr; gap: 18px; }
  .ht-cal-nav { top: -2px; }
  .ht-cal-foot { position: sticky; bottom: -12px; background: #fff; padding-bottom: 12px; }
  .ht-cal-backdrop { display: block; position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 110; }
  .ht-cal-backdrop[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ht-tile img, .ht-room, .ht-input, .ht-range, .ht-multi-btn i { transition: none; }
  .ht-tile:hover img { transform: none; }
}
