/* ==========================================================================
   WalkTheDock Season Calendar — season-calendar.css
   Version: 1.3.5
   --------------------------------------------------------------------------
   Tokens here reference Elementor v4 Global Variables (the e-gv-* design
   system the site otherwise uses) with hex fallbacks. When the Elementor
   kit is loaded, the plugin renders in the site's true colors/fonts; when
   it isn't (e.g. admin previews), the fallbacks ship a reasonable default.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand tokens
   -------------------------------------------------------------------------- */
.wtd-sc-widget {
  /* Colors */
  --wtd-orange:        var(--e-global-color-dd0bdb5, #F26419);   /* Bouy Orange (primary CTA) */
  --wtd-orange-light:  #FDF1E8;
  --wtd-navy:          var(--e-global-color-c898ce2, #0A4D8C);   /* Deep Ocean — headings, active states */
  --wtd-navy-light:    #2A4D60;
  --wtd-charcoal:      var(--e-global-color-3a3569a, #0D0D0D);   /* Anchor Charcoal — boat header / body text */
  --wtd-teal:          var(--e-global-color-88d2b63, #2AA6A0);   /* Wave Teal — accents */
  --wtd-text:          #222527;                                  /* Primary body text */
  --wtd-text-muted:    var(--e-global-color-0e271ea, #8A8D91);   /* Eyebrow + muted */
  --wtd-bg-soft:       var(--e-global-color-42dc720, #F6F6F6);   /* Subtle backgrounds */
  --wtd-border:        var(--e-global-color-8990e79, #EFEFEF);   /* Light borders */

  /* Typography */
  --wtd-serif:         var(--e-global-typography-849fb8b-font-family, 'Roboto Slab'), Georgia, 'Times New Roman', serif;
  --wtd-sans:          var(--e-global-typography-c607b1b-font-family, 'Roboto'), system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------------------------------
   Widget shell
   -------------------------------------------------------------------------- */
.wtd-sc-widget {
  width: 100%;
  font-family: var(--wtd-sans);
  color: #374151;
  position: relative;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.wtd-sc-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.wtd-sc-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wtd-sc-title {
  font-family: var(--wtd-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--wtd-text);
  margin: 0;
  line-height: 1.1;
}

.wtd-sc-date-range {
  font-size: 19px;
  color: #555555;
}

.wtd-sc-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wtd-sc-demo-badge {
  display: inline-block;
  background: var(--wtd-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wtd-sc-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wtd-orange);
  color: #fff !important;
  font-family: var(--wtd-sans);
  font-size: 17px;
  font-weight: 600;
  min-height: 42px;
  padding: 10px 16px;
  border: 1.5px solid var(--wtd-orange);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: filter 0.15s ease;
}

.wtd-sc-cta-primary:hover {
  filter: brightness(0.9);
}

.wtd-sc-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--wtd-text);
  font-family: var(--wtd-sans);
  font-size: 17px;
  font-weight: 600;
  min-height: 42px;
  padding: 10px 16px;
  border: 1.5px solid var(--wtd-border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wtd-sc-cta-secondary:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
}

/* --------------------------------------------------------------------------
   Stats row
   -------------------------------------------------------------------------- */
.wtd-sc-stats {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.wtd-sc-stats--loading {
  min-height: 72px;
}

.wtd-sc-stat-card {
  flex: 1 0 100px;
  border: 1px solid var(--wtd-border);
  border-radius: 10px;
  padding: 14px 12px;
  background: #fff;
}

.wtd-sc-stat-num {
  display: block;
  font-family: var(--wtd-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--wtd-text);
  line-height: 1.1;
}

.wtd-sc-stat-label {
  display: block;
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wtd-text-muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   View toggle
   -------------------------------------------------------------------------- */
.wtd-sc-view-toggle {
  display: inline-flex;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.wtd-sc-view-btn {
  padding: 10px 16px;
  font-size: 17px;
  font-family: var(--wtd-sans);
  font-weight: 500;
  border: none;
  background: #fff;
  color: #555555;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  border-right: 1px solid var(--wtd-border);
}

.wtd-sc-view-btn:last-child {
  border-right: none;
}

.wtd-sc-view-btn:hover {
  background: var(--wtd-bg-soft);
  color: var(--wtd-text);
}

.wtd-sc-view-btn--active {
  background: var(--wtd-navy);
  color: #fff;
}

.wtd-sc-view-btn--active:hover {
  background: var(--wtd-navy);
  color: #fff;
  filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   View container
   -------------------------------------------------------------------------- */
.wtd-sc-view-container {
  width: 100%;
  min-height: 500px;
}

/* --------------------------------------------------------------------------
   Calendar view
   -------------------------------------------------------------------------- */
.wtd-sc-calendar {
  width: 100%;
}

.wtd-sc-cal-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.wtd-sc-cal-nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.wtd-sc-cal-nav-center {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wtd-sc-cal-nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wtd-sc-cal-nav-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--wtd-text);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  padding: 0;
}

.wtd-sc-cal-nav-btn:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
  color: var(--wtd-navy);
}

/* Period button — replaces separate "Current" button + period label */
.wtd-sc-cal-period-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--wtd-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--wtd-text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
  min-width: 200px;
  justify-content: center;
}

.wtd-sc-cal-period-btn:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
}

.wtd-sc-cal-period-text {
  /* inherits from parent button */
}

.wtd-sc-cal-period-return {
  font-size: 16px;
  color: var(--wtd-orange);
  line-height: 1;
  opacity: 0.9;
}

.wtd-sc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #f0f4f8;
  border-top: 1px solid #f0f4f8;
}

.wtd-sc-cal-day-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wtd-text-muted);
  padding: 8px 6px;
  text-align: center;
  border-right: 1px solid #f0f4f8;
  border-bottom: 1px solid #f0f4f8;
  background: var(--wtd-bg-soft);
}

.wtd-sc-cal-cell {
  min-height: 100px;
  border-right: 1px solid #f0f4f8;
  border-bottom: 1px solid #f0f4f8;
  padding: 4px;
  position: relative;
  overflow: hidden;
  background: #fff;
  vertical-align: top;
}

.wtd-sc-cal-cell--today {
  background: var(--wtd-orange-light);
}

.wtd-sc-cal-cell--other-month {
  background: #fafafa;
  opacity: 0.6;
}

.wtd-sc-cal-cell--week-zoom {
  min-height: 160px;
}

.wtd-sc-cal-date-num {
  font-size: 15px;
  font-weight: 500;
  color: var(--wtd-text);
  text-align: right;
  display: block;
  margin-bottom: 4px;
  line-height: 26px;
  min-height: 26px;
}

.wtd-sc-cal-date-num--today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--wtd-orange);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  float: right;
}

/* --------------------------------------------------------------------------
   Trip bars (calendar cells)
   -------------------------------------------------------------------------- */
.wtd-sc-trip-bar {
  display: block;
  height: 24px;
  line-height: 24px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  cursor: pointer;
  transition: filter 0.12s ease;
  position: relative;
  z-index: 1;
  clear: right;
}

/* Header action buttons — Add Event (secondary outline), Add Trip (primary) */
.wtd-sc-btn-add-event,
.wtd-sc-btn-add-trip,
.wtd-sc-btn-build-trip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  font-family: var(--wtd-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
  border-width: 1.5px;
  border-style: solid;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.wtd-sc-btn-add-event {
  background: #fff;
  color: var(--wtd-text);
  border-color: var(--wtd-border);
}

.wtd-sc-btn-add-event:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
}

.wtd-sc-btn-add-trip,
.wtd-sc-btn-build-trip {
  background: var(--wtd-orange);
  color: #fff;
  border-color: var(--wtd-orange);
}

.wtd-sc-btn-add-trip:hover,
.wtd-sc-btn-build-trip:hover {
  filter: brightness(0.9);
}


.wtd-sc-trip-bar:hover {
  filter: brightness(0.9);
}

.wtd-sc-trip-bar--start {
  border-radius: 11px 0 0 11px;
  margin-right: -4px;
}

.wtd-sc-trip-bar--middle {
  border-radius: 0;
  margin-left: -4px;
  margin-right: -4px;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: clip;
  color: transparent;
}

.wtd-sc-trip-bar--end {
  border-radius: 0 11px 11px 0;
  margin-left: -4px;
  padding-left: 2px;
  overflow: hidden;
  text-overflow: clip;
  color: transparent;
}

.wtd-sc-trip-bar--single {
  border-radius: 11px;
}

.wtd-sc-trip-bar--continuation {
  opacity: 0.7;
  border-radius: 0;
  margin-left: -4px;
  margin-right: -4px;
  color: rgba(255,255,255,0.8);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Event chips (calendar cells)
   -------------------------------------------------------------------------- */
.wtd-sc-event-chip {
  display: block;
  height: 20px;
  line-height: 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  cursor: pointer;
  transition: filter 0.12s ease;
}

.wtd-sc-event-chip:hover {
  filter: brightness(0.92);
}

.wtd-sc-event-chip--start {
  border-radius: 4px 0 0 4px;
}

.wtd-sc-event-chip--middle {
  border-radius: 0;
  color: transparent;
  overflow: hidden;
}

.wtd-sc-event-chip--end {
  border-radius: 0 4px 4px 0;
  color: transparent;
  overflow: hidden;
}

.wtd-sc-event-chip--single {
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Table view
   -------------------------------------------------------------------------- */
.wtd-sc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.wtd-sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.wtd-sc-table th {
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wtd-text-muted);
  padding: 12px 14px;
  border-bottom: 2px solid var(--wtd-border);
  text-align: left;
  white-space: nowrap;
  background: #fff;
}

.wtd-sc-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
  color: var(--wtd-text);
  font-size: 16px;
}

.wtd-sc-table tr:hover td {
  background: var(--wtd-bg-soft);
}

.wtd-sc-type-badge {
  display: inline-block;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.wtd-sc-status-badge {
  display: inline-block;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  text-transform: capitalize;
  white-space: nowrap;
}

.wtd-sc-status-badge--confirmed  { background: #dcfce7; color: #166534; }
.wtd-sc-status-badge--draft      { background: #f1f5f9; color: #64748b; }
.wtd-sc-status-badge--completed  { background: #e0e7ff; color: #3730a3; }

/* --------------------------------------------------------------------------
   Drawers
   -------------------------------------------------------------------------- */
.wtd-sc-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  padding: 28px;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.wtd-sc-drawer--open {
  transform: translateX(0);
}

.wtd-sc-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  color: var(--wtd-text);
  padding: 0;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.wtd-sc-drawer-close:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
  color: var(--wtd-navy);
}

.wtd-sc-drawer-title {
  font-family: var(--wtd-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wtd-text);
  margin: 0 0 14px 0;
  padding-right: 48px;
}

.wtd-sc-trip-color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.wtd-sc-trip-color-picker-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wtd-text-muted);
  margin-right: 4px;
}

.wtd-sc-trip-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, border-color 0.12s;
  outline: none;
  flex-shrink: 0;
}

.wtd-sc-trip-color-swatch:hover {
  transform: scale(1.2);
}

.wtd-sc-trip-color-swatch--active {
  border-color: #1a202c;
  box-shadow: 0 0 0 1px #fff inset;
}

.wtd-sc-drawer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.wtd-sc-drawer-meta-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.wtd-sc-drawer-meta-label {
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wtd-text-muted);
  min-width: 96px;
}

.wtd-sc-drawer-meta-value {
  font-size: 16px;
  color: var(--wtd-text);
}

.wtd-sc-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--wtd-border);
  padding-top: 18px;
  margin-top: 18px;
}

