/**
 * Destination Article Card Styling
 * For card view mode on destination pages
 * Order: image, title, byline, excerpt, button
 */

/* Large image for feature articles */
.dest-card-image {
  width: 100% !important;
  height: 400px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

.dest-card-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.dest-card-image .field,
.dest-card-image .field__item {
  width: 100% !important;
  height: 400px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dest-card-image img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.news-card:hover .dest-card-image img {
  transform: scale(1.05) !important;
}

/* Hide image field label */
.dest-card-image .field__label,
.news-card .field__label,
.field--label-above .field__label {
  display: none !important;
}

/* Limit excerpt to 3 lines */
.excerpt-text .field__item,
.excerpt-text p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* FORCE Read More button to be ALWAYS visible - JetsetterGuide green */
a.bg-blue-600.text-white,
a.inline-block.bg-blue-600,
.news-card a.bg-blue-600,
.read-more-link {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  position: relative !important;
  color: #ffffff !important;
  background: #0c7e52 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.375rem !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* Button hover state */
a.bg-blue-600.text-white:hover,
.news-card a.bg-blue-600:hover {
  background: #0a6543 !important;
}

/* Card Container */
.destination-article-card {
  background: #ffffff !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 2rem !important;
  transition: box-shadow 0.3s ease !important;
}

.destination-article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 1. Image - 400px tall, full width */
.dest-image {
  width: 100% !important;
  height: 400px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f3f4f6 !important;
}

.dest-image .field,
.dest-image .field__item {
  width: 100% !important;
  height: 400px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dest-image img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.destination-article-card:hover .dest-image img {
  transform: scale(1.05) !important;
}

/* 2. Title */
.dest-title-wrapper {
  padding: 1.5rem 1.5rem 0.5rem !important;
}

.dest-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: #1a1a1a !important;
}

.dest-title a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.destination-article-card:hover .dest-title a {
  color: #2563eb !important;
}

/* 3. Byline */
.dest-meta {
  padding: 0 1.5rem 1rem !important;
  font-size: 0.875rem !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

/* 4. Excerpt */
.dest-excerpt {
  padding: 0 1.5rem 1.5rem !important;
  margin: 0 !important;
}

.dest-excerpt .field,
.dest-excerpt .field__item,
.dest-excerpt p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 5. Read More Button */
.dest-button {
  padding: 0 1.5rem 1.5rem !important;
  margin: 0 !important;
}

.dest-read-more {
  display: block !important;
  padding: 0.75rem 2rem !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 0.5rem !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.3s ease !important;
}

.dest-read-more:hover {
  background: #1d4ed8 !important;
}
