/* AI Travel Assistant - Sally */
/* Cool Digital teal branding */

:root {
  --primary: #065861;
  --primary-light: #09adae;
  --primary-dark: #044951;
  --accent: #007480;
  --alert: #ff5a5f;
  --bg-white: #ffffff;
  --bg-light: #eff4f4;
  --bg-teal-light: #d9ebeb;
  --bg-chat: #e9f6f6;
  --text-dark: #212529;
  --text-medium: #484848;
  --text-light: #6c757d;
  --border: #c3cccb;
  --border-light: #e4e9ea;
  --shadow: 0 2px 8px rgba(6, 88, 97, 0.1);
  --shadow-lg: 0 4px 20px rgba(6, 88, 97, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: var(--bg-white);
}

/* Header */
.app-header {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.new-chat-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.new-chat-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Chat Container */
.chat-container {
  flex: 1 1 0;
  min-height: 0; /* Required for flex child scrolling */
  max-height: 100%; /* Don't grow beyond parent */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-chat);
}

/* Messages Area */
.messages {
  flex: 1 1 0; /* flex-grow, flex-shrink, flex-basis */
  min-height: 0; /* Required for flex child scrolling */
  overflow-y: auto;
  padding: 1.5rem;
}

.messages > * {
  margin-bottom: 1rem;
}

.messages > *:last-child {
  margin-bottom: 0;
}

/* Welcome Message */
.welcome-message {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-medium);
}

.welcome-message h2 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.welcome-message p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.welcome-message ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.welcome-message li {
  background: var(--bg-white);
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
  color: var(--text-medium);
  font-size: 0.95rem;
}

.welcome-message li:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Sample queries section */
.sample-queries {
  margin-bottom: 1.5rem !important;
}

.sample-advanced {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem !important;
}

.sample-query.featured {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-teal-light) 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.sample-query.featured em {
  display: block;
  font-style: italic;
}

.sample-query.featured:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Message Bubbles */
.message {
  display: flex;
  max-width: 80%;
}

.message.user {
  align-self: flex-end;
}

.message.assistant {
  align-self: flex-start;
}

/* Messages containing destination sections need full width and vertical stacking */
.message.assistant:has(.destination-section) {
  display: block;
  max-width: 100%;
  width: 100%;
  background: var(--bg-white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: visible;
  flex-shrink: 0; /* Prevent flex from collapsing this */
}

.message-content {
  padding: 0.875rem 1.125rem;
  border-radius: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.message.user .message-content {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
  background: var(--bg-white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}

/* Formatted content in assistant messages */
.message.assistant .message-content p {
  margin: 0 0 0.75rem 0;
}

.message.assistant .message-content p:last-child {
  margin-bottom: 0;
}

.message.assistant .message-content strong {
  color: var(--primary);
  font-weight: 600;
}

.message.assistant .message-content h1,
.message.assistant .message-content h2,
.message.assistant .message-content h3 {
  color: var(--primary);
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

.message.assistant .message-content h1:first-child,
.message.assistant .message-content h2:first-child,
.message.assistant .message-content h3:first-child {
  margin-top: 0;
}

.message.assistant .message-content ul,
.message.assistant .message-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message.assistant .message-content li {
  margin: 0.35rem 0;
  color: var(--text-medium);
}

.message.assistant .message-content a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

.message.assistant .message-content a:hover {
  text-decoration: underline;
}

/* Images in messages */
.message.assistant .message-content img {
  max-width: 100%;
  max-height: 250px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
  object-fit: cover;
  display: block;
}

/* Typing Indicator */
.message.typing .message-content {
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Progress text in typing indicator */
.progress-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Chat Input - fixed at bottom of conversation layout */
.chat-input-form {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.input-wrapper {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-light);
  border-radius: 25px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border: 2px solid var(--border-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(9, 173, 174, 0.15);
}

#messageInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1rem;
  outline: none;
}

#messageInput::placeholder {
  color: var(--text-light);
}

#sendBtn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--alert);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#sendBtn:hover:not(:disabled) {
  background: #e04e53;
  transform: scale(1.05);
}

#sendBtn:active:not(:disabled) {
  transform: scale(0.95);
}

#sendBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.app-footer {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.app-footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

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

/* Scrollbar Styling */
.messages::-webkit-scrollbar {
  width: 6px;
}

.messages::-webkit-scrollbar-track {
  background: transparent;
}

.messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ===================== */
/* Destination Sections  */
/* ===================== */

.destination-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  position: relative;
}

.destination-section:last-child {
  border-bottom: none;
}

/* Full-width sections (intro/conclusion with no flights) */
.destination-section.full-width-section {
  grid-template-columns: 1fr;
}

.destination-section.full-width-section .destination-flights {
  display: none;
}

.destination-narrative {
  min-width: 0;
}

.destination-narrative h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.destination-narrative p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.destination-narrative img {
  float: left;
  max-width: 200px;
  max-height: 150px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin: 0.25rem 1rem 0.5rem 0;
  object-fit: cover;
}

.destination-flights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Itinerary Group Header */
.itinerary-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-light);
}

