:root {
  --bg: #f6f3ed;
  --ink: #23201c;
  --muted: #70685d;
  --line: #d8d0c3;
  --panel: #fffaf2;
  --brand: #236653;
  --brand-dark: #174838;
  --accent: #b86b36;
  --danger: #9b2f22;
  --shadow: 0 18px 45px rgba(35, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

.page {
  min-height: 100vh;
}

.hero {
  min-height: 34vh;
  display: flex;
  align-items: end;
  padding: 56px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(21, 46, 38, 0.86), rgba(21, 46, 38, 0.45)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Rose%20Hill%20Farm%20Alpaca%2001.jpg?width=1800") center 42% / cover;
  color: white;
}

.hero-compact {
  min-height: 26vh;
}

.hero > div {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f2cf9c;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.booking-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 56px;
  align-items: start;
}

.admin-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 1.1fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-header p,
.selected-slot {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  color: var(--brand);
  font-size: 1.25rem;
}

.slots {
  display: grid;
  gap: 10px;
}

.slot {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

button.slot {
  cursor: pointer;
}

button.slot:hover,
.slot.is-selected {
  border-color: var(--brand);
  outline: 2px solid rgba(35, 102, 83, 0.18);
}

.slot-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.slot-availability {
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7f1ec;
  color: var(--brand-dark);
  font-weight: 800;
  text-align: center;
}

.slot.is-full {
  border-color: #d49b25;
  background: #fff7d8;
}

.slot.is-full .slot-availability {
  background: #f3c650;
  color: #4a3400;
}

.slot.is-overbooked {
  border-color: var(--danger);
  background: #fff0ed;
}

.slot.is-overbooked .slot-availability {
  background: #d94d3f;
  color: white;
}

.slot.is-editing {
  border-color: var(--brand);
  outline: 3px solid rgba(35, 102, 83, 0.22);
}

.form-panel {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(35, 102, 83, 0.18);
  border-color: var(--brand);
}

.check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 500;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--brand-dark);
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-message {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.form-message.is-error {
  color: var(--danger);
}

@media (max-width: 820px) {
  .booking-layout,
  .admin-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .booking-layout,
  .admin-layout {
    width: min(100% - 24px, 620px);
    margin-top: -22px;
  }

  .hero {
    min-height: 31vh;
    padding: 42px 18px;
  }

  .slot {
    grid-template-columns: 1fr;
  }

  .slot-availability {
    width: fit-content;
  }
}
