/*
 * 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: center;
  min-height: min(640px, calc(100dvh - 14rem));
  padding: 2rem 1.25rem 3rem;
  margin: 0 auto;
  max-width: 100%;
  background: #fff;
  text-align: center;
}

.sign-in-brand {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  text-align: left;
  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: 0 auto;
  padding: 1.35rem 1.35rem 1.25rem;
  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 auto 1.15rem;
  max-width: 320px;
  width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
  text-align: left;
}

.sign-in-tutorial {
  margin: 1.35rem 0 1.25rem;
  text-align: center;
}

.sign-in-tutorial-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7487;
  text-decoration: none;
}

.sign-in-tutorial-link:hover {
  text-decoration: underline;
}

.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: 1.75rem;
  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;
}

/* ----- 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: same crop box as loremflickr 1200×400 (3:1); fallback + API images fill with cover */
.trip-hero-image-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 400;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

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

/* 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;
}

.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;
  gap: 1rem;
}

.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;
}


.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.18rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 9.6rem;
  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-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
  white-space: nowrap;
}

.agenda-integrated-toolbar .agenda-jump-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
  text-align: left;
}

.agenda-jump-select {
  width: auto;
  min-width: min(100%, 14rem);
  max-width: 100%;
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.3;
}

.agenda-jump-select--compact {
  min-width: 6.8rem;
  max-width: 9.2rem;
  padding: 0.12rem 1.15rem 0.12rem 0.35rem;
  /* Match .agenda-integrated-toolbar .agenda-jump-label (0.7rem) */
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.2;
}

.agenda-jump-select--compact option {
  font-size: 0.7rem;
  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: 9.6rem !important;
}

/* Pico: `.pico select` sets font-size: 1rem — match label text */
body.pico .agenda-integrated-toolbar select.agenda-jump-select--compact {
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  padding: 0.12rem 1.15rem 0.12rem 0.35rem !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;
  }

  .agenda-integrated-toolbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.35rem 0.4rem 0.4rem;
    gap: 0.5rem;
  }

  .agenda-integrated-toolbar__days {
    grid-column: 1;
    justify-self: center;
  }

  .agenda-integrated-toolbar__jump {
    grid-column: 1;
    justify-self: center;
    align-items: center;
    width: 100%;
    max-width: 7.6rem;
  }

  .agenda-integrated-toolbar .agenda-jump-label {
    text-align: center;
  }

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

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

  .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;
  }
}


/* --------------------------------- 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: 85%;               /* 15% smaller than full column; 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%;   /* From-To */
}

.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 */
}

/* ------------------------- 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%;
  }
}

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