/* ==========================================================================
   CRUISELINE TRIP - PAGES STYLESHEET
   Search Results, Cruise Details, Booking Flow, Account, & Legal Layouts
   ========================================================================== */

/* ==========================================================================
   PAGE HERO / BANNER COMMON
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-blue) 100%);
  color: var(--text-white);
  padding: 48px 0;
  position: relative;
}

.page-hero-sm {
  padding: 32px 0;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.page-breadcrumbs a {
  color: var(--text-light);
}

.page-breadcrumbs a:hover {
  color: var(--text-white);
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 700px;
}

/* ==========================================================================
   SEARCH RESULTS PAGE LAYOUT
   ========================================================================== */
.results-page-wrapper {
  padding: 40px 0 80px 0;
}

.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Filter Sidebar */
.filter-sidebar {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.filter-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.btn-reset-filters {
  font-size: 0.8125rem;
  color: var(--accent-coral);
  font-weight: 700;
}

.filter-group {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dark);
  cursor: pointer;
}

.filter-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filter-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Results Content Area */
.results-content-area {
  display: flex;
  flex-direction: column;
}

.results-controls-bar {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.results-count-text {
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.results-count-text strong {
  color: var(--primary-navy);
}

.results-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-sort-wrap label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.results-sort-select {
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--bg-white);
  color: var(--primary-navy);
}

/* No Results Assist Box */
.no-results-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-medium);
  padding: 48px 32px;
  text-align: center;
  margin: 20px 0;
}

.no-results-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(246, 174, 45, 0.15);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.no-results-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.no-results-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.no-results-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 24px auto;
}

.no-results-call-card {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 460px;
  margin: 0 auto;
}

.no-results-call-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.no-results-call-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* ==========================================================================
   CRUISE DETAILS PAGE LAYOUT
   ========================================================================== */
.cruise-details-wrapper {
  padding: 40px 0 80px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: flex-start;
}

/* Details Main Section */
.details-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.details-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.details-specs-bar {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(19, 64, 116, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.spec-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

/* Itinerary Timeline */
.details-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.itinerary-day-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 20px;
  display: grid;
  grid-template-columns: 90px 1fr 140px;
  gap: 20px;
  align-items: center;
  transition: all 0.2s ease;
}

.itinerary-day-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

.day-badge {
  text-align: center;
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
}

.day-badge-num {
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
}

.day-badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
}

.day-port-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.day-port-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.day-times {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: right;
}

/* Stateroom Cabin Selection */
.cabins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cabin-card {
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cabin-card:hover, .cabin-card.selected {
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-md);
}

.cabin-card-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.cabin-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cabin-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.cabin-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cabin-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  flex-grow: 1;
}

.cabin-perk-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cabin-perk-item svg {
  width: 14px;
  height: 14px;
  fill: var(--call-green);
}

.cabin-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.cabin-price-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-navy);
}

/* Sticky Details Sidebar */
.details-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-summary-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.summary-price-box {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.summary-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
}

.summary-price-amt {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 4px 0;
}

.summary-price-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

.summary-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.summary-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
}

.summary-perk svg {
  width: 16px;
  height: 16px;
  fill: var(--call-green);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-phone-card {
  background-color: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.details-phone-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 4px;
}

.details-phone-card p {
  font-size: 0.8125rem;
  color: #047857;
  margin-bottom: 12px;
}

/* ==========================================================================
   BOOKING FLOW & CONFIRMATION
   ========================================================================== */
.booking-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-node.active {
  color: var(--primary-navy);
}

.step-node.completed {
  color: var(--call-green);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-node.active .step-badge {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}

.step-node.completed .step-badge {
  background-color: var(--call-green);
  color: var(--text-white);
  border-color: var(--call-green);
}

.booking-form-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

/* Confirmation View */
.confirmation-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.conf-icon-success {
  width: 72px;
  height: 72px;
  background-color: #ECFDF5;
  color: var(--call-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.conf-icon-success svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.conf-ref-badge {
  display: inline-block;
  background-color: var(--bg-light);
  border: 1px dashed var(--primary-blue);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 16px 0 24px 0;
}

/* ==========================================================================
   ACCOUNT & AUTH PAGES
   ========================================================================== */
.auth-wrapper {
  padding: 60px 0 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  max-width: 480px;
  width: 100%;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 700;
  color: var(--accent-coral);
}

/* Account Dashboard Layout */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0 80px 0;
}

.account-nav-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.account-nav-item:hover, .account-nav-item.active {
  background-color: rgba(19, 64, 116, 0.08);
  color: var(--primary-blue);
  font-weight: 700;
}

.account-nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.account-content-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   LEGAL & POLICY PAGES
   ========================================================================== */
.legal-page-wrapper {
  padding: 48px 0 80px 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.legal-article {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 32px 0 14px 0;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 8px;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 20px 0 10px 0;
}

.legal-article p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.legal-article ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.legal-article li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-nav-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR PAGES
   ========================================================================== */
@media (max-width: 960px) {
  .results-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    max-height: none;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .details-sidebar {
    position: static;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 24px 0 32px 0;
  }
  .page-hero-title {
    font-size: 1.6rem;
  }
  .page-hero-desc {
    font-size: 0.9rem;
  }
  .details-specs-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .itinerary-day-card {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }
  .day-times {
    grid-column: 1 / -1;
    text-align: left;
    background-color: var(--bg-light);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
  }
  .cabins-grid {
    grid-template-columns: 1fr;
  }
  .checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    justify-content: center;
  }
  .checkout-step {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
  }
  .checkout-form-card {
    padding: 18px 14px;
  }
  .booking-sidebar-card {
    padding: 18px 14px;
  }
  .confirmation-card {
    padding: 24px 16px;
  }
  .auth-card {
    padding: 24px 16px;
  }
  .legal-article {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .details-specs-bar {
    grid-template-columns: 1fr;
  }
  .page-hero-title {
    font-size: 1.4rem;
  }
}