.wtd-sc-drawer-action-btn {
  width: 100%;
  min-height: 42px;
  padding: 11px 16px;
  font-family: var(--wtd-sans);
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--wtd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--wtd-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.wtd-sc-drawer-action-btn:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
}

.wtd-sc-drawer-action-btn--danger {
  color: #dc2626;
  border-color: #fecaca;
}

.wtd-sc-drawer-action-btn--danger:hover {
  background: #fef2f2;
}

.wtd-sc-drawer-confirm-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
  color: var(--wtd-text);
}

.wtd-sc-drawer-confirm-strip > span {
  flex: 1;
}

.wtd-sc-drawer-confirm-strip .wtd-sc-drawer-action-btn {
  width: auto;
  flex-shrink: 0;
}

/* Overlapping events section in trip drawer */
.wtd-sc-drawer-overlap-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.wtd-sc-drawer-overlap-title {
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wtd-text-muted);
  margin: 0 0 10px 0;
}

.wtd-sc-drawer-overlap-item {
  font-size: 15px;
  padding: 6px 0;
  color: var(--wtd-text);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.wtd-sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wtd-sc-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.wtd-sc-modal-title {
  font-family: var(--wtd-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wtd-text);
  margin: 0 0 18px 0;
  padding-right: 44px;
}

.wtd-sc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  color: var(--wtd-text);
  padding: 0;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.wtd-sc-modal-close:hover {
  background: var(--wtd-bg-soft);
  border-color: #D0D0D0;
  color: var(--wtd-navy);
}

.wtd-sc-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wtd-sc-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wtd-sc-form-label {
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--wtd-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wtd-sc-form-input,
.wtd-sc-form-select,
.wtd-sc-form-textarea {
  padding: 10px 12px;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--wtd-sans);
  color: var(--wtd-text);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wtd-sc-form-input:focus,
.wtd-sc-form-select:focus,
.wtd-sc-form-textarea:focus {
  outline: none;
  border-color: var(--wtd-orange);
}

.wtd-sc-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.wtd-sc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wtd-sc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* Guide cards in Add Trip modal */
.wtd-sc-guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.wtd-sc-guide-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  position: relative;
}

.wtd-sc-guide-card:hover {
  border-color: var(--wtd-orange);
  background: var(--wtd-orange-light);
}

.wtd-sc-guide-card--selected {
  border-color: var(--wtd-orange);
  background: var(--wtd-orange-light);
}

.wtd-sc-guide-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wtd-navy);
  margin-bottom: 2px;
}

