/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "custom-image.css";

/* ====== Sign in page (minimal) ====== */
.link-text {
  font-size: 15px !important;
}

.wip-note {
  margin-top: 12px;
  margin-bottom: 20px;
}

.wip-note p {
  margin: 4px 0;
  font-style: italic !important;
  font-size: 14px;
  line-height: 1.4;
  color: #6b7280d0;
}

.sign-in-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Fill main column so the gray promo can grow to the bottom above the site footer */
  min-height: calc(100dvh - 10rem);
  padding: 1.5rem 1.25rem 0;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  background: #fff;
  text-align: center;
  overflow-x: clip;
}

.sign-in-brand {
  margin: 0 auto;
  width: 100%;
  max-width: min(100%, 28rem);
  text-align: center;
  font-size: clamp(2.75rem, 10vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #0a0a0a;
  line-height: 1.05;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sign-in-brand-word {
  letter-spacing: -0.045em;
}

/* Smaller “.AI” on same baseline as “Nalu” */
.sign-in-brand-suffix {
  font-size: 0.38em;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #2b2d2f;
  margin-left: 0.06em;
  vertical-align: baseline;
  white-space: nowrap;
}

.sign-in-card {
  width: 100%;
  max-width: 360px;
  margin: 1rem auto 0;
  padding: 1.35rem 1.35rem calc(1.25rem * 0.85);
  box-sizing: border-box;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.sign-in-title {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #374151;
  text-align: center;
}

.sign-in-lead {
  margin: 0.5rem auto 1.35rem;
  max-width: 22rem;
  width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

/* Full-viewport gray: icons + Sign up + sign-in card + tutorial; grows to bottom of viewport */
.sign-in-landing__promo {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 1.1rem;
  padding-bottom: max(2.75rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.sign-in-landing__promo .sign-in-landing__highlights {
  margin-top: 0;
}

.sign-in-landing__featured-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 36rem;
  margin-top: min(3.5rem, 15%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.sign-in-landing__featured-marquee {
  overflow: hidden;
  width: 100%;
}

.sign-in-landing__featured-marquee:hover .sign-in-landing__featured-track {
  animation-play-state: paused;
}

.sign-in-landing__featured-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  animation: sign-in-featured-marquee-ltr 55s linear infinite;
}

.sign-in-landing__featured-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

@keyframes sign-in-featured-marquee-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sign-in-landing__featured-wrap {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .sign-in-landing__featured-track {
    animation: none;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .sign-in-landing__featured-set[aria-hidden="true"] {
    display: none;
  }

  .sign-in-landing__featured-set {
    flex-wrap: wrap;
    padding: 0;
  }
}

.sign-in-landing__featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1e40af;
  text-decoration: none;
}

.sign-in-landing__featured-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.sign-in-landing__featured-teaser {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6b7280;
  text-decoration: none;
  cursor: default;
  user-select: none;
}

.sign-in-landing__pin {
  color: #9ca3af;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sign-in-landing__signup {
  margin: 0 auto 1.35rem;
}

.sign-in-landing__signup-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #2563eb;
  text-decoration: underline;
}

.sign-in-landing__signup-link:hover {
  color: #1d4ed8;
}

/* Three equal columns so the middle feature stays centered on the row */
.sign-in-landing__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: stretch;
  column-gap: clamp(0.45rem, 2.5vw, 1.1rem);
  row-gap: 1rem;
  /* Extra space below marquee: ~20% of container width, capped (Sign Up follows this block) */
  margin-top: max(0.75rem, min(4.5rem, 20%));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  max-width: 44rem;
  width: 100%;
  padding: 0 clamp(0.25rem, 2vw, 0.65rem);
  box-sizing: border-box;
}

.sign-in-landing__highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: #4b5563;
  text-align: center;
}

.sign-in-landing__highlight-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: #9ca3af;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .sign-in-landing__highlights {
    grid-template-columns: 1fr;
    max-width: 16.5rem;
    margin-top: max(0.5rem, min(3.5rem, 20%));
    row-gap: 1.2rem;
  }
}

/* Pico styles `main p` with higher specificity than a lone class — scope + !important so spacing applies */
body.pico main .sign-in-page p.sign-in-tutorial {
  /* Was too loose; ~50% less space above tutorial (half prior margin-top) */
  margin-top: calc((1.5rem + 2rem + min(3rem, 10%)) * 0.5) !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center;
}

.sign-in-tutorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #6b7280;
  text-decoration: none;
}

