:root {
  --ink: #171717;
  --muted: #737373;
  --border: #e5e5e5;
  --bg-soft: #fafafa;
  --green-bg: #f0fdf4;
  --green-text: #15803d;
  --amber-bg: #fffbeb;
  --amber-border: #fcd34d;
  --red: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

a { color: inherit; }

.container { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 24px 16px; }

h1 { font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
p.subtitle { color: var(--muted); margin: 0 0 16px; font-size: 0.92rem; }

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.card-soft { background: var(--bg-soft); }
.card-success { background: var(--green-bg); color: var(--green-text); }
.card-warning { background: var(--amber-bg); border-color: var(--amber-border); }

label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 12px;
}

.field { margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: #fff; width: 100%; }
.btn-primary:hover { background: #404040; }
.btn-secondary { background: #fff; border: 1px solid #d4d4d4; color: var(--ink); width: 100%; }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-small { padding: 6px 12px; font-size: 0.78rem; border: 1px solid #d4d4d4; background: #fff; border-radius: 8px; cursor: pointer; }
.btn-link-danger { color: var(--red); background: none; border: none; font-size: 0.85rem; cursor: pointer; padding: 0; text-decoration: underline; }

.error { color: var(--red); font-size: 0.85rem; margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); padding: 8px 12px; background: var(--bg-soft); }
td { padding: 8px 12px; border-top: 1px solid var(--border); }
tr:hover td { background: var(--bg-soft); }

/* Admin shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 220px; border-right: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.sidebar .brand { font-weight: 600; padding: 0 8px 16px; }
.sidebar nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.sidebar nav a:hover { background: var(--bg-soft); }
.main { flex: 1; padding: 32px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }

.property-card { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.property-card img { width: 100%; height: 130px; object-fit: cover; background: var(--bg-soft); display: block; }
.property-card .body { padding: 10px 12px; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; text-decoration: none; background: var(--bg-soft); color: var(--muted); text-transform: uppercase; }
.lang-switch a.active { background: var(--ink); color: #fff; }

.checkin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkin-header .property-name { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

canvas.sigpad { width: 100%; height: 160px; border: 1px solid #d4d4d4; border-radius: 12px; touch-action: none; background: #fff; }

.upsell-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.upsell-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-soft); }
.upsell-item .info { flex: 1; }
.upsell-item .badge { text-transform: uppercase; font-size: 0.68rem; color: var(--muted); }

.door-code-box { border: 1px solid var(--ink); background: var(--bg-soft); border-radius: 14px; padding: 16px; text-align: center; }
.door-code-box .code { font-size: 2rem; font-weight: 600; letter-spacing: 0.3em; }
