:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8faf9;
  color: #071d1a;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f8faf9;
  overflow-x: hidden;
}

button,
a,
input {
  font: inherit;
}

button {
  border: 0;
}

img,
svg,
video {
  max-width: 100%;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(290px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 0 22px;
  border-bottom: 1px solid #dfe6e2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.topbar,
.page-grid,
.main-content,
.lower-grid,
.health-grid,
.status-footer,
.panel,
.health-card,
.checklist-panel,
.weather-card {
  min-width: 0;
}

.brand {
  padding-right: 18px;
  border-right: 1px solid #dfe6e2;
  color: #063f36;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 76px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  background: transparent;
  color: #0f1f2e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.nav-link .icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #081c1a;
  font-size: 20px;
}

.nav-link.active .icon {
  border-radius: 999px;
  background: #005846;
  color: #ffffff;
  font-size: 14px;
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #005846;
  content: "";
}

.status-pills,
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.pill.pending {
  background: #fff0da;
  color: #a05200;
}

.pill.dry {
  background: #e7f5ff;
  color: #074c7e;
}

.pill.approved {
  background: #e9f8f0;
  color: #047a43;
}

.top-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: #072420;
  cursor: pointer;
  font-size: 20px;
}

.top-actions button:last-child {
  background: #062b25;
  color: #ffffff;
  font-size: 16px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: 14px;
  padding: 18px 22px 0;
}

.main-content {
  display: grid;
  gap: 14px;
}

.hero-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #dfe6e2;
}

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

.hero-card img.image-unavailable {
  display: none;
}

.hero-card:has(img.image-unavailable) {
  background: linear-gradient(135deg, #f6ead1, #dce9e4);
}

.hero-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 238, 212, 0.76), rgba(255, 238, 212, 0.38) 42%, rgba(255, 255, 255, 0.02) 80%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 650px;
  padding: 36px 30px;
}

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

h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.eyebrow {
  color: #005846;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 450px;
  color: #101c1f;
  font-size: 20px;
  line-height: 1.45;
}

.filter-panel,
.api-panel {
  display: grid;
  gap: 16px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 160px minmax(220px, 1.6fr);
  gap: 12px;
}

.filters label {
  display: grid;
  gap: 7px;
  color: #071d1a;
  font-size: 13px;
  font-weight: 800;
}

.filters select,
.filters input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cfdad5;
  border-radius: 7px;
  padding: 0 12px;
  color: #102a3c;
  font: inherit;
}

.field-help {
  color: #5d6f7f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.location-request {
  align-items: center;
  background: #fff8ec;
  border: 1px solid #efd4a9;
  border-radius: 8px;
  color: #5a3b00;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
}

.location-request span {
  font-size: 12px;
  line-height: 1.35;
}

.location-request button {
  background: #006650;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.location-request button:hover {
  background: #004d3d;
}

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

.tip-grid[aria-busy="true"] {
  opacity: 0.62;
}

.tip-card,
.api-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.tip-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tip-card header span,
.api-card span {
  border-radius: 999px;
  background: #e9f8f0;
  padding: 5px 9px;
  color: #047a43;
  font-size: 12px;
  font-weight: 850;
}

.tip-card header strong {
  color: #a05200;
  font-size: 12px;
}

.tip-card h3,
.api-card h3 {
  font-size: 16px;
}

.tip-card p,
.api-card p,
.empty-state {
  color: #35495d;
  line-height: 1.45;
}

.tip-card footer {
  color: #003f33;
  font-size: 13px;
  font-weight: 850;
}

.tip-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.tip-pagination button {
  background: #ffffff;
  border: 1px solid #cfdad5;
  border-radius: 8px;
  color: #102a3c;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 42px;
  padding: 0 18px;
}

.tip-pagination button:not(:disabled):hover {
  background: #f3f8f5;
  border-color: #b9d1c8;
}

.tip-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tip-pagination span {
  color: #42566a;
  font-size: 13px;
  font-weight: 850;
}

.search-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 56px;
  align-items: center;
  width: min(480px, 100%);
  min-height: 58px;
  overflow: hidden;
  border: 1px solid #d5dfda;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(7, 29, 26, 0.12);
}

.search-box > span {
  color: #2b4355;
  font-size: 30px;
  text-align: center;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #334b60;
  font-size: 18px;
}

.search-box button {
  display: grid;
  width: 56px;
  height: 58px;
  place-items: center;
  background: #005846;
  color: #ffffff;
  cursor: pointer;
  font-size: 30px;
}

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

.health-card,
.panel,
.checklist-panel,
.status-footer {
  overflow: hidden;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 42, 36, 0.05);
}

