/* Bliss Cruise - Simplified Celebrity Reflection 2025 Landing Page */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  color: #333;
  background-color: #f5f5f5;
  padding: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cruise Card */
.cruise-card {
  background: white;
  overflow: hidden;
}

/* Image */
.cruise-image {
  width: 100%;
  position: relative;
}

.cruise-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Content */
.cruise-content {
  padding: 2rem;
}

/* Title - Purple */
.cruise-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #6b5b95;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Dates - Red */
.cruise-dates {
  font-size: 1.125rem;
  color: #ff6b6b;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Description - Gray */
.cruise-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

/* Book Button - Purple */
.book-button {
  display: block;
  width: 100%;
  background: #8b7fb8;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
}

.book-button:hover {
  background: #7a6fa3;
}

/* Itinerary Section */
.itinerary-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.itinerary-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #6b5b95;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expand-arrow {
  color: #a8739a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.itinerary-subsection {
  margin-bottom: 3rem;
}

.itinerary-subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #a8739a;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Table Styles */
.cruise-box-content {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Screen reader only caption */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table th {
  background: white;
  color: #6b5b95;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid #6b5b95;
  padding: 1rem;
  text-align: left;
}

.table td {
  color: #374151;
  font-size: 1rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: left;
  font-size: 1rem !important;
}

.table tbody tr:nth-child(even) td {
  background: #f9fafb;
}

/* Semantic element styling */
.table time {
  font-weight: 500;
  font-size: 1rem;
}

.table abbr {
  text-decoration: none;
  border-bottom: none;
}

/* Itinerary disclaimer */
.itinerary-disclaimer {
  font-size: 1rem;
  color: #7f8c8d;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* Themes Grid */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.theme-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #a8739a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-day {
  font-weight: 600;
  color: #6b5b95;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.theme-name {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.4;
}

/* Itinerary Disclaimer */
.itinerary-disclaimer {
  font-size: 1rem;
  color: #7f8c8d;
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
}

/* Desktop Layout - 1200px width adjustments */
@media (min-width: 1200px) {
  .cruise-content {
    padding: 3rem;
  }

  .cruise-title {
    font-size: 2rem;
  }

  .cruise-description {
    font-size: 1.125rem;
  }

  .itinerary-title {
    font-size: 2rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .cruise-content {
    padding: 1.5rem;
  }

  .cruise-title {
    font-size: 1.5rem;
  }

  .cruise-dates {
    font-size: 1rem;
  }

  .cruise-description {
    font-size: 1rem;
  }

  .book-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .itinerary-title {
    font-size: 1.5rem;
  }

  .subsection-title {
    font-size: 1.125rem;
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    font-size: 1rem;
  }
}

/* Tablet Layout for Itinerary */
@media (min-width: 601px) and (max-width: 768px) {
  .cruise-box-content {
    overflow-x: auto;
  }

  .table {
    min-width: 650px;
  }
}

/* Mobile Vertical Layout for Itinerary - Mobile Only */
@media (max-width: 600px) {
  .cruise-box-content {
    overflow-x: visible;
  }

  .table {
    display: block;
    width: 100%;
    background: transparent;
    box-shadow: none;
  }

  .table thead {
    display: none;
  }

  .table tbody {
    display: block;
  }

  .table tr {
    display: block;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
  }

  .table tr:nth-child(even) {
    background: #f9fafb;
  }

  .table td {
    display: block;
    padding: 0.5rem 0;
    border-bottom: none;
    background: transparent !important;
    font-size: 1rem;
    text-align: left;
  }

  .table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #6b5b95;
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .table td:empty {
    display: none;
  }

  .itinerary-disclaimer {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .cruise-image img {
    height: 300px;
  }

  .cruise-content {
    padding: 1rem;
  }

  .cruise-title {
    font-size: 1.25rem;
  }

  .cruise-dates {
    font-size: 1rem;
  }

  .cruise-description {
    font-size: 1rem;
  }

  .itinerary-title {
    font-size: 1.25rem;
  }

  .subsection-title {
    font-size: 1rem;
  }

  .table td {
    padding: 0.375rem 0;
    font-size: 1rem;
  }

  .table tr {
    padding: 0.75rem;
  }

  .table td::before {
    font-size: 1rem;
  }

  .theme-item {
    padding: 0.75rem;
  }

  .theme-day {
    font-size: 1rem;
  }

  .theme-name {
    font-size: 1rem;
  }
}
