/**
 * Cruise Line Fleet Ship Cards
 * Card layout: Title at top, Image fills middle, Facts at bottom, Button at very bottom
 */

/* Ship Card Grid Layout */
.list-of-ships-slideshow .view-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
  padding: 0 1rem !important;
}

/* 3 columns on desktop */
@media (min-width: 768px) {
  .list-of-ships-slideshow .view-content {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* Individual Ship Card - Flex column for reliable ordering */
.list-of-ships-slideshow .views-row {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out !important;
  height: auto !important;
  min-height: 380px !important;
  margin-bottom: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.list-of-ships-slideshow .views-row:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Title Field Container - use contents to flatten hierarchy */
.list-of-ships-slideshow .views-field-title {
  display: contents !important;
}

.list-of-ships-slideshow .views-field-title > .field-content,
.list-of-ships-slideshow .views-field-title > span {
  display: contents !important;
}

/* Ship Name Header - First in visual order */
.list-of-ships-slideshow .ship-title-wrapper {
  order: 1 !important;
  padding: 1rem 1.25rem !important;
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2d5a3f 0%, #437e59 100%) !important;
  flex-shrink: 0 !important;
}

.list-of-ships-slideshow .ship-title-wrapper a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: block !important;
}

.list-of-ships-slideshow .ship-title-wrapper a:hover {
  text-decoration: underline !important;
}

/* Image Container - Second, fixed height */
.list-of-ships-slideshow .views-field-field-mt-srv-banner-image-media {
  order: 2 !important;
  flex: 0 0 200px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #f0f0f0 !important;
  cursor: pointer !important;
  height: 200px !important;
}

.list-of-ships-slideshow .views-field-field-mt-srv-banner-image-media .field-content,
.list-of-ships-slideshow .views-field-field-mt-srv-banner-image-media .media,
.list-of-ships-slideshow .views-field-field-mt-srv-banner-image-media .field,
.list-of-ships-slideshow .views-field-field-mt-srv-banner-image-media .field__item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.list-of-ships-slideshow .views-field-field-mt-srv-banner-image-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.4s ease-in-out !important;
}

.list-of-ships-slideshow .views-row:hover .views-field-field-mt-srv-banner-image-media img {
  transform: scale(1.05) !important;
}

/* Ship Facts - Third in order */
.list-of-ships-slideshow .ship-facts {
  order: 3 !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 12px 8px !important;
  margin: 0 !important;
  background: #f8f9fa !important;
  border-top: 1px solid #e9ecef !important;
  gap: 6px !important;
  min-height: 60px !important;
  flex-shrink: 0 !important;
}

.list-of-ships-slideshow .ship-fact {
  text-align: center !important;
  flex: 1 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  justify-content: center !important;
  align-items: center !important;
}

.list-of-ships-slideshow .ship-fact .fact-label {
  color: #6b7280 !important;
  font-weight: 500 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
  order: 2 !important;
}

.list-of-ships-slideshow .ship-fact .fact-value {
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  order: 1 !important;
}

/* View Ship Button - Last (fourth) in order */
.list-of-ships-slideshow .view-ship-btn {
  order: 4 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #2d5a3f 0%, #437e59 100%) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.list-of-ships-slideshow .view-ship-btn span {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
}

.list-of-ships-slideshow .views-row:hover .view-ship-btn {
  background: linear-gradient(135deg, #3d7a5f 0%, #5a9d75 100%) !important;
}

/* Hide empty subheader field */
.list-of-ships-slideshow .views-field-field-mt-srv-subheader-body {
  display: none !important;
}

/* Remove default Bootstrap column classes */
.list-of-ships-slideshow .col-lg-3,
.list-of-ships-slideshow .col-lg-4,
.list-of-ships-slideshow .col-md-6 {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Hide old group button if present */
.list-of-ships-slideshow .group-button {
  display: none !important;
}
