/* CRUISE GUIDE PAGE - MATCHING CRUISE TYPE PAGE STYLES */

/* =====================================================
   CRUISE TYPE CARDS - Working WITH Bootstrap Grid
   ===================================================== */
.discover-cruises-full-width {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 60px 0 !important;
  padding: 0 !important;
  background: transparent;
}

.discover-cruises-full-width .cruise-guides-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow: visible;
}

/* Match the discover cruises section styling */
.discover-cruises-section {
  margin: 60px 0 !important;
}

.cruise-type-cards-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Let Bootstrap handle the grid - just enhance spacing */
.cruise-type-cards {
  /* Remove grid override - let Bootstrap .row flex work */
  margin: 0 -10px !important; /* Reduced gutter for tighter spacing */
  padding: 0 !important;
  width: 100% !important;
}

.cruise-type-cards .views-row {
  /* Let Bootstrap col-lg-4 handle the layout */
  list-style: none !important;
  margin-bottom: 25px !important;
  padding: 0 10px !important; /* Reduced padding for wider cards */
}

/* Make sure view wrappers don't constrain */
.discover-cruises-full-width .view-content,
.discover-cruises-full-width .cruise-type-cards-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cruise-type-cards .views-row > div {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cruise-type-cards .views-row > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #0c7e52;
}

.cruise-type-card__image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
}

.cruise-type-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cruise-type-cards .views-row > div:hover .cruise-type-card__image img {
  transform: scale(1.08);
}

.cruise-type-card__title {
  padding: 24px 20px;
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1a202c !important;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.cruise-type-card__title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cruise-type-card__title a:hover {
  color: #0c7e52;
}

/* Responsive adjustments - Bootstrap handles the grid breakpoints */
@media (max-width: 640px) {
  .cruise-type-card__image {
    height: 220px;
  }

  .cruise-type-card__title {
    font-size: 18px !important;
    padding: 20px 16px;
  }

  .cruise-type-cards .views-row {
    margin-bottom: 20px !important;
  }
}

/* =====================================================
   HERO SECTION - Consistent with cruise type pages
   ===================================================== */
.cruise-guide-hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

.cruise-guide-hero-section .cruise-type-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cruise-guide-hero-section .cruise-type-hero-image .field,
.cruise-guide-hero-section .cruise-type-hero-image .field__items,
.cruise-guide-hero-section .cruise-type-hero-image .field__item {
  width: 100%;
  height: 100%;
}

.cruise-guide-hero-section .cruise-type-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cruise-guide-hero-section .cruise-type-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cruise-guide-hero-section .cruise-type-hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.cruise-guide-hero-section .cruise-hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 15px;
  opacity: 0.9;
}

.cruise-guide-hero-section .cruise-type-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 30px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cruise-guide-hero-section .cruise-hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cruise-guide-hero-section .cruise-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cruise-guide-hero-section .cruise-button--light {
  background: #ffffff;
  color: #1a202c;
  border: 2px solid #ffffff;
}

.cruise-guide-hero-section .cruise-button--light:hover {
  background: transparent;
  color: #ffffff;
}

.cruise-guide-hero-section .cruise-button--ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cruise-guide-hero-section .cruise-button--ghost:hover {
  background: #ffffff;
  color: #1a202c;
}

/* =====================================================
   PAGE CONTAINER - Match cruise type pages
   ===================================================== */
.cruise-landing-page .cruise-guides-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}

/* Ensure cruise partners section matches cruise types width */
.cruise-partners-section {
  max-width: 100%;
  margin: 60px 0 !important;
}

.cruise-landing-page .node__content {
  margin-top: 0;
  padding-top: 0;
}

/* Remove extra black/dark sections */
.cruise-landing-page .cruise-guides-main {
  background: #ffffff;
}

/* Quiz CTA Section */
.cruise-landing-page .cruise-quiz-cta {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 60px 40px;
  border-radius: 20px;
  margin: 80px 0;
  display: flex;
  align-items: center;
  gap: 60px;
}

.cruise-landing-page .cruise-quiz-cta__content {
  flex: 1;
}

.cruise-landing-page .cruise-quiz-cta .section-eyebrow {
  color: #0c7e52 !important;
  margin-bottom: 12px;
}

