/* ==========================================================================
   Travel · Editorial Atlas Viewer & Cartography Styles
   ========================================================================== */

.atlas-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-app);
  padding-bottom: 120px; /* Generous breathing room so content never hides under date dock */
}

/* Atlas Top Bar */
.atlas-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 60px;
  background: rgba(251, 251, 253, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  width: 100%;
}

[data-theme="dark"] .atlas-topbar {
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.atlas-topbar .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  width: 100%;
}

.topbar-sep {
  color: var(--border-line, rgba(0, 0, 0, 0.15));
  font-size: 16px;
  font-weight: 300;
  margin: 0 4px;
  user-select: none;
}

[data-theme="dark"] .topbar-sep {
  color: rgba(255, 255, 255, 0.2);
}

.atlas-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandmark-badge {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.atlas-brand-meta {
  display: flex;
  align-items: center;
  max-width: 480px;
  overflow: hidden;
}

.atlas-brand-meta small {
  display: none;
}

.atlas-brand-meta strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.15s ease;
}

.atlas-brand-meta strong:hover {
  color: var(--text-main);
}

.atlas-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Atlas Main Content */
.atlas-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 24px 40px;
}

/* Intro Section */
.atlas-intro {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.atlas-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

.atlas-subtitle {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.5;
}

.atlas-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-top: 8px;
  width: fit-content;
}