/* ============== */
/* Flight Cards   */
/* ============== */

/* Vertical card layout */
.flight-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flight-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

/* Header: badge left, rating right */
.flight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flight-badges {
  display: flex;
  gap: 0.25rem;
}

.flight-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.flight-badge.best {
  background: var(--alert);
  color: white;
}

.flight-badge.cheapest {
  background: var(--primary-light);
  color: white;
}

.flight-badge.fastest {
  background: var(--primary);
  color: white;
}

.flight-rating-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* Body: airline info + legs */
.flight-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Airline header */
.flight-airline-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Flight legs */
.flight-legs {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Leg section: label + segment rows */
.flight-leg-section {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.flight-leg-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Each segment row: dep → duration → arr */
.flight-seg-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* Per-segment cabin class (shown only when mixed) */
.seg-cabin {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 500;
  margin-left: auto;
}

.flight-leg-departure,
.flight-leg-arrival {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
}

.leg-time {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.leg-airport {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.15rem;
}

.leg-date {
  font-size: 0.65rem;
  color: var(--text-light);
  opacity: 0.8;
}

/* Arrow between times */
.flight-leg-duration {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
  font-size: 0.75rem;
}

.flight-leg-duration::before {
  content: '→';
  font-size: 0.85rem;
}

.duration-line {
  display: none;
}

.duration-text {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* Price + action */
.flight-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.flight-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.flight-view-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--alert);
  text-decoration: none;
  cursor: pointer;
}

.flight-view-btn:hover {
  text-decoration: underline;
}

/* Footer: baggage + view details link */
.flight-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-light);
  padding-top: 0.375rem;
  border-top: 1px solid var(--border-light);
}


.flight-refund {
  display: none; /* Hide refund status */
}

.flight-bags::before {
  content: '🧳 ';
}

/* No Results Message */
.no-results-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  color: var(--text-medium);
}

.no-results-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.no-results-message p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive - destination sections */
@media (max-width: 768px) {
  .destination-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .destination-flights {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 600px) {
  .message {
    max-width: 90%;
  }

  .welcome-message {
    padding: 2rem 1rem;
  }

  .app-header {
    padding: 0.875rem 1rem;
  }

  .chat-input-form {
    padding: 0.75rem 1rem;
  }
}

/* ==================== */
/* Basket Sidebar       */
/* ==================== */

.basket-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100vh;
  background: var(--bg-white);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(6, 88, 97, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.basket-sidebar.visible {
  transform: translateX(0);
}

.basket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: white;
}

.basket-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.basket-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.basket-close-btn:hover {
  opacity: 1;
}

.basket-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.basket-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

/* Individual basket item */
.basket-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.875rem;
  box-shadow: var(--shadow);
}

.basket-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.basket-item-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.basket-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.basket-item-remove:hover {
  color: var(--alert);
}