.cruise-landing-page .cruise-quiz-cta h2 {
  font-size: 32px !important;
  margin-bottom: 16px !important;
  color: #ffffff !important;
}

.cruise-landing-page .cruise-quiz-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cruise-landing-page .cruise-button {
  display: inline-block;
  background: #1f2937;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #1f2937;
}

.cruise-landing-page .cruise-button:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cruise-landing-page .cruise-button--dark {
  background: #1f2937;
  border-color: #1f2937;
}

.cruise-landing-page .cruise-button--dark:hover {
  background: #111827;
}

/* =====================================================
   SECTIONS - Match cruise type page styling
   ===================================================== */
.cruise-landing-page section,
.cruise-landing-page .discover-cruises-section,
.cruise-landing-page .cruise-lines-section {
  margin: 60px 0;
  padding: 0;
}

.cruise-landing-page .section-eyebrow,
.discover-cruises-section .section-eyebrow,
.cruise-lines-section .section-eyebrow {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #0c7e52 !important;
  margin-bottom: 12px !important;
  display: block !important;
}

.cruise-landing-page h2,
.discover-cruises-section h2,
.cruise-lines-section h2 {
  font-size: 36px !important;
  font-weight: 700 !important;
  color: #1a202c !important;
  margin: 10px 0 40px 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.2 !important;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
  .cruise-guide-hero-section {
    height: 400px;
  }

  .cruise-guide-hero-section .cruise-type-hero-title {
    font-size: 36px;
  }

  .cruise-guide-hero-section .cruise-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cruise-guide-hero-section .cruise-button {
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  .cruise-guide-hero-section {
    height: 350px;
  }

  .cruise-guide-hero-section .cruise-type-hero-title {
    font-size: 28px;
  }

  .cruise-guide-hero-section .cruise-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* =====================================================
   FALLBACK HERO (if no media image)
   ===================================================== */
.cruise-landing-page .cruise-hero-section {
  background: linear-gradient(135deg, #0c7e52 0%, #0a6844 100%);
  padding: 80px 20px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.cruise-landing-page .cruise-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat center bottom;
  background-size: cover;
  opacity: 0.3;
}

.cruise-landing-page .cruise-hero-section .cruise-hero-media {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.cruise-landing-page .cruise-hero-section .cruise-hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.cruise-landing-page .cruise-hero-section h1 {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin: 20px 0 30px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cruise-landing-page .cruise-hero-section .cruise-hero-actions {
  margin-top: 40px;
}

/* =====================================================
   CRUISE LINES SECTION - Fix infinite scroll
   ===================================================== */
.cruise-lines-section .views-infinite-scroll-content-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.cruise-lines-section .view-mt-cruises .views-row {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cruise-lines-section .pager {
  text-align: center;
  margin-top: 40px;
}

.cruise-lines-section .views-infinite-scroll-content-wrapper + .pager {
  display: none;
}

/* See all cruise lines button */
.cruise-lines-section .view-footer {
  text-align: center;
  margin-top: 40px;
}

.cruise-lines-section .view-footer a {
  display: inline-block;
  background: #ffffff;
  color: #1f2937;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.cruise-lines-section .view-footer a:hover {
  border-color: #0c7e52;
  color: #0c7e52;
  transform: translateY(-2px);
}

/* Overall page background */
body.path-cruise-guide {
  background: #ffffff;
}

/* Remove any dark overlays */
.cruise-landing-page .cruise-hero-media,
.cruise-guides-main .cruise-hero-media {
  background: none !important;
}

/* Remove the dark overlay ::after element */
.cruise-landing-page .cruise-hero-media::after,
.cruise-guides-main .cruise-hero-media::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

@media (max-width: 1024px) {
  .cruise-lines-section .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cruise-landing-page .cruise-quiz-cta {
    flex-direction: column;
    gap: 40px;
    padding: 40px 30px;
  }
}

@media (max-width: 640px) {
  .cruise-lines-section .views-infinite-scroll-content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cruise-landing-page .cruise-quiz-cta {
    padding: 30px 20px;
  }

  .cruise-landing-page .cruise-quiz-cta h2 {
    font-size: 24px !important;
  }
}