.atlas-tab {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.atlas-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Hero Panoramic Banner */
.atlas-hero {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #ffffff;
}

.atlas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.atlas-hero-content {
  position: relative;
  z-index: 2;
}

.atlas-hero-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.atlas-hero-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.btn-change-cover {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-change-cover:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Interactive Cartography & Itinerary Grid */
.atlas-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.atlas-content-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Map Section */
.atlas-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.map-card-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
}

.map-card-head h3 {
  font-size: 17px;
  font-weight: 700;
}

.map-card-head .map-head-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.map-frame {
  width: 100%;
  height: 520px;
  background: #eae8e1;
  position: relative;
  z-index: 1;
}

.map-card-foot {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  font-size: 12px;
  color: var(--text-tertiary);
}

.map-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

/* Custom Leaflet Map Markers */
.custom-atlas-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.custom-atlas-pin:hover {
  transform: scale(1.2);
}

/* Aside Itinerary List */
.atlas-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.aside-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.aside-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.aside-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Method of Transportation Card */
.day-transit-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-left: 3.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.day-transit-box .transit-icon {
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
}

.day-transit-box .transit-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-transit-box .transit-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.day-transit-box strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.day-transit-box small {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hotel / Stay Card */
.stay-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stay-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.stay-icon-svg {
  display: block;
  width: 18px;
  height: 18px;
}

.stay-details strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.stay-details small {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Stops List */
.stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.stop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.stop-row:hover {
  border-color: var(--border-card);
  background: var(--bg-subtle);
  transform: translateX(2px);
}

.stop-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stop-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.stop-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.stop-info small {
  font-size: 12px;
  color: var(--text-secondary);
}

.stop-chevron {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Advice / Insider Box */
.advice-box {
  background: #fdfbf7;
  border: 1px solid #ebdcc5;
  border-left: 4px solid #b7791f;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #3f392f;
  margin-bottom: 20px;
}

[data-theme="dark"] .advice-box {
  background: #1a1712;
  border-color: #3e3323;
  border-left-color: #d97706;
  color: #e5dec9;
}

.advice-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b7791f;
  margin-bottom: 4px;
  display: block;
}

/* Small Photo Gallery under Advice Box (Montenegro / Decks style) */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

/* 2-Column Accommodations Grid */
.accommodations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stay-box.compact-stay {
  margin-bottom: 0;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stay-box.compact-stay .stay-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.stay-box.compact-stay .stay-details strong {
  font-size: 13px;
  line-height: 1.3;
  display: block;
}

.stay-box.compact-stay .stay-details small {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

/* Logistics Chips */
.logistics-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logistics-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.logistics-icon {
  font-size: 16px;
}

/* Floating Date Dock (Bottom) - Fixed Clipping & Scroll */
.date-dock {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: -moz-max-content;
  width: max-content;
  max-width: min(1280px, calc(100vw - 32px));
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 6px 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  box-sizing: border-box;
  overflow: hidden;
  gap: 6px;
}

.dock-nav-arrow {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dock-nav-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.dock-nav-arrow:disabled,
.dock-nav-arrow.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.datebar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 8px;
  scroll-padding: 0 16px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-width: 0;
}

.datebar::-webkit-scrollbar {
  display: none;
}

.date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}

.date-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.date-pill.selected {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.4);
}

.date-pill.overview-pill {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 18px;
  margin-right: 6px;
}

.date-pill b {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.date-pill small {
  font-size: 10.5px;
  opacity: 0.85;
}

/* ==========================================================================
   AI Copilot Drawer ("Talk to your Guide")
   ========================================================================== */

.ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-modal);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-sparkle {
  color: var(--accent);
  font-size: 18px;
}

.drawer-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
}

.drawer-title-wrap p {
  font-size: 12px;
  color: var(--text-tertiary);
}

.drawer-chat-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.quick-prompt-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.quick-prompt-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.drawer-chat-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-prompt-btn {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.quick-prompt-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.drawer-composer-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.drawer-composer-card:focus-within {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.drawer-composer-textarea {
  width: 100%;
  min-height: 52px;
  max-height: 140px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-main);
  resize: none;
  padding: 0;
  margin-bottom: 8px;
}

.drawer-composer-textarea::placeholder {
  color: var(--text-tertiary);
  font-size: 13px;
}

.drawer-composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .drawer-composer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.drawer-composer-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  user-select: none;
}

.btn-composer-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-composer-send:hover {
  background: #0077ed;
  transform: scale(1.05);
}

.btn-composer-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Desktop Gallery under Map */
.atlas-left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atlas-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* Estimated Budget Card (Under Images on Left Column) */
.atlas-budget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.atlas-budget-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.atlas-budget-head .budget-head-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0071e3;
  font-weight: 700;
  margin-bottom: 3px;
}

.atlas-budget-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.atlas-budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.atlas-budget-item {
  background: rgba(0, 113, 227, 0.03);
  border: 1px solid rgba(0, 113, 227, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

[data-theme="dark"] .atlas-budget-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.atlas-budget-item .b-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
}

.atlas-budget-item .b-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .atlas-budget-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .atlas-budget-card {
    padding: 16px 16px;
  }
}

.atlas-gallery-header {
  margin-bottom: 8px;
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
}

/* ==========================================================================
   Interactive Photo Slideshow Lightbox
   ========================================================================== */
.slideshow-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
  user-select: none;
}

.slideshow-topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.slideshow-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.slideshow-caption {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  max-width: 60%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slideshow-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.slideshow-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.slideshow-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.slideshow-img-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.slideshow-img-wrap img {
  max-width: 90%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slideshow-nav {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
  flex-shrink: 0;
}

.slideshow-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .slideshow-stage {
    padding: 10px;
  }
  .slideshow-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .slideshow-img-wrap img {
    max-width: 98%;
    max-height: 75vh;
  }
}

/* Button Text Visibility (Responsive) */
.btn-text-short {
  display: none;
}
.btn-text-full {
  display: inline-flex;
  align-items: center;
}

/* Luggage Counter Pill Badge */
.luggage-counter-badge {
  font-size: 10px;
  font-weight: 700;
  background: #0071e3;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  line-height: 1.3;
  display: inline-block;
}

/* ==========================================================================
   Luggage & Packing Checklist UI
   ========================================================================== */
.luggage-category-block {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.luggage-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
}

.luggage-category-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.luggage-category-count {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.luggage-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.luggage-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.luggage-item-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .luggage-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.luggage-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.luggage-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #0071e3;
  cursor: pointer;
  flex-shrink: 0;
}

.luggage-item-name {
  font-size: 13px;
  color: var(--text-main);
  transition: color 0.15s ease, text-decoration 0.15s ease;
  word-break: break-word;
}

.luggage-item-row.is-packed .luggage-item-name {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.luggage-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.luggage-item-row:hover .luggage-item-actions {
  opacity: 1;
}

.btn-luggage-icon {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}

.btn-luggage-icon:hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.06);
}

