:root {
  color-scheme: light;
  --ink: #16211c;
  --muted: #627069;
  --line: #d9e1dd;
  --panel: #ffffff;
  --soft: #eef4f1;
  --mint: #b9dbc9;
  --green: #285d45;
  --gold: #b8863b;
  --coral: #d86f57;
  --blue: #3f6f8f;
  --shadow: 0 18px 45px rgba(24, 43, 35, 0.12);
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(217, 225, 221, 0.9);
  background: rgba(247, 250, 248, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 12px;
}

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

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

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: end;
  min-height: 520px;
  padding: 64px 0 34px;
}

.search-copy {
  min-height: 430px;
  padding: clamp(28px, 5vw, 52px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 40, 31, 0.84), rgba(18, 40, 31, 0.2)),
    url("https://images.unsplash.com/photo-1564501049412-61c2a3083791?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-copy h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.search-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-copy .eyebrow {
  color: #f6c26c;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdfc;
  padding: 0 12px;
}

input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(40, 93, 69, 0.14);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

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

.secondary-button {
  color: var(--green);
  background: var(--mint);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.status-row > div,
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-label,
.stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row strong,
.stat strong {
  font-size: 24px;
}

.workspace,
.dashboard {
  margin-top: 42px;
}

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

h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.hotel-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.hotel-body {
  padding: 18px;
}

.hotel-title-row,
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.hotel-title-row h3 {
  margin: 0;
  font-size: 22px;
}

.rating {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.address {
  margin: 8px 0 14px;
  color: var(--muted);
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.amenities span {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--green);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.price {
  font-size: 27px;
  font-weight: 950;
}

.price small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(10, 21, 16, 0.38);
}

.drawer.is-open {
  display: flex;
}

.drawer-panel {
  position: relative;
  width: min(460px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 28px;
  background: #fff;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
}

.drawer h3 {
  margin: 44px 0 8px;
  font-size: 30px;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.notice {
  padding: 12px;
  border-left: 4px solid var(--coral);
  color: var(--muted);
  background: #fff5f2;
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }

  .search-shell,
  .status-row,
  .hotel-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-shell {
    min-height: auto;
    padding-top: 28px;
  }

  .search-copy {
    min-height: 360px;
  }
}
