/* =========================
   IMPORTS (FONTES)
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,600&display=swap');

/* =========================
   VARIÁVEIS DE TEMA
========================= */
:root {
  --primary: #1f6f8b;        /* azul principal */
  --primary-light: #8fd3e0;  /* aqua claro */
  --accent: #e8f6f8;         /* fundo suave */
  --sand: #f6f4ef;           /* areia */
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: rgba(0,0,0,0.08);
}

/* =========================
   RESET / BASE
========================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f8fbfd 0%, var(--accent) 100%);
  color: var(--text-dark);
}

/* =========================
   HEADER
========================= */
.header {
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(143, 211, 224, 0.35),
    rgba(255, 255, 255, 0.95)
  );
  border-bottom: 1px solid var(--border);
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo {
  width: clamp(120px, 18vw, 300px);
  height: auto;
  margin-bottom: 0.75rem;
}

.scroll-hint{
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.scroll-hint .arrow{
  width: 14px;
  height: 14px;
  border-right: 3px solid rgba(31, 111, 139, 0.75);
  border-bottom: 3px solid rgba(31, 111, 139, 0.75);
  transform: rotate(45deg);
  animation: bounceDown 1.2s infinite;
}

@keyframes bounceDown{
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.45; }
  50%      { transform: translateY(8px) rotate(45deg); opacity: 1; }
}

/* acessibilidade: reduz animação se o usuário preferir */
@media (prefers-reduced-motion: reduce){
  .scroll-hint .arrow{ animation: none; }
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 1.25rem 1rem;
}

/* =========================
   TÍTULOS
========================= */
h2 {
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

/* =========================
   CARDS DAS CASAS (mobile-first)
   -> no celular já fica 2 por linha
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 por linha no mobile */
  gap: 0.85rem;
  margin-top: 1rem;

}

.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(31, 111, 139, 0.18);
}

.card.selected {
  border: 3px solid var(--primary);
  box-shadow: 0 14px 35px rgba(31, 111, 139, 0.28);
}


.card-body {
  padding: 0.75rem 0.8rem 0.9rem;
}

.card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
}

.card-body p {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Horários (Opção A/B) ===== */

.horarios {
  margin-top: 14px;
}

.horarios-titulo,
.datas-titulo {
  margin: 0 0 10px 0;
  font-weight: 500;
}


.opcoes-horario {
  display: grid;
  gap: 10px;
}

.opcao-horario {
  position: relative; /* IMPORTANTE */
  display: flex;
  align-items: flex-start;;
  gap: 12px;
  padding: 14px 14px 18px 14px; /* espaço embaixo pras bolinhas */
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}


.opcao-horario input[type="radio"] {
  position: relative;
  opacity: 0;
  pointer-events: none;
}

.radio-fake {
  position: absolute;
  right: 10px;
  bottom: 10px;

  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.35);

  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.radio-fake::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.12s ease;
  background:#1f6f8b;
}