.btn-luggage-icon.btn-del-item:hover {
  color: #dc2626;
  background: rgba(220,38,38,0.1);
}

.luggage-add-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
}

.luggage-add-input {
  flex: 1;
  height: 28px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-app);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
}

.luggage-add-input:focus {
  border-color: #0071e3;
}

.btn-luggage-add {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
}

.btn-luggage-add:hover {
  border-color: #0071e3;
  color: #0071e3;
}

/* ==========================================================================
   Responsive Overrides (Mobile Cartography & Topbar Fixes)
   ========================================================================== */

@media (max-width: 992px) {
  .atlas-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .map-frame {
    height: 380px;
  }
  .atlas-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal screen expansion from header */
  .atlas-topbar .header-inner {
    padding: 0 10px;
    gap: 6px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .atlas-topbar .header-left {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
  }
  .atlas-topbar .header-left .topbar-sep {
    display: none;
  }
  .atlas-topbar .header-left .atlas-brand-meta {
    display: none; /* Hide trip title in topbar on mobile since hero shows it right below */
  }
  .atlas-topbar .header-right {
    flex-shrink: 1;
    min-width: 0;
    gap: 4px;
  }
  .btn-text-full {
    display: none !important;
  }
  .btn-text-short {
    display: inline-flex !important;
    align-items: center;
  }
  .btn-atlas-action {
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    min-width: 32px;
    justify-content: center;
  }

  /* Cartography & Page Layout on Mobile */
  .atlas-container {
    padding: 12px 12px 36px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .atlas-map-card {
    border-radius: 12px;
  }
  .map-card-head {
    padding: 12px 14px;
  }
  .map-card-head h3 {
    font-size: 15px;
  }
  .map-frame {
    height: 320px;
  }
  .map-card-foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 6px;
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .gallery-thumb {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .accommodations-grid {
    grid-template-columns: 1fr;
  }
  .date-dock {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    bottom: 12px;
    padding: 4px;
  }
  .datebar {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }
}


/* =============================================================================
   WEATHER, FOOD, TRAVEL INTEL & DETAILED HOURLY SCHEDULE (NATIVE ATLAS STYLING)
   ============================================================================= */

/* Weather Card (Overview) */
.weather-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.weather-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.weather-card-eyebrow {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 700;
}

.weather-badge-live {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.weather-badge-seasonal {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
}

.weather-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.weather-metric-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.weather-metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.weather-metric-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.weather-clothing-box {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  margin-top: 10px;
}

/* Day Weather Banner */
.day-weather-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-weather-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-weather-banner-icon {
  font-size: 18px;
}

.day-weather-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.day-weather-banner-pill {
  font-size: 11px;
  font-weight: 600;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

/* Day Weather Strip & Chips */
.day-weather-strip-container {
  margin-bottom: 14px;
}

.day-weather-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.day-weather-mini-chip {
  flex-shrink: 0;
  min-width: 66px;
  padding: 6px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 11px;
  transition: all 0.15s ease;
}

.day-weather-mini-chip.active-day {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.06);
}

/* Multi-column layout for Travel Intel */
.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.intel-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.intel-col-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  box-sizing: border-box;
}

.intel-col-card.intel-col-full {
  grid-column: 1 / -1;
}

.intel-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-hairline);
}

.intel-col-content {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.intel-col-content strong {
  color: var(--text-main);
  font-weight: 600;
}

.intel-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.intel-quick-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intel-quick-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.intel-quick-val {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
  min-width: 0;
}

.intel-quick-val strong {
  color: var(--text-main);
  font-weight: 600;
}

@media (max-width: 540px) {
  .intel-columns-grid {
    grid-template-columns: 1fr;
  }
  .intel-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* Curated Dining & Refreshments (matches stop-row & stay-box) */
.dining-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  gap: 10px;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}

.dining-item-card:hover {
  border-color: rgba(0, 113, 227, 0.3);
  background: var(--bg-elevated);
}

.dining-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dining-slot-pill {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  width: 58px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.dining-item-details {
  min-width: 0;
}

.dining-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dining-item-type {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.dining-item-note {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dining-maps-link {
  color: #0071e3;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dining-maps-link:hover {
  background: rgba(0, 113, 227, 0.12);
}

/* Regional Food on Day Page */
.day-food-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.day-dish-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.day-dish-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.day-dish-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.day-dish-info small {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Detailed Schedule Modal Sheet (Site-cohesive styling) */
.detailed-schedule-sheet {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-hairline) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.ds-modal-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  gap: 16px;
  flex-shrink: 0;
}

.ds-modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #0071e3;
  animation: dsPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes dsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.ds-modal-body {
  overflow-y: auto;
  padding: 24px 28px 40px;
  background: var(--bg-subtle);
  flex: 1;
}

.ds-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.ds-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.ds-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.ds-hero-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.ds-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 680px) {
  .ds-metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ds-metric-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.ds-metric-cell-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.ds-metric-cell-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.ds-metric-cell-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Map Frame */
.ds-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.ds-map-frame {
  height: 380px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

/* Timeline Step Cards */
.ds-timeline-container {
  margin-bottom: 24px;
}

.ds-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ds-step-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
  gap: 12px;
  flex-wrap: wrap;
}

.ds-step-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

.ds-step-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0071e3;
}

.ds-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1px;
}

.ds-step-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ds-time-chip {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
}

.ds-step-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 14px;
}

@media (min-width: 768px) {
  .ds-step-body {
    grid-template-columns: 2fr 1fr;
  }
}

.ds-step-narrative {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ds-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ds-step-tag {
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
}

.ds-tip-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid #0071e3;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ds-tip-box-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0071e3;
}

.ds-tip-box-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

.ds-briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.ds-briefing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 24px;
}

/* Detailed Schedule Culinary Breaks */
.ds-dining-section {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.ds-dining-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ds-dining-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.ds-dining-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ds-dining-card-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0071e3;
}

.ds-dining-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.ds-dining-card-type {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-tertiary);
}

