@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --primary: #0B5A2D;
  --primary-dark: #073D1E;
  --primary-light: #2E8B52;
  --primary-50: #EFF7F1;
  --primary-100: #D6EBDD;
  --primary-200: #AEDCC0;
  --primary-700: #073D1E;

  --n50: #FAFAFA; --n100: #F4F5F6; --n200: #E7E9EB; --n300: #D2D6DA;
  --n400: #9BA3AB; --n500: #6B747C; --n600: #4C545B; --n700: #353B41;
  --n800: #22272B; --n900: #14181B;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 8px 24px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-family: 'Tajawal', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }

body {
  background: var(--n50);
  color: var(--n800);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { color: var(--n900); font-weight: 800; line-height: 1.35; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* الأرقام دائمًا LTR داخل النص العربي */
.num { direction: ltr; unicode-bidi: embed; display: inline-block; }
[dir="ltr"] { direction: ltr; text-align: left; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-sm { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-xs { max-width: 420px; margin: 0 auto; padding: 0 16px; }

/* ═══════════ البطاقات ═══════════ */
.card {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--n200);
}
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 800; }
.card-body { padding: 20px; }
.card-danger { border-color: #fca5a5; box-shadow: 0 0 0 3px #fee2e2; }
.card-warn { border-color: #fcd34d; box-shadow: 0 0 0 3px #fef3c7; }

/* ═══════════ الأزرار ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--n300); color: var(--n700); }
.btn-outline:hover:not(:disabled) { background: var(--n100); color: var(--n900); }
.btn-ghost { background: transparent; color: var(--n600); }
.btn-ghost:hover:not(:disabled) { background: var(--n100); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; color: #fff; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover:not(:disabled) { background: #047857; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ═══════════ النماذج ═══════════ */
.field { margin-bottom: 16px; }
label.lbl, .lbl {
  display: block; font-size: 13.5px; font-weight: 500;
  color: var(--n700); margin-bottom: 6px;
}
.req { color: #dc2626; margin-right: 2px; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], input[type=time], input[type=url],
select, textarea {
  width: 100%; padding: 10px 13px; font: inherit; font-size: 14px;
  color: var(--n900); background: #fff;
  border: 1px solid var(--n300); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,69,.13);
}
input.err, select.err, textarea.err { border-color: #f87171; }
textarea { resize: vertical; min-height: 84px; }
select { cursor: pointer; }

.err-msg { color: #dc2626; font-size: 12.5px; margin-top: 5px; }
.hint { color: var(--n500); font-size: 12.5px; margin-top: 5px; }

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 3px; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.check span { font-size: 14px; }
.check small { display: block; color: var(--n500); font-size: 12px; margin-top: 2px; }

/* بطاقات الاختيار */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.chip {
  display: block; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 500;
  text-align: right; background: #fff; color: var(--n700);
  border: 1px solid var(--n300); border-radius: var(--radius-sm);
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--n400); background: var(--n50); }
.chip.on {
  border-color: var(--primary); background: var(--primary-50);
  color: var(--primary-700); box-shadow: 0 0 0 2px rgba(27,107,69,.12);
}
.chip-qty { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.chip-qty label { font-size: 11px; color: var(--n500); white-space: nowrap; }
.chip-qty input { padding: 5px 8px; font-size: 13px; }

/* ═══════════ الشبكات ═══════════ */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g4.keep2, .g3.keep2 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ الشارات ═══════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.b-blue   { background:#eff6ff; color:#1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }
.b-amber  { background:#fffbeb; color:#92400e; box-shadow: inset 0 0 0 1px #fde68a; }
.b-teal   { background:#f0fdfa; color:#0f766e; box-shadow: inset 0 0 0 1px #99f6e4; }
.b-violet { background:#f5f3ff; color:#6d28d9; box-shadow: inset 0 0 0 1px #ddd6fe; }
.b-orange { background:#fff7ed; color:#c2410c; box-shadow: inset 0 0 0 1px #fed7aa; }
.b-cyan   { background:#ecfeff; color:#0e7490; box-shadow: inset 0 0 0 1px #a5f3fc; }
.b-indigo { background:#eef2ff; color:#4338ca; box-shadow: inset 0 0 0 1px #c7d2fe; }
.b-green  { background:#ecfdf5; color:#047857; box-shadow: inset 0 0 0 1px #a7f3d0; }
.b-green-strong { background:#d1fae5; color:#065f46; box-shadow: inset 0 0 0 1px #6ee7b7; }
.b-sky    { background:#f0f9ff; color:#0369a1; box-shadow: inset 0 0 0 1px #bae6fd; }
.b-gray   { background:var(--n100); color:var(--n600); box-shadow: inset 0 0 0 1px var(--n300); }
.b-red    { background:#fef2f2; color:#b91c1c; box-shadow: inset 0 0 0 1px #fecaca; }
.b-primary{ background:var(--primary-50); color:var(--primary-700); box-shadow: inset 0 0 0 1px var(--primary-200); }

/* ═══════════ التنبيهات ═══════════ */
.alert {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid; font-size: 14px; margin-bottom: 16px;
}
.alert-info    { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.alert-warn    { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.alert-danger  { background:#fef2f2; border-color:#fecaca; color:#b91c1c; }
.alert-success { background:#ecfdf5; border-color:#a7f3d0; color:#047857; }
.alert b { font-weight: 800; }

.alert-big { border-width: 2px; border-radius: var(--radius); padding: 18px 20px; }
.alert-big h3 { font-size: 16px; margin-bottom: 5px; }
.alert-big ul { margin: 10px 0 0; padding-right: 18px; }
.alert-big li { margin-bottom: 5px; }

/* ═══════════ الحقول المعروضة ═══════════ */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; }
.f-label { display: block; font-size: 12px; color: var(--n500); margin-bottom: 2px; }
.f-value { font-size: 14px; font-weight: 500; color: var(--n900); }
.f-value.muted { color: var(--n400); font-weight: 400; }

/* ═══════════ الجداول ═══════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
  background: var(--n50); border-bottom: 1px solid var(--n200);
  padding: 11px 13px; text-align: right; font-size: 12.5px;
  font-weight: 800; color: var(--n600); white-space: nowrap;
}
table.tbl td { padding: 11px 13px; border-bottom: 1px solid var(--n100); vertical-align: top; }
table.tbl tbody tr:hover { background: var(--n50); }
table.tbl .empty { text-align: center; padding: 50px 20px; color: var(--n500); }

/* ═══════════ التخطيط ═══════════ */
.topbar {
  position: sticky; top: 0; z-index: 40; background: #fff;
  border-bottom: 1px solid var(--n200);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.logo-txt strong { display: block; font-size: 14.5px; color: var(--n900); font-weight: 800; line-height: 1.3; }
.logo-txt small { display: block; font-size: 10.5px; color: var(--n500); }

.shell { display: flex; align-items: flex-start; }
.side {
  width: 235px; flex-shrink: 0; background: #fff;
  border-left: 1px solid var(--n200); padding: 12px;
  position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto;
}
.side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--n600); text-decoration: none; margin-bottom: 2px;
}
.side a:hover { background: var(--n100); color: var(--n900); text-decoration: none; }
.side a.on { background: var(--primary-50); color: var(--primary-700); }
.side .sep { border-top: 1px solid var(--n200); margin: 10px 0; padding-top: 10px; }

.main { flex: 1; min-width: 0; padding: 22px; }

.side-toggle { display: none; }

@media (max-width: 980px) {
  .side {
    position: fixed; top: 62px; right: 0; bottom: 0; z-index: 35;
    transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow-lg);
  }
  .side.open { transform: translateX(0); }
  .side-toggle { display: inline-flex; }
  .main { padding: 16px; }
}

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 23px; }
.page-head p { color: var(--n600); font-size: 14px; margin-top: 3px; }

/* ═══════════ المؤشرات ═══════════ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi {
  background: #fff; border: 1px solid var(--n200); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); text-decoration: none; display: block;
  transition: box-shadow .15s;
}
.kpi:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.kpi .k-label { font-size: 12px; color: var(--n500); }
.kpi .k-value { font-size: 26px; font-weight: 800; color: var(--n900); margin-top: 5px; line-height: 1.1; }
.kpi .k-sub { font-size: 11.5px; color: var(--n500); margin-top: 4px; }
.kpi.red .k-value { color: #b91c1c; }
.kpi.green .k-value { color: #047857; }

/* ═══════════ شريط التقدم ═══════════ */
.bar { height: 8px; background: var(--n200); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.bar.good > i { background: #059669; }
.bar.mid  > i { background: #d97706; }
.bar.bad  > i { background: #dc2626; }

/* ═══════════ الخطوات ═══════════ */
.steps { display: flex; gap: 6px; margin-bottom: 12px; }
.steps i { flex: 1; height: 6px; background: var(--n200); border-radius: 999px; overflow: hidden; display: block; }
.steps i.done { background: var(--primary); }
.steps i.cur { background: linear-gradient(to left, var(--primary) 50%, var(--n200) 50%); }

/* ═══════════ قائمة التنفيذ ═══════════ */
.cl { list-style: none; }
.cl li { margin-bottom: 2px; }
.cl button {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 8px 8px; background: none; border: none; border-radius: 8px;
  font: inherit; text-align: right; cursor: pointer; transition: background .15s;
}
.cl button:hover { background: var(--n50); }
.cl .box {
  width: 19px; height: 19px; border: 2px solid var(--n300); border-radius: 6px;
  flex-shrink: 0; margin-top: 2px; display: grid; place-items: center;
  color: #fff; font-size: 12px; line-height: 1; background: #fff;
}
.cl .on .box { background: var(--primary); border-color: var(--primary); }
.cl .txt { font-size: 14px; color: var(--n800); }
.cl .on .txt { color: var(--n400); text-decoration: line-through; }
.cl .meta { display: block; font-size: 10.5px; color: var(--n400); margin-top: 2px; }

/* ═══════════ المسار الزمني ═══════════ */
.timeline { list-style: none; }
.timeline li { display: flex; gap: 12px; }
.timeline .dot-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--n300); margin-top: 6px; }
.timeline li:first-child .dot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.timeline .line { width: 1px; flex: 1; background: var(--n200); margin: 4px 0; }
.timeline .content { padding-bottom: 16px; min-width: 0; }
.timeline .who { font-size: 12px; color: var(--n600); margin-top: 5px; }
.timeline .when { font-size: 11px; color: var(--n400); }
.timeline .note { font-size: 12px; color: var(--n600); margin-top: 3px; }

/* ═══════════ النجوم ═══════════ */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--n300); font-size: 17px; line-height: 1; }
.star.on { color: #fbbf24; }

.star-pick { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.star-pick button {
  background: none; border: none; cursor: pointer; padding: 4px;
  font-size: 30px; line-height: 1; color: var(--n300); transition: color .12s, transform .12s;
  border-radius: 6px;
}
.star-pick button:hover { transform: scale(1.12); }
.star-pick button.on { color: #fbbf24; }
.star-pick .label { font-size: 13.5px; color: var(--n600); margin-right: 8px; font-weight: 500; }

/* مقياس التوصية 0..10 */
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps button {
  aspect-ratio: 1; border: 1px solid var(--n300); background: #fff; border-radius: 8px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--n600); cursor: pointer;
  direction: ltr; transition: all .12s;
}
.nps button:hover { border-color: var(--n400); }
.nps button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.nps-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--n500); margin-top: 6px; }

@media (max-width: 560px) {
  .nps { grid-template-columns: repeat(6, 1fr); }
  .star-pick button { font-size: 26px; }
}

/* ═══════════ التقويم ═══════════ */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal .h {
  padding: 9px 4px; text-align: center; font-size: 11.5px; font-weight: 800;
  color: var(--n600); background: var(--n50); border-bottom: 1px solid var(--n200);
}
.cal .d { min-height: 96px; border-bottom: 1px solid var(--n100); border-left: 1px solid var(--n100); padding: 5px; }
.cal .d.pad { background: #fcfcfd; }
.cal .d.today { background: var(--primary-50); }
.cal .dn {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px;
  font-size: 12px; font-weight: 700; color: var(--n500); direction: ltr;
}
.cal .d.today .dn { background: var(--primary); color: #fff; }
.cal .ev {
  display: block; margin-top: 3px; padding: 3px 6px; border-radius: 6px;
  font-size: 10.5px; line-height: 1.35; background: var(--n100); color: var(--n700);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal .ev:hover { text-decoration: none; filter: brightness(.95); }
.cal .ev.vip { background: var(--primary-100); color: var(--primary-700); }
.cal .ev.urg { background: #fee2e2; color: #b91c1c; }

@media (max-width: 700px) {
  .cal .d { min-height: 68px; }
  .cal .ev { font-size: 9px; }
}

/* ═══════════ متفرقات ═══════════ */
.muted { color: var(--n500); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.row-between { justify-content: space-between; }
.spacer { flex: 1; }
.divider { border: 0; border-top: 1px solid var(--n200); margin: 22px 0; }

.code-box {
  background: var(--n50); border: 1px solid var(--n200); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 11.5px; word-break: break-all;
  direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--n700);
}

.dl { display: grid; gap: 8px; font-size: 12.5px; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; }
.dl dt { color: var(--n500); flex-shrink: 0; }
.dl dd { color: var(--n800); font-weight: 500; text-align: left; }

.guest-box { border: 1px solid var(--n200); border-radius: var(--radius-sm); padding: 15px; margin-bottom: 12px; }
.guest-box:last-child { margin-bottom: 0; }

.list-plain { list-style: none; }
.list-plain li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--n100); font-size: 14px;
}
.list-plain li:last-child { border-bottom: 0; }

.item-link {
  display: block; padding: 14px 20px; border-bottom: 1px solid var(--n100);
  text-decoration: none; color: inherit; transition: background .12s;
}
.item-link:last-child { border-bottom: 0; }
.item-link:hover { background: var(--n50); text-decoration: none; }

.pill-date {
  width: 50px; flex-shrink: 0; text-align: center;
  background: var(--primary-50); border-radius: var(--radius-sm); padding: 6px 2px;
}
.pill-date b { display: block; font-size: 16px; font-weight: 800; color: var(--primary-700); direction: ltr; line-height: 1; }
.pill-date span { display: block; font-size: 10px; color: var(--primary); margin-top: 2px; }

.bell { position: relative; }
.bell .dot-n {
  position: absolute; top: -2px; left: -2px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: #dc2626; color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; direction: ltr;
}

.overlay {
  position: fixed; inset: 62px 0 0 0; background: rgba(0,0,0,.2); z-index: 30; display: none;
}
.overlay.on { display: block; }

.toast {
  position: fixed; bottom: 20px; left: 20px; z-index: 100;
  background: var(--n900); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-sm); font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none;
}
.toast.on { opacity: 1; transform: translateY(0); }
.toast.bad { background: #b91c1c; }

.hidden { display: none !important; }

/* ═══════════ الطباعة ═══════════ */
@media print {
  .no-print, .side, .topbar, .overlay { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .main { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .shell { display: block; }
}

/* ═══════════ خريطة الغرف ═══════════ */
.room-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 10px;
}

.room-tile {
  position: relative;
  border: 2px solid var(--n200);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 11px 10px 9px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  user-select: none;
}

.room-tile:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.room-tile.dragging { opacity: .4; transform: scale(.96); }

.room-tile .rt-num   { font-size: 17px; font-weight: 800; color: var(--n900); line-height: 1.1; }
.room-tile .rt-name  { font-size: 11px; color: var(--n600); line-height: 1.3;
                       overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-tile .rt-guest { font-size: 11px; font-weight: 600; margin-top: auto; line-height: 1.3;
                       overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-tile .rt-cap   { font-size: 10.5px; color: var(--n500); }
.room-tile .rt-type  { position: absolute; top: 8px; left: 9px; font-size: 12px; color: var(--accent-dark); }

/* حالات الغرف — الشريط الجانبي واللون */
.room-tile::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 4px;
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
}

.rs-available            { border-color: #a7d8bd; background: #f4fbf7; }
.rs-available::before    { background: #10a05a; }
.rs-available .rt-guest  { color: #0f7a45; }

.rs-occupied             { border-color: #f2b8b8; background: #fdf5f5; }
.rs-occupied::before     { background: #dc2626; }
.rs-occupied .rt-guest   { color: #b91c1c; }

.rs-maintenance          { border-color: #f3d9a4; background: #fffbf3; }
.rs-maintenance::before  { background: #d97706; }
.rs-maintenance .rt-guest{ color: #a35f06; }

.rs-out                  { border-color: var(--n300); background: var(--n50); opacity: .8; }
.rs-out::before          { background: var(--n400); }
.rs-out .rt-num          { color: var(--n500); }

/* نقاط المفتاح */
.room-dot { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.room-dot.rs-available   { background: #10a05a; border: 0; }
.room-dot.rs-occupied    { background: #dc2626; border: 0; }
.room-dot.rs-maintenance { background: #d97706; border: 0; }
.room-dot.rs-out         { background: var(--n400); border: 0; }
.room-dot::before        { display: none; }

@media (max-width: 560px) {
  .room-map { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .room-tile { min-height: 94px; padding: 9px 8px; }
}

@media print {
  .room-tile { break-inside: avoid; }
}