.basket-item-airline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.basket-item-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-bottom: 0.375rem;
  padding: 0.375rem;
  background: var(--bg-light);
  border-radius: 6px;
}

.basket-item-direction {
  font-weight: 600;
  color: var(--primary);
  width: 100%;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.basket-item-times {
  font-weight: 500;
  color: var(--text-dark);
}

.basket-item-date {
  color: var(--text-light);
}

.basket-item-duration {
  color: var(--text-light);
  font-size: 0.75rem;
}

.basket-item-baggage {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.basket-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* Basket total */
.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.basket-total-label {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.basket-total-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.basket-checkout-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--alert);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.basket-checkout-btn:hover:not(:disabled) {
  background: #e04e53;
}

.basket-checkout-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.basket-checkout-btn:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
}

/* Adjust chat container when basket is visible */
@media (min-width: 769px) {
  body:has(.basket-sidebar.visible) .chat-container {
    margin-right: 360px;
    transition: margin-right 0.3s ease;
  }
}

/* Mobile basket */
@media (max-width: 768px) {
  .basket-sidebar {
    width: 100%;
  }
}

/* ========================== */
/* Itinerary (inline in results) */
/* ========================== */

.itinerary-section {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.itinerary-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.itinerary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.itinerary-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.itinerary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.itinerary-total-label {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.itinerary-total-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.itinerary-delta {
  font-size: 0.85em;
  margin-left: 6px;
}
.delta-up { color: #c0392b; }
.delta-down { color: #27ae60; }

.package-group {
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
}
.package-group-header {
  font-weight: 600;
  margin-bottom: 8px;
}
.package-group-price {
  text-align: right;
  font-weight: 600;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light, #f0f0f0);
  color: var(--primary);
}

.basket-package-leg {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.basket-package-leg:last-child { border-bottom: none; }
.basket-package-leg-dest {
  font-weight: 600;
  margin-bottom: 2px;
}
.basket-package-leg-ground {
  font-size: 0.85rem;
  color: var(--text-medium, #666);
}
.basket-package-leg-room {
  font-size: 0.8rem;
  color: var(--text-light, #999);
}

.itinerary-checkout-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--alert);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.itinerary-checkout-btn:hover:not(:disabled) {
  background: #e04e53;
}

.itinerary-checkout-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.itinerary-checkout-btn:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
}

/* ========================== */
/* Basket Tabs (Itinerary / Components) */
/* ========================== */

.basket-tabs {
  margin-bottom: 0.5rem;
}

.basket-tab-buttons {
  display: flex;
  background: var(--bg-light);
  border-bottom: 2px solid var(--border-light);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.basket-tab-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-medium);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.basket-tab-btn:hover {
  background: var(--bg-white);
  color: var(--text-dark);
}

.basket-tab-btn.active {
  background: var(--bg-white);
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.basket-tab-content {
  background: var(--bg-white);
}

.basket-tab-panel {
  display: none;
  padding: 0.75rem 0;
}

.basket-tab-panel.active {
  display: block;
}

/* ========================== */
/* Itinerary Timeline          */
/* ========================== */

.itinerary-empty {
  text-align: center;
  color: var(--text-light);
  padding: 1.5rem;
  font-size: 0.9rem;
}

.itinerary-day {
  margin-bottom: 0.75rem;
}

.itinerary-day:last-child {
  margin-bottom: 0;
}

.itinerary-day-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
}

.itinerary-event {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.itinerary-event:hover {
  background: var(--bg-light);
}

.itinerary-event-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.itinerary-event-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.itinerary-event-time {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 3rem;
}

.itinerary-event-label {
  color: var(--text-dark);
  font-weight: 500;
}

.itinerary-event-detail {
  color: var(--text-light);
  font-size: 0.75rem;
  width: 100%;
}

.itinerary-event-checkin .itinerary-event-label,
.itinerary-event-checkout .itinerary-event-label {
  color: var(--secondary, #2e7d32);
}

.itinerary-event-embark .itinerary-event-label,
.itinerary-event-disembark .itinerary-event-label {
  color: var(--info, #1565c0);
}

/* ========================== */
/* Enhanced Itinerary: Hotel check-in card */
/* ========================== */

.itin-hotel-card {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
  width: 100%;
  background: var(--bg-light);
  border-radius: 6px;
  padding: 0.5rem;
}

.itin-hotel-img {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.itin-hotel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itin-hotel-info {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.itin-hotel-name {
  font-weight: 600;
  color: var(--text-dark);
}

.itin-hotel-stars {
  color: #f5a623;
  font-size: 0.7rem;
}

.itin-hotel-room {
  color: var(--text-medium);
}

.itin-hotel-address {
  color: var(--text-light);
  font-size: 0.7rem;
}

/* ========================== */
/* Component Cards (basket Components tab) */
/* ========================== */

.comp-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.comp-card-header {
  margin-bottom: 0.5rem;
}

.comp-card-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comp-card-airline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Flight component legs */
.comp-flight-leg {
  border-top: 1px solid var(--border-light);
  padding: 0.5rem 0;
}

.comp-flight-leg-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.comp-flight-no {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.comp-flight-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comp-flight-endpoint {
  flex: 1;
  min-width: 0;
}

.comp-flight-endpoint:last-child {
  text-align: right;
}

.comp-flight-time {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.comp-flight-airport {
  display: block;
  font-size: 0.72rem;
  color: var(--text-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-flight-date {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
}

.comp-flight-arrow {
  flex-shrink: 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.7rem;
  line-height: 1.3;
}

.comp-flight-duration {
  display: block;
}

.comp-flight-stops {
  display: block;
  font-size: 0.65rem;
  color: var(--text-light);
}

.comp-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.comp-card-baggage {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.comp-card-link {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.comp-card-link:hover {
  text-decoration: underline;
}

/* Hotel component card */
.comp-hotel-image {
  border-radius: 6px;
  overflow: hidden;
  max-height: 140px;
  margin-bottom: 0.5rem;
}

.comp-hotel-image img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
}

.comp-hotel-details {
  font-size: 0.8rem;
}

.comp-hotel-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.comp-hotel-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.comp-hotel-location {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.125rem;
}

.comp-hotel-address {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.comp-hotel-review {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-bottom: 0.25rem;
}

.comp-hotel-stay-info {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-bottom: 0.25rem;
}

.comp-hotel-room-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.comp-card-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ========================== */
/* Conversation Layout         */
/* Single scrolling view with chat + results aligned */
/* ========================== */

.conversation-layout {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-chat);
}

.conversation-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.conversation-content {
  max-width: 1400px;
  margin: 0 auto;
}

/* Each conversation turn: user question + assistant response + results */
.conversation-turn {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Always two-column: chat left, results right */
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Chat column (left) */
.turn-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Vertical divider between chat and results */
.turn-chat {
  border-right: 2px solid var(--border);
}

/* Results column (right) - always visible */
.turn-results {
  display: block;
  padding: 1rem;
  background: var(--bg-light);
  overflow: hidden;
}

/* Result sections: two-column table (description left, flights right) */
.result-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.result-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Title: top left only */
.result-section-title {
  grid-column: 1;
  grid-row: 1;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Itinerary header: top right */
.itinerary-header {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  margin: 0;
  padding: 0;
  border: none;
}

/* Left column: description with image floating */
.section-description {
  grid-column: 1;
  grid-row: 2;
}

.result-image {
  float: left;
  max-width: 200px;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 6px;
  margin: 0 1rem 0.5rem 0;
  object-fit: cover;
}

.result-narrative {
  color: var(--text-medium);
  font-size: 0.85rem;
  line-height: 1.6;
}

.result-narrative p {
  margin: 0 0 0.75rem 0;
}

.result-narrative p:last-child {
  margin-bottom: 0;
}

/* Clear float */
.section-description::after {
  content: '';
  display: table;
  clear: both;
}

/* Right column: flights container */
.flight-cards-container {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .conversation-turn {
    grid-template-columns: 1fr;
  }

  .turn-chat {
    border-right: none;
  }

  .turn-results {
    border-top: 2px solid var(--border);
  }
}

/* Mobile: flight cards */
@media (max-width: 768px) {
  .flight-card {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .flight-seg-row {
    flex-wrap: wrap;
  }

  .flight-card-price {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 0.375rem;
    justify-content: space-between;
  }

  .flight-price {
    font-size: 0.9rem;
  }
}

/* ============================================
   HOTEL SECTION STYLES
   ============================================ */

.hotel-section {
  margin-bottom: 1.5rem;
}

.hotel-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}

/* Hotel Map — sticky only in standalone hotel-layout grid */
.hotel-layout .hotel-map-container {
  position: sticky;
  top: 1rem;
  height: 320px;
}

/* Hotel map inside a section description column — flows below narrative */
.section-description .hotel-map-container {
  position: relative;
  height: 280px;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.hotel-map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hotel-marker {
  background: transparent;
}

.hotel-marker-price {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hotel Cards Container */
.hotel-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hotel Card — vertical layout: name → image → details → price */
.hotel-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  gap: 0.375rem;
}

.hotel-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hotel-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hotel-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  align-self: flex-start;
}

.hotel-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.hotel-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-stars {
  color: #f5a623;
  font-size: 0.8rem;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.hotel-card-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
}

.hotel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-address {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.hotel-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-height: 2.8em;
  overflow: hidden;
}

.hotel-amenity {
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.hotel-rate-item {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.hotel-card-footer-info {
  font-size: 0.75rem;
}

.refundable-badge {
  color: var(--success);
  font-weight: 500;
}

.non-refundable {
  color: var(--error);
}

/* Hotel Card Price Section */
.hotel-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--border-light);
}

.hotel-total-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.hotel-date-range {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hotel-view-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--alert);
  text-decoration: none;
  cursor: pointer;
}

.hotel-view-btn:hover {
  text-decoration: underline;
}

/* ── Package Cards ─────────────────────────────────────────────── */
.pkg-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem;
  gap: 0.75rem;
}

.pkg-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.pkg-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg-operator {
  font-size: 0.75rem;
  color: var(--text-light);
}

.pkg-header-price {
  background: var(--bg-teal-light);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-align: right;
  flex-shrink: 0;
}

.pkg-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.pkg-date-range {
  font-size: 0.7rem;
  color: var(--text-light);
}

.pkg-body {
  display: flex;
  gap: 0.75rem;
  padding: 0 0.75rem 0.5rem;
}

.pkg-image {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.pkg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.pkg-address {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pkg-room-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Flight strip — full-width bar at bottom of package cards */
.package-flight-strip {
  background: var(--bg-teal-light);
  color: var(--primary-dark);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  border-top: 1px solid var(--primary-light);
}

.package-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════
   MULTI-CENTRE PACKAGE CARD
   Single product with stacked hotel blocks
   ═══════════════════════════════════════════ */

.multicentre-section {
  margin-bottom: 1.5rem;
}

.multicentre-package-card {
  background: var(--bg-white);
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Stacked hotel blocks */
.mc-hotels {
  display: flex;
  flex-direction: column;
}

.mc-hotel-block {
  border-bottom: 1px solid var(--border-light);
}

.mc-hotel-block:last-child {
  border-bottom: none;
}

.mc-hotel-destination {
  background: var(--primary);
  color: white;
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mc-hotel-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.mc-hotel-image {
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: 6px;
}

.mc-hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-hotel-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mc-hotel-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mc-hotel-nights {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Price section — single combined price */
.mc-price-section {
  padding: 0.75rem 1rem;
  text-align: right;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}

.mc-total-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Mobile: multi-centre */
@media (max-width: 768px) {
  .mc-hotel-body {
    grid-template-columns: 80px 1fr;
  }

  .mc-hotel-image {
    width: 80px;
    height: 70px;
  }
}

/* Mobile: Hotel layout */
@media (max-width: 768px) {
  .hotel-layout {
    grid-template-columns: 1fr;
  }

  .hotel-map-container {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
  }

  .hotel-card {
    grid-template-columns: 100px 1fr;
  }

  .hotel-card-price {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }

  .hotel-card-image {
    width: 100px;
    height: 100px;
  }
}

/* ───────────────────────────────────────────────────────────────────
   CRUISE CARDS
   ─────────────────────────────────────────────────────────────────── */

/* Cruise Card */
.cruise-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  margin-bottom: 0.75rem;
}

.cruise-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cruise-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.cruise-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cruise-card-summary {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cruise-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cruise-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.cruise-operator {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 500;
}

.cruise-ship-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cruise-ship-name {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.cruise-ship-class {
  background: var(--bg-teal-light);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.cruise-itinerary-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.cruise-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.cruise-embark,
.cruise-disembark {
  color: var(--text-dark);
  font-weight: 500;
}

.cruise-date {
  color: var(--text-medium);
  font-size: 0.8rem;
}

.cruise-duration {
  text-align: center;
  color: var(--text-medium);
  font-size: 0.8rem;
  font-weight: 500;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
}

.cruise-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.cruise-theme {
  background: var(--bg-light);
  color: var(--text-medium);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* Cruise Tabs */
.cruise-tabs {
  border-top: 1px solid var(--border-light);
}

.cruise-tab-buttons {
  display: flex;
  background: var(--bg-light);
  border-bottom: 2px solid var(--border-light);
  overflow-x: auto;
}

.cruise-tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-medium);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cruise-tab-btn:hover {
  background: var(--bg-white);
  color: var(--text-dark);
}

.cruise-tab-btn.active {
  background: var(--bg-white);
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cruise-tab-content {
  background: var(--bg-white);
}

.cruise-tab-panel {
  display: none;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.cruise-tab-panel.active {
  display: block;
}

/* Itinerary Tab - Simple format */
.cruise-day-simple {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.cruise-day-simple:last-child {
  border-bottom: none;
}

.cruise-day-simple strong {
  color: var(--primary);
  margin-right: 0.5rem;
  min-width: 60px;
  display: inline-block;
}

/* Ship Details Tab */
.cruise-ship-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cruise-ship-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.cruise-spec {
  padding: 0.5rem;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 0.85rem;
}

.cruise-spec strong {
  color: var(--text-dark);
  margin-right: 0.25rem;
}

.cruise-facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.cruise-facility-category h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary);
}

.cruise-facility-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cruise-facility-category li {
  font-size: 0.8rem;
  color: var(--text-medium);
  padding-left: 0.75rem;
  position: relative;
}

.cruise-facility-category li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Cabins Tab */
.cruise-cabins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.cruise-cabin-type {
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.cruise-cabin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cruise-cabin-header strong {
  color: var(--text-dark);
  font-size: 0.9rem;
}

.cruise-cabin-grade {
  background: var(--primary);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.cruise-cabin-detail {
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-top: 0.25rem;
}

/* Alternative Departures Tab */
.cruise-alt-departures {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cruise-alt-departure {
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 6px;
  border-left: 3px solid var(--primary-light);
}

.cruise-alt-dates {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.cruise-alt-dates strong {
  color: var(--primary);
}

.cruise-alt-note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-medium);
  font-style: italic;
}

/* No data message */
.cruise-no-data {
  padding: 2rem;
  text-align: center;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-style: italic;
}

/* Mobile: Cruise layout */
@media (max-width: 768px) {
  .cruise-card-image {
    height: 140px;
  }

  .cruise-card-summary {
    padding: 0.75rem;
  }

  .cruise-title {
    font-size: 1rem;
  }

  .cruise-tab-btn {
    font-size: 0.75rem;
    padding: 0.6rem 0.5rem;
  }

  .cruise-ship-specs {
    grid-template-columns: 1fr;
  }

  .cruise-facilities {
    grid-template-columns: 1fr;
  }

  .cruise-cabins {
    grid-template-columns: 1fr;
  }
}
