:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --ink: #23302c;
  --muted: #66736f;
  --line: rgba(35, 48, 44, 0.14);
  --water: #2d7c8a;
  --leaf: #5f7f3a;
  --clay: #b86f45;
  --sun: #f2c166;
  --white: #fffaf2;
  --shadow: 0 18px 50px rgba(41, 35, 26, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 28px;
}

.hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #475342;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 25, 22, 0.1) 0%, rgba(16, 25, 22, 0.24) 36%, rgba(20, 24, 18, 0.78) 100%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 30px;
  color: #fffaf2;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 750;
  color: rgba(255, 250, 242, 0.78);
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(255, 250, 242, 0.9);
}

.filters,
.scenario-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar,
.scenario-grid::-webkit-scrollbar {
  display: none;
}

.chip,
.filter-button,
.scenario-button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  font-weight: 720;
  font-size: 0.85rem;
}

.hero .chip {
  background: rgba(255, 250, 242, 0.18);
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.28);
  backdrop-filter: blur(10px);
}

main {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin: -22px 0 14px;
  position: relative;
  z-index: 2;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(32, 26, 20, 0.08);
  font-size: 1.4rem;
  line-height: 1;
}

.date-pill {
  min-height: 56px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 250, 242, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.95);
  box-shadow: var(--shadow);
  padding: 8px 18px;
  text-align: center;
}

.date-pill span {
  font-weight: 850;
}

.date-pill small {
  color: var(--muted);
  font-weight: 650;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.75);
  position: sticky;
  top: 8px;
  z-index: 4;
  backdrop-filter: blur(16px);
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tab.active {
  background: var(--ink);
  color: var(--white);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.band {
  padding: 26px 0 8px;
}

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

.section-heading p {
  margin: 0;
  color: var(--clay);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
}

.activity-stack,
.days-list,
.priority-list {
  display: grid;
  gap: 10px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.activity-card,
.day-row,
.priority-row,
.recommendation,
.check-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 10px 28px rgba(45, 35, 24, 0.06);
}

.activity-card,
.day-row,
.priority-row,
.recommendation {
  padding: 15px;
}

.activity-card {
  text-align: left;
  width: 100%;
}

.activity-card h3,
.day-row h3,
.priority-row h3,
.recommendation h3 {
  margin: 0 0 7px;
  font-size: 1.03rem;
  line-height: 1.2;
}

.activity-card p,
.day-row p,
.priority-row p,
.recommendation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.planner-controls,
.quick-add {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
}

.planner-controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.quick-add {
  grid-template-columns: minmax(160px, 1.2fr) minmax(100px, 0.6fr) minmax(92px, 0.4fr) minmax(160px, 1fr) auto;
}

.planner-controls select,
.quick-add input,
.quick-add select {
  min-height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 11px;
}

.planner-controls button,
.quick-add button,
.small-button,
.map-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 820;
  font-size: 0.82rem;
  text-decoration: none;
}

.small-button.secondary,
.map-link {
  background: rgba(45, 124, 138, 0.11);
  color: #215e68;
}

.small-button.danger {
  background: rgba(181, 69, 50, 0.1);
  color: #933827;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(45, 124, 138, 0.11);
  color: #215e68;
  font-size: 0.74rem;
  font-weight: 800;
}

.tag.warm {
  background: rgba(184, 111, 69, 0.12);
  color: #884d2c;
}

.tag.leaf {
  background: rgba(95, 127, 58, 0.13);
  color: #48612c;
}

.filter-button.active,
.scenario-button.active {
  background: var(--water);
  color: #fffaf2;
  border-color: transparent;
}

.filters {
  margin-bottom: 12px;
}

.suggestion-title {
  margin: 18px 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.checklist {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.check-row input {
  width: 21px;
  height: 21px;
  accent-color: var(--water);
}

.check-row label {
  display: grid;
  gap: 3px;
  font-weight: 800;
}

.check-row small {
  color: var(--muted);
  font-weight: 550;
  line-height: 1.35;
}

.priority-must {
  border-left: 5px solid #b54532;
}

.priority-should {
  border-left: 5px solid var(--water);
}

.priority-could {
  border-left: 5px solid var(--sun);
}

.priority-wont {
  border-left: 5px solid #525a56;
}

dialog {
  width: min(620px, calc(100% - 22px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

dialog::backdrop {
  background: rgba(18, 23, 20, 0.55);
}

.modal {
  position: relative;
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal .eyebrow {
  color: var(--clay);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal h2 {
  max-width: calc(100% - 52px);
  margin-bottom: 10px;
}

.modal p {
  color: var(--muted);
  line-height: 1.5;
}

dl {
  display: grid;
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  gap: 10px 12px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  line-height: 1.45;
}

@media (min-width: 800px) {
  .hero {
    min-height: 440px;
  }

  main {
    margin-top: 0;
  }

  .toolbar {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .tabs {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  main {
    width: min(100% - 16px, 1120px);
  }

  .hero-content {
    width: min(100% - 24px, 1120px);
  }

  .tabs {
    border-radius: 18px;
  }

  .tab {
    font-size: 0.72rem;
    padding-inline: 5px;
  }

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

  .planner-controls,
  .quick-add {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 431px) and (max-width: 880px) {
  .quick-add {
    grid-template-columns: 1fr 1fr;
  }
}