.wtd-sc-guide-card-meta {
  font-size: 12px;
  color: #718096;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wtd-sc-chain-badge {
  display: inline-block;
  background: var(--wtd-navy);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.wtd-sc-modal-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.wtd-sc-modal-search:focus {
  outline: none;
  border-color: var(--wtd-orange);
}

/* --------------------------------------------------------------------------
   Conflict banner
   -------------------------------------------------------------------------- */
.wtd-sc-conflict-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.wtd-sc-conflict-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.wtd-sc-conflict-text {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Toast notification
   -------------------------------------------------------------------------- */
.wtd-sc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--wtd-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.wtd-sc-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Keyboard shortcut overlay
   -------------------------------------------------------------------------- */
.wtd-sc-kbd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wtd-sc-kbd-panel {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

.wtd-sc-kbd-panel h3 {
  font-family: var(--wtd-serif);
  font-size: 1rem;
  color: var(--wtd-navy);
  margin: 0 0 16px 0;
}

.wtd-sc-kbd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 13px;
}

.wtd-sc-kbd-row:last-child {
  border-bottom: none;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  color: var(--wtd-navy);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.wtd-sc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.wtd-sc-empty-illustration {
  width: 200px;
}

.wtd-sc-ei-header {
  background: var(--wtd-navy);
  height: 24px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 4px;
}

.wtd-sc-ei-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.wtd-sc-ei-cell {
  height: 20px;
  border-radius: 3px;
  background: #e2e8f0;
}

.wtd-sc-ei-cell--orange {
  background: var(--wtd-orange);
  opacity: 0.85;
}

.wtd-sc-ei-cell--blue {
  background: #2563eb;
  opacity: 0.75;
}

.wtd-sc-ei-cell--teal {
  background: #0f766e;
  opacity: 0.75;
}

.wtd-sc-empty-heading {
  font-family: var(--wtd-serif);
  font-size: 1.5rem;
  color: var(--wtd-navy);
  margin: 0;
}

.wtd-sc-empty-desc {
  font-size: 15px;
  color: #718096;
  max-width: 420px;
  line-height: 1.6;
  margin: 0;
}

.wtd-sc-empty-cta-note {
  font-size: 13px;
  color: #a0aec0;
}

/* --------------------------------------------------------------------------
   Disclosure (notes toggle)
   -------------------------------------------------------------------------- */
.wtd-sc-disclosure summary {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.wtd-sc-disclosure summary:hover {
  color: var(--wtd-navy);
}

.wtd-sc-disclosure-body {
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .wtd-sc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wtd-sc-drawer {
    width: 100vw;
  }

  .wtd-sc-cal-cell {
    min-height: 60px;
  }

  .wtd-sc-form-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Calendar stop markers
   -------------------------------------------------------------------------- */
.wtd-sc-cal-stop-marker {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #374151;
  padding: 1px 4px;
  margin-top: 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  max-width: 100%;
  overflow: hidden;
  cursor: default;
}

.wtd-sc-cal-stop-marker--layover {
  background: var(--wtd-orange-light);
  border-left: 2px solid var(--wtd-orange);
}

.wtd-sc-cal-stop-marker--pass {
  opacity: 0.55;
  font-size: 9px;
}

.wtd-sc-cal-stop-marker--lay-day {
  background: #fef9c3;
  border-left: 2px solid #ca8a04;
}

/* Multi-day spanning bands */
.wtd-sc-cal-stop-marker--band-start {
  border-radius: 3px 0 0 3px;
  margin-right: -4px;
}

.wtd-sc-cal-stop-marker--band-mid {
  border-radius: 0;
  margin-left: -4px;
  margin-right: -4px;
  padding: 0;
  min-height: 18px;
}

.wtd-sc-cal-stop-marker--band-end {
  border-radius: 0 3px 3px 0;
  margin-left: -4px;
  padding: 0;
  min-height: 18px;
}

.wtd-sc-cal-stop-marker--band-cont {
  border-radius: 0;
  margin-left: -4px;
  margin-right: -4px;
  padding: 0;
  min-height: 18px;
}

.wtd-sc-cal-stop-marker--band-mid,
.wtd-sc-cal-stop-marker--band-end,
.wtd-sc-cal-stop-marker--band-cont {
  border-left: none !important;
}


.wtd-sc-cal-stop-icon-sm {
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
}

.wtd-sc-cal-stop-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.wtd-sc-cal-stop-nights {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--wtd-orange);
  background: rgba(237, 111, 44, 0.15);
  padding: 0 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Drawer aggregates strip
   -------------------------------------------------------------------------- */
.wtd-sc-drawer-agg-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 16px;
  background: var(--wtd-bg-soft);
  border: 1px solid var(--wtd-border);
  border-radius: 10px;
  margin-bottom: 18px;
}

.wtd-sc-drawer-agg-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--wtd-text-muted);
}

.wtd-sc-drawer-agg-num {
  font-family: var(--wtd-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--wtd-text);
}

/* --------------------------------------------------------------------------
   Drawer stop list
   -------------------------------------------------------------------------- */
.wtd-sc-drawer-stops-title {
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wtd-text-muted);
  margin: 0 0 10px 0;
}

.wtd-sc-stop-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wtd-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

.wtd-sc-stop-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4f8;
}

