/* Home do Tô Hospedado (diretório de motéis) — tema claro da marca, independente do tema do motel. */
:root {
  --brand-1: #7B2FF7;
  --brand-2: #E6199A;
  --brand-3: #FF5A3C;
  --brand-grad: linear-gradient(135deg, #7B2FF7 0%, #E6199A 55%, #FF5A3C 100%);
  --navy: #101A4A;
  --ink: #1b2240;
  --muted: #6b7188;
  --line: #e6e8f0;
  --paper: #ffffff;
  --page: #f6f7fb;
  --ok: #17b26a;
  --warn: #f5a623;
  --off: #8a90a6;
  --r: 18px;
  --shadow-1: 0 2px 8px rgba(16, 26, 74, .06);
  --shadow-2: 0 14px 34px rgba(16, 26, 74, .12);
  --head: "Nunito", "Inter", system-ui, sans-serif;
}
html[data-tema="light"] body { background: var(--page); color: var(--ink); }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.home-inner { width: min(1240px, 100% - 40px); margin: 0 auto; }

/* topo */
.home-topo { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.home-topo-inner { width: min(1240px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 84px; }
.home-marca img { height: 44px; width: auto; }
.home-nav { display: flex; align-items: center; gap: 18px; font-weight: 700; color: var(--navy); }
.home-nav a { color: inherit; }
.home-user { width: 44px; height: 44px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); display: grid; place-items: center; }
.home-user .ic { width: 22px; height: 22px; }

/* barra de busca */
.busca { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; gap: 0; max-width: 760px; margin: 0 auto; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.busca-campo { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-right: 1px solid var(--line); min-width: 0; cursor: text; }
.busca-campo:nth-of-type(3) { border-right: 0; }
.busca-campo > .ic { width: 22px; height: 22px; color: var(--navy); }
.busca-campo > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.busca-campo b { font-family: var(--head); font-size: .95rem; color: var(--navy); }
.busca-campo input, .busca-campo select { border: 0; background: transparent; font: inherit; font-size: .88rem; color: var(--muted); padding: 0; outline: 0; width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; }
.busca-campo input { cursor: text; }
.busca-campo input::placeholder { color: var(--muted); }
.busca-btn { width: 56px; height: 56px; border-radius: 999px; border: 0; background: var(--brand-grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(123, 47, 247, .35); transition: transform .12s, filter .15s; }
.busca-btn .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.busca-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* chips */
.home { padding: 28px 0 0; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: var(--shadow-1); transition: .15s; }
.chip .ic { width: 20px; height: 20px; }
.chip:hover { border-color: #cfc3f5; }
.chip.ativo { background: #f1e9ff; border-color: #c9b3ff; color: var(--brand-1); }
.chip.ocupado { opacity: .6; cursor: progress; }

.home-cabecalho { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.home-cabecalho h1 { font-family: var(--head); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); margin: 0; letter-spacing: -.02em; }
.home-sub { margin: 0; color: var(--muted); }

/* cards */
.moteis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.motel { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); transition: transform .18s, box-shadow .18s; }
.motel:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.motel-foto { position: relative; aspect-ratio: 4 / 3; background: #e9ebf3; overflow: hidden; }
.motel-capa { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.motel:hover .motel-capa { transform: scale(1.04); }
.motel-sem-foto { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.4rem; text-align: center; padding: 20px; }
.motel-sem-foto img { max-height: 60%; max-width: 70%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.motel-status { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-1); }
.motel-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--off); }
.motel-status.ok { color: #0f7a46; } .motel-status.ok i { background: var(--ok); box-shadow: 0 0 0 4px rgba(23,178,106,.18); }
.motel-status.cheio { color: #8a5a00; } .motel-status.cheio i { background: var(--warn); }
.motel-status.off { color: var(--muted); }
.motel-logo { position: absolute; right: 12px; bottom: 12px; height: 44px; width: auto; max-width: 120px; object-fit: contain; background: rgba(255,255,255,.92); padding: 4px 8px; border-radius: 10px; box-shadow: var(--shadow-1); }
.motel-corpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.motel-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.motel-nome { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.motel-livres { font-size: .78rem; font-weight: 700; color: #0f7a46; white-space: nowrap; }
.motel-local { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
.motel-local .ic { color: var(--navy); }
.motel-dist::before { content: "•"; margin: 0 4px; }
.motel-itens { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.motel-itens li { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink); }
.motel-itens .ic { width: 20px; height: 20px; color: var(--navy); }
.motel-slogan { margin: 0; color: var(--muted); font-size: .9rem; }
.motel-rodape { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.motel-preco { display: flex; flex-direction: column; }
.motel-preco small { color: var(--muted); font-size: .8rem; }
.motel-preco strong { font-family: var(--head); font-size: 1.55rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.motel-preco-vazio { font-size: .95rem !important; font-weight: 700 !important; color: var(--muted) !important; }
.motel-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--brand-1); }
.motel-cta .ic { transition: transform .15s; }
.motel:hover .motel-cta .ic { transform: translateX(3px); }

/* vazio */
.home-vazio { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-vazio h3 { margin: 6px 0 0; font-family: var(--head); font-weight: 800; color: var(--navy); }
.home-vazio p { margin: 0 0 8px; }

/* como funciona */
.home-como { margin-top: 56px; padding: 56px 0; background: var(--paper); border-top: 1px solid var(--line); }
.home-como h2 { font-family: var(--head); font-weight: 900; color: var(--navy); font-size: 1.7rem; margin-bottom: 22px; }
.como-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.como { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--page); border: 1px solid var(--line); }
.como-n { width: 34px; height: 34px; border-radius: 999px; background: var(--brand-grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.como h3 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.como p { margin: 0; color: var(--muted); font-size: .92rem; }

/* rodapé */
.home-rodape { padding: 24px 0 40px; background: var(--paper); color: var(--muted); font-size: .88rem; }
.home-rodape .home-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-rodape-marca { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 800; color: var(--navy); }
.home-rodape-links { display: flex; gap: 20px; flex-wrap: wrap; }
.home-rodape-links a { color: var(--navy); font-weight: 600; }

/* responsivo */
@media (max-width: 1000px) {
  .home-topo-inner { grid-template-columns: auto auto; grid-template-areas: "marca nav" "busca busca"; gap: 10px 16px; padding: 10px 0; }
  .home-marca { grid-area: marca; } .home-nav { grid-area: nav; justify-content: flex-end; } .busca { grid-area: busca; max-width: none; }
  .home-nav a:not(.home-user) { display: none; }
}
@media (max-width: 640px) {
  .home-inner, .home-topo-inner { width: min(1240px, 100% - 24px); }
  .home-marca img { height: 36px; }
  .busca { grid-template-columns: 1fr auto; padding: 6px; }
  .busca-campo:nth-of-type(2), .busca-campo:nth-of-type(3) { display: none; }
  .busca-campo { border-right: 0; }
  .busca-btn { width: 48px; height: 48px; }
  .chips { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .chip { flex: none; padding: 10px 14px; font-size: .86rem; }
  .moteis { grid-template-columns: 1fr; gap: 16px; }
}

/* iOS: sem zoom ao focar a busca (fonte >= 16px no celular). */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .busca-campo input, .busca-campo select { font-size: 16px; }
}
