/* Fat Tested Travel — brand styles (phone first, scales up to desktop)
   Palette:
   cream #F8F1E3 page background | ink #161315 text | sand #E9D8B5 cards
   taupe #6B5B5D muted | teal #0E6F78 primary buttons | light teal #62B9C3 accents
   coral #C43A2E paid-guide button ONLY
   Rating colors (green/yellow/orange/red) are signals — chips and dots only,
   never buttons. */

:root {
  --cream: #F8F1E3;
  --ink: #161315;
  --sand: #E9D8B5;
  --taupe: #6B5B5D;
  --teal: #0E6F78;
  --teal-light: #62B9C3;
  --coral: #C43A2E;
  --green: #2e9e5b;
  --yellow: #d9a400;
  --orange: #e07b00;
  --red: #d62828;
  --untested: #8a8a94;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

/* Header */

.app-header {
  background: var(--cream);
  border-bottom: 2px solid var(--sand);
  padding: 1rem 1rem 0.9rem;
  text-align: center;
}

.app-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}

.tagline {
  font-size: 0.88rem;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

.status-message {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--taupe);
}

.screen-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin: 0.5rem 0 0.9rem;
}

/* Buttons — big, rounded, obviously tappable (unlike rating chips) */

.btn {
  display: block;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

.btn:active {
  opacity: 0.85;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-accent {
  background: var(--teal-light);
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.btn-header {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-big {
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
}

.cta-sub {
  font-size: 0.8rem;
  color: var(--taupe);
  text-align: center;
  margin-top: 0.35rem;
}

.cta-sub a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.header-sub {
  margin-top: 0.3rem;
}

/* Search boxes */

.search-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.95rem;
  border: 2px solid var(--sand);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.search-input::placeholder {
  color: var(--taupe);
}

.search-input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* Tappable pick lists (parks on screen 1, rides on screen 2) */

.pick-list {
  list-style: none;
}

.pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--sand);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-height: 48px; /* comfortable tap target */
}

.pick-item:active {
  filter: brightness(0.96);
}

.pick-main {
  display: flex;
  flex-direction: column;
}

.pick-name {
  font-weight: 700;
}

.pick-sub {
  font-size: 0.82rem;
  color: var(--taupe);
}

.pick-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--taupe);
  white-space: nowrap;
}

.chevron {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--taupe);
}

.empty-message {
  text-align: center;
  color: var(--taupe);
  padding: 1.5rem 0;
}

.coming-soon {
  text-align: center;
  font-size: 0.85rem;
  color: var(--taupe);
  padding: 0.8rem 0 0;
}

/* Back link */

.back-link {
  display: inline-block;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
  padding: 0.3rem 0.3rem 0.3rem 0;
  margin-bottom: 0.3rem;
}

/* Park info */

.park-info {
  text-align: center;
  padding: 0.25rem 0 0.75rem;
}

.park-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.park-location {
  color: var(--taupe);
  font-size: 0.9rem;
}

.park-profile {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--teal-light);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

/* Color legend */

.legend {
  background: var(--sand);
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.75rem;
}

.legend summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
}

.legend ul {
  list-style: none;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.legend li {
  padding: 0.2rem 0;
}

/* Guide buttons box (park screen) */

.guide-box {
  background: var(--sand);
  border-radius: 14px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.guide-box .cta-sub {
  margin-bottom: 0.75rem;
}

.promo-badge {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 2px dashed var(--coral);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  margin-top: 0.5rem;
  cursor: pointer;
  text-align: center;
}

.promo-code {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--coral);
}

/* Color dots and chips — small pill signals, deliberately unlike buttons */

.dot {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  margin-right: 0.4em;
}

.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.dot-orange { background: var(--orange); }
.dot-red { background: var(--red); }
.dot-untested { background: var(--untested); }

.chip {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.chip-green { background: var(--green); }
.chip-yellow { background: var(--yellow); }
.chip-orange { background: var(--orange); }
.chip-red { background: var(--red); }
.chip-untested { background: var(--untested); }

/* Ride groups on screen 2 */

.ride-group h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
  color: var(--teal);
}

/* Ride detail (screen 3) */

.detail-card {
  background: var(--sand);
  border-radius: 16px;
  padding: 1rem;
  border-top: 8px solid var(--untested);
}

.color-green { border-top-color: var(--green); }
.color-yellow { border-top-color: var(--yellow); }
.color-orange { border-top-color: var(--orange); }
.color-red { border-top-color: var(--red); }

.detail-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.detail-section {
  color: var(--taupe);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.ride-description {
  font-size: 0.92rem;
  color: var(--taupe);
  margin-bottom: 0.8rem;
}

.detail-facts {
  margin-bottom: 0.8rem;
}

.detail-facts div {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(107, 91, 93, 0.25);
  font-size: 0.92rem;
}

.detail-facts dt {
  font-weight: 700;
}

.test-note {
  background: var(--cream);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.test-note-label {
  font-weight: 800;
  font-size: 0.8rem;
}

.tested-at {
  font-weight: 400;
  color: var(--taupe);
}

/* "Good news" section on red rides */

.good-news {
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.9rem;
  background: var(--cream);
}

.good-news h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.good-news > p {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.good-news-list .pick-item {
  background: #fffdf8;
  border: 1px solid var(--sand);
}

.good-news-outro {
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  margin-top: 0.2rem;
}

/* Booking call to action */

.booking-cta {
  margin-top: 0.4rem;
}

.booking-cta-big {
  background: var(--cream);
  border: 2px solid var(--teal-light);
  border-radius: 14px;
  padding: 0.9rem;
}

.booking-pitch {
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.6rem;
}

/* Footer */

.app-footer {
  padding: 1.6rem 0.5rem 2rem;
}

.footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--taupe);
  margin-top: 1rem;
}

/* A little more breathing room on bigger screens */

@media (min-width: 700px) {
  .app-header h1 {
    font-size: 1.7rem;
  }

  #app {
    padding: 1.5rem 1rem;
  }

  .pick-item:hover {
    filter: brightness(0.97);
  }

  .btn:hover {
    opacity: 0.92;
  }

  .booking-cta .btn,
  .guide-box .btn {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .promo-badge {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}
