html { scroll-behavior: smooth; }

.hero-faq-link, .faq-topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 999px;
  padding: .625rem 1rem;
  font-size: .875rem;
  font-weight: 500;
}
.hero-faq-link { border-color: rgb(255 255 255 / 50%); background: rgb(8 30 28 / 30%); color: #fff; }
.hero-faq-link:hover { background: rgb(255 255 255 / 20%); }
.faq-topic-link { border-color: #b7e4d8; background: #fff; color: #116b56; }
.faq-topic-link:hover { background: #edf9f4; }
.faq-section { scroll-margin-top: 7rem; }
.faq-item { margin-top: .75rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; overflow: hidden; }
.faq-item summary { padding: 1.25rem; font-weight: 600; cursor: pointer; color: #10473a; }
.faq-item summary:hover { background: #f3faf6; }
.faq-item p { padding: 0 1.25rem 1.25rem; color: #475569; line-height: 1.8; }
.whatsapp-floating {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #168a49;
  color: #fff;
  box-shadow: 0 6px 20px rgb(15 23 42 / 25%);
}
.whatsapp-floating:hover { background: #116b39; }
.whatsapp-floating:focus-visible, .hero-faq-link:focus-visible, .faq-topic-link:focus-visible, .faq-item summary:focus-visible { outline: 3px solid #c99a36; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body { font-family: 'Inter', system-ui, sans-serif; }

/* Dias bloqueados pelo proprietário (indisponíveis): listrado */
.day-blocked {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(148, 163, 184, 0.28) 4px,
    rgba(148, 163, 184, 0.28) 6px
  );
}

/* Hero */
.hero-overlay {
  background: linear-gradient(180deg, rgba(8, 30, 28, 0.55) 0%, rgba(8, 30, 28, 0.35) 45%, rgba(8, 30, 28, 0.7) 100%);
}

/* Inputs de data */
input[type='date']::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}
input[type='date']::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Animações leves */
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.3s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botões reutilizáveis */
@layer components {
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #138569;
    color: #fff;
    font-weight: 600;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover { background: #116b56; box-shadow: 0 8px 20px -8px rgba(19, 133, 105, 0.6); }
  .btn-primary:active { transform: scale(0.98); }
  .btn-primary:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }
}

/* Campos de formulário */
.field {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus { border-color: #1fa585; box-shadow: 0 0 0 4px rgba(31, 165, 133, 0.15); }
.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 0.35rem; }

/* Calendário */
.cal-day { user-select: none; }
.calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #116b56;
  border-radius: 50%;
  background: #138569;
  color: #fff;
  box-shadow: 0 3px 8px rgb(19 133 105 / 20%);
  transition: background .2s, box-shadow .2s;
}
.calendar-nav:hover:not(:disabled) { background: #10473a; box-shadow: 0 4px 12px rgb(19 133 105 / 30%); }
.calendar-nav:focus-visible { outline: 3px solid #c99a36; outline-offset: 3px; }
.calendar-nav:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* Conteúdo editorial do apartamento, independente do reset do Tailwind. */
.apartment-content { overflow-wrap: anywhere; }
.apartment-content > * + * { margin-top: 1rem; }
.apartment-content h1, .apartment-content h2, .apartment-content h3,
.apartment-content h4, .apartment-content h5, .apartment-content h6 { font-weight: 600; line-height: 1.3; color: #1e293b; }
.apartment-content h1 { font-size: 2rem; }
.apartment-content h2 { font-size: 1.5rem; }
.apartment-content h3 { font-size: 1.25rem; }
.apartment-content ul { list-style: disc; padding-left: 1.5rem; }
.apartment-content ol { list-style: decimal; padding-left: 1.5rem; }
.apartment-content li + li { margin-top: .35rem; }
.apartment-content li > ul, .apartment-content li > ol { margin-top: .35rem; }
.apartment-content a { color: #138569; text-decoration: underline; }
.apartment-content blockquote { border-left: 3px solid #138569; padding-left: 1rem; font-style: italic; }
.apartment-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.apartment-content th, .apartment-content td { border: 1px solid #cbd5e1; padding: .6rem; }
.apartment-content th { font-weight: 600; background: #f8fafc; }
.apartment-content img { max-width: 100%; height: auto; border-radius: 1rem; }
.apartment-content pre { overflow-x: auto; padding: 1rem; background: #f1f5f9; border-radius: .5rem; }

.apartment-content .apartment-amenities-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}
.apartment-content ul.apartment-amenities {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem 1.5rem;
  list-style: none;
  padding-left: 0;
  color: #334155;
}
.apartment-content ul.apartment-amenities > li {
  position: relative;
  margin-top: 0;
  padding-left: 2rem;
}
.apartment-content ul.apartment-amenities > li > p { margin: 0; }
.apartment-content ul.apartment-amenities > li::before {
  content: '';
  position: absolute;
  left: .25rem;
  top: .4rem;
  width: .8rem;
  height: .45rem;
  border-left: 1.5px solid #00876c;
  border-bottom: 1.5px solid #00876c;
  transform: rotate(-45deg);
}
@media (min-width: 640px) {
  .apartment-content ul.apartment-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Avisos compartilhados do site, acima do conteúdo e abaixo do cabeçalho. */
.site-toast {
  position: fixed;
  top: calc(6rem + env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 200;
  box-sizing: border-box;
  width: max-content;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #11856c;
  border-radius: .75rem;
  background: #fff;
  color: #19324a;
  box-shadow: 0 12px 32px rgb(15 23 42 / 24%);
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.site-toast.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-toast { transition: none; }
}


/* Assinatura visual: portal, sol e mar com nome em duas linhas. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: .625rem;
  text-decoration: none;
}
.brand-symbol {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #16a78b;
}
.brand-wordmark { display: flex; flex-direction: column; gap: .125rem; }
.brand-prefix {
  font-family: 'Inter', sans-serif;
  font-size: .625rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.025em;
}
.brand-lockup--footer .brand-name { font-size: 2.125rem; }
@media (max-width: 359px) {
  .brand-symbol { width: 36px; height: 36px; }
  .brand-name { font-size: 1.625rem; }
}