.sign-in-tutorial-link:hover {
  text-decoration: underline;
  color: #4b5563;
}

.sign-in-tutorial-icon {
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.95;
}

.sign-in-form-block {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.sign-in-form .input,
.sign-in-form .field_with_errors,
.sign-in-form .sign-in-remember {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.sign-in-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.15rem !important;
}

.sign-in-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  background: #fff;
  margin-top: 0.15rem !important;
  margin-bottom: 0 !important;
}

.sign-in-input:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.sign-in-remember label {
  font-weight: 400;
  font-size: 0.875rem;
}

.sign-in-actions {
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
}

.sign-in-submit {
  width: 100%;
  border-radius: 9999px;
  background: #0a0a0a !important;
  color: #fff !important;
  border: none !important;
  padding: 0.65rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  margin: 0 !important;
}

.sign-in-form input[type="checkbox"] {
  margin: 0 0.4rem 0 0 !important;
  vertical-align: middle;
}

.sign-in-submit:hover {
  background: #262626 !important;
}

.sign-in-submit:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.sign-in-links {
  margin-top: calc(1.75rem * 0.85);
  text-align: center;
  line-height: 1.9;
}

.sign-in-links a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
}

.sign-in-links a:hover {
  text-decoration: underline;
}

.sign-in-meaning {
  margin: 2.75rem auto 0;
  max-width: 320px;
  width: 100%;
  padding: 0;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: #8ec5f0;
  text-align: left;
  font-style: normal;
}

/* ----- Public showcase / sample trip pages ----- */
.showcase-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0 2.5rem;
  text-align: left;
  color: #1f2937;
  line-height: 1.65;
}

.showcase-page__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.showcase-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.showcase-page__header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.showcase-page__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.showcase-page__body p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.showcase-page__footer {
  margin: 2rem 0 0;
}

.showcase-page__back {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.showcase-page__back:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ----- Legal / policy pages (privacy, terms, etc.) ----- */
.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0 2.5rem;
  text-align: left;
  color: #1f2937;
  line-height: 1.65;
}

.legal-page__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.legal-page__header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.legal-page__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.legal-page__section {
  margin-bottom: 1.75rem;
}

.legal-page__section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.legal-page__section p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
}

.legal-page__section p:last-child {
  margin-bottom: 0;
}

.legal-page__section ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.legal-page__section li {
  margin-bottom: 0.4rem;
}

.legal-page__section li:last-child {
  margin-bottom: 0;
}

