/* ============ HMS admin shell (Bootstrap 5, no JS framework) ============ */
:root {
  --hms-sidebar-width: 260px;
  --hms-sidebar-bg: #1b2436;
  --hms-sidebar-hover: #24304a;
  --hms-sidebar-active: #2e64fe;
  --hms-sidebar-text: #b9c2d6;
  --hms-topbar-height: 60px;
  --hms-content-bg: #f4f6fb;
}

html, body { height: 100%; }
body { font-size: 15px; background: var(--hms-content-bg); }

/* ---- shell layout ---- */
.hms-shell { display: flex; min-height: 100vh; }

.hms-sidebar {
  width: var(--hms-sidebar-width);
  background: var(--hms-sidebar-bg);
  color: var(--hms-sidebar-text);
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform .25s ease;
}

.hms-main {
  flex: 1;
  margin-left: var(--hms-sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---- brand ---- */
.hms-brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hms-brand-mark {
  background: var(--hms-sidebar-active);
  color: #fff; font-weight: 700; letter-spacing: .5px;
  border-radius: .5rem; padding: .25rem .55rem;
}
.hms-brand-text { color: #fff; font-weight: 600; font-size: .95rem; }

/* ---- nav ---- */
.hms-nav { padding: .75rem .75rem 2rem; }
.hms-nav-link {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; border: 0; background: transparent; text-align: left;
  color: var(--hms-sidebar-text);
  padding: .55rem .75rem; border-radius: .5rem;
  font-size: .92rem; text-decoration: none;
}
.hms-nav-link:hover { background: var(--hms-sidebar-hover); color: #fff; }
.hms-nav-link.active { background: var(--hms-sidebar-active); color: #fff; }
.hms-nav-link .bi { font-size: 1.05rem; width: 1.25rem; text-align: center; }
.hms-nav-caret { margin-left: auto; font-size: .7rem !important; transition: transform .2s ease; }
.hms-nav-group.collapsed .hms-nav-caret { transform: rotate(-90deg); }

.hms-nav-sublist { padding: .15rem 0 .3rem 2.35rem; }
.hms-nav-sublink {
  display: block; color: var(--hms-sidebar-text);
  padding: .4rem .6rem; border-radius: .4rem;
  font-size: .88rem; text-decoration: none;
}
.hms-nav-sublink:hover { background: var(--hms-sidebar-hover); color: #fff; }
.hms-nav-sublink.active { color: #fff; background: rgba(46,100,254,.35); }

/* ---- topbar ---- */
.hms-topbar {
  height: var(--hms-topbar-height);
  background: #fff;
  border-bottom: 1px solid #e6e9f0;
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1.25rem;
  position: sticky; top: 0; z-index: 1030;
}
.hms-topbar-title { font-weight: 600; }
.hms-burger { border: 0; font-size: 1.35rem; line-height: 1; padding: .25rem .5rem; }
.hms-user-btn { border: 0; font-weight: 500; }
.hms-bell-btn { border: 0; padding: .25rem .5rem; }
.hms-notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }

/* ---- content ---- */
.hms-content { padding: 1.5rem; flex: 1; }

/* ---- stat cards ---- */
.hms-stat-card {
  background: #fff; border: 1px solid #e6e9f0; border-radius: .75rem;
  padding: 1.1rem 1.25rem; height: 100%;
}
.hms-stat-card .hms-stat-icon {
  width: 44px; height: 44px; border-radius: .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.hms-stat-value { font-size: 1.6rem; font-weight: 700; }
.hms-stat-label { color: #6b7280; font-size: .85rem; }

/* ---- login ---- */
.hms-login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1b2436 0%, #2e64fe 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.hms-login-wrap { width: 100%; max-width: 420px; }
.hms-login-card { border-radius: 1rem; }
.hms-login-brand {
  display: inline-block;
  background: #2e64fe; color: #fff;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 1px;
  border-radius: .75rem; padding: .35rem 1rem;
}

/* ---- responsive: off-canvas sidebar under 992px ---- */
@media (max-width: 991.98px) {
  .hms-sidebar { transform: translateX(-100%); }
  .hms-sidebar.show { transform: translateX(0); }
  .hms-main { margin-left: 0; }
  .hms-sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 1035;
  }
  .hms-sidebar-backdrop.show { display: block; }
}
@media (min-width: 992px) {
  .hms-burger { display: none; }
}

/* ---- public marketing site (anonymous landing page) ---- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.hms-public { background: #fff; -webkit-font-smoothing: antialiased; }

.hms-kicker {
  display: inline-block; text-transform: uppercase; font-size: .78rem;
  font-weight: 700; letter-spacing: .09em; color: var(--hms-sidebar-active);
}
.hms-kicker-light { color: #9db4ff; }

/* ---- nav ---- */
.hms-public-nav {
  background: var(--hms-sidebar-bg);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-top: .6rem; padding-bottom: .6rem;
  transition: box-shadow .25s ease, padding .25s ease;
}
.hms-public-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.hms-public-brand-text { font-weight: 700; font-size: 1.02rem; color: #fff; }
.hms-public-nav .nav-link {
  font-weight: 500; color: rgba(255,255,255,.85);
  padding: .5rem .9rem; transition: color .25s ease;
}
.hms-public-nav .nav-link:hover { color: #fff; }
.hms-public-nav .btn-primary { border: 0; }

.hms-public-nav.hms-nav-scrolled {
  box-shadow: 0 4px 18px rgba(15,23,42,.28);
  padding-top: .35rem; padding-bottom: .35rem;
}

@media (max-width: 991.98px) {
  .hms-public-nav .navbar-collapse {
    background: #161e30; margin-top: .75rem; padding: .75rem 1rem; border-radius: .75rem;
  }
  .hms-public-nav .navbar-collapse .nav-link { color: rgba(255,255,255,.9); }
  .hms-public-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
  .hms-public-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* ---- hero ---- */
.hms-hero {
  position: relative;
  padding: 8.5rem 0 5rem;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(46,100,254,.35), transparent 60%),
    linear-gradient(135deg, #0f1830 0%, #1b2436 55%, #223059 100%);
  color: #fff;
  overflow: hidden;
}
.hms-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hms-hero .container { position: relative; }
.hms-hero-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.hms-hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.78); max-width: 42rem; }
.hms-hero-stars { color: #f5a623; font-size: 1rem; }

.hms-hero-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1rem; padding: 1.75rem;
  backdrop-filter: blur(6px);
}
.hms-hero-panel-title {
  text-transform: uppercase; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 1rem;
}
.hms-fact-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hms-fact-list li {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.92); font-size: .95rem;
}
.hms-fact-list li:last-child { border-bottom: 0; }
.hms-fact-list .bi { color: #9db4ff; }

.hms-fact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hms-fact-grid > div { display: flex; flex-direction: column; gap: .2rem; }
.hms-fact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.55); }
.hms-fact-value { font-weight: 700; font-size: 1rem; }

.hms-hero-divider {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

/* ---- showcase (property/room/pool banners — real photos, CC BY-SA 4.0, credited in Landing.cshtml) ---- */
.hms-showcase-card {
  position: relative; border-radius: 1.15rem; overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: 0 18px 40px rgba(15,23,42,.16);
  isolation: isolate;
}
.hms-showcase-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.hms-showcase-card:hover .hms-showcase-media { transform: scale(1.06); }

.hms-showcase-building .hms-showcase-media {
  background-image:
    linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(15,23,42,.8) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/2016_-_Four_Seasons_Hotel_Hong_Kong_%28_Ank_Kumar_%29_01.jpg/960px-2016_-_Four_Seasons_Hotel_Hong_Kong_%28_Ank_Kumar_%29_01.jpg');
}
.hms-showcase-vip .hms-showcase-media {
  background-image:
    linear-gradient(180deg, rgba(20,15,8,.05) 0%, rgba(20,15,8,.8) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/The_Palazzo_Las_Vegas_-_hotel_suite_king_bed.jpg/960px-The_Palazzo_Las_Vegas_-_hotel_suite_king_bed.jpg');
}
.hms-showcase-pool .hms-showcase-media {
  background-image:
    linear-gradient(180deg, rgba(4,26,38,.05) 0%, rgba(4,26,38,.8) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Swimming_pool_and_terrasse_of_Amantaka_luxury_Resort_%26_Hotel_in_Luang_Prabang_Laos.jpg/960px-Swimming_pool_and_terrasse_of_Amantaka_luxury_Resort_%26_Hotel_in_Luang_Prabang_Laos.jpg');
}

.hms-showcase-icon {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  color: #fff; font-size: 1.2rem; border: 1px solid rgba(255,255,255,.35);
}
.hms-showcase-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: #fff; }
.hms-showcase-kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; font-weight: 700; color: #f5a623;
}
.hms-showcase-title { font-size: 1.3rem; font-weight: 800; margin: .4rem 0 .4rem; }
.hms-showcase-text { font-size: .88rem; color: rgba(255,255,255,.82); margin: 0; }

/* ---- sections ---- */
.hms-section { padding: 5rem 0; }
.hms-section-alt { background: #f4f6fb; }
.hms-section-title { font-weight: 800; letter-spacing: -.01em; }
.hms-section-lead { color: #6b7280; }

.hms-service-card, .hms-mission-card, .hms-contact-card {
  background: #fff; border: 1px solid #e6e9f0; border-radius: 1rem;
  padding: 1.85rem 1.5rem; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hms-service-card:hover, .hms-mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15,23,42,.08);
  border-color: #d7deee;
}
.hms-service-icon {
  width: 52px; height: 52px; border-radius: .7rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem; background: rgba(46,100,254,.1); color: var(--hms-sidebar-active);
}
.hms-card-title { font-weight: 700; margin: 1rem 0 .5rem; }
.hms-card-text { color: #6b7280; font-size: .93rem; }

.hms-mission-card { display: flex; flex-direction: column; align-items: flex-start; }

/* ---- footer ---- */
.hms-public-footer {
  background: #1b2436; color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.75rem;
}
.hms-public-footer .hms-public-brand-text { color: #fff; }
.hms-footer-heading {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 1rem;
}
.hms-footer-links li { margin-bottom: .55rem; }
.hms-footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .93rem; }
.hms-footer-links a:hover { color: #fff; }
.hms-footer-rule { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.5rem; }

/* ---- print: invoices / folios / registration cards ---- */
@media print {
  .hms-sidebar, .hms-topbar, .hms-sidebar-backdrop { display: none !important; }
  .hms-main { margin-left: 0; }
  .hms-content { padding: 0; }
  body { background: #fff; }
}
