/* ==========================================================================
   COMPONENTES — botões, cards, pills, tabela, FAQ
   ========================================================================== */

/* --------------------------------------------------------------------------
   BOTÕES
   -------------------------------------------------------------------------- */

.btn-sm-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    transform var(--t-fast) var(--ease-out);
}
.btn-sm-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

/* CTA principal da sidebar de reserva.
   Antes declarava font-family:'Inter' — fonte que nunca era carregada. */
.bs-cta {
  display: block;
  text-align: center;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  margin-top: 16px;
  transition:
    background var(--t-fast),
    transform var(--t-fast) var(--ease-out);
}
.bs-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

/* Mesmo bug de fonte estava aqui. */
.tc-cta {
  display: block;
  text-align: center;
  padding: 13px;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-fast);
}
.tc-cta:hover {
  background: var(--teal);
}

.promo-cta {
  display: block;
  text-align: center;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  text-decoration: none;
  margin-top: 20px;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    transform var(--t-fast) var(--ease-out);
}
.promo-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.reserve-link {
  color: var(--coral);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.reserve-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   PILLS / BADGES
   -------------------------------------------------------------------------- */

.route-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-glow);
  border: 1px solid rgba(0, 155, 141, 0.35);
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--on-deep-50);
}
.trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--teal-light);
  flex-shrink: 0;
}

.dur-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 155, 141, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
}

.bs-combo-badge {
  background: rgba(232, 82, 58, 0.2);
  border: 1px solid rgba(232, 82, 58, 0.4);
  color: var(--coral-light);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.tag-discount {
  font-size: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   CARDS CLAROS (areia)
   -------------------------------------------------------------------------- */

.detail-card,
.transfer-card,
.review-card,
.bf-item,
.rel-card {
  background: var(--sand);
  border: 1px solid var(--sand-2);
  border-radius: var(--r-lg);
}

.detail-card {
  padding: 22px;
  border-radius: 14px;
}
/* O `font-size` continua aqui porque o index.html estático ainda usa emoji
   neste slot. No template PHP o conteúdo é um <img> de 75×75 (line art navy,
   fundo transparente) reduzido para 40px — ícone de traço precisa de mais área
   que um glifo para ser legível. */
.dc-icon {
  font-size: 24px;
  margin-bottom: 10px;
}
.dc-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.dc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.dc-body {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.65;
}
.dc-body strong {
  color: var(--ink);
}
.dc-highlight {
  background: rgba(0, 155, 141, 0.1);
  border: 1px solid rgba(0, 155, 141, 0.2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

.transfer-card {
  padding: 26px;
}
.tc-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
/* 44px e não 40px como nos demais cards: o transfer-card é o maior da página
   (padding 26px, título 16px) e o ícone precisa acompanhar. */
.tc-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.tc-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.tc-desc {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.65;
}
.tc-features {
  list-style: none;
  margin-bottom: 20px;
}
.tc-features li {
  font-size: 13px;
  color: var(--slate);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--sand-2);
}
.tc-features li:last-child {
  border-bottom: none;
}
.tc-features li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.rel-card {
  padding: 22px;
  border-radius: 14px;
  text-decoration: none;
  display: block;
  transition:
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base);
}
.rel-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: var(--teal);
}
.rel-from {
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 4px;
}
.rel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.rel-time {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   TABELA DE HORÁRIOS
   -------------------------------------------------------------------------- */

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.schedule-tabs {
  display: flex;
  gap: 8px;
  background: var(--sand);
  padding: 4px;
  border-radius: 10px;
}

.s-tab {
  padding: 7px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--slate);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-fast);
}
.s-tab[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Rede de segurança: se a tabela ainda não couber, ela rola dentro da própria
   caixa em vez de empurrar a página inteira na horizontal. */
#schedule-panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.schedule-table thead tr {
  background: var(--deep);
}
.schedule-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.schedule-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
}
.schedule-table tr:last-child td {
  border-bottom: none;
}
.schedule-table tbody tr {
  transition: background var(--t-fast);
}
.schedule-table tbody tr:hover td {
  background: var(--sand);
}

.time-big {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.schedule-cta {
  background: var(--sand);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.schedule-cta p {
  font-size: 14px;
  color: var(--slate);
}
.schedule-cta strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   FAQ (<details>)
   -------------------------------------------------------------------------- */

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-list details[open] {
  border-color: var(--teal);
}

.faq-list summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--t-fast);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:hover {
  background: var(--sand);
}
.faq-list summary::after {
  content: "↓";
  font-size: 14px;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease-out);
}
.faq-list details[open] summary::after {
  transform: rotate(180deg);
}
.faq-list details[open] summary {
  background: var(--sand);
}

.faq-body {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   ESTRELAS / AVALIAÇÃO
   -------------------------------------------------------------------------- */

.rv-stars,
.stars-row {
  color: var(--gold);
  letter-spacing: 2px;
}
.rv-stars {
  font-size: 13px;
  margin-bottom: 10px;
}
.stars-row {
  font-size: 16px;
  margin-bottom: 2px;
}

.rv-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
