/* =========================================================
   Super Host Stay — painel administrativo
   ========================================================= */
body.admin { background: #F4F1EA; overflow-x: hidden; }
.admin [hidden] { display: none !important; }

/* ---------- login ---------- */
.login { min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 48px; isolation: isolate; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 30s ease-out both; }
.login-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,35,40,.85), rgba(8,35,40,.1) 60%); }
.login-art h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; max-width: 520px; }
.login-art h2 .serif { color: #FFD2C4; }
.login-art p { opacity: .85; margin-top: 12px; max-width: 460px; }
.login-box { display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.login-card { width: min(400px, 100%); }
.login-card h1 { font-size: 30px; font-weight: 800; margin: 36px 0 6px; }
.login-card > p { color: var(--muted); }
.login-card form { margin-top: 28px; display: grid; gap: 14px; }
.login-card .btn { width: 100%; }
.login-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; display: flex; gap: 8px; }
.login-err { color: var(--coral-d); font-weight: 600; font-size: 14px; min-height: 20px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- campos ---------- */
.f { display: grid; gap: 6px; min-width: 0; }
.f > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.f small { color: var(--muted); font-size: 12.5px; }
.in, .f input:not([type=checkbox]):not([type=radio]):not([type=range]), .f select, .f textarea {
  width: 100%; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 11px 13px; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.f textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.in:focus, .f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14,59,67,.08); }
.f.err input, .f.err select { border-color: var(--coral); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100svh; }
.side { background: var(--ink); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 22px; }
.side .logo { padding: 4px 8px; color: #fff; font-size: 18px; }
.side .logo .mark { width: 36px; height: 36px; }
.side .logo .word em { color: #FFB39F; }
.side nav { display: grid; gap: 2px; }
.side nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #B9D3D4; font-weight: 600; font-size: 14.5px; text-align: left; transition: background .2s, color .2s; }
.side nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav button.on { background: rgba(255,255,255,.1); color: #fff; }
.side nav button.on .ico { color: var(--teal-l); }
.side nav .count { margin-left: auto; background: var(--coral); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.folder-state { font-size: 12.5px; color: #A6C2C4; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.folder-state b { color: #fff; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.folder-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #F5A524; flex: none; }
.folder-state.ok .dot { background: #3ED1C2; }
.side-foot .btn { height: 40px; font-size: 13.5px; }
.btn-dark { background: rgba(255,255,255,.08); color: #fff; }
.btn-dark:hover { background: rgba(255,255,255,.16); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 3vw, 36px); background: rgba(244,241,234,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top h1 { font-size: 22px; font-weight: 800; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 99px; background: #E3F6F2; color: #0D7A6F; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.dirty { background: #FFF1D6; color: #9A6200; }
.status.dirty i { animation: pulse 1.4s infinite; }
.content { padding: clamp(16px, 3vw, 36px); display: grid; gap: 24px; align-content: start; }
.view { animation: fadeUp .4s var(--ease) both; display: grid; gap: 24px; align-content: start; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.4vw, 28px); }
.panel h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.muted { color: var(--muted); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: grid; gap: 6px; }
.kpi .k-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--teal); }
.kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13.5px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }

/* listas */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row img, .row .ph { width: 64px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--sand); }
.row b { display: block; font-size: 15px; }
.row small { color: var(--muted); font-size: 13px; }
.empty-s { color: var(--muted); text-align: center; padding: 28px 0; font-size: 14.5px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.confirmada { background: #DDF6F2; color: #0D7A6F; }
.pill.pendente { background: #FFF1D6; color: #9A6200; }
.pill.bloqueio { background: #E7E3DB; color: #4D5A5C; }
.pill.cancelada { background: #FDE4DE; color: #B23B1E; text-decoration: line-through; }
.pill.pub { background: #DDF6F2; color: #0D7A6F; }
.pill.draft { background: #E7E3DB; color: #4D5A5C; }

/* cards de hospedagem */
.l-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.l-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.l-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.l-card .cover { position: relative; aspect-ratio: 16/10; background: var(--sand); }
.l-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.l-card .cover .pill { position: absolute; top: 12px; left: 12px; }
.l-card .body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.l-card .body b { font-size: 16px; }
.l-card .body small { color: var(--muted); }
.l-card .acts { display: flex; gap: 6px; padding: 0 12px 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; flex: none; }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn.danger:hover { background: var(--coral-d); border-color: var(--coral-d); }
.l-card .acts .btn { flex: 1; height: 38px; font-size: 14px; }
.new-card { border: 2px dashed var(--line-2); border-radius: 20px; display: grid; place-items: center; min-height: 280px; color: var(--muted); font-weight: 700; gap: 8px; transition: border-color .2s, color .2s, background .2s; }
.new-card:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* editor */
.editor { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.editor-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.editor-nav a { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.editor-nav a:hover { background: #fff; }
.editor-body { display: grid; gap: 18px; min-width: 0; }
.editor-body .panel { scroll-margin-top: 92px; display: grid; gap: 16px; }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 14px clamp(16px, 3vw, 36px); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); margin: 0 calc(-1 * clamp(16px, 3vw, 36px)) calc(-1 * clamp(16px, 3vw, 36px)); flex-wrap: wrap; }
.save-bar .grow { margin-right: auto; color: var(--muted); font-size: 14px; align-self: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-t { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14px; cursor: pointer; user-select: none; background: #fff; transition: all .2s; }
.chip-t input { display: none; }
.chip-t:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }

.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.switch-row input { display: none; }
.switch-row .switch { pointer-events: none; }
.switch-row:has(input:checked) .switch { background: var(--teal); }
.switch-row:has(input:checked) .switch::after { transform: translateX(18px); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cover-tag { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.photo .p-acts { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .2s; }
.photo:hover .p-acts, .photo:focus-within .p-acts { opacity: 1; }
.photo .p-acts button { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--ink); }
.photo .p-acts button:hover { background: var(--ink); color: #fff; }
.add-photo { border: 2px dashed var(--line-2); border-radius: 14px; aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; font-size: 13.5px; gap: 4px; cursor: pointer; transition: border-color .2s, color .2s; padding: 8px; }
.add-photo:hover, .add-photo.drag { border-color: var(--ink); color: var(--ink); background: #fff; }

.list-edit { display: grid; gap: 10px; }
.le-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: start; }
.le-row.rate { grid-template-columns: 1.2fr 1fr 1fr 1fr auto; }
.le-row.hl { grid-template-columns: 150px 1fr 1.6fr auto; }

.mini-map { position: relative; border-radius: 18px; overflow: hidden; height: 300px; background: #BFE7E3; cursor: crosshair; }
.mini-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map .mm-pin { position: absolute; translate: -50% -100%; color: var(--coral-d); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); transition: left .25s var(--ease), top .25s var(--ease); }
.mini-map .others { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(14,59,67,.35); translate: -50% -50%; pointer-events: none; }

/* timeline de ocupação */
.tl-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl-head h3 { font-size: 17px; text-transform: capitalize; min-width: 150px; text-align: center; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-left: auto; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.tl-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; }
.tl { min-width: 920px; }
.tl-row { display: grid; grid-template-columns: 190px repeat(var(--days), 1fr); border-top: 1px solid var(--line); position: relative; min-height: 46px; }
.tl-row:first-child { border-top: 0; }
.tl-row.hd { min-height: 38px; background: var(--sand); position: sticky; top: 0; }
.tl-name { grid-row: 1; grid-column: 1; padding: 8px 12px; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); background: #fff; position: sticky; left: 0; z-index: 2; min-width: 0; }
.tl-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row.hd .tl-name { background: var(--sand); }
.tl-day { grid-row: 1; border-left: 1px solid #F1ECE3; font-size: 11.5px; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.tl-day:hover { background: #EAF7F5; }
.tl-day.we { background: #FBF8F2; }
.tl-day.today { background: #FFF4E8; color: var(--coral-d); font-weight: 800; }
.tl-row.hd .tl-day { cursor: default; font-weight: 700; line-height: 1.1; text-align: center; }
.tl-bar { grid-row: 1; z-index: 1; margin: 7px 2px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tl-bar:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.tl-bar.confirmada { background: var(--teal); }
.tl-bar.pendente { background: #F5A524; }
.tl-bar.bloqueio { background: repeating-linear-gradient(45deg, #8A9799, #8A9799 6px, #97A3A5 6px, #97A3A5 12px); }
.tl-bar.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.tl-bar.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #FBF9F5; }
table.t td .acts { display: flex; gap: 6px; justify-content: flex-end; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters .in { width: auto; min-width: 180px; padding: 9px 12px; }

/* modal do admin */
.a-modal { position: fixed; inset: 0; z-index: 120; background: rgba(6,24,28,.5); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.a-modal.open { opacity: 1; pointer-events: auto; }
.a-modal .box { background: #fff; border-radius: 24px; width: min(640px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 26px; transform: translateY(20px) scale(.98); transition: transform .35s var(--ease-spring); }
.a-modal.open .box { transform: none; }
.a-modal .box.wide { width: min(900px, 100%); }
.a-modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.a-modal form { display: grid; gap: 14px; }
.a-modal .m-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.a-modal .m-acts .left { margin-right: auto; }
.quote-box { background: var(--sand); border-radius: 14px; padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert.err { background: #FDE4DE; color: #9C3017; }
.alert.info { background: #E6F3F8; color: #1C5A6E; }
.alert.warn { background: #FFF1D6; color: #8A5800; }

.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.lib button { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; outline: 3px solid transparent; transition: outline-color .2s, transform .2s; }
.lib button:hover { outline-color: var(--teal); transform: scale(1.03); }
.lib img { width: 100%; height: 100%; object-fit: cover; }

.steps { counter-reset: s; display: grid; gap: 12px; margin-top: 4px; }
.steps li { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.steps { padding: 0; margin: 0; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .editor-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .editor-nav a { white-space: nowrap; background: #fff; }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 260px; padding: 28px 20px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; }
  .side .logo .word { display: none; }
  .side nav { display: flex; gap: 4px; }
  .side nav button { white-space: nowrap; padding: 9px 11px; font-size: 13.5px; }
  .side-foot { margin: 0; display: flex; }
  .side-foot .folder-state { display: none; }
  .top { position: static; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .le-row, .le-row.hl { grid-template-columns: 1fr auto; }
  .le-row > :nth-child(2), .le-row.hl > :nth-child(3) { grid-column: 1; }
  .le-row.rate { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid2, .grid3, .grid4, .kpis { grid-template-columns: 1fr; }
  .top-actions .btn span { display: none; }
}
@media (max-width: 560px) { .exp-ed { grid-template-columns: 1fr !important; } .exp-ed > button { aspect-ratio: 16/9 !important; } }
.content > *, .view > *, .panel, .two-col > * { min-width: 0; }
