/* ==========================================================================
   Rovairo 2.0 - Trip Engine & Workspace Styles
   Editorial design system: Cream #f4f1e9, Dark Teal #15343b, Sage #3b6559
   ========================================================================== */

.trip-engine-page {
  background-color: #f4f1e9;
  color: #15343b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.trip-engine-page *,
.trip-engine-page *::before,
.trip-engine-page *::after {
  box-sizing: border-box;
}

.trip-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Breadcrumbs */
.trip-nav {
  padding: 1.5rem 0 1rem;
  font-size: 0.9rem;
  color: #556b6f;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.trip-nav a {
  color: #15343b;
  text-decoration: none;
  font-weight: 500;
}

.trip-nav a:hover {
  text-decoration: underline;
}

/* Hero & Search Bar */
.trip-search-hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.trip-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #3b6559;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trip-search-hero h1 {
  font-family: "Tiempos Headline", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: #15343b;
  margin: 0 0 1rem;
  font-weight: 400;
}

.trip-search-hero h1 em {
  font-style: italic;
  color: #2b554b;
}

.trip-search-hero p.hero-deck {
  font-size: 1.15rem;
  color: #4a6367;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Natural Language Search Input Box */
.trip-search-box {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 30px rgba(21, 52, 59, 0.08);
  border: 1px solid #dcd7cc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trip-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trip-search-input-wrap svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #4a6367;
  stroke-width: 2;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.trip-search-input {
  flex: 1;
  border: none;
  font-size: 1.15rem;
  padding: 0.6rem 0.2rem;
  color: #15343b;
  outline: none;
  background: transparent;
  font-family: inherit;
  width: 100%;
}

.trip-search-input::placeholder {
  color: #8c9fa2;
}

.trip-search-button {
  background: #15343b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.trip-search-button:hover {
  background: #254d55;
  transform: translateY(-1px);
}

.trip-search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Quick prompt chips */
.trip-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.trip-chip {
  background: #eae5d9;
  border: 1px solid #d4cdc0;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: #2e4b50;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.trip-chip:hover {
  background: #dfd8cb;
  border-color: #b8af9f;
  color: #15343b;
}

/* Search Summary Status */
.trip-search-status {
  max-width: 820px;
  margin: 1.5rem auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd7cb;
}

.trip-status-summary {
  font-size: 1rem;
  color: #4a6367;
  font-weight: 500;
}

.trip-intent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e4dfd2;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.82rem;
  color: #15343b;
  font-weight: 600;
}

/* Results Grid / List */
.trip-results-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

/* Single Trip Result Card */
.trip-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #ddd7cb;
  box-shadow: 0 6px 24px rgba(21, 52, 59, 0.05);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  transition: box-shadow 0.25s ease;
}

.trip-card:hover {
  box-shadow: 0 12px 36px rgba(21, 52, 59, 0.1);
}

.trip-card-media {
  position: relative;
  min-height: 380px;
  background: #dcd7cc;
}

.trip-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trip-match-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #15343b;
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trip-weather-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(21, 52, 59, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
}

/* Card Content Area */
.trip-card-content {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.trip-card-title h2 {
  font-family: "Tiempos Headline", "Georgia", "Times New Roman", serif;
  font-size: 2rem;
  color: #15343b;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.trip-card-title .trip-location {
  font-size: 0.95rem;
  color: #556b6f;
  font-weight: 500;
}

.trip-dates-pill {
  background: #f4f1e9;
  border: 1px solid #ded7ca;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.84rem;
  color: #2d4c51;
  font-weight: 600;
  white-space: nowrap;
}

/* Overview & Explanation */
.trip-explanation {
  font-size: 1rem;
  line-height: 1.55;
  color: #2f494e;
  margin: 0 0 1.2rem;
}

/* Key Reasons List */
.trip-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.trip-reason-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #3b555a;
  line-height: 1.4;
}

.trip-reason-item strong {
  color: #15343b;
}

.trip-reason-bullet {
  color: #3b6559;
  font-size: 1rem;
}

/* Travel components overview (Flight, Stay, Total) */
.trip-logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #f8f6f0;
  border-radius: 8px;
  padding: 1.1rem;
  border: 1px solid #e5dfd2;
  margin-bottom: 1.6rem;
}

