/* INN Hosting & Care — Calendário + Formulário de reserva */

/* ── Botão de disponibilidade ─────────────────────────────────────────────── */
.inn-disp {
  padding: 0 12px 10px;
}

.btn-disponibilidade {
  display: block;
  width: 100%;
  padding: 9px 0;
  background: #f0f7ff;
  color: #1a6bbf;
  border: 1.5px solid #9ec5f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-disponibilidade:hover {
  background: #daeeff;
  border-color: #5aabf5;
}

/* ── Contêiner do calendário ──────────────────────────────────────────────── */
.inn-cal-wrap {
  margin-top: 8px;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  font-size: 0.82rem;
}

/* ── Navegação de mês ─────────────────────────────────────────────────────── */
.inn-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px;
  background: #1a6bbf;
  color: #fff;
}

.inn-cal-nav .inn-cal-titulo {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.inn-cal-prev, .inn-cal-next {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.1s;
}

.inn-cal-prev:hover, .inn-cal-next:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Grade do mês ─────────────────────────────────────────────────────────── */
.inn-cal-grid {
  padding: 6px 8px 4px;
}

.inn-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 2px;
}

.inn-cal-dow span {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
  padding: 2px 0;
}

.inn-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* ── Células de dia ───────────────────────────────────────────────────────── */
.inn-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.1s;
}

.inn-day.past {
  color: #ccc;
  font-weight: 400;
}

.inn-day.blocked {
  color: #999;
  background: repeating-linear-gradient(
    135deg,
    #f5f5f5,
    #f5f5f5 2px,
    #e8e8e8 2px,
    #e8e8e8 6px
  );
  border-radius: 4px;
  text-decoration: line-through;
}

.inn-day.free {
  color: #1a6bbf;
  cursor: pointer;
}

.inn-day.free:hover {
  background: #daeeff;
}

.inn-day.sel-in,
.inn-day.sel-out {
  background: #1a6bbf;
  color: #fff;
  font-weight: 700;
}

.inn-day.sel-mid {
  background: #c8e3f8;
  color: #1a6bbf;
  border-radius: 0;
}

.inn-day.sel-in  { border-radius: 50% 0 0 50%; }
.inn-day.sel-out { border-radius: 0 50% 50% 0; }

.inn-day.sel-in.sel-out { border-radius: 50%; } /* 1 noite */

/* ── Barra de seleção + botão solicitar (Tipo B) ──────────────────────────── */
.inn-cal-sel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid #e8edf4;
  background: #f8fbff;
}

.inn-sel-datas {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.inn-lbl {
  color: #888;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inn-sel-datas strong {
  color: #1a3f6b;
  font-weight: 700;
}

.inn-hospedes-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.inn-hosp-input {
  width: 52px;
  padding: 5px 6px;
  border: 1.5px solid #d0d9e6;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  color: #222;
}

.inn-hosp-input:focus {
  border-color: #1a6bbf;
  outline: none;
}

.btn-consultar {
  flex-shrink: 0;
  padding: 7px 14px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-consultar:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-consultar:not(:disabled):hover {
  background: #1db954;
}

/* ── Modal de formulário ──────────────────────────────────────────────────── */
#inn-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 500px) {
  #inn-modal { align-items: center; justify-content: center; }
}

.inn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 50, 0.55);
  backdrop-filter: blur(2px);
}

.inn-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 24px 20px 28px;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}

@media (min-width: 500px) {
  .inn-modal-box {
    border-radius: 16px;
    max-height: 90dvh;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  }
}

.inn-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f4f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: background 0.1s;
}

.inn-modal-close:hover { background: #dde6f0; }

.inn-modal-box h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #1a3f6b;
}

.inn-modal-apto {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #555;
  font-weight: 500;
}

.inn-modal-datas {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #1a6bbf;
  font-weight: 600;
}

.inn-caucao-info {
  background: #fff9e6;
  border: 1px solid #f5d97e;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.inn-caucao-info strong {
  color: #9a6800;
  display: block;
  margin-bottom: 4px;
}

.inn-caucao-info p {
  margin: 0;
  color: #7a5200;
  line-height: 1.5;
}

/* ── Formulário ───────────────────────────────────────────────────────────── */
#inn-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #444;
  font-weight: 500;
}

#inn-form input,
#inn-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1.5px solid #d0d9e6;
  border-radius: 7px;
  font-size: 0.88rem;
  color: #222;
  box-sizing: border-box;
  transition: border-color 0.15s;
  font-family: inherit;
}

#inn-form input:focus,
#inn-form textarea:focus {
  border-color: #1a6bbf;
  outline: none;
}

.inn-form-nota {
  font-size: 0.75rem;
  color: #888;
  margin: 4px 0 14px;
  line-height: 1.4;
}

.btn-enviar-reserva {
  display: block;
  width: 100%;
  padding: 12px;
  background: #1a6bbf;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-enviar-reserva:hover:not(:disabled) { background: #155a9e; }
.btn-enviar-reserva:disabled { opacity: 0.5; cursor: default; }

.inn-form-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.inn-form-msg.ok   { background: #e8f7ee; color: #1a6b38; border: 1px solid #a3dab5; }
.inn-form-msg.erro { background: #fff0f0; color: #b52020; border: 1px solid #f5a3a3; }