/* ======================================= */


  .day-header {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.2rem 0 0.2rem;
  }


  .day-map {
  width: 100%;
  height: 300px;  /* adjust as you like */
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

/* Trip show hero: 3:1 crop; Google hero (Active Storage) or app/assets/images/trip_hero_default.png */
.trip-hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 400;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

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

/* If default PNG is missing or fails to load — gradient (onerror adds this class + removes src) */
.trip-hero-image.trip-hero-image--placeholder {
  object-fit: none;
  background: linear-gradient(145deg, #dbeafe 0%, #e0e7ef 45%, #cbd5e1 100%);
}

.home-tab-hero--plan .trip-hero-image.trip-hero-image--placeholder {
  background: linear-gradient(145deg, #cffafe 0%, #e0f2fe 50%, #bae6fd 100%);
}

/* Home index: hero above tab panels */
.home-tab-hero {
  margin-bottom: 1rem;
}

/* Trip show: title is an inline-editable field (looks like a heading, not a Pico input) */
.trip-name-inline-wrap {
  margin: 1.75rem 0 0.5rem;
}

/* Public showcase: same visual weight as editable title, non-interactive */
.trip-name-showcase-static {
  margin: 0;
  padding: 0 0 0.06rem 0;
  max-width: 100%;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.trip-name-inline-form {
  display: block;
}

/* Firstdraft adds vertical padding to all .pico forms — skip it here */
body.pico article .trip-name-inline-form {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}

/* Base: reads as a heading; underline reserved so hover/focus don’t shift layout */
.trip-name-inline-form input.trip-name-field {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 0.06rem 0;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  border-bottom: 2px solid transparent;
  cursor: default;
  caret-color: #1c6fb8;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.trip-name-inline-form input.trip-name-field:hover:not(:focus) {
  cursor: text;
  border-bottom-color: rgba(15, 23, 42, 0.22);
}

.trip-name-inline-form input.trip-name-field:focus,
.trip-name-inline-form input.trip-name-field:active {
  cursor: text;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid #1c6fb8;
  outline: none;
}

.trip-name-inline-form input.trip-name-field::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

/*
 * Pico: `.pico input` beats a lone class and redraws border/background/focus ring.
 * These declarations must stay at least as specific as `.pico input` (0,1,1).
 */
body.pico article .trip-name-inline-form input.trip-name-field {
  height: auto !important;
  min-height: 0;
  padding: 0 0 0.06rem 0;
  background-color: transparent !important;
  background-image: none;
  border: none !important;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.pico article .trip-name-inline-form input.trip-name-field:hover:not(:focus) {
  border-bottom-color: rgba(15, 23, 42, 0.22);
}

body.pico article .trip-name-inline-form input.trip-name-field:focus,
body.pico article .trip-name-inline-form input.trip-name-field:active {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 2px solid #1c6fb8 !important;
  border-radius: 0 !important;
  outline: none !important;
}

/* One row, compact; Pico sets submit buttons to width:100% — override below */
.trip-name-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.trip-name-save-btn,
.trip-name-cancel-btn {
  box-sizing: border-box;
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  padding: 0.28rem 0.5rem;
  border: none;
  border-radius: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.trip-name-save-btn {
  background: #1c6fb8;
  color: #fff;
}

.trip-name-save-btn:hover {
  background: #185a9a;
}

.trip-name-cancel-btn {
  background: #9ca3af;
  color: #fff;
}

.trip-name-cancel-btn:hover {
  background: #6b7280;
}

/* Beat `.pico button[type=submit] { width: 100% }` */
body.pico article .trip-name-actions button.trip-name-save-btn,
body.pico article .trip-name-actions button.trip-name-cancel-btn {
  width: 5.75rem !important;
  min-width: 5.75rem !important;
  max-width: 5.75rem !important;
}

.trip-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.trip-actions__primary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.trip-actions .btn-share {
  margin-left: auto;
}

.btn-delete, .btn-rebuild {
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.8rem;
  transition: 0.2s ease-in-out;
}

/* Delete button */
.btn-delete {
  background-color: #ff4d4f;
  color: white;
}
.btn-delete:hover {
  background-color: #d9363e;
}

/* Rebuild button */
.btn-rebuild {
  background-color: #007bff;
  color: white;
}
.btn-rebuild:hover {
  background-color: #0063cc;
}

/* Outline share → PDF download */
.btn-share {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #0f172a;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.3;
  transition: 0.2s ease-in-out;
}

.btn-share:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Rebuild disabled when regular user hits 6-month generation cap */
span.btn-rebuild--disabled {
  display: inline-block;
  cursor: not-allowed;
  opacity: 0.55;
  background-color: #94a3b8;
  color: #f8fafc;
}
span.btn-rebuild--disabled:hover {
  background-color: #94a3b8;
}

/* Trip generation quota (optional boxed default — most UI uses --plain) */
.trip-generation-quota {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* No background; light blue copy (e.g. “N free trip generations remaining.”) */
.trip-generation-quota.trip-generation-quota--plain {
  background: transparent;
  border: none;
  padding: 0.35rem 0;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #7dd3fc;
}

.trip-generation-quota.trip-generation-quota--plain.trip-generation-quota--plain-warn {
  color: #f87171;
}

/* Devise edit profile */
.devise-registration-edit .account-status-readonly {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
}

.devise-registration-edit .account-status-readonly dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
}

.devise-registration-edit .account-status-readonly dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}


.extra-trip {
  display: none;
}

/* simple button styling */
.btn-view-more {
  margin-top: 10px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.btn-view-more:hover {
  background-color: #0063cc;
}

.collapsible-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1.1rem;
  margin: 10px 0;
  background-color: #0a0a0a;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  user-select: none;
  list-style: none;
  text-align: left;
  transition: background-color 0.15s ease;
}

.collapsible-btn:hover {
  background-color: #262626;
}

.collapsible-btn:active {
  background-color: #1a1a1a;
}

.collapsible-btn::-webkit-details-marker {
  display: none;
}

/* Hide native disclosure + Pico extras so only our chevron shows */
details.collapsible > summary.collapsible-btn {
  list-style-type: none !important;
}

details.collapsible > summary.collapsible-btn::marker,
details.collapsible > summary.collapsible-btn::-webkit-details-marker {
  display: none;
  content: "";
}

details.collapsible > summary.collapsible-btn::before {
  content: none !important;
  display: none !important;
}

/* Single white SVG chevron: right when closed, down when open */
.collapsible-btn::after {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-left: 0.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4 1.5L8.5 6L4 10.5' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

details.collapsible[open] > .collapsible-btn::after {
  transform: rotate(90deg);
}

/* Pico/link styles on summary — force readable text on black bar */
details.collapsible > summary.collapsible-btn,
article details.collapsible > summary.collapsible-btn {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

/* Expanded “Tell me more?” panel — light grey (not white) */
details.collapsible > .content {
  background-color: #e8eaef;
  padding: 1.15rem 1.15rem 1.35rem;
  margin-top: 0;
  border-radius: 0 0 12px 12px;
  border: 1px solid #d5d9e0;
  border-top: none;
}

details.collapsible[open] > summary.collapsible-btn {
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

details.collapsible > .content article {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
  margin: 0;
}

details.collapsible > .content hr {
  border-color: #cfd4dc;
}

/* “Anything else…” notes block — light blue */
.trip-notes-section {
  background: #e8f4fc !important;
  border: 1px solid #c5e3f5 !important;
  box-shadow: none !important;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.25rem !important;
  margin-top: 0.5rem;
}

.trip-notes-section label {
  color: #1a4a66;
}

#trip_notes_box {
  background-color: #dff2fc;
  border: 1px solid #a8d8f0;
  border-radius: 8px;
  color: #1e293b;
}

#trip_notes_box::placeholder {
  color: #5a7a8f;
  opacity: 0.9;
}

#trip_notes_box:focus {
  outline: none;
  border-color: #6bb8e6;
  box-shadow: 0 0 0 2px rgba(107, 184, 230, 0.25);
}

/* ----- Home index: trip section tabs ----- */
.home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 1.25rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Pill shape (short + full stadium ends); beat Pico button styles */
.home-tab {
  appearance: none;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #d1d5db !important;
  background: #eceef2 !important;
  color: #374151 !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.3rem 1rem !important;
  min-height: 0;
  border-radius: 9999px !important;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-tab:hover {
  border-color: #b8bcc4 !important;
  background: #e2e5eb !important;
  color: #1f2937 !important;
}

.home-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.home-tab[aria-selected="true"],
.home-tab.home-tab--active {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

.home-tab[aria-selected="true"]:hover,
.home-tab.home-tab--active:hover {
  background: #1d4ed8 !important;
  border-color: #1e40af !important;
  color: #fff !important;
}

.home-tab-panel[hidden] {
  display: none !important;
}

.home-tab-panel {
  margin-bottom: 0.5rem;
}

.place-card {
  display: flex;
  align-items: center;
  gap: 8px;
}



/* tooltip */

.plan-cell {
  position: relative;
}

.plan-brief {
  cursor: pointer;
  position: relative;
  display: inline-block;
  /* text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px; */
}

.plan-brief::after {
  content: "  ⓘ";            /* info symbol */
  font-size: 0.85em;
  opacity: 0.6;
}

.plan-full {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 400px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-brief:hover .plan-full {
  display: block;
}

.plan-brief:hover::after {
  opacity: 1;
}


/* ------------------------------ pages -------------------------------*/
/* Agenda carousel: day tab strip + one visible day */
.agenda-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Only one day visible at a time */
article.agenda-day {
  display: none;
}

article.agenda-day.active {
  display: block;
}

/* Agenda: one card — toolbar (days + jump) sits above the table body */
.agenda-day-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  /* Don’t clip toolbar (e.g. “Go to day” on the right) */
  overflow: visible;
  max-width: 100%;
}

/* Center column = day picker; right column reserves space so jump isn’t clipped */
.agenda-integrated-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(8.6rem, 1fr);
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.4rem 0.75rem 0.45rem 0.55rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  box-sizing: border-box;
}

.agenda-integrated-toolbar__days {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  /* Match toolbar row height to jump column without stretching the day rail */
  align-items: center;
}

.agenda-integrated-toolbar__jump {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 12.5rem;
  min-width: 0;
  padding-right: 2px;
}

.agenda-day-panel .agenda-table thead th {
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 600;
  font-size: 0.8125rem;
  vertical-align: middle;
}

/* —— Day picker: rounded cards in a tray, grey idle / blue selected, square nav —— */
.agenda-day-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 0.85rem;
  max-width: 28rem;
  padding: 0 0.25rem;
}

/* Compact: inside agenda card toolbar — smaller, no outer margin */
.agenda-day-picker--compact {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 0;
  gap: 0.3rem;
  align-items: center;
}

/* Light rail behind the three day cards */
.agenda-day-tabs {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 17.5rem;
  padding: 0.4rem 0.45rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.agenda-day-picker--compact .agenda-day-tabs {
  display: inline-flex;
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(100%, 26rem);
  height: fit-content;
  box-sizing: border-box;
  padding: 0.22rem 0.4rem;
  gap: 0.32rem;
  border-radius: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.agenda-day-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: 5.5rem;
  min-height: 4.1rem;
  padding: 0.45rem 0.35rem;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #e5e7eb;
  color: #374151;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Compact tabs: two lines — “Day N” then date (not single-line) */
.agenda-day-tab--compact {
  flex: 0 0 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  max-width: 4.6rem;
  min-width: 3.35rem;
  min-height: 0;
  padding: 0.26rem 0.28rem;
  border-radius: 7px;
  font-size: 0.72rem;
  white-space: normal;
  box-sizing: border-box;
}

.agenda-day-tab__num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4b5563;
}

.agenda-day-tab--compact .agenda-day-tab__num {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
  margin: 0;
}

.agenda-day-tab__date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #6b7280;
}

.agenda-day-tab--compact .agenda-day-tab__date {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.agenda-day-tab:hover:not(.is-active) {
  background: #dce0e5;
  border-color: #c4c9d1;
}

.agenda-day-tab:hover:not(.is-active) .agenda-day-tab__num {
  color: #374151;
}

.agenda-day-tab:hover:not(.is-active) .agenda-day-tab__date {
  color: #52525b;
}

.agenda-day-tab.is-active {
  background: #1c6fb8;
  border-color: #18649f;
  color: #fff;
  box-shadow: 0 3px 10px rgba(28, 111, 184, 0.32);
}

.agenda-day-tab--compact.is-active {
  box-shadow: 0 2px 6px rgba(28, 111, 184, 0.28);
}

.agenda-day-tab.is-active .agenda-day-tab__num,
.agenda-day-tab.is-active .agenda-day-tab__date {
  color: #fff;
}

.agenda-day-tab:focus-visible {
  outline: 2px solid #1c6fb8;
  outline-offset: 2px;
}

.agenda-day-tab:focus:not(:focus-visible) {
  outline: none;
}

body.pico .agenda-day-tabs button.agenda-day-tab {
  width: auto;
}

/*
 * Pico: `.pico [type=button]` uses primary blue (0,1,1) and beats `.agenda-day-tab` (0,1,0).
 * Day picker also lives outside <article>. Force grey for non-selected tabs.
 */
body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active) {
  --pico-background-color: #e5e7eb;
  --pico-border-color: #d1d5db;
  --pico-color: #374151;
  --pico-box-shadow: none;
  background-color: #e5e7eb !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
  box-shadow: none !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active):hover,
body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active):active {
  --pico-background-color: #dce0e5;
  --pico-border-color: #c4c9d1;
  --pico-color: #1f2937;
  background-color: #dce0e5 !important;
  border-color: #c4c9d1 !important;
  color: #1f2937 !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active):focus {
  --pico-background-color: #e5e7eb;
  background-color: #e5e7eb !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active) .agenda-day-tab__num {
  color: #4b5563 !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active) .agenda-day-tab__date {
  color: #6b7280 !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active):hover .agenda-day-tab__num {
  color: #374151 !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab[type="button"]:not(.is-active):hover .agenda-day-tab__date {
  color: #52525b !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab.is-active[type="button"] {
  --pico-background-color: #1c6fb8;
  --pico-border-color: #18649f;
  --pico-color: #fff;
  background-color: #1c6fb8 !important;
  border-color: #18649f !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(28, 111, 184, 0.32) !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab--compact.is-active[type="button"] {
  box-shadow: 0 2px 6px rgba(28, 111, 184, 0.28) !important;
}

/* Pico adds margin-bottom to [type=button] — caused extra space below tabs in grey rail */
body.pico .agenda-day-picker--compact .agenda-day-tabs button.agenda-day-tab--compact[type="button"] {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

body.pico .agenda-day-tabs button.agenda-day-tab.is-active[type="button"]:hover,
body.pico .agenda-day-tabs button.agenda-day-tab.is-active[type="button"]:active {
  --pico-background-color: #185a9a;
  --pico-border-color: #154e85;
  background-color: #185a9a !important;
  border-color: #154e85 !important;
}

/* Square controls, shorter than day cards — prev = light, next = solid blue */
.agenda-tab-arrow {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    opacity 0.15s ease;
}

.agenda-tab-arrow--prev {
  border: 1px solid #c7d2fe;
  background: #e8eefc;
  color: #1e3a8a;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.08);
}

.agenda-tab-arrow--prev:hover:not(:disabled) {
  background: #dbe4f8;
  border-color: #a5b4fc;
  color: #172554;
}

.agenda-tab-arrow--next {
  border: 1px solid #18649f;
  background: #1c6fb8;
  color: #fff;
  box-shadow: 0 2px 6px rgba(28, 111, 184, 0.28);
}

.agenda-tab-arrow--next:hover:not(:disabled) {
  background: #185a9a;
  border-color: #154e85;
}

.agenda-tab-arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.agenda-day-picker--compact .agenda-tab-arrow {
  width: 2.05rem;
  height: 2.05rem;
  font-size: 0.92rem;
  border-radius: 6px;
  align-self: center;
}

.agenda-jump-label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #334155;
  margin: 0;
  white-space: nowrap;
  line-height: 1.35;
}

.agenda-integrated-toolbar .agenda-jump-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1e293b;
  line-height: 1.35;
  width: 100%;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

.agenda-jump-select {
  width: auto;
  min-width: min(100%, 14rem);
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 2.25rem 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.35;
  box-sizing: border-box;
}

.agenda-jump-select--compact {
  min-width: 6.8rem;
  max-width: 100%;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1.85rem 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.35;
  box-sizing: border-box;
}

.agenda-jump-select--compact option {
  font-size: 0.78rem;
  font-weight: 500;
}

.agenda-jump-select:focus {
  outline: 2px solid rgba(28, 111, 184, 0.35);
  outline-offset: 1px;
  border-color: #1c6fb8;
}

body.pico .agenda-jump-select {
  width: auto !important;
  max-width: min(100%, 18rem);
}

body.pico .agenda-jump-select--compact {
  max-width: 100% !important;
}

/* Pico: `.pico select` sets font-size: 1rem — keep compact toolbar but readable height */
body.pico .agenda-integrated-toolbar select.agenda-jump-select--compact {
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  min-height: 2.75rem !important;
  padding: 0.5rem 1.85rem 0.5rem 0.65rem !important;
  box-sizing: border-box !important;
}

body.pico .agenda-tab-arrow {
  width: 2.35rem !important;
  height: 2.35rem !important;
  max-width: none;
}

body.pico .agenda-day-picker--compact .agenda-tab-arrow {
  width: 2.05rem !important;
  height: 2.05rem !important;
}

/* Pico primary styling on [type=button] — keep arrow colors */
body.pico .agenda-tab-arrow[type="button"] {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
}

body.pico .agenda-day-picker--compact .agenda-tab-arrow[type="button"] {
  font-size: 0.92rem;
}

body.pico .agenda-tab-arrow--prev[type="button"]:not(:disabled) {
  --pico-background-color: #e8eefc;
  --pico-border-color: #c7d2fe;
  --pico-color: #1e3a8a;
  background-color: #e8eefc !important;
  border-color: #c7d2fe !important;
  color: #1e3a8a !important;
}

body.pico .agenda-tab-arrow--prev[type="button"]:hover:not(:disabled) {
  --pico-background-color: #dbe4f8;
  background-color: #dbe4f8 !important;
}

body.pico .agenda-tab-arrow--next[type="button"]:not(:disabled) {
  --pico-background-color: #1c6fb8;
  --pico-border-color: #18649f;
  --pico-color: #fff;
  background-color: #1c6fb8 !important;
  border-color: #18649f !important;
  color: #fff !important;
}

body.pico .agenda-tab-arrow--next[type="button"]:hover:not(:disabled) {
  --pico-background-color: #185a9a;
  background-color: #185a9a !important;
  border-color: #154e85 !important;
}

@media (max-width: 520px) {
  .agenda-day-picker {
    gap: 0.35rem;
    margin-bottom: 0.7rem;
    max-width: 100%;
  }

  .agenda-day-tabs {
    max-width: none;
    padding: 0.35rem 0.35rem;
    gap: 0.3rem;
  }

  .agenda-day-tab {
    min-height: 3.65rem;
    padding: 0.35rem 0.25rem;
    max-width: none;
    border-radius: 8px;
  }

  .agenda-day-tab__num {
    font-size: 0.74rem;
  }

  .agenda-day-tab__date {
    font-size: 0.68rem;
  }

  .agenda-tab-arrow {
    width: 2.05rem !important;
    height: 2.05rem !important;
    font-size: 0.95rem;
    border-radius: 7px;
  }

  /* Toolbar stacking + day-tab rail scroll: see @media (max-width: 720px) */

  /* Compact toolbar: keep short tabs on small screens */
  .agenda-day-picker--compact {
    margin-bottom: 0;
  }

  .agenda-day-picker--compact .agenda-day-tabs {
    padding: 0.22rem 0.3rem;
  }

  .agenda-day-tab--compact {
    flex-direction: column;
    min-height: 2.65rem;
    flex: 0 0 auto;
    max-width: 4.25rem;
    min-width: 3rem;
    padding: 0.28rem 0.22rem;
    gap: 0.1rem;
  }

  .agenda-day-tab--compact .agenda-day-tab__num {
    font-size: 0.7rem;
  }

  .agenda-day-tab--compact .agenda-day-tab__date {
    font-size: 0.64rem;
  }

  .agenda-day-picker--compact .agenda-tab-arrow {
    width: 1.85rem !important;
    height: 1.85rem !important;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  body.pico .agenda-day-picker--compact .agenda-tab-arrow {
    width: 1.85rem !important;
    height: 1.85rem !important;
  }

  .agenda-jump-select--compact {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    min-height: 2.75rem;
  }
}


/* --------------------------------- Google review --------------------------------------- */

.place-card {
  gap: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;        /* allow it to stretch with the table column */
  max-width: 100%;
  text-align: center;
}


.place-photo {
  width: 76.5%;             /* 10% smaller than 85%; centered via .place-card */
  aspect-ratio: 1 / 1;      /* ← makes it a perfect square */
  border-radius: 12px;
  overflow: hidden;         /* crop overflow so image stays inside */
}

.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* prevents distortion, clean crop */
  display: block;
}


.place-name {
  font-weight: 400;
  font-size: 0.9rem;
}

.place-rating {
  font-size: 0.9rem;
  color: #666666;
}


/* --------------- table column witdth --------------- */
.agenda-table {
  table-layout: auto; 
  /* table-layout: fixed;    */
  /* allows proportional control */
  /* width: 100%; */
}

.agenda-table th:nth-child(1),
.agenda-table td:nth-child(1) {
  width: 13%;   /* Time */
}

.agenda-table th:nth-child(2),
.agenda-table td:nth-child(2) {
  width: 22%;   /* Plan */
}

.agenda-table th:nth-child(3),
.agenda-table td:nth-child(3) {
  width: 30%;   /* Location */
}

.agenda-table th:nth-child(4),
.agenda-table td:nth-child(4) {
  width: 25%;   /* Get around */
}

/* Clickable location card: underline on title only, not whole block */
a.place-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.place-card-link .place-name {
  color: var(--pico-primary, #2563eb);
}

a.place-card-link .place-rating {
  color: #666666;
}

a.place-card-link:hover .place-name {
  text-decoration: underline;
}

/* ---------- Agenda: phones & narrow screens — same content, card rows ---------- */
@media (max-width: 720px) {
  /* Toolbar: stack day picker above “Go to day” so nothing crowds horizontally */
  .agenda-integrated-toolbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.4rem 0.5rem 0.5rem;
    gap: 0.55rem;
  }

  .agenda-integrated-toolbar__days {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 100%;
  }

  .agenda-integrated-toolbar__jump {
    grid-column: 1;
    justify-self: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .agenda-integrated-toolbar .agenda-jump-label {
    text-align: right;
    width: 100%;
    margin-bottom: 0.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    color: #0f172a;
  }

  .agenda-integrated-toolbar__jump .agenda-jump-select,
  .agenda-integrated-toolbar__jump .agenda-jump-select--compact {
    width: 100%;
    max-width: 100%;
    min-height: 2.875rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.875rem;
  }

  body.pico .agenda-integrated-toolbar__jump select.agenda-jump-select--compact {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.875rem !important;
    font-size: 0.875rem !important;
    padding: 0.55rem 2rem 0.55rem 0.75rem !important;
  }

  .agenda-day-picker--compact {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .agenda-day-picker--compact .agenda-day-tabs {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  /* One itinerary row = one card (labels match desktop column headers) */
  .agenda-day-panel .agenda-day-body {
    overflow-x: visible;
  }

  .agenda-day-panel .agenda-table {
    display: block;
    width: 100%;
  }

  .agenda-day-panel .agenda-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .agenda-day-panel .agenda-table tbody {
    display: block;
  }

  .agenda-day-panel .agenda-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .agenda-day-panel .agenda-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .agenda-day-panel .agenda-table tbody td {
    display: block;
    width: 100% !important;
    max-width: none !important;
    padding: 0.65rem 0;
    border: none;
    vertical-align: top;
    text-align: left !important;
    box-sizing: border-box;
  }

  .agenda-day-panel .agenda-table tbody td:first-child {
    padding-top: 0;
  }

  .agenda-day-panel .agenda-table tbody td:last-child {
    padding-bottom: 0;
  }

  .agenda-day-panel .agenda-table tbody td + td {
    border-top: 1px solid #f3f4f6;
  }

  .agenda-day-panel .agenda-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
  }

  .agenda-day-panel .agenda-table tbody td.plan-cell {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .agenda-day-panel .agenda-table tbody td.place-cell .place-card {
    align-items: center;
  }

  .agenda-day-panel .agenda-table tbody td.agenda-get-around-cell {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .agenda-day-panel .agenda-get-around-body {
    font-size: 0.9rem;
  }

  .agenda-day-panel a.agenda-direction-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  .agenda-day-panel a.agenda-direction-link:hover {
    color: #1e40af;
  }

  /* Plan tooltip: don’t overflow the viewport on small screens */
  .plan-full {
    left: 0;
    right: auto;
    width: auto;
    min-width: min(100%, 18rem);
    max-width: min(calc(100vw - 2.5rem), 22rem);
  }

  .agenda-day-panel .day-map {
    height: 220px;
    margin-top: 0.75rem;
  }
}

/* ------------------------- footer css --------------------------- */
.site-footer {
  padding: 48px 0 24px;
  background: #fff;
  color: #333;
  font-size: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Add a centered inner container (you can apply this to the wrapper div if you have one) */
.site-footer .footer-inner,
.site-footer .footer-content,
.site-footer .footer-bottom {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;                         /* smaller + cleaner than 80px */
}

.footer-col h4 {
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.4;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Social icons row */
.social-icons a {
  margin-right: 12px;
  font-size: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  margin-right: 0;                   /* avoid weird spacing on wrap */
}

/* ===== Responsive ===== */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mobile: 1 column + better tap targets */
@media (max-width: 520px) {
  .site-footer {
    padding: 28px 0 18px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-col a {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Agenda build loading overlay (Plan a trip → OpenAI) ===== */
.agenda-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.agenda-loading-overlay[hidden] {
  display: none !important;
}

/* No card — waves + surfer only, centered on dimmed backdrop (~30% larger rail) */
.agenda-loading-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.625rem;
  width: min(546px, 94vw);
  text-align: center;
}

.agenda-wave-rail {
  position: relative;
  width: 100%;
  height: 83px;
}

.agenda-waves-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.agenda-wave-line {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: agenda-wave-drift 3.2s linear infinite;
}

.agenda-wave-line--1 {
  stroke-opacity: 0.55;
  animation-duration: 2.8s;
}

.agenda-wave-line--2 {
  stroke-opacity: 0.88;
  animation-duration: 3.4s;
  animation-delay: -0.4s;
}

.agenda-wave-line--3 {
  stroke-opacity: 0.45;
  animation-duration: 3s;
  animation-delay: -0.8s;
}

@keyframes agenda-wave-drift {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -62;
  }
}

.agenda-wave-line--1,
.agenda-wave-line--2,
.agenda-wave-line--3 {
  stroke-dasharray: 16 11;
}

.agenda-surfer-mover {
  position: absolute;
  left: 0;
  bottom: 38%;
  margin-left: 0;
  animation: agenda-surf-cross 3.2s linear infinite;
  pointer-events: none;
}

.agenda-surfer-bob {
  display: inline-block;
  transform: translateX(-50%);
  animation: agenda-surf-bob 0.75s ease-in-out infinite;
}

.agenda-surfer-emoji {
  display: block;
  font-size: clamp(1.75rem, 5.85vw, 2.15rem);
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
}

@keyframes agenda-surf-cross {
  0% {
    left: 6%;
  }

  100% {
    left: 94%;
  }
}

@keyframes agenda-surf-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(3px) rotate(-8deg);
  }

  50% {
    transform: translateX(-50%) translateY(-13px) rotate(6deg);
  }
}

.agenda-loading-message {
  margin: 0;
  max-width: 36ch;
  padding: 0;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  line-height: 1.45;
  background: none;
  box-shadow: none;
  /* Light halo so dark type stays readable on blurred / mixed backdrop */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 3px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .agenda-wave-line,
  .agenda-surfer-mover,
  .agenda-surfer-bob {
    animation: none !important;
  }

  .agenda-surfer-mover {
    left: 50%;
  }
}

/* ---------------------------------------------------------------- */
