:root {
  --ink: #14211d;
  --muted: #66716d;
  --paper: #f7f6ef;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --line: #d9e2dc;
  --green: #145a46;
  --green-2: #0d3f34;
  --gold: #bc8f34;
  --blue: #365c8d;
  --danger: #a43f35;
  --shadow: 0 18px 48px rgba(20, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(247, 246, 239, 0.94);
  border-bottom: 1px solid rgba(217, 226, 220, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand span {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
}

.top-nav a:hover,
.nav-action {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-action {
  border: 1px solid var(--line);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-button {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-2);
  box-shadow: var(--shadow);
}

.hero-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 35, 30, 0.86), rgba(13, 35, 30, 0.5), rgba(13, 35, 30, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(620px, 100%);
  min-height: 520px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 7vw, 4.9rem);
  line-height: 0.95;
}

.hero-copy p:not(.eyebrow) {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}

.button svg,
.icon-button svg,
.top-nav svg {
  width: 18px;
  height: 18px;
}

.primary {
  color: #fff;
  background: var(--green);
}

.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.ghost {
  color: var(--green-2);
  background: var(--surface);
  border-color: var(--line);
}

.summary-panel {
  display: grid;
  gap: 12px;
}

.summary-card,
.booking-panel,
.admin-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(20, 33, 29, 0.06);
}

.summary-card {
  display: grid;
  align-content: center;
  min-height: 160px;
  padding: 22px;
}

.label,
.summary-card small {
  color: var(--muted);
  font-weight: 750;
}

.summary-card strong {
  margin: 8px 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.section {
  padding-top: 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.compact {
  margin-bottom: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.room-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.room-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}

.room-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.room-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.room-title h3,
.room-title p,
.info-card h3,
.info-card p,
.admin-card h3 {
  margin: 0;
}

.room-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  align-self: start;
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.reserved {
  color: var(--blue);
  background: #e9eef6;
}

.status-pill.occupied {
  color: var(--danger);
  background: #f7e9e7;
}

.room-price {
  font-size: 1.25rem;
  font-weight: 900;
}

.facility-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-weight: 650;
}

.facility-list li {
  display: flex;
  gap: 8px;
}

.facility-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.room-select-button {
  width: 100%;
  color: var(--green-2);
  background: var(--surface-2);
  border-color: var(--line);
}

.room-select-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.booking-panel {
  padding: clamp(18px, 3vw, 26px);
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.booking-form textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}

.cost-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #d3ddcf;
  border-radius: 8px;
  background: #f4f7f1;
}

.cost-box span,
.cost-box small {
  color: var(--muted);
  font-weight: 750;
}

.cost-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
}

.info-stack {
  display: grid;
  gap: 14px;
}

.info-card {
  overflow: hidden;
}

.info-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.info-card div {
  padding: 16px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.55;
}

.info-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.admin-card {
  padding: 18px;
}

.admin-card h3 {
  margin-bottom: 14px;
}

.admin-room-list,
.booking-list {
  display: grid;
  gap: 10px;
}

.admin-room-row,
.booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.admin-room-row strong,
.booking-row strong {
  display: block;
}

.admin-room-row small,
.booking-row small {
  color: var(--muted);
}

.admin-room-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

.booking-row {
  grid-template-columns: 1fr auto;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfa;
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-2);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-grid;
  }

  .top-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    justify-content: center;
  }

  .dashboard,
  .split-section,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 14px;
  }

  .app-header {
    padding-inline: 12px;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .hero-panel,
  .hero-copy {
    min-height: 500px;
  }

  .hero-shade {
    background: rgba(13, 35, 30, 0.68);
  }

  .hero-copy {
    padding: 24px;
  }

  .summary-panel,
  .room-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 118px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .form-row,
  .admin-room-row {
    grid-template-columns: 1fr;
  }

  .cost-box {
    align-items: start;
    flex-direction: column;
  }
}
