/* Goa Tours Package — dashboard styles */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0f2f44; --soft: #4a6577; --faint: #5d7687; --line: #dfe8ec; --bg: #f3f7f9; --white: #fff;
  --teal: #0b7286; --teal-dark: #085a6b; --tint: #e6f5f7; --navy: #0b2536; --gold: #b07d2c;
  --ok: #17794a; --ok-bg: #e3f5eb; --bad: #b3261e; --bad-bg: #fdecea; --warn: #8a5a00; --warn-bg: #fff4d6; --info-bg: #e8f1fb; --info: #1d4f8c;
  --radius: 14px; --shadow: 0 8px 24px -16px rgba(15, 47, 68, .35);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; font-weight: 600; } h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #eef3f5; padding: 2px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid #22b3c4; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { flex: none; vertical-align: -0.18em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--soft); } .small { font-size: .86rem; } .nowrap { white-space: nowrap; }
.good { color: var(--ok); } .warn-text { color: var(--warn); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--navy); color: #c7d8e2; overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; color: #fff; text-decoration: none; }
.side__brand img { background: #fff; border-radius: 12px; padding: 3px; width: 46px; }
.side__brand strong { display: block; font-weight: 600; line-height: 1.2; }
.side__brand small { color: #8fb0c2; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.side__nav { flex: 1; padding: 4px 12px 12px; }
.side__group { margin: 18px 10px 6px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7d9db0; }
.side__link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: #c7d8e2; text-decoration: none; text-align: left; font-size: .97rem; transition: background-color .15s, color .15s; }
.side__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side__link.is-active { background: var(--teal); color: #fff; font-weight: 500; }
.side__link span { flex: 1; }
.side__foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px clamp(16px, 3vw, 34px); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top__title { flex: 1; margin: 0; font-size: 1.3rem; font-weight: 600; }
.top__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; place-items: center; }
.top__user { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 600; }
.content { padding: clamp(18px, 3vw, 34px); max-width: 1320px; width: 100%; }
.side-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(11, 37, 54, .55); }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: min(86vw, 290px); transform: translateX(-105%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .side.is-open { transform: none; visibility: visible; }
  .top__burger { display: grid; }
  .top__name { display: none; }
}

/* ---------- pieces ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 22px; }
.stack-lg > .card + .card, .cols > .card + .card, .cols > * + .card { margin-top: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card--danger { border-color: #f1c9c5; }
.card--narrow { max-width: 520px; margin-top: 22px; }
.card--highlight { border-color: #e9c98f; background: #fffaf0; margin-bottom: 22px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head h2 { margin: 0; }
.card__head--plain { padding: 0 0 14px; border: 0; }
.card__foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 14px; }
.stack-lg { display: grid; gap: 22px; align-content: start; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.form-side { position: sticky; top: 88px; }
.form-narrow { max-width: 860px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.field--span2 { grid-column: span 2; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 1100px) { .cols, .cols--even, .form-cols { grid-template-columns: minmax(0, 1fr); } .form-side { position: static; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .field--span2 { grid-column: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 1px solid #c9d6dc; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn:hover { background: #f1f6f8; border-color: #aebfc8; }
.btn--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--danger { background: #fff; border-color: #e3a7a2; color: var(--bad); }
.btn--danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn--wa { background: #0f8145; border-color: #0f8145; color: #fff; }
.btn--wa:hover { background: #0c6f3b; border-color: #0c6f3b; }
.btn--sm { min-height: 34px; padding: 5px 12px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c9d6dc; border-radius: 9px; background: #fff; color: var(--soft); text-decoration: none; }
.icon-btn:hover { background: #f1f6f8; color: var(--ink); }
.icon-btn--danger { color: var(--bad); border-color: #ecc3bf; }
.icon-btn--danger:hover { background: var(--bad-bg); color: var(--bad); }

.field { min-width: 0; }
.field + .field, .grid-2 + .field, .field + .grid-2, .grid-4 + .field, .grid-3 + .grid-2, .field + .grid-3, .grid-2 + .grid-4, .field + .grid-4, .grid-2 + .grid-2 { margin-top: 14px; }
.grid-2 > .field + .field, .grid-3 > .field + .field, .grid-4 > .field + .field { margin-top: 0; }
.field label { display: block; margin-bottom: 5px; font-size: .9rem; font-weight: 500; }
.field label small { font-weight: 400; color: var(--faint); }
.input { display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c3d1d8; border-radius: 10px; background: #fff; line-height: 1.4; }
textarea.input { resize: vertical; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 145, .18); }
.input:disabled { background: #f1f5f7; color: var(--soft); }
.input--file { padding: 8px; }
.input--num { width: 90px; min-height: 36px; padding: 5px 8px; }
.input--code { font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.hint { margin: 6px 0 0; font-size: .85rem; color: var(--soft); }
.count { float: right; font-size: .8rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.count.is-over { color: var(--bad); font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }

.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; font-size: .95rem; }
.notice--ok { background: var(--ok-bg); color: #0f5a36; border-color: #bfe5cf; }
.notice--bad { background: var(--bad-bg); color: #8c1d18; border-color: #f5c6c1; }
.notice--warn { background: var(--warn-bg); color: #6b4500; border-color: #f1dc9c; }
.notice--info { background: var(--info-bg); color: var(--info); border-color: #c7dcf3; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e9eff2; color: var(--soft); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill--new, .pill--hot { background: #fde4dc; color: #a8340f; }
.pill--contacted { background: var(--info-bg); color: var(--info); }
.pill--quoted { background: var(--warn-bg); color: var(--warn); }
.pill--booked { background: var(--ok-bg); color: var(--ok); }
.pill--closed { background: #e9eff2; color: var(--soft); }
.pill--gold { background: #fbf0d9; color: #7d5514; }
.side__link .pill--hot { background: #f0623a; color: #fff; }

.welcome { color: var(--soft); margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s; }
.stat:hover { transform: translateY(-2px); }
.stat__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--teal-dark); }
.stat strong { display: block; font-size: 1.7rem; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat small { color: var(--soft); font-size: .86rem; }
.stat--hot .stat__icon { background: #fde4dc; color: #a8340f; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { padding: 11px 16px; text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; background: #f8fafb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfd; }
.table tr.is-new td:first-child { box-shadow: inset 3px 0 0 #f0623a; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table--tight td, .table--tight th { padding: 9px 14px; }
.actions { white-space: nowrap; text-align: right; }
.actions > * { vertical-align: middle; }
.actions form { display: inline-block; margin-left: 6px; }
.with-thumb { display: flex; align-items: center; gap: 14px; min-width: 300px; }
.with-thumb img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.empty { margin: 0; padding: 34px 20px; text-align: center; color: var(--soft); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar p { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: .92rem; font-weight: 500; }
.tabs a b { font-weight: 600; font-size: .8rem; color: var(--faint); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a.is-active b { color: #b9cdd8; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search .input { width: 240px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; color: var(--soft); font-size: .92rem; }
.back { margin-bottom: 14px; font-size: .93rem; }
.back a { text-decoration: none; }
.details { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.details dt { color: var(--faint); font-size: .86rem; padding-top: 2px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details .pre { white-space: pre-wrap; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checks .icon { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; }
.checks .ok .icon { background: var(--ok-bg); color: var(--ok); }
.checks .bad .icon { background: var(--bad-bg); color: var(--bad); }
.checks .warn .icon { background: var(--warn-bg); color: var(--warn); }
.todo { display: grid; gap: 10px; padding-left: 18px; list-style: disc; color: var(--soft); font-size: .95rem; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.feed li:last-child { border: 0; padding-bottom: 0; }
.feed small { display: block; color: var(--faint); }

/* ---------- editor ---------- */
.editor { border: 1px solid #c3d1d8; border-radius: 10px; background: #fff; overflow: hidden; }
.editor:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 145, .18); }
.editor__bar { flex-wrap: wrap; gap: 4px; padding: 8px; background: #f6f9fa; border-bottom: 1px solid var(--line); }
.editor__bar button { min-height: 32px; padding: 3px 10px; border: 1px solid transparent; border-radius: 7px; background: none; font-size: .88rem; color: var(--ink); }
.editor__bar button:hover { background: #fff; border-color: #c9d6dc; }
.editor__bar button.is-on { background: var(--ink); color: #fff; }
.editor__sep { width: 1px; margin: 4px 4px; background: #d3dee3; }
.editor__src { margin-left: auto; }
.editor__bar, .editor__area { display: none; }
.editor.is-ready .editor__bar { display: flex; }
.editor.is-ready .editor__area { display: block; min-height: 220px; max-height: 620px; overflow-y: auto; padding: 16px 18px; outline: none; }
.editor__raw { border: 0; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; min-height: 220px; }
.editor.is-ready .editor__raw { display: none; }
.editor.is-ready.is-source .editor__area { display: none; }
.editor.is-ready.is-source .editor__raw { display: block; }
.prose h2 { font-size: 1.3rem; margin: 1.2em 0 .5em; } .prose h3 { font-size: 1.1rem; margin: 1.1em 0 .4em; }
.prose p { margin: 0 0 .9em; } .prose > :first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: .9em; } .prose ol { list-style: decimal; padding-left: 1.4em; margin-bottom: .9em; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid #e9c98f; background: #fbf5ea; }
.prose table { border-collapse: collapse; margin: 1em 0; } .prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; }

.repeater__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfd; }
.repeater__num { display: inline-block; padding: 6px 0; text-align: center; border-radius: 8px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; }
.repeater__fields { display: grid; gap: 8px; }
.repeater__tools { display: grid; gap: 6px; }
@media (max-width: 640px) { .repeater__row { grid-template-columns: minmax(0, 1fr); } .repeater__tools { grid-auto-flow: column; justify-content: start; } .repeater__num { width: 64px; } }

.image-field { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.image-field img { width: 240px; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); }
@media (max-width: 720px) { .image-field { grid-template-columns: minmax(0, 1fr); } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.thumb { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.thumb img { width: 100%; height: 140px; object-fit: cover; display: block; background: var(--tint); }
.thumb__body { padding: 10px; display: grid; gap: 8px; }
.thumb__row { display: flex; align-items: center; gap: 8px; }
.thumb__row form { margin-left: auto; }

.steps-list { list-style: decimal; padding-left: 1.3em; margin-bottom: 16px; color: var(--soft); display: grid; gap: 6px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 18px; padding: 18px; border: 1px dashed #c3d1d8; border-radius: 12px; background: #fafcfd; }
.qr canvas { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.key { word-spacing: .2em; font-size: .95rem; }
.codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.codes code { display: block; padding: 10px; text-align: center; font-size: 1rem; background: #fff; border: 1px solid #e9c98f; }
@media (max-width: 720px) { .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sign-in & setup ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; background: linear-gradient(160deg, #0b2536 0%, #0e7c91 100%); }
.auth__card { width: min(100%, 430px); padding: 34px 32px; border-radius: 20px; background: #fff; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.auth--wide .auth__card { width: min(100%, 640px); }
.auth__logo { display: block; width: 120px; height: auto; margin: 0 auto 18px; }
.auth h1 { text-align: center; font-size: 1.45rem; margin-bottom: 14px; }
.auth h2 { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.auth .muted { text-align: center; }
.auth__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: .92rem; }
.auth__foot { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #cfe3ea; font-size: .86rem; }
.auth .btn--primary { min-height: 48px; }