.wtd-sc-stop-row:last-child {
  border-bottom: none;
}

.wtd-sc-stop-icon {
  font-size: 16px;
  text-align: center;
  padding-top: 1px;
}

.wtd-sc-stop-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wtd-sc-stop-name-main {
  font-size: 16px;
  font-weight: 600;
  color: var(--wtd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtd-sc-stop-sub {
  font-size: 13px;
  color: var(--wtd-text-muted);
}

.wtd-sc-stop-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.wtd-sc-stop-nights-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}

.wtd-sc-stop-nights-badge--anchor {
  background: #dbeafe;
  color: #1e40af;
}

.wtd-sc-stop-nights-badge--marina {
  background: #dcfce7;
  color: #166534;
}

.wtd-sc-stop-nights-badge--layover {
  background: rgba(237, 111, 44, 0.12);
  color: var(--wtd-orange);
}

.wtd-sc-stop-nights-badge--lay-day {
  background: #fef9c3;
  color: #854d0e;
}

.wtd-sc-stop-row--lay-day {
  background: #fefce8;
  border-left: 3px solid #ca8a04;
}

.wtd-sc-stop-dist {
  font-size: 10px;
  color: #a0aec0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Table expandable stops
   -------------------------------------------------------------------------- */
.wtd-sc-table-chevron {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: #a0aec0;
  padding: 2px 4px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.12s ease;
  display: inline-flex;
  align-items: center;
}

.wtd-sc-table-chevron:hover {
  color: var(--wtd-navy);
}

.wtd-sc-table-chevron--open {
  transform: rotate(90deg);
  color: var(--wtd-navy);
}

.wtd-sc-stops-subrow td {
  padding: 0 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.wtd-sc-stops-inner {
  padding: 4px 0 4px 0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

/* Table subrow stop rows use drawer styling; give them white bg so type colors pop */
.wtd-sc-stops-inner .wtd-sc-stop-row {
  background: #fff;
  padding-left: 100px;
}

.wtd-sc-stops-inner .wtd-sc-table-wx-stop {
  border-top: none;
  margin-top: 2px;
  padding-top: 0;
}

.wtd-sc-stops-inner .wtd-sc-stop-row--lay-day {
  background: #fefce8;
}

.wtd-sc-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wtd-sc-expand-all-btn {
  font-size: 12px;
  color: #718096;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wtd-sc-expand-all-btn:hover {
  color: var(--wtd-navy);
}

/* --------------------------------------------------------------------------
   Export dropdown
   -------------------------------------------------------------------------- */
.wtd-sc-export-dropdown {
  position: relative;
}

.wtd-sc-export-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 200;
  min-width: 190px;
  overflow: hidden;
}

.wtd-sc-export-menu--open {
  display: block;
}

.wtd-sc-export-menu-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
  white-space: nowrap;
}

.wtd-sc-export-menu-item:hover {
  background: #f8fafc;
  color: var(--wtd-navy);
}

/* --------------------------------------------------------------------------
   Map view
   -------------------------------------------------------------------------- */
.wtd-sc-map-container {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  z-index: 0;
}

.wtd-sc-map-unavailable,
.wtd-sc-map-empty {
  padding: 40px;
  text-align: center;
  color: #a0aec0;
  font-size: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* Markers */
.wtd-sc-map-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.28));
}