.health-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
  padding: 14px 16px;
}

.health-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 24%, #0c7a65, #004a3c);
  color: #ffffff;
  font-size: 25px;
  box-shadow: 0 10px 18px rgba(0, 88, 70, 0.22);
}

.health-card h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.1;
}

.health-card h2 span {
  border-radius: 8px;
  background: #e5f8ef;
  padding: 5px 10px;
  color: #008344;
  font-size: 13px;
  font-weight: 760;
}

.health-card p,
.health-card small,
.trip-row p,
.weather-card p,
.checklist small,
.status-footer {
  color: #35495d;
}

.health-card p {
  font-size: 14px;
}

.health-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 14px;
}

.panel {
  padding: 16px;
}

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

.panel-header > div {
  display: grid;
  gap: 6px;
}

.panel-header h2,
.weather-card h2,
.checklist-panel h2 {
  font-size: 20px;
}

.panel-header p {
  color: #35495d;
}

.panel-header a,
.forecast-link {
  color: #003f33;
  font-weight: 760;
}

.timeline-list {
  display: grid;
  gap: 0;
}

.trip-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 20px minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid #e4ebe7;
}

.trip-row.compact {
  grid-template-columns: 82px 20px minmax(0, 1fr);
}

.trip-row:last-child {
  border-bottom: 0;
}

.trip-row time {
  display: grid;
  gap: 4px;
  color: #34495e;
  line-height: 1.2;
}

.trip-row time strong {
  font-weight: 650;
}

.trip-row time span {
  font-size: 13px;
}

.timeline-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #005846;
}

.timeline-dot::after {
  position: absolute;
  top: 10px;
  left: 4px;
  width: 1px;
  height: 72px;
  background: #cbd8d2;
  content: "";
}

.trip-row:last-child .timeline-dot::after {
  display: none;
}

.trip-copy h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.trip-copy {
  min-width: 0;
}

.trip-copy h3,
.trip-copy p {
  overflow-wrap: anywhere;
}

.trip-row img {
  width: 132px;
  height: 54px;
  min-width: 0;
  border-radius: 6px;
  object-fit: cover;
}

.weather-card {
  display: grid;
  gap: 14px;
}

.weather-main {
  display: grid;
  grid-template-columns: 70px auto 1fr;
  gap: 14px;
  align-items: center;
}

.sun {
  color: #ffbc26;
  font-size: 58px;
  line-height: 1;
}

.weather-main strong {
  font-size: 42px;
  font-weight: 650;
}

.weather-main div {
  display: grid;
  gap: 4px;
}

.weather-main small {
  color: #35495d;
}

.weather-stats,
.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  overflow: hidden;
}

.weather-stats div,
.forecast div {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 14px 8px;
  border-right: 1px solid #dfe6e2;
}

.weather-stats div:last-child,
.forecast div:last-child {
  border-right: 0;
}

.weather-stats span,
.forecast span,
.forecast small {
  color: #35495d;
}

.forecast {
  grid-template-columns: repeat(4, 1fr);
}

.forecast strong {
  color: #ffbc26;
  font-size: 28px;
}

.booking-panel {
  display: grid;
  gap: 4px;
}

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

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

.compact-fields {
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
}

.booking-form label {
  display: grid;
  gap: 7px;
  color: #071d1a;
  font-size: 14px;
  font-weight: 760;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfdad5;
  border-radius: 7px;
  background: #ffffff;
  color: #102a3c;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: 0;
}

.booking-form input,
.booking-form select {
  min-height: 44px;
  padding: 0 12px;
}

.booking-form textarea {
  resize: vertical;
  min-height: 104px;
  padding: 12px;
  line-height: 1.45;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #005846;
  box-shadow: 0 0 0 3px rgba(0, 88, 70, 0.12);
}

.consent-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: #35495d;
  font-weight: 650;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: #005846;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.booking-actions .primary-action {
  min-width: 220px;
  padding: 0 18px;
}

.form-status {
  min-height: 22px;
  color: #35495d;
  font-size: 14px;
  font-weight: 700;
}

.form-status.success {
  color: #047a43;
}

.form-status.error {
  color: #9c2d20;
}

.checklist-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  overflow: hidden;
}

.checklist-panel header {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid #dfe6e2;
}

.checklist-panel header p {
  color: #35495d;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeeb;
}

.progress span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: #005846;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px 14px;
  border-bottom: 1px solid #dfe6e2;
}

.checklist li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  background: #eaf5f1;
  color: #005846;
  font-size: 14px;
}

.checklist li.todo > span {
  background: #fff2de;
  color: #b56900;
}

