/* Vistorio Housekeeping & Room Operations page */

/* ─── Hero ─── */
.hk-hero-title {
  margin: 0 0 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hk-hero-title span {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.hk-hero-title span:nth-child(1) {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.hk-hero-title span:nth-child(2) {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: var(--red);
  font-weight: 700;
  margin-top: 0.35rem;
}

.hk-hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 28rem;
  line-height: 1.5;
}

.hk-hero-tagline em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}

.hk-hero-scene {
  position: relative;
  min-height: 420px;
}

.hk-command {
  background: var(--ink);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin: 0 auto;
}

.hk-command__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hk-command__head strong {
  font-size: 0.82rem;
  color: #fff;
}

.hk-command__live {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hk-command__live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  animation: hp-pulse 1.5s ease infinite;
}

.hk-command__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hk-command__kpi {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.55rem;
  text-align: center;
}

.hk-command__kpi label {
  display: block;
  font-size: 0.48rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.15rem;
}

.hk-command__kpi b {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.hk-command__kpi b.ready { color: var(--success); }
.hk-command__kpi b.dirty { color: var(--warn); }
.hk-command__kpi b.clean { color: #38bdf8; }

.hk-floor-preview {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}

.hk-room-mini {
  aspect-ratio: 1;
  border-radius: 5px;
  font-size: 0.45rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #fff;
}

.hk-room-mini--occ { background: #64748b; }
.hk-room-mini--dirty { background: #b45309; }
.hk-room-mini--clean { background: #0891b2; }
.hk-room-mini--ready { background: #059669; }
.hk-room-mini--insp { background: #9333ea; }
.hk-room-mini--maint { background: var(--red); }

.hk-float {
  position: absolute;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 12px 40px rgba(15,20,25,0.12);
  min-width: 120px;
  animation: hp-float-card 6s ease-in-out infinite;
}

.hk-float label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.hk-float strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.hk-float--1 { top: 0; left: -2%; }
.hk-float--2 { top: 18%; right: -3%; animation-delay: -1.5s; }
.hk-float--3 { bottom: 30%; left: -4%; animation-delay: -3s; }
.hk-float--4 { bottom: 5%; right: 0; animation-delay: -2s; }

@media (max-width: 1023px) {
  .hk-float { display: none; }
  .hk-command__kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Challenges ─── */
.hk-challenges {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.hk-challenge {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.hk-challenge:hover {
  transform: translateY(-3px);
  border-color: rgba(177,18,38,0.2);
}

.hk-challenge__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(177,18,38,0.08);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.hk-challenge h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.hk-resolve {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--page-muted);
  border: 1px solid rgba(177,18,38,0.12);
  border-radius: 18px;
  text-align: center;
}

.hk-resolve p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--ink);
}

.hk-resolve strong { color: var(--red); }

/* ─── Live room dashboard ─── */
.hk-dash {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.hk-dash__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hk-dash__head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}

.hk-dash__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 700px) {
  .hk-dash__grid { grid-template-columns: repeat(2, 1fr); }
}

.hk-dash__kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.hk-dash__kpi label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.25rem;
}

.hk-dash__kpi strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.hk-dash__kpi--ready strong { color: var(--success); }
.hk-dash__kpi--dirty strong { color: var(--warn); }
.hk-dash__kpi--clean strong { color: #38bdf8; }
.hk-dash__kpi--insp strong { color: #c084fc; }
.hk-dash__kpi--maint strong { color: var(--danger); }

/* Room board */
.hk-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.hk-board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.hk-filter {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--muted);
}

.hk-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.hk-legend span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hk-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: block;
}

.hk-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr));
  gap: 0.45rem;
}

.hk-room {
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  transition: transform 0.2s var(--ease);
  cursor: default;
}

.hk-room:hover { transform: scale(1.08); }

.hk-room--occ { background: #64748b; }
.hk-room--vac { background: #94a3b8; color: var(--ink); }
.hk-room--dirty { background: #b45309; }
.hk-room--clean { background: #0891b2; }
.hk-room--ready { background: #059669; }
.hk-room--insp { background: #9333ea; }
.hk-room--maint { background: var(--red); }
.hk-room--oos { background: #475569; }

/* ─── Workflow ─── */
.hk-flow-wrap {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.hk-flow {
  display: flex;
  min-width: max-content;
  gap: 0;
  padding: 1rem 0;
}

.hk-flow-step {
  flex: 0 0 108px;
  text-align: center;
  position: relative;
  padding: 0 0.3rem;
}

.hk-flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.1rem;
  top: 1.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
}

.hk-flow-step__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.45rem;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  animation: hk-flow-pulse 4s ease-in-out infinite;
}

.hk-flow-step:nth-child(2) .hk-flow-step__icon { animation-delay: -0.5s; }
.hk-flow-step:nth-child(4) .hk-flow-step__icon { animation-delay: -1s; }
.hk-flow-step:nth-child(6) .hk-flow-step__icon { animation-delay: -1.5s; }

@keyframes hk-flow-pulse {
  0%, 100% { border-color: var(--line); }
  50% { border-color: rgba(177,18,38,0.35); transform: scale(1.05); }
}

.hk-flow-step strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
}

.hk-flow-step span {
  display: block;
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* ─── Staff assignments ─── */
.hk-staff-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.hk-staff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.hk-staff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(177,18,38,0.2);
}

.hk-staff-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hk-staff-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.hk-staff-card h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.hk-staff-card__role {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
}

.hk-staff-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.hk-staff-stat {
  background: var(--page);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.72rem;
}

.hk-staff-stat label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.hk-staff-stat b {
  font-weight: 800;
  color: var(--ink);
}

.hk-staff-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.hk-staff-room {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: var(--page);
  border: 1px solid var(--line);
}

.hk-staff-room.done {
  background: rgba(13,122,78,0.1);
  border-color: rgba(13,122,78,0.2);
  color: var(--success);
}

.hk-staff-room.active {
  background: rgba(8,145,178,0.1);
  border-color: rgba(8,145,178,0.2);
  color: #0891b2;
}

/* ─── Inspection workflow ─── */
.hk-insp-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hk-insp-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.hk-insp-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hk-insp-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  position: relative;
}

.hk-insp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2.4rem;
  height: calc(100% - 0.25rem);
  width: 2px;
  background: var(--line);
}

.hk-insp-step__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 1;
}

.hk-insp-step.done .hk-insp-step__dot {
  background: var(--success);
  color: #fff;
}

.hk-insp-step strong { font-size: 0.85rem; }

.hk-checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.hk-checklist__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.hk-checklist__head strong { font-size: 0.85rem; }

.hk-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
}

.hk-check-item:last-child { border-bottom: none; }

.hk-check-item span:first-child {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.hk-check-item.done span:first-child {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.hk-check-item.fail span:first-child {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ─── Linen dashboard ─── */
.hk-linen-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.hk-linen-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hk-linen-kpi label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hk-linen-kpi strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.hk-linen-kpi strong.warn { color: var(--red); }

/* ─── Maintenance flow ─── */
.hk-maint-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.hk-maint-step {
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hk-maint-arrow {
  color: var(--red);
  font-weight: 800;
}

.hk-maint-ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.hk-maint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.hk-priority {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
}

.hk-priority--high { background: rgba(177,18,38,0.1); color: var(--red); }
.hk-priority--med { background: rgba(180,83,9,0.1); color: #b45309; }
.hk-priority--low { background: rgba(15,20,25,0.06); color: var(--muted); }

/* ─── Executive dashboard ─── */
.hk-exec-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.hk-exec-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hk-exec-kpi label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hk-exec-kpi strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.hk-exec-kpi strong.pos { color: var(--success); }

.hk-progress-bar {
  margin-top: 1.5rem;
  background: var(--page);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.hk-progress-bar span {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  animation: hk-progress 2s var(--ease) backwards;
}

@keyframes hk-progress {
  from { width: 0; }
  to { width: 92%; }
}

/* ─── Mobile ─── */
.hk-mobile-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hk-mobile-layout { grid-template-columns: 1fr 1fr; }
}

.hk-phones {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.hk-phone {
  width: 190px;
  background: var(--ink);
  border-radius: 26px;
  padding: 0.6rem;
  box-shadow: 0 24px 48px rgba(15,20,25,0.2);
}

.hk-phone--2 {
  width: 210px;
  transform: translateY(-16px);
}

.hk-phone__screen {
  background: #f8f9fb;
  border-radius: 20px;
  min-height: 340px;
  overflow: hidden;
}

.hk-phone__header {
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: #fff;
}

.hk-phone__header strong {
  display: block;
  font-size: 0.72rem;
}

.hk-phone__header span {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.55);
}

.hk-phone__body { padding: 0.75rem; }

.hk-phone__row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
}

.hk-phone__btn {
  display: block;
  text-align: center;
  padding: 0.55rem;
  background: #059669;
  color: #fff;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ─── Insights ─── */
.hk-insights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.hk-insight {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.hk-insight__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.hk-insight__dot--up { background: var(--success); }
.hk-insight__dot--warn { background: #b45309; }
.hk-insight__dot--info { background: var(--red); }

.hk-insight p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ─── Benefits ─── */
.hk-benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.hk-benefit {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s var(--ease);
}

.hk-benefit:hover { transform: translateY(-4px); }

.hk-benefit__icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.hk-benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.hk-benefit p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Layout helpers ─── */
.hk-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hk-band--calm {
  background: var(--page-muted);
}

.hk-final {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}

.hk-final .hp-h2 { color: #fff; }
.hk-final .hp-lede { color: rgba(255,255,255,0.7); }

.hk-final .mk-btn-xl--outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
