/**
 * Cruise Ship Page Styling
 * Hero image display and content container width
 */

/* =====================================================
   HERO IMAGE WITH SHIP NAME OVERLAY
   ===================================================== */

/* Allow overflow on parent containers for hero breakout */
.node--type-cruise-ship,
.node--type-cruise-ship .node__content {
  overflow: visible !important;
}

/* Hero wrapper - contains image and overlay */
.node--type-cruise-ship .cruise-ship-hero {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 450px !important;
  overflow: hidden;
  margin-bottom: 40px;
  /* Full-width breakout using left position */
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  transform: none !important;
}

/* Hero image container - fills the hero wrapper */
.node--type-cruise-ship .cruise-ship-hero__image {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
}

/* Reset ALL nested elements inside hero image - prevent any transforms/positioning */
.node--type-cruise-ship .cruise-ship-hero__image .field--name-field-mt-srv-banner-image-media {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.node--type-cruise-ship .cruise-ship-hero__image .field__items,
.node--type-cruise-ship .cruise-ship-hero__image .field__item,
.node--type-cruise-ship .cruise-ship-hero__image .media,
.node--type-cruise-ship .cruise-ship-hero__image .media--view-mode-cruise-ship-hero,
.node--type-cruise-ship .cruise-ship-hero__image .field--name-field-media-image,
.node--type-cruise-ship .cruise-ship-hero__image .field--name-field-media-image .field__item {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero image - cover the full container */
.node--type-cruise-ship .cruise-ship-hero__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Ship name overlay */
.node--type-cruise-ship .cruise-ship-hero__overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 4rem 2rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  color: white;
  text-align: center;
  z-index: 10;
}

.node--type-cruise-ship .cruise-ship-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.node--type-cruise-ship .cruise-ship-hero__cruise-line {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  margin-top: 0.75rem;
}

/* =====================================================
   CONTENT WIDTH - Match Cruise Guide pages (1200px)
   ===================================================== */

/* Content sections below hero - constrained width */
.node--type-cruise-ship .cruise-ship-gallery,
.node--type-cruise-ship .cruise-ship-tabs-wrapper,
.node--type-cruise-ship .field-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Gallery section */
.node--type-cruise-ship .cruise-ship-gallery {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Tabs wrapper */
.node--type-cruise-ship .cruise-ship-tabs-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 1024px) {
  .node--type-cruise-ship .cruise-ship-hero {
    height: 400px !important;
  }

  .node--type-cruise-ship .cruise-ship-hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .node--type-cruise-ship .cruise-ship-hero {
    height: 350px !important;
  }

  .node--type-cruise-ship .cruise-ship-hero__overlay {
    padding: 2rem 1.5rem 1.5rem;
  }

  .node--type-cruise-ship .cruise-ship-hero__title {
    font-size: 2rem;
  }

  .node--type-cruise-ship .cruise-ship-hero__cruise-line {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
  }

  .node--type-cruise-ship .cruise-ship-hero__image img {
    object-position: center 40% !important;
  }

  .node--type-cruise-ship .node__content,
  .node--type-cruise-ship .cruise-ship-gallery,
  .node--type-cruise-ship .cruise-ship-tabs-wrapper {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .node--type-cruise-ship .cruise-ship-hero {
    height: 300px !important;
  }

  .node--type-cruise-ship .cruise-ship-hero__overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .node--type-cruise-ship .cruise-ship-hero__title {
    font-size: 1.75rem;
  }

  .node--type-cruise-ship .cruise-ship-hero__cruise-line {
    font-size: 0.95rem;
    padding: 0.35rem 0.875rem;
  }

  .node--type-cruise-ship .node__content,
  .node--type-cruise-ship .cruise-ship-gallery,
  .node--type-cruise-ship .cruise-ship-tabs-wrapper {
    padding: 0 12px;
  }
}