.ds-dining-card-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Print Overrides */
@media print {
  body * {
    visibility: hidden;
  }
  #detailedScheduleModal,
  #detailedScheduleModal * {
    visibility: visible;
  }
  #detailedScheduleModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
  }
  .detailed-schedule-sheet {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
  .ds-modal-header,
  .modal-close-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Ecosystem Unified Footer (Matching adrianzanfir.com and Next.js Shell)
   ========================================================================== */
.atlas-ecosystem-footer {
  margin-top: 64px;
  margin-bottom: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.atlas-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.atlas-footer-brand-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.atlas-footer-brand-link {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.atlas-footer-brand-link:hover {
  color: #65a30d;
}

.atlas-footer-sep {
  color: var(--text-tertiary);
  font-weight: 300;
}

.atlas-footer-tag {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: none;
}

.atlas-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  max-width: 360px;
  color: var(--text-secondary);
}

.atlas-footer-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.atlas-footer-return-btn:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
}

.atlas-footer-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.atlas-footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.atlas-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.atlas-footer-col a:hover {
  color: var(--text-main);
}

.atlas-footer-sublinks {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.atlas-footer-sublinks a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.atlas-footer-sublinks a:hover {
  color: var(--text-main);
}

@media (max-width: 860px) {
  .atlas-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
