:root {
  --brand-dark: #3f91ac;
  --brand-light: #53c7e8;
  --ink: #1f2a2e;
  --muted: #5d6b70;
  --bg: #f7f9fa;
  --card: #ffffff;
  --border: #e3e8ea;
  --danger: #c0392b;
  --success: #1f8a4c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: var(--brand-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .logo img { height: 40px; display: block; }
.site-header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--brand-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 2rem 1.25rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,48,0.55), rgba(20,40,48,0.65));
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 900px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.hero p.lead { font-size: 1.05rem; opacity: 0.95; margin-top: 0; margin-bottom: 1.75rem; }

/* Search bar */
.search-bar {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  color: var(--ink);
  text-align: left;
}
.search-bar label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
}
.search-bar input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}
.search-bar button {
  align-self: end;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.search-bar button:hover { background: var(--brand-light); }
.search-error {
  grid-column: 1 / -1;
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1em;
}

/* Listings grid */
.section { padding: 2.5rem 0; }
.section h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.listing-card .photo {
  aspect-ratio: 4/3;
  background: #dfe6e8 center/cover no-repeat;
}
.listing-card .info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.listing-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.listing-card .location { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.listing-card .meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.listing-card .price { margin-top: auto; font-weight: 700; color: var(--brand-dark); font-size: 1.05rem; }
.listing-card .price span { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.listing-card .price span.from, .booking-box .price-row span.from {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}
.empty-state { color: var(--muted); padding: 2rem 0; text-align: center; }

/* Footer */
.site-footer {
  background: #fff;
  color: var(--ink);
  padding: 2.5rem 1.25rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--brand-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2rem;
}
.footer-brand { max-width: 420px; }
.footer-brand .logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand .logo img { height: 36px; display: block; }
.footer-tagline { color: var(--muted); line-height: 1.5; margin: 0 0 0.6rem; }
.footer-contact { margin: 0; }
.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.footer-badge-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.footer-badge-img {
  padding: 0.35rem 0.6rem;
}
.footer-badge-img img { display: block; height: 64px; width: auto; }
.footer-payments { display: flex; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.payment-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

@media (max-width: 640px) {
  .footer-payments { margin-left: 0; }
}

/* Listing detail page */
.listing-detail { padding: 2rem 1.25rem 3rem; }
.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.gallery .thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 0.6rem; }
.gallery-see-all {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.gallery-see-all:hover { background: var(--bg); }

/* Modal com todas as fotos */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 16, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-modal[hidden] { display: none; }
.photo-modal-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 90vw;
  max-height: 86vh;
}
.photo-modal-main img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.photo-modal-counter { color: #fff; font-size: 0.9rem; opacity: 0.85; }
.photo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}
.photo-modal-close:hover { background: rgba(255,255,255,0.22); }
.photo-modal-nav {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 1rem;
}
.photo-modal-nav:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 640px) {
  .photo-modal-nav { width: 38px; height: 38px; font-size: 1.3rem; margin: 0 0.4rem; }
  .gallery-see-all { font-size: 0.78rem; padding: 0.4rem 0.7rem; right: 0.6rem; bottom: 0.6rem; }
}
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.amenities-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.amenities-list li { font-size: 0.9rem; color: var(--muted); }
.amenities-list li::before { content: "✓ "; color: var(--success); font-weight: 700; }

.booking-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  position: static;
}
.booking-box .price-row { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.booking-box .price-row span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.booking-box label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.booking-box input, .booking-box textarea {
  width: 100%; padding: 0.55rem 0.6rem; border: 1px solid var(--border); border-radius: 8px;
  margin-top: 0.3rem; font-size: 0.95rem; font-family: inherit;
}
.booking-box button {
  width: 100%; background: var(--brand-dark); color: #fff; border: none; border-radius: 8px;
  padding: 0.75rem; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.booking-box button:hover { background: var(--brand-light); }
.phone-input-row { display: flex; gap: 0.5rem; margin-top: 0.3rem; align-items: flex-start; }
.phone-input-row input[type="tel"] { flex: 1; margin-top: 0; }

.phone-code-combo { position: relative; flex: 0 0 auto; }
.phone-code-toggle {
  display: flex; align-items: center; gap: 0.35rem; width: auto;
  padding: 0.55rem 0.6rem; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 0.95rem; color: var(--ink); white-space: nowrap;
}
.phone-code-toggle .phone-code-flag { font-size: 1.1rem; line-height: 1; }
.phone-code-toggle .phone-code-text { font-size: 0.95rem; font-weight: 500; }
.phone-code-toggle .phone-code-caret { font-size: 0.7rem; color: var(--muted); margin-left: 0.1rem; }
.phone-code-toggle:hover { border-color: #bbb; }
.phone-code-panel {
  position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0;
  width: 260px; max-width: 80vw; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); padding: 0.5rem;
}
.phone-code-search {
  width: 100%; margin-top: 0 !important; padding: 0.5rem 0.6rem; border-radius: 7px;
  border: 1px solid var(--border); font-size: 0.95rem; box-sizing: border-box;
}
.phone-code-list { list-style: none; margin: 0.4rem 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
.phone-code-option {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.5rem;
  border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}
.phone-code-option:hover { background: var(--bg); }
.phone-code-option-country { flex: 1; }
.phone-code-option-code { color: var(--muted); font-size: 0.85rem; }
.phone-code-empty { padding: 0.6rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
.field-invalid { border-color: var(--danger) !important; }
.date-error, .form-error { color: var(--danger); font-size: 0.8rem; min-height: 1.1em; display: block; margin-top: 0.3rem; }
.form-success { color: var(--success); font-size: 0.9rem; margin-top: 0.75rem; }

input.date-ddmmyyyy { cursor: pointer; background: #fff; }

/* Mini-calendário (estilo Airbnb) */
.mini-calendar {
  z-index: 1000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  padding: 0.85rem;
  width: 280px;
  font-size: 0.85rem;
}
.mini-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.mini-calendar-label { font-weight: 600; color: var(--ink); }
.mini-calendar-nav {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
}
.mini-calendar-nav:hover { background: var(--bg); }
.mini-calendar-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  min-height: 1.1em;
}
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}
.mini-calendar-dow {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.2rem 0;
}
.mini-calendar-day {
  background: none;
  border: none;
  border-radius: 50%;
  width: 100%;
  height: 34px;
  margin: 0 auto;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink);
  position: relative;
}
.mini-calendar-day:hover:not(.disabled) { background: var(--bg); }
.mini-calendar-day.disabled { color: #ccc; cursor: not-allowed; }
.mini-calendar-day.booked { color: #ccc; text-decoration: line-through; background: #f5f0f0; border-radius: 0; }
.mini-calendar-day.empty { visibility: hidden; cursor: default; }
.mini-calendar-day.today { font-weight: 700; text-decoration: underline; }
.mini-calendar-day.in-range { background: rgba(63, 145, 172, 0.16); border-radius: 0; }
.mini-calendar-day.range-start,
.mini-calendar-day.range-end {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 50%;
}

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .thumbs { display: none; }
}

/* ===== Página do alojamento: meta com ícones, descrição, galeria mobile, barra de reserva ===== */
.listing-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  list-style: none; padding: 0; margin: 0.4rem 0 1.25rem;
  color: var(--muted); font-size: 0.95rem;
}
.listing-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.listing-meta svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-dark); }
.listing-description { color: var(--ink); line-height: 1.65; }

.gallery-carousel { display: none; }
.mobile-book-bar { display: none; }

@media (max-width: 760px) {
  /* Mais respiro nas margens laterais */
  .container { padding: 0 1.5rem; }
  .listing-detail { padding: 1.25rem 1.5rem 5.5rem; }
  .listing-detail h1 { font-size: 1.7rem; line-height: 1.2; margin: 0.25rem 0; }

  /* Cabeçalho compacto: logo mais pequeno e menu numa só linha */
  .site-header { padding: 0.75rem 1.5rem; gap: 0.75rem; }
  .site-header .logo img { height: 28px; }
  .site-header nav { display: flex; gap: 0.9rem; flex-shrink: 0; white-space: nowrap; }
  .site-header nav a { margin-left: 0; font-size: 0.88rem; }

  /* Galeria: carrossel com swipe (a grelha de desktop fica escondida) */
  .gallery { display: none; }
  .gallery-carousel { display: block; position: relative; margin-bottom: 1.25rem; }
  .gallery-track {
    display: flex; overflow-x: auto; gap: 0.5rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    border-radius: 14px; scrollbar-width: none;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-track img {
    flex: 0 0 100%; width: 100%; height: 260px; object-fit: cover;
    scroll-snap-align: center; border-radius: 14px; display: block;
  }
  .gallery-counter {
    position: absolute; right: 0.75rem; bottom: 0.75rem;
    background: rgba(20, 28, 31, 0.72); color: #fff;
    font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px;
    pointer-events: none;
  }
  .gallery-carousel .gallery-see-all { right: auto; left: 0.75rem; bottom: 0.75rem; }

  /* Barra de reserva fixa no fundo do ecrã */
  .mobile-book-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: #fff; border-top: 1px solid var(--border);
    padding: 0.7rem 1.5rem calc(0.7rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
  }
  body:has(.mobile-book-bar) .site-footer { padding-bottom: 5rem; }
  .mobile-book-bar.is-hidden { transform: translateY(110%); }
  .mobile-book-bar .from { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .mobile-book-bar strong { font-size: 1.2rem; }
  .mobile-book-bar small { color: var(--muted); font-size: 0.85rem; }
  .mobile-book-bar button {
    background: var(--brand-dark); color: #fff; border: none; border-radius: 10px;
    padding: 0.75rem 1.6rem; font-size: 1rem; font-weight: 600; cursor: pointer;
  }
}

/* ===== Ajustes de layout no computador ===== */
/* Cabeçalho alinhado com a coluna de conteúdo (max 1100px) */
.site-header {
  padding-left: max(1.25rem, calc((100% - 1100px) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100% - 1100px) / 2 + 1.25rem));
}

/* Botão "Ver todas as fotos" por baixo da galeria, sem tapar nenhuma foto */
.gallery-footer { display: flex; justify-content: flex-end; margin: -0.75rem 0 1.25rem; }
.gallery-footer .gallery-see-all {
  position: static; right: auto; bottom: auto;
}

/* Título compacto e alinhado pelo topo com a caixa de reserva */
.listing-detail h1 { margin: 0 0 0.25rem; line-height: 1.2; }
.detail-grid > div:first-child > p:first-of-type { margin: 0; }
.listing-meta { margin: 0.75rem 0 1.25rem; font-size: 1rem; gap: 0.5rem 1.5rem; }
.listing-meta li { gap: 0.5rem; color: var(--ink); }
.listing-meta svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .gallery-footer { display: none; }
  .site-header { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ===== Rodapé: alinhamento, ícone de email, selos uniformes ===== */
.footer-grid { padding: 0 0 2rem; }
.footer-contact { display: flex; align-items: center; gap: 0.5rem; }
.footer-mail-icon { display: inline-flex; color: var(--brand-dark); }

.footer-trust { gap: 1rem 1.25rem; }
.footer-badge-img {
  width: 150px; height: 84px; padding: 0.5rem 0.75rem;
  justify-content: center; align-items: center;
}
.footer-badge-img img { height: auto; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.payment-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 36px; padding: 0 0.8rem; font-size: 0.8rem; font-weight: 700;
  background: #fff; color: var(--ink);
}
.payment-visa { color: #1a1f71; font-style: italic; font-size: 0.95rem; letter-spacing: 0.04em; }
.payment-paypal { color: #003087; gap: 0; }
.payment-paypal span { color: #009cde; }

/* RNAL na página do alojamento */
.listing-rnal {
  display: inline-block; margin: 0.5rem 0 0; padding: 0.2rem 0.65rem;
  font-size: 0.82rem; font-weight: 600; color: var(--brand-dark);
  background: #eaf5f9; border-radius: 999px;
}

@media (max-width: 640px) {
  .footer-trust { padding: 1.25rem 0; gap: 1rem; }
  .footer-bottom { padding: 1rem 0 1.5rem; }
  .footer-trust, .footer-bottom, .footer-grid { padding-left: 0; padding-right: 0; }
  .footer-badge-img { width: calc((100% - 2rem) / 3); height: 72px; padding: 0.4rem; }
  .footer-payments { margin-top: 0.25rem; }
}

/* ===== Rodapé completo (colunas, links, linha legal) ===== */
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 2rem 2.5rem;
  justify-content: stretch;
}
.footer-brand { max-width: none; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--ink); }
.footer-links a:hover, .footer-legal a:hover { color: var(--brand-dark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-legal a { color: var(--muted); font-weight: 600; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Páginas legais (política, condições, FAQ...) ===== */
.legal-page { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; line-height: 1.7; }
.legal-page h1 { font-size: 2rem; margin: 0 0 0.25rem; line-height: 1.2; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.5rem; }
.legal-page h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; color: var(--brand-dark); }
.legal-page p, .legal-page li { color: var(--ink); }
.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-links-note { margin-top: 2rem; color: var(--muted); font-size: 0.9rem; }

.policy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.policy-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.policy-card h2 { margin: 0 0 0.5rem; color: var(--ink); font-size: 1.4rem; }
.policy-kicker { margin: 0; color: var(--muted); font-size: 0.85rem; }
.policy-card ul { margin: 0.5rem 0 0; }

.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 0.6rem 0 0; color: var(--muted); }

/* Resumo da política de cancelamento na página do alojamento */
.listing-policy { margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.listing-policy h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.listing-policy p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.listing-policy ul { margin: 0.5rem 0 0.6rem; padding-left: 1.2rem; font-size: 0.92rem; }
.listing-policy li { margin-bottom: 0.25rem; }

@media (max-width: 640px) {
  .policy-cards { grid-template-columns: 1fr; }
  .legal-page { padding: 1.5rem 1.5rem 2.5rem; }
  .legal-page h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}

/* ===== Orçamento (noites + limpeza = total) na caixa de reserva ===== */
.quote-box { background: #f1f8fb; border: 1px solid #d5e9f1; border-radius: 10px; padding: 0.8rem 0.9rem; margin: 0 0 1rem; }
.quote-box[hidden] { display: none; }
.quote-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; padding: 0.2rem 0; color: var(--ink); }
.quote-row small { color: var(--muted); }
.quote-total { border-top: 1px solid #d5e9f1; margin-top: 0.35rem; padding-top: 0.5rem; font-weight: 700; font-size: 1.05rem; }
.quote-note { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.78rem; }

/* ===== Página do alojamento: info, comodidades, descrição, datas lado a lado ===== */
.info-chips, .amenity-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 0.9rem; }
.info-chips li, .amenity-chips li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; padding: 0.4rem 0.8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--ink);
}
.info-chips li { background: #f1f8fb; border-color: #d5e9f1; }
.amenity-chips { margin-bottom: 1.25rem; }

.listing-description { line-height: 1.7; }
.listing-description p { margin: 0 0 0.9rem; }
.listing-description .desc-heading { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
.listing-description.collapsed { max-height: 12.5em; overflow: hidden; position: relative; }
.listing-description.collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em;
  background: linear-gradient(to bottom, rgba(247,249,250,0), var(--bg));
}
.desc-toggle {
  background: none; border: none; padding: 0.2rem 0; margin: 0.25rem 0 0.5rem;
  color: var(--brand-dark); font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: underline;
}

.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.date-row label { margin-bottom: 0.4rem; }
.date-row .date-error { min-height: 0; }
.booking-reassure { margin: 0.6rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