.wtd-sc-map-marker-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.wtd-sc-map-marker-num {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.wtd-sc-map-marker-type {
  font-size: 9px;
  line-height: 1;
  margin-top: 1px;
}

.wtd-sc-map-marker-tip {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top-width: 8px;
  border-top-style: solid;
}

.wtd-sc-map-marker-date {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  color: #374151;
  background: rgba(255,255,255,0.92);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 14px;
}

/* Popup */
.wtd-sc-map-popup {
  font-family: inherit;
  padding: 2px 0;
  min-width: 280px;
}

.wtd-sc-map-popup-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 3px;
}

.wtd-sc-map-popup-meta {
  font-size: 11px;
  color: #718096;
  margin-bottom: 5px;
}

.wtd-sc-map-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.wtd-sc-map-popup-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #475569;
}

.wtd-sc-map-popup-trip {
  font-size: 10px;
  color: #a0aec0;
  border-top: 1px solid #f0f4f8;
  padding-top: 5px;
  margin-top: 3px;
}

/* Transit-gap warnings ABOVE the map */
.wtd-sc-map-transit-warn {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wtd-sc-map-transit-row {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.wtd-sc-map-transit-row--impossible {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.wtd-sc-map-transit-row--tight {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Omitted notice */
.wtd-sc-map-omitted {
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 13px;
  color: #92400e;
}

/* ── Trip Builder drawer ─────────────────────────────────────────────────── */

.wtd-sc-builder-name-wrap {
  margin-bottom: 16px;
}

.wtd-sc-builder-name-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}

.wtd-sc-builder-name-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: var(--wtd-navy);
  background: #fff;
  box-sizing: border-box;
}

.wtd-sc-builder-name-input:focus {
  outline: none;
  border-color: var(--wtd-teal, #2892d7);
  box-shadow: 0 0 0 3px rgba(40, 146, 215, 0.12);
}

.wtd-sc-builder-stop-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wtd-sc-builder-stop-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 10px 10px 12px;
  font-size: 13px;
}

.wtd-sc-builder-stop-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.wtd-sc-builder-stop-body {
  flex: 1;
  min-width: 0;
}

.wtd-sc-builder-stop-name {
  font-weight: 600;
  color: var(--wtd-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtd-sc-builder-stop-meta {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.wtd-sc-builder-stop-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: color 0.12s, background 0.12s;
}

.wtd-sc-builder-stop-remove:hover {
  color: #dc2626;
  background: #fef2f2;
}

.wtd-sc-builder-empty {
  text-align: center;
  padding: 24px 0;
  color: #94a3b8;
  font-size: 13px;
}

.wtd-sc-builder-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* Add Stop modal — date + nights inputs */
.wtd-sc-modal-nights {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--wtd-navy);
  background: #fff;
  box-sizing: border-box;
}

.wtd-sc-modal-nights:focus {
  outline: none;
  border-color: var(--wtd-teal, #2892d7);
  box-shadow: 0 0 0 3px rgba(40, 146, 215, 0.12);
}

/* --------------------------------------------------------------------------
   Phase 1 trip modifications
   -------------------------------------------------------------------------- */

/* Editable trip title */
.wtd-sc-drawer-title--editable {
  cursor: pointer;
  transition: opacity 0.12s;
}
.wtd-sc-drawer-title--editable:hover {
  opacity: 0.75;
}
.wtd-sc-drawer-title-input {
  display: block;
  width: 100%;
  font-family: var(--wtd-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wtd-navy);
  border: none;
  border-bottom: 2px solid var(--wtd-orange);
  background: transparent;
  padding: 2px 0 4px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* Jump-to-date section */
.wtd-sc-drawer-jump-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.wtd-sc-drawer-jump-section .wtd-sc-form-label {
  margin-bottom: 6px;
}
.wtd-sc-drawer-jump-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wtd-sc-drawer-jump-row .wtd-sc-form-input {
  flex: 1;
  min-width: 0;
}
.wtd-sc-drawer-jump-warn {
  margin-top: 6px;
  font-size: 12px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 4px 8px;
}

/* Stop row 4-column grid (drawer only, adds actions column) */
.wtd-sc-stop-list .wtd-sc-stop-row {
  grid-template-columns: 20px 1fr auto auto;
}

/* Stop item wrapper for confirm strip positioning */
.wtd-sc-stop-item-wrap {
  border-bottom: 1px solid #f0f4f8;
}
.wtd-sc-stop-item-wrap:last-child {
  border-bottom: none;
}
.wtd-sc-stop-list .wtd-sc-stop-row {
  border-bottom: none;
}

/* Row action buttons — subtle by default, full opacity on hover */
.wtd-sc-stop-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  align-self: center;
  opacity: 0.38;
  transition: opacity 0.15s;
}
.wtd-sc-stop-row:hover .wtd-sc-stop-row-actions,
.wtd-sc-stop-item-wrap:hover .wtd-sc-stop-row-actions {
  opacity: 1;
}

.wtd-sc-stop-row-action-btn {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  color: #64748b;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  flex-shrink: 0;
}
.wtd-sc-stop-row-action-btn:hover {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.wtd-sc-stop-row-action-btn--danger:hover {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

/* Inline nights editor */
.wtd-sc-stop-nights-editor {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.wtd-sc-stop-nights-input {
  width: 52px;
  padding: 4px 6px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  text-align: center;
  color: var(--wtd-navy);
  background: #fff;
}
.wtd-sc-stop-nights-input:focus {
  outline: none;
  border-color: var(--wtd-orange);
  box-shadow: 0 0 0 2px rgba(237,111,44,0.15);
}
.wtd-sc-stop-nights-save,
.wtd-sc-stop-nights-cancel {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.wtd-sc-stop-nights-save {
  background: #dcfce7;
  color: #16a34a;
}
.wtd-sc-stop-nights-save:hover { background: #bbf7d0; }
.wtd-sc-stop-nights-cancel {
  background: #f1f5f9;
  color: #64748b;
}
.wtd-sc-stop-nights-cancel:hover { background: #e2e8f0; }

/* Delete confirmation strip */
.wtd-sc-stop-delete-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px 40px;
  background: #fef2f2;
  font-size: 12px;
  color: #7f1d1d;
}
.wtd-sc-stop-confirm-yes {
  padding: 3px 8px;
  font-size: 11px;
  border: none;
  border-radius: 3px;
  background: #fee2e2;
  color: #dc2626;
  cursor: pointer;
  font-weight: 600;
}
.wtd-sc-stop-confirm-yes:hover { background: #fecaca; }
.wtd-sc-stop-confirm-no {
  padding: 3px 8px;
  font-size: 11px;
  border: none;
  border-radius: 3px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}
.wtd-sc-stop-confirm-no:hover { background: #e2e8f0; }

/* --------------------------------------------------------------------------
   Add-to-trip drawer (standalone guide/marina/anchorage pages)
   -------------------------------------------------------------------------- */

.wtd-sc-add-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 99990;
  display: flex;
  justify-content: flex-end;
}

.wtd-sc-add-drawer {
  width: 360px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--wtd-sans);
}

.wtd-sc-add-drawer--open {
  transform: translateX(0);
}

.wtd-sc-add-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.wtd-sc-add-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wtd-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wtd-sc-add-drawer-title-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.wtd-sc-add-drawer-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.wtd-sc-add-drawer-close:hover {
  background: #f1f5f9;
  color: var(--wtd-navy);
}

.wtd-sc-add-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.wtd-sc-add-drawer-loading {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.wtd-sc-add-drawer-empty {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  padding: 8px 0;
}

.wtd-sc-add-drawer-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
}

.wtd-sc-add-drawer-stop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wtd-sc-add-drawer-stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
}

.wtd-sc-add-drawer-stop-icon {
  font-size: 15px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.wtd-sc-add-drawer-stop-body {
  min-width: 0;
  flex: 1;
}

.wtd-sc-add-drawer-stop-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--wtd-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtd-sc-add-drawer-stop-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Footer (add controls) */
.wtd-sc-add-drawer-footer {
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.wtd-sc-add-drawer-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
  align-self: flex-start;
}

.wtd-sc-add-drawer-shortcut--active,
.wtd-sc-add-drawer-shortcut:hover {
  border-color: var(--wtd-teal, #2892d7);
  color: var(--wtd-teal, #2892d7);
}

.wtd-sc-add-drawer-field-row {
  display: flex;
  gap: 10px;
}

.wtd-sc-add-drawer-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wtd-sc-add-drawer-field--nights {
  flex: 0 0 80px;
}

.wtd-sc-add-drawer-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wtd-sc-add-drawer-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--wtd-navy);
  background: #fff;
  box-sizing: border-box;
  font-family: var(--wtd-sans);
}

.wtd-sc-add-drawer-input:focus {
  outline: none;
  border-color: var(--wtd-teal, #2892d7);
  box-shadow: 0 0 0 3px rgba(40, 146, 215, 0.12);
}

.wtd-sc-add-drawer-conflict {
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 6px 10px;
}

.wtd-sc-add-drawer-transit {
  font-size: 12px;
  border-radius: 5px;
  padding: 6px 10px;
  line-height: 1.4;
}

.wtd-sc-add-drawer-transit--impossible {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.wtd-sc-add-drawer-transit--tight {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.wtd-sc-add-drawer-transit--omission {
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   Table view — per-stop inline weather
   -------------------------------------------------------------------------- */
.wtd-sc-table-wx-stop {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f0f4f8;
  display: flex;
  flex-direction: column;
  gap: 1px;
}


.wtd-sc-table-wx-nofx {
  font-size: 11px;
  color: #a0aec0;
  font-style: italic;
}

.wtd-sc-table-wx-day-row {
  font-size: 11px;
  color: #4a5568;
  line-height: 1.5;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Map popup — inline weather (v1.2.57)
   -------------------------------------------------------------------------- */
.wtd-sc-map-popup-wx {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e8edf2;
  font-size: 11px;
  color: #4a5568;
}

.wtd-sc-map-popup-wx-day {
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
}

.wtd-sc-map-popup-wx-date {
  color: #718096;
  margin-right: 4px;
}

.wtd-sc-map-popup-wx-pop {
  color: #2b6cb0;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Transit gap rows — table view (1c)
   -------------------------------------------------------------------------- */
.wtd-sc-transit-gap-row td {
  border-bottom: none;
}

.wtd-sc-transit-gap-row:hover td {
  background: transparent;
}

/* --------------------------------------------------------------------------
   Transit gap pills — calendar view (1c)
   -------------------------------------------------------------------------- */
.wtd-sc-cal-transit-pill {
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.wtd-sc-cal-transit-pill--impossible {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.wtd-sc-cal-transit-pill--tight {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   Next Up view — colored trip card surfacing the underway / next-future trip.
   Markup is produced by renderNextUpView() in season-calendar.js and matches
   the standalone wtd_next_trip_card Elementor widget so the experience is
   identical between the season page and any widget embed.
   ========================================================================== */

.wtd-sc-next-up {
  display: block;
  padding-top: 4px;
}

/* Multi-trip stacked list — populated by renderNextUpView. The first
   NEXT_UP_PAGE_SIZE cards render up front; "Load more" appends in batches. */
.wtd-sc-next-up-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wtd-sc-next-up-load-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.wtd-sc-next-up-load-more-btn {
  min-width: 220px;
}

.wtd-next-trip {
  background: #fff;
  border: 1px solid var(--wtd-border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 6px 1fr;
  min-width: 0;
  transition: filter 0.15s ease;
}

.wtd-next-trip:hover {
  filter: brightness(0.99);
}

.wtd-next-trip--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 28px;
  gap: 18px;
  color: #555555;
  font-size: 17px;
  font-style: italic;
  grid-template-columns: 1fr;
}

.wtd-next-trip__empty-msg {
  margin: 0;
  max-width: 480px;
  font-style: italic;
  font-size: 17px;
  color: #555555;
}

.wtd-next-trip__empty-cta {
  font-style: normal;
}

.wtd-next-trip__bar {
  /* background color is set inline per-trip */
}

.wtd-next-trip__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Header row (eyebrow / title / meta + status pill) ──────────────── */
.wtd-next-trip__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.wtd-next-trip__title-group {
  min-width: 0;
}

.wtd-next-trip__eyebrow {
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wtd-text-muted);
  margin: 0 0 6px;
}

.wtd-next-trip__title {
  font-family: var(--wtd-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wtd-text);
  margin: 0 0 6px;
}

.wtd-next-trip__meta {
  font-size: 17px;
  color: #555555;
  margin: 0;
}

.wtd-next-trip__status {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  font-family: var(--wtd-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Stop timeline ─────────────────────────────────────────────────── */
.wtd-next-trip__timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--wtd-border);
  flex-wrap: wrap;
}

.wtd-next-trip__stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.wtd-next-trip__stop-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wtd-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
}

.wtd-next-trip__stop-name {
  font-size: 12px;
  color: #555555;
  margin: 0;
  font-weight: 500;
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtd-next-trip__stop-nights {
  font-size: 11px;
  color: var(--wtd-teal);
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.wtd-next-trip__stop-connector {
  height: 1px;
  background: #D0D0D0;
  flex: 1 1 12px;
  min-width: 12px;
  margin-top: 16px; /* visually aligned with center of 32px icon */
  align-self: flex-start;
}

/* ─── Outlook callout ───────────────────────────────────────────────── */
.wtd-next-trip__outlook {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--wtd-bg-soft);
  border-radius: 8px;
  color: #555555;
}

.wtd-next-trip__outlook-icon {
  flex-shrink: 0;
  color: #555555;
  display: inline-flex;
}

.wtd-next-trip__outlook-text {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

/* ─── Mobile adjustments ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .wtd-next-trip__body {
    padding: 18px 20px;
  }
  .wtd-next-trip__title {
    font-size: 22px;
  }
  .wtd-next-trip__stop-name {
    max-width: 70px;
  }
}

/* --------------------------------------------------------------------------
   Transit summary section — trip drawer (1d)
   -------------------------------------------------------------------------- */
.wtd-sc-drawer-transit-section {
  padding: 12px 16px;
  border-top: 1px solid #f0f4f8;
}

.wtd-sc-drawer-transit-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #718096;
  margin: 0 0 8px;
}

.wtd-sc-drawer-transit-direction {
  font-size: 11px;
  color: #94a3b8;
  margin: 8px 0 4px;
  font-style: italic;
}

.wtd-sc-drawer-transit-section .wtd-sc-add-drawer-transit {
  margin-bottom: 6px;
}

.wtd-sc-add-drawer-add-btn {
  width: 100%;
}

@media (max-width: 480px) {
  .wtd-sc-add-drawer {
    width: 100vw;
  }
}
