:root {
  --ink: #102033;
  --muted: #607087;
  --line: #dce3ea;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --blue: #1069aa;
  --green: #20c768;
  --yellow: #ffd23c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, .button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(16, 32, 51, .25);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.brand strong { display: block; font-size: 18px; }
.brand small { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .28em; }
.topbar nav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; color: #4c5a70; }
.topbar form { margin: 0; }
.topbar nav button { min-height: 36px; background: #edf2f5; color: var(--ink); }
.pill { color: #fff; background: var(--blue); border-radius: 8px; padding: 10px 14px; }
.pill.subtle { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.flash {
  margin: 18px auto 0;
  max-width: 1120px;
  padding: 12px 16px;
  border: 1px solid #badbcc;
  border-radius: 8px;
  background: #e8f6ee;
  color: #155724;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: stretch;
  gap: clamp(22px, 4vw, 48px);
  min-height: 610px;
  padding: clamp(34px, 6vw, 78px) clamp(16px, 4vw, 54px);
  background: linear-gradient(135deg, #eef6fa 0%, #fff 54%, #f8f3df 100%);
}
.hero > div { align-self: center; max-width: 760px; }
.hero h1 {
  margin: 14px 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  letter-spacing: 0;
}
.hero p { max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.hero img {
  width: 100%;
  min-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 58px -36px rgba(16, 32, 51, .65);
}
.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--yellow);
  color: #0c243d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.section { padding: 54px clamp(16px, 4vw, 54px); max-width: 1480px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
h1, h2, h3 { margin-top: 0; letter-spacing: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filters a, .tag {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eaf1f6;
  color: #245274;
  font-size: 12px;
  font-weight: 850;
}
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px -34px rgba(16, 32, 51, .65);
}
.listing { overflow: hidden; display: flex; flex-direction: column; }
.listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dae1e7; }
.listing > div { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing h3 { margin: 2px 0 0; font-size: 20px; }
.listing p { color: var(--muted); line-height: 1.55; margin: 0; }
dl { display: grid; gap: 8px; margin: 4px 0 0; }
dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 13px; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; font-weight: 750; }
.auth-panel {
  width: min(520px, calc(100% - 32px));
  margin: 54px auto;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.auth-panel.customer-register {
  width: min(960px, calc(100% - 32px));
}
.form { display: grid; gap: 14px; }
.form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.customer-register .form.two { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.customer-register .form.two > label { grid-column: span 6; }
.customer-register .form.two > .full { grid-column: 1 / -1; }
.customer-register .field-cep { grid-column: span 3 !important; }
.customer-register .field-street { grid-column: span 7 !important; }
.customer-register .field-number { grid-column: span 2 !important; }
.customer-register .field-complement { grid-column: span 6 !important; }
.form-divider {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-divider strong { font-size: 17px; color: var(--ink); }
.form-divider span, label small { color: var(--muted); font-size: 12px; font-weight: 600; }
label { display: grid; gap: 7px; color: #34445a; font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd8e1;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
.dashboard {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 54px);
}
.dashboard.wide { grid-template-columns: 300px minmax(0, 1fr); }
.profile, .form-card { padding: 18px; }
.muted, .empty { color: var(--muted); }
.customer-portal {
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 54px) 60px;
}
.customer-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 64px;
}
.customer-workspace {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px -48px rgba(16, 32, 51, .65);
}
.workspace-heading { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.workspace-heading h1 { margin: 12px 0 8px; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.workspace-heading p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }
.dashboard-banner { margin-bottom: 30px; min-height: 220px; }
.dashboard-banner h1 { margin: 12px 0 10px; font-size: clamp(36px, 4vw, 54px); }
.dashboard-banner .portal-summary { min-height: 150px; }
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(9, 27, 51, .95), rgba(16, 105, 170, .84)),
    url("/assets/media/02.jpg") center/cover;
}
.portal-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}
.portal-hero p { max-width: 760px; color: rgba(255,255,255,.82); line-height: 1.65; margin: 0; }
.portal-summary {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 160px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.portal-summary strong { font-size: 56px; line-height: 1; }
.portal-summary span { font-size: 13px; font-weight: 850; color: rgba(255,255,255,.76); text-align: center; }
.portal-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.portal-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.portal-nav .nav-title { display: grid; gap: 3px; padding: 7px 10px 14px; border-bottom: 1px solid var(--line); }
.portal-nav .nav-title strong { font-size: 16px; }
.portal-nav .nav-title span { color: var(--muted); font-size: 12px; }
.portal-nav a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #43556c;
  font-size: 14px;
  font-weight: 800;
  transition: background .15s, color .15s;
}
.portal-nav a strong, .portal-nav a small { display: block; }
.portal-nav a strong { font-size: 14px; }
.portal-nav a small { margin-top: 3px; color: #8290a2; font-size: 11px; font-weight: 650; }
.portal-nav a:hover, .portal-nav a.active { background: #eaf3fa; color: var(--blue); }
.portal-nav a.active { box-shadow: inset 3px 0 0 var(--blue); }
.portal-nav .back-link { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 16px; }
.portal-section { margin-top: 28px; }
.technical-section, .account-section { scroll-margin-top: 100px; }
.section-head.compact { margin-bottom: 16px; }
.section-head.compact h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); }
.booking-list { display: grid; gap: 14px; }
.booking-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px -36px rgba(16, 32, 51, .7);
}
.booking-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: #d9e2e8;
}
.booking-body { padding: 18px; }
.booking-body h3 { margin: 12px 0; font-size: 22px; }
.booking-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status {
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf9f2;
  color: #167744;
  font-size: 12px;
  font-weight: 900;
}
.booking-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.booking-details div {
  padding: 11px;
  border-radius: 8px;
  background: #f6f8fa;
}
.booking-details span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.booking-details strong { display: block; margin-top: 3px; font-size: 14px; }
.empty-state {
  padding: 24px;
  border: 1px dashed #b8c7d5;
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-weight: 700;
}
.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 28px;
}
.stats div {
  min-width: 140px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.stats .stat-card {
  min-width: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.stats .stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 12px 30px -24px rgba(16, 105, 170, .8);
}
.stats .stat-card strong { display: block; font-size: 30px; }
.stats .stat-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.stats .stat-card small { display: block; margin-top: 9px; color: var(--blue); font-size: 11px; font-weight: 850; }
.customer-data-card { max-width: 920px; padding: 24px; box-shadow: none; }
.password-card { max-width: 560px; padding: 24px; box-shadow: none; }
.overview-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f8fafc;
}
.overview-panel div { display: grid; gap: 5px; }
.overview-panel span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.overview-panel strong { font-size: 22px; }
.overview-panel small { color: var(--muted); font-size: 13px; }
.technical-table td { vertical-align: top; white-space: nowrap; }
.technical-table td:nth-child(2) { min-width: 230px; white-space: normal; }
.technical-table td:last-child { min-width: 160px; white-space: normal; }
.technical-table small { display: block; margin-top: 4px; color: var(--muted); }
.status-cancelled { background: #fff0f0; color: #a72f2f; }
.status-completed { background: #edf3ff; color: #315a9f; }
.status-pending, .status-under_review { background: #fff8e6; color: #8a6416; }
.status-rejected, .status-suspended { background: #fff0f0; color: #a72f2f; }
.status-inactive { background: #f1f5f7; color: #516178; }
.partner-menu { margin-top: 14px; }
.menu-scaffold { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.menu-scaffold li { padding: 10px 12px; border-radius: 8px; background: #f6f8fa; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.menu-scaffold li.active { background: #edf9f2; color: #167744; }
.menu-scaffold li.disabled { color: var(--muted); }
.menu-scaffold .tag { font-size: 11px; font-weight: 800; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.partner-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.partner-status .eyebrow { display: block; margin-bottom: 4px; }
.partner-status strong { display: block; font-size: 18px; }
.auth-link { display: inline-block; margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: 800; }
.stats strong { display: block; font-size: 30px; }
.stats span { color: var(--muted); font-size: 13px; font-weight: 800; }
.mini-form {
  display: grid;
  grid-template-columns: 1fr 110px 80px;
  gap: 8px;
  margin-top: auto;
}
.mini-form button { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: #516178; background: #f1f5f7; }

/* Categoria (estilo Booking.com): barra de filtro + cards ricos */
.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  position: sticky;
  top: 78px;
  z-index: 5;
}
.category-toolbar .result-count { font-size: 14px; font-weight: 800; color: var(--ink); }
.category-toolbar .result-count span { color: var(--muted); font-weight: 650; }
.sub-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.grid.cards.rich { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.listing.rich { position: relative; }
.listing.rich img { aspect-ratio: 16 / 10; }
.listing.rich .badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(16, 32, 51, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .03em;
}
.listing.rich .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.listing.rich .price-row .from { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.listing.rich .price-row .amount { font-size: 22px; font-weight: 900; color: var(--ink); }
.listing.rich .meta-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.listing.rich .meta-row span { display: inline-flex; align-items: center; gap: 4px; }

/* Anuncio: galeria + sidebar de reserva no estilo Booking.com */
.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  border-radius: 8px;
  overflow: hidden;
}
.gallery .gallery-main { grid-row: 1 / 3; height: 100%; }
.gallery .gallery-main img, .gallery .gallery-main video { width: 100%; height: 100%; min-height: 320px; object-fit: cover; background: #dae1e7; }
.gallery .gallery-thumb img, .gallery .gallery-thumb video { width: 100%; height: 100%; min-height: 155px; object-fit: cover; background: #dae1e7; }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single .gallery-main { height: auto; aspect-ratio: 16 / 9; max-height: 480px; }
.gallery.single .gallery-main img { height: 100%; min-height: 0; max-height: 480px; }
.booking-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 20px 55px -48px rgba(16, 32, 51, .65);
}
.booking-sidebar .price-headline { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.booking-sidebar .price-headline strong { font-size: 26px; font-weight: 900; }
.booking-sidebar .price-headline span { color: var(--muted); font-size: 13px; font-weight: 700; }
.booking-sidebar form { display: grid; gap: 12px; }
.booking-sidebar label { gap: 5px; }
.booking-sidebar .price-breakdown {
  display: grid;
  gap: 6px;
  margin: 4px 0 2px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.booking-sidebar .price-breakdown div { display: flex; justify-content: space-between; }
.booking-sidebar .price-breakdown .total { font-weight: 900; font-size: 15px; color: var(--ink); }
.booking-sidebar button { width: 100%; min-height: 48px; font-size: 15px; }
.booking-sidebar .no-slots { color: var(--muted); font-size: 13px; text-align: center; padding: 8px 0; }
@media (max-width: 980px) {
  .listing-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .gallery-main { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero img { min-height: 300px; }
  .section-head, .dashboard { display: block; }
  .portal-hero, .portal-grid, .booking-card, .customer-shell { grid-template-columns: 1fr; }
  .customer-shell { width: min(100% - 24px, 720px); padding-top: 16px; }
  .customer-workspace { padding: 20px; }
  .portal-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-nav .nav-title, .portal-nav .back-link { grid-column: 1 / -1; }
  .overview-panel { align-items: flex-start; flex-direction: column; }
  .portal-summary { min-height: 120px; }
  .booking-details { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; margin-top: 14px; }
  .dashboard aside { margin-bottom: 18px; }
  .form.two, .mini-form { grid-template-columns: 1fr; }
  .customer-register .form.two > label,
  .customer-register .field-cep,
  .customer-register .field-street,
  .customer-register .field-number,
  .customer-register .field-complement { grid-column: 1 / -1 !important; }
  .form-divider { align-items: flex-start; flex-direction: column; gap: 4px; }
  .category-toolbar { position: static; flex-direction: column; align-items: flex-start; }
}
