/* Extranet chrome, login, cards, cameras. Calendar rules live in calendar.css. */
:root {
  --ink: #003580;
  --muted: #64748b;
  --line: #dbe3ef;
  --amber: #d97706;
  --bg: #f4f6f9;
  --navy: #00224f;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; background: var(--bg); color: #0f172a; }
a { color: var(--ink); }
button { font: inherit; cursor: pointer; }
input, textarea, select {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
textarea { min-height: 72px; }
textarea.pitch-edit { min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.btn { background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.amber { background: var(--amber); color: #fff; }
.muted { color: var(--muted); font-size: 13px; }
.err { color: #b91c1c; }
.ok { color: #047857; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #e0ecff; color: var(--ink); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

header.ex { background: var(--navy); color: #fff; }
header.ex .bar { display: flex; align-items: center; gap: 16px; padding: 10px 18px; }
header.ex select { width: auto; min-width: 220px; }
header.ex #who { color: #cbd5e1; }
.brand { font-weight: 700; letter-spacing: .02em; }
nav.main { display: flex; gap: 4px; flex: 1; }
nav.main button, nav.side button { background: transparent; color: #dbe7ff; border: 0; border-radius: 8px; padding: 8px 12px; }
nav.main button.on, nav.side button.on { background: #fff; color: var(--navy); }
nav.side { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px; }

.gate { max-width: 420px; margin: 48px auto; }
.pw { display: flex; gap: 8px; }
.pw button { white-space: nowrap; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 1.6rem; }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: #fff; z-index: 20; padding: 16px; overflow: auto; border-left: 1px solid var(--line); }
.drawer-head { justify-content: space-between; }
.mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 19; }
.drawer[hidden], .mask[hidden], [hidden] { display: none !important; }
.orbit { height: 240px; border-radius: 12px; background: #111827 center/cover no-repeat; cursor: grab; }
#cam-orbit { margin-top: 12px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
  cursor: grab;
}
.photo-tile.cover { outline: 2px solid var(--amber); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.photo-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(15, 23, 42, .75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}
.photo-tile.cover .photo-badge { background: var(--amber); }
.photo-del {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .8);
  color: #fff;
  line-height: 1;
}
.photo-move {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}
.photo-move button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
}
.dropzone {
  display: block;
  border: 1px dashed var(--ink);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--ink);
  background: #eef4ff;
  cursor: pointer;
  margin-bottom: 10px;
}
.dropzone.over { background: #dbe7ff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; min-height: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #eef4ff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}
.chip button {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0;
  line-height: 1;
}
.chip.suggest { cursor: pointer; background: #fff; }
.amenity-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.amenity-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.amenity-row .card-title { margin-bottom: 6px; }
.room-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.check input { width: auto; }
#locale-picks { display: grid; gap: 8px; margin: 8px 0 12px; }
.review-pick { align-items: flex-start; margin: 10px 0; }
.review-pick .face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.photo-tile .photo-meta {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11px;
  background: rgba(15, 23, 42, .75);
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
}
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.save-msg { margin-left: 8px; }
.theme-picks { display: grid; gap: 8px; margin: 8px 0 14px; }
.theme-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.theme-pick:has(input:checked) { outline: 2px solid var(--ink); }
.theme-pick .swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.theme-pick input { width: auto; }

@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  header.ex .bar { flex-wrap: wrap; }
}