.opcao-horario .texto {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.opcao-horario .texto strong {
  font-weight: 700;
}

.opcao-horario .texto small {
  opacity: 0.75;
  line-height: 1.2;
}

/* Destaque do selecionado (moderno) */
.opcao-horario:has(input[type="radio"]:checked) {
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.opcao-horario:has(input[type="radio"]:checked) .radio-fake::after {
  transform: scale(1);
}

/* =========================
   CÍRCULO DE SELEÇÃO (RADIO)
========================= */
.check-circle {
  position: absolute;
  bottom: 12px;   /* <<< AQUI */
  right: 12px;    /* mantém */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 0 0 2px rgba(31, 111, 139, 0.25);
  transition: all 0.2s ease;
  pointer-events: none;
}

/* quando o card está selecionado */
.card.selected .check-circle {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 139, 0.25);
}

.card-media {
  position: relative;
  height: 130px;          /* igual você usa no .card img */
  overflow: hidden;
  background: #fff;       /* fallback */
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.card-img.is-active {
  opacity: 1;
}


/* bolinhas */
.dots {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.dot.active {
  background: rgba(255,255,255,0.95);
}


/* =========================
   STEPS (espaçamento entre etapas)
========================= */
.step {
  margin-top: 2.5rem; /* espaço ENTRE passos */
}

.step:first-child {
  margin-top: 0;
}

/* Título do passo */
.step h2 {
  margin-bottom: 0.75rem; /* aproxima do conteúdo */
}

/* Conteúdo interno do passo */
.step .control-group {
  margin-top: 0;
}

/* Label mais compacto */
.control-group label {
  margin-bottom: 0.25rem;
}

/* Mobile: reduzir ainda mais */
@media (max-width: 640px) {
  .step {
    margin-top: 0.1rem;
  }

  .step h2 {
    margin-bottom: 0.5rem;
  }
}

/* Acessibilidade: esconde visualmente, mantém semântica */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* capacidade */
.capacidade { margin-bottom: 0.5rem; }

/* Lista de destaques da casa */
.destaques {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
}

.destaques li {
  font-size: 0.72rem; /* menor no mobile */
  line-height: 1.25;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.destaques li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

/* =========================
   CONTROLES / INPUTS
========================= */
.controls {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
}

.control-group label {
  font-weight: 500;
  margin-bottom: 0.35rem;
  display: block;
}

.control-group input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.control-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
}

.erro {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* =========================
   CALENDÁRIO (FLATPICKR)
========================= */
.flatpickr-calendar {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  width: 100%;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--primary);
  border-color: var(--primary);
}

.flatpickr-day.inRange {
  background: rgba(31, 111, 139, 0.15);
}

/* ✅ marca feriado no flatpickr */
.flatpickr-day.is-feriado {
  position: relative;
  font-weight: 700;
}

.flatpickr-day.is-feriado::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;              /* ajuste fino: 4~7px costuma ficar perfeito */
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
}

.legenda-calendario {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.legenda-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.75;
}

.legenda-bolinha {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.9);
}


/* =========================
   RESUMO
========================= */
.resumo {
  margin-top: 3rem;
  background: linear-gradient(180deg, white, var(--sand));
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* container do mês/ano */
.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ANO: visual simples, à esquerda */
.flatpickr-current-month .year-label {
  order: -1;              /* <<< joga o ano para a esquerda */
  font-weight: 400;       /* <<< tira o bold */
  font-size: 1rem;
  margin-right: 1px;
  color: rgba(0, 0, 0, 0.55);
}

/* mês (continua dropdown) */
.flatpickr-current-month .cur-month {
  font-weight: 500;
}
/* REMOVE TOTALMENTE o controle de ano (input + setinhas) */
.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month .numInput {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.resumo p { margin: 0.35rem 0; }

.resumo .total {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.75rem;
}

.placeholder { color: var(--text-muted); }

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: 4rem;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.6);
  border-top: 1px solid var(--border);
}

/* =========================
   MOBILE AJUSTES EXTRAS (até 640px)
========================= */
@media (max-width: 640px) {
  .container { padding: 1rem 0.9rem; }

  .header { padding: 1.75rem 1rem 1.25rem; }
  .header p {
    font-size: 0.85rem;     /* ajuste fino */
    line-height: 1.2;
  }

  .dots{
    position: absolute !important;
    left: 8px;
    bottom: 8px;      /* ou top: 10px; se quiser no topo */
    z-index: 5;
    display: flex;
    gap: 6px;
    pointer-events: none;
  }

  .card-img{
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .logo {
    width: clamp(170px, 65vw, 260px);
    margin-bottom: 0.5rem;
  }

  .header h1 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-top: 0.25rem;
  }

  h2 { font-size: 1.2rem; }

  /* Resumo menor */
  .resumo {
    padding: 1.25rem;
    border-radius: 16px;
  }
  .resumo .total { font-size: 1.4rem; }

  /* Flatpickr ocupar bem a tela */
  .flatpickr-calendar,
  .flatpickr-innerContainer,
  .flatpickr-rContainer,
  .flatpickr-days,
  .flatpickr-weekdays {
    width: 100% !important;
  }

  .dayContainer {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

/* ===== Resumo: valor principal em cima (por pessoa/dia) ===== */

.resumo #resumoConteudo .ppd-label {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 14px;
  opacity: 0.85;
}

/* Taxa de limpeza menor e mais discreta */
.resumo #resumoConteudo .taxa-limpeza {
  font-size: 16px;      /* menor que o total */
  font-weight: 500;     /* sem negrito */
  opacity: 0.7;         /* mais suave */
  margin-left: 6px;
  white-space: nowrap; /* não quebra linha */
}

.resumo #resumoConteudo .ppd-valor {
  margin: 0 0 18px 0;
  font-size: 42px;        /* ajuste fino aqui */
  font-weight: 800;
  color: #0b5d7a;         /* azul (ajuste se quiser) */
  line-height: 1.05;
}

.resumo #resumoConteudo .total-label {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.resumo #resumoConteudo .total-valor {
  margin: 6px 0 0 0;
  font-size: 22px;        /* total menor */
  font-weight: 700;
  color: #0b5d7a;         /* pode deixar azul também ou neutro */
  opacity: 0.9;
}

/* =========================
   TABLET/DESKTOP (>= 768px)
========================= */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(4, 1fr); /* 4 por linha no desktop */
    gap: 1.25rem;
  }

  .card { border-radius: 16px; }

  .card img { height: 180px; }

  .card-body {
    padding: 1rem 1.1rem 1.25rem;
  }

  .card-body h3 { font-size: 1.05rem; }

  .card-body p {
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }

  .destaques { gap: 0.25rem; }

  .destaques li {
    font-size: 0.85rem;
    line-height: 1.3;
    gap: 0.4rem;
  }
}