.trip-logistic-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trip-logistic-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7f83;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trip-logistic-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #15343b;
}

.trip-logistic-sub {
  font-size: 0.78rem;
  color: #657d81;
}

/* Cost Source Badges: LIVE vs ESTIMATE */
.badge-source {
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-live {
  background: #e1f5ec;
  color: #1e704a;
  border: 1px solid #b5e4cf;
}

.badge-estimate {
  background: #f2eee3;
  color: #6e6451;
  border: 1px solid #ded5c3;
}

/* Card Actions Bottom */
.trip-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eae5d9;
  flex-wrap: wrap;
  gap: 1rem;
}

.trip-budget-status {
  font-size: 0.88rem;
  font-weight: 600;
}

.trip-budget-within {
  color: #2b704d;
}

.trip-budget-tight {
  color: #8c601c;
}

.trip-budget-over {
  color: #9c3426;
}

.trip-cta-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.trip-btn-details {
  background: transparent;
  border: 1px solid #cbd4c5;
  color: #15343b;
  border-radius: 6px;
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trip-btn-details:hover {
  background: #f0ebe0;
}

.trip-btn-build {
  background: #15343b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.trip-btn-build:hover {
  background: #254d55;
  transform: translateY(-1px);
}

/* Breakdown drawer (expandable) */
.trip-breakdown-drawer {
  padding: 1.2rem;
  background: #fbf9f4;
  border-top: 1px dashed #dcd5c7;
  font-size: 0.9rem;
}

.trip-breakdown-table {
  width: 100%;
  border-collapse: collapse;
}

.trip-breakdown-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #eae5d9;
}

.trip-breakdown-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
}

/* ==========================================================================
   Trip Workspace Shell Styles
   ========================================================================== */

.workspace-header {
  background: #ffffff;
  border-bottom: 1px solid #ded7ca;
  padding: 2rem 0 0;
}

.workspace-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 2rem;
}

.workspace-title-area h1 {
  font-family: "Tiempos Headline", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #15343b;
  margin: 0.3rem 0 0.8rem;
  line-height: 1.15;
}

.workspace-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e6f3ed;
  color: #1d6e49;
  border: 1px solid #bce1ce;
  border-radius: 14px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.workspace-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #4a6367;
}

.workspace-meta-item strong {
  color: #15343b;
}

.workspace-hero-image {
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.workspace-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Workspace Tabs */
.workspace-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid #ded7ca;
  overflow-x: auto;
  white-space: nowrap;
}

.workspace-tab-btn {
  background: none;
  border: none;
  padding: 0.9rem 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #556b6f;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.workspace-tab-btn:hover {
  color: #15343b;
}

.workspace-tab-btn.active {
  color: #15343b;
}

.workspace-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #15343b;
  border-radius: 3px 3px 0 0;
}

/* Workspace Main Container & Sections */
.workspace-main {
  padding: 2.5rem 0 4rem;
}

.workspace-section {
  display: none;
}

.workspace-section.active {
  display: block;
}

/* Workspace Overview Cards */
.workspace-overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.workspace-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #ded7ca;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(21, 52, 59, 0.04);
  margin-bottom: 1.8rem;
}

.workspace-card h2,
.workspace-card h3 {
  font-family: "Tiempos Headline", "Georgia", "Times New Roman", serif;
  color: #15343b;
  margin: 0 0 1rem;
}

/* Budget Bar Tracker */
.workspace-budget-card {
  background: #fbf9f4;
  border: 1px solid #ded7ca;
  border-radius: 10px;
  padding: 1.5rem;
}

.budget-bar-wrap {
  margin: 1.2rem 0;
}

.budget-bar-track {
  height: 12px;
  background: #e4dfd2;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.budget-bar-fill {
  height: 100%;
  background: #3b6559;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.budget-bar-fill.over {
  background: #b24a3b;
}

.budget-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #556b6f;
  margin-top: 0.5rem;
}

/* Booking Action Rows in Book Tab */
.booking-action-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.booking-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfbfa;
  border: 1px solid #e2dbce;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.booking-action-info h4 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: #15343b;
}

.booking-action-info p {
  margin: 0;
  font-size: 0.88rem;
  color: #556b6f;
}