.checklist strong,
.checklist small {
  display: block;
}

.checklist strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.checklist small {
  font-size: 12px;
}

.checklist button {
  width: 20px;
  height: 20px;
  border: 1px solid #b9c5c0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
}

.checklist .done button {
  border-color: #20a665;
  background: #20a665;
}

.checklist .todo button {
  border-color: #f1a20d;
}

.checklist-actions {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 760;
}

.primary-action {
  background: #005846;
  color: #ffffff;
}

.secondary-action {
  border: 1px solid #d4ded9;
  background: #ffffff;
  color: #071d1a;
}

.alert {
  margin: 0 16px 16px;
  border-radius: 8px;
  background: #fff0e8;
  padding: 12px;
  color: #9c2d20;
  font-weight: 760;
}

.hidden {
  display: none;
}

.status-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  margin: 18px 22px 0;
  padding: 0 16px;
  font-size: 14px;
}

.status-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-footer i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #20a665;
}

@media (max-width: 1180px) {
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .weather-main {
    grid-template-columns: 64px minmax(120px, auto) minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 14px 22px;
  }

  .brand {
    border-right: 0;
    padding-right: 0;
  }

  .main-nav {
    width: 100%;
    height: auto;
    gap: 12px;
    overflow-x: auto;
  }

  .nav-link {
    min-height: 44px;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .checklist-panel {
    position: static;
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .status-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters,
  .tip-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto minmax(250px, 1fr) auto;
    gap: 10px;
    min-height: 76px;
    padding: 0 22px;
  }

  .brand {
    width: auto;
    min-width: 120px;
    padding-right: 14px;
    font-size: 20px;
    white-space: nowrap;
  }

  .main-nav {
    gap: 12px;
  }

  .nav-link {
    min-width: 58px;
    gap: 6px;
    font-size: 13px;
  }

  .nav-link .icon {
    width: 18px;
    height: 18px;
    font-size: 15px;
  }

  .status-pills {
    gap: 6px;
  }

  .pill {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .top-actions {
    display: none;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
  }

  .health-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .health-card footer {
    flex-wrap: wrap;
  }
}

html[data-mode="mobile"] .topbar,
body.mobile-mode .topbar {
  position: static;
}

html[data-mode="mobile"] .page-grid,
body.mobile-mode .page-grid {
  grid-template-columns: 1fr;
}

html[data-mode="mobile"] .main-content,
body.mobile-mode .main-content {
  order: 1;
}

html[data-mode="mobile"] .checklist-panel,
body.mobile-mode .checklist-panel {
  position: static;
  order: 2;
}

html[data-mode="mobile"] .health-grid,
html[data-mode="mobile"] .lower-grid,
html[data-mode="mobile"] .status-footer,
body.mobile-mode .health-grid,
body.mobile-mode .lower-grid,
body.mobile-mode .status-footer {
  grid-template-columns: 1fr;
}

html[data-mode="desktop"] .checklist-panel,
body.desktop-mode .checklist-panel {
  position: sticky;
}

@media (max-width: 900px) {
  html[data-mode="desktop"] .checklist-panel,
  body.desktop-mode .checklist-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .page-grid,
  .status-footer {
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .lower-grid,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 410px;
  }

  .hero-copy {
    padding: 28px 20px;
  }

  .trip-row {
    grid-template-columns: 54px 18px minmax(0, 1fr);
    padding: 10px 0;
  }

  .trip-row img {
    grid-column: 3;
    width: 100%;
    max-width: 220px;
    height: 70px;
  }

  .status-footer {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .field-pair,
  .compact-fields {
    grid-template-columns: 1fr;
  }

  .filters,
  .tip-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-actions .primary-action {
    width: 100%;
    min-width: 0;
  }
}

html[data-mode="mobile"] .trip-row,
body.mobile-mode .trip-row {
  grid-template-columns: 54px 18px minmax(0, 1fr);
  padding: 10px 0;
}

html[data-mode="mobile"] .trip-row img,
body.mobile-mode .trip-row img {
  grid-column: 3;
  width: 100%;
  max-width: 220px;
  height: 70px;
}

@media (max-width: 520px) {
  .topbar {
    padding: 12px 14px;
  }

  .brand {
    font-size: 24px;
  }

  .status-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .pill {
    justify-content: center;
  }

  h1 {
    font-size: 40px;
  }

  .search-box {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .search-box button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .weather-main {
    grid-template-columns: 1fr;
  }

  .weather-stats,
  .forecast {
    grid-template-columns: 1fr;
  }

  .weather-stats div,
  .forecast div {
    border-right: 0;
    border-bottom: 1px solid #dfe6e2;
  }
}