.booking-action-btn {
  background: #15343b;
  color: #ffffff;
  border-radius: 6px;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.booking-action-btn:hover {
  background: #254d55;
}

/* Itinerary Day-by-Day */
.itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.itinerary-day-box {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 8px;
  padding: 1.4rem;
}

.itinerary-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.itinerary-day-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eae5d9;
  color: #15343b;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Loading & Empty States */
.trip-loading-state,
.trip-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}

.trip-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 4px solid #ded7ca;
  border-top-color: #15343b;
  border-radius: 50%;
  animation: trip-spin 0.8s linear infinite;
  margin-bottom: 1.2rem;
}

@keyframes trip-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Breakpoints (1440, 768, 390, 375px)
   ========================================================================== */

@media (max-width: 980px) {
  .trip-card {
    grid-template-columns: 1fr;
  }
  .trip-card-media {
    height: 260px;
    min-height: 260px;
  }
  .workspace-hero {
    grid-template-columns: 1fr;
  }
  .workspace-hero-image {
    display: none;
  }
  .workspace-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .trip-logistics-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .trip-card-content {
    padding: 1.4rem;
  }
  .trip-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .trip-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .trip-btn-details,
  .trip-btn-build {
    width: 100%;
    justify-content: center;
  }
  .trip-search-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .trip-search-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .trip-shell {
    padding: 0 1rem;
  }
  .trip-search-hero h1 {
    font-size: 2.1rem;
  }
  .trip-card-title h2 {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   Phase 3: My Trips, Auth, and Contextual Save Styles
   ========================================================================== */

/* My Trips Hero & Filter Tabs */
.my-trips-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #ded7ca;
  margin-bottom: 2rem;
}

.my-trips-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-trips-title-group h1 {
  font-family: "Tiempos Headline", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #15343b;
  margin: 0.2rem 0 0.5rem;
}

.my-trips-title-group p {
  color: #556b6f;
  font-size: 1.05rem;
  margin: 0;
}

.my-trips-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid transparent;
  flex-wrap: wrap;
}

.my-trips-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #556b6f;
  cursor: pointer;
  transition: all 0.2s ease;
}

.my-trips-tab-btn:hover {
  color: #15343b;
  background: #eae5da;
}

.my-trips-tab-btn.active {
  background: #15343b;
  color: #ffffff;
}

/* My Trips Grid */
.my-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

/* My Trips Card */
.my-trip-card {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(21, 52, 59, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-trip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 52, 59, 0.1);
}

.my-trip-card-media {
  position: relative;
  height: 200px;
  background: #15343b;
  overflow: hidden;
}

.my-trip-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.my-trip-card-status-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.status-planning {
  background: rgba(234, 244, 237, 0.95);
  color: #1e5e3a;
  border: 1px solid #c2e2ce;
}

.status-booked {
  background: rgba(235, 243, 255, 0.95);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-completed {
  background: rgba(243, 244, 246, 0.95);
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.status-archived {
  background: rgba(254, 242, 242, 0.95);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.my-trip-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.my-trip-card-title {
  font-family: "Tiempos Headline", Georgia, serif;
  font-size: 1.4rem;
  color: #15343b;
  margin: 0 0 0.4rem;
  font-weight: 500;
}

.my-trip-card-dest {
  font-size: 0.88rem;
  color: #556b6f;
  margin-bottom: 1rem;
}

.my-trip-meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f0eae1;
  border-bottom: 1px solid #f0eae1;
  padding: 0.75rem 0;
  margin-bottom: 1.2rem;
  font-size: 0.86rem;
  color: #4a6367;
}

.my-trip-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}

.my-trip-total-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6a7f83;
  font-weight: 700;
}

.my-trip-total-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #15343b;
}

.my-trip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
}

.my-trip-btn-open {
  flex: 1;
  text-align: center;
  background: #15343b;
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.my-trip-btn-open:hover {
  background: #234d55;
  color: #ffffff;
}

.my-trip-menu-wrap {
  position: relative;
}

.my-trip-menu-trigger {
  background: transparent;
  border: 1px solid #ded7ca;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #556b6f;
}

.my-trip-menu-trigger:hover {
  background: #eae5da;
  color: #15343b;
}

.my-trip-menu-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 6px;
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 52, 59, 0.12);
  width: 150px;
  display: none;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
}

.my-trip-menu-dropdown.show {
  display: flex;
}

.my-trip-menu-item {
  background: none;
  border: none;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.88rem;
  color: #15343b;
  cursor: pointer;
  width: 100%;
}

.my-trip-menu-item:hover {
  background: #f7f5f0;
}

.my-trip-menu-item.delete {
  color: #c53030;
  border-top: 1px solid #f0eae1;
}

.my-trip-menu-item.delete:hover {
  background: #fff5f5;
}

/* Empty State */
.my-trips-empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  max-width: 680px;
  margin: 2rem auto 5rem;
  box-shadow: 0 4px 20px rgba(21, 52, 59, 0.04);
}

.my-trips-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.my-trips-empty-state h2 {
  font-family: "Tiempos Headline", Georgia, serif;
  font-size: 2.1rem;
  color: #15343b;
  margin: 0 0 0.8rem;
  font-weight: 400;
}

.my-trips-empty-state p {
  color: #556b6f;
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.my-trips-empty-btn {
  display: inline-block;
  background: #15343b;
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(21, 52, 59, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.my-trips-empty-btn:hover {
  background: #234d55;
  transform: translateY(-1px);
}

/* Contextual Prompt in Trip Workspace */
.workspace-save-prompt {
  background: linear-gradient(135deg, #15343b 0%, #1e4750 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.6rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(21, 52, 59, 0.15);
}

.workspace-save-prompt-text h3 {
  margin: 0 0 0.3rem;
  font-family: "Tiempos Headline", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.workspace-save-prompt-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.workspace-save-prompt-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn-prompt-signup {
  background: #e6a840;
  color: #15343b;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.btn-prompt-signup:hover {
  background: #f0b44f;
}

.btn-prompt-dismiss {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.55rem 1rem;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prompt-dismiss:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Auth Cards & Forms (Login, Signup, Account) */
.auth-page-container {
  max-width: 480px;
  margin: 3.5rem auto 5rem;
  padding: 0 1rem;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  padding: 2.2rem 2.2rem;
  box-shadow: 0 6px 24px rgba(21, 52, 59, 0.06);
}

.auth-card-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3b6559;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-card h1 {
  font-family: "Tiempos Headline", Georgia, serif;
  font-size: 2rem;
  color: #15343b;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.auth-card-subtitle {
  color: #556b6f;
  font-size: 0.95rem;
  margin: 0 0 1.8rem;
  line-height: 1.45;
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #15343b;
  margin-bottom: 0.4rem;
}

.auth-form-group input,
.auth-form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfc7b9;
  border-radius: 8px;
  font-size: 0.98rem;
  color: #15343b;
  background: #fcfbfa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-group input:focus,
.auth-form-group textarea:focus {
  outline: none;
  border-color: #15343b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 52, 59, 0.1);
}

.auth-submit-btn {
  width: 100%;
  background: #15343b;
  color: #ffffff;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: #234d55;
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-footer-links {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f0eae1;
  text-align: center;
  font-size: 0.9rem;
  color: #556b6f;
}

.auth-footer-links a {
  color: #15343b;
  font-weight: 600;
  text-decoration: underline;
}

.auth-status-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: none;
}

.auth-status-msg.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-status-msg.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Phase 4: AI Itinerary & Intelligent Trip Editing
   ========================================================================== */
.itin-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.itin-pill-pace {
  background: #eef2eb;
  color: #1d6e49;
  border: 1px solid #c9d8c3;
}

.itin-pill-cost {
  background: #f2eee3;
  color: #15343b;
  border: 1px solid #ded7ca;
}

.itin-ai-bar {
  background: #fbfaf7;
  border: 1px solid #ded7ca;
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 1.2rem;
}

.itin-ai-input-group {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.itin-ai-input-group input {
  flex: 1;
  min-width: 260px;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd4c5;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: #15343b;
}

.itin-ai-input-group input:focus {
  outline: none;
  border-color: #15343b;
  box-shadow: 0 0 0 2px rgba(21, 52, 59, 0.12);
}

.itin-prompt-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.itin-chip {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: #15343b;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.itin-chip:hover {
  background: #15343b;
  color: #ffffff;
  border-color: #15343b;
}

.itin-preview-card {
  background: #f4f8f4;
  border: 1px solid #c5dfc5;
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 1.2rem;
}

.itin-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.itin-preview-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #1d6e49;
}

.itin-preview-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #1d6e49;
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.itin-preview-list {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
  color: #15343b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.itin-preview-list li {
  margin-bottom: 0.3rem;
}

.itin-budget-impact {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 6px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #15343b;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.itin-preview-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.itin-explanation-box {
  background: #fcfbfa;
  border-left: 3px solid #1d6e49;
  border-top: 1px solid #ded7ca;
  border-right: 1px solid #ded7ca;
  border-bottom: 1px solid #ded7ca;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
}

/* Day & Item Cards */
.itin-day-card {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.itin-day-header-bar {
  background: #f8f6f0;
  border-bottom: 1px solid #ded7ca;
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.itin-day-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.itin-day-title-wrap h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #15343b;
}

.itin-day-date {
  font-size: 0.82rem;
  color: #556b6f;
  font-weight: 500;
}

.itin-day-theme-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #eae5d9;
  color: #15343b;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.itin-items-container {
  padding: 0.6rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.itin-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 6px;
  background: #fcfbfa;
  border: 1px solid #e7e2d7;
  transition: border-color 0.15s ease;
}

.itin-item-row:hover {
  border-color: #cbd4c5;
}

.itin-item-row.locked {
  background: #faf8f3;
  border-color: #d8cbb8;
}

.itin-item-main {
  flex: 1;
  min-width: 0;
}

.itin-item-topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.itin-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #ded7ca;
  color: #15343b;
}

.itin-type-food { background: #fee2e2; color: #991b1b; }
.itin-type-beach { background: #e0f2fe; color: #0369a1; }
.itin-type-nature { background: #dcfce7; color: #166534; }
.itin-type-culture { background: #fef3c7; color: #92400e; }
.itin-type-relaxation { background: #f3e8ff; color: #6b21a8; }
.itin-type-travel { background: #f1f5f9; color: #475569; }
.itin-type-free_time { background: #ecfdf5; color: #065f46; }

.itin-item-time {
  font-size: 0.82rem;
  color: #6a7f83;
  font-weight: 500;
}

.itin-item-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: #15343b;
  font-weight: 600;
}

.itin-item-desc {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: #556b6f;
  line-height: 1.45;
}

.itin-item-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.itin-item-cost {
  font-weight: 600;
  color: #15343b;
}

.itin-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.itin-item-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.itin-action-btn {
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  color: #15343b;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.itin-action-btn:hover {
  background: #15343b;
  color: #ffffff;
  border-color: #15343b;
}

.itin-action-btn.delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.itin-lock-toggle {
  background: none;
  border: 1px solid #ded7ca;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: #556b6f;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.itin-lock-toggle.active {
  background: #15343b;
  color: #ffffff;
  border-color: #15343b;
}

@media (max-width: 600px) {
  .itin-item-row {
    flex-direction: column;
    align-items: stretch;
  }
  .itin-item-right {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0.4rem;
    border-top: 1px dashed #ded7ca;
    padding-top: 0.5rem;
  }
}

/* ==========================================================================
   Phase 5: Activity Booking Enrichment & Booking Partners
   ========================================================================== */
.badge-affiliate {
  background: #f0f7f7;
  color: #1a5661;
  border: 1px solid #c9dedf;
}

.badge-curated {
  background: #fdf8eb;
  color: #92580c;
  border: 1px solid #ebd9b0;
}

.itin-enrichment-box {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f9f8f4;
  border: 1px solid #e5dfd2;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.itin-enrichment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.itin-enrichment-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #556b6f;
}

.itin-partner-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.itin-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #cfc8b8;
  color: #15343b;
  padding: 0.4rem 0.75rem;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.itin-partner-link:hover {
  background: #15343b;
  color: #ffffff;
  border-color: #15343b;
}

.itin-partner-link:focus-visible {
  outline: 2px solid #15343b;
  outline-offset: 2px;
}

.itin-enrichment-status {
  padding: 0.75rem 1rem;
  background: #f4f8f4;
  border: 1px solid #c9dec9;
  border-radius: 6px;
  color: #1e5e3a;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .itin-partner-link {
    width: 100%;
    justify-content: center;
  }
}



