/* --------------------------------------------------
   Catagory Cards Front Page
-------------------------------------------------- */
/* Category View Front */
/* Card wrapper */
.view-category.view-display-id-block_1 .views-row {
  position: relative;
  overflow: hidden;
}
/* Image field */
.view-category.view-display-id-block_1 .views-field-field-category-image {
  position: relative;
  overflow: hidden;
}
.view-category.view-display-id-block_1
.views-field-field-category-image img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.35s ease;
}
/* Dark overlay */
.view-category.view-display-id-block_1
.views-field-field-category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.35s ease;
  pointer-events: none;
}
/* Text overlay */
.view-category.view-display-id-block_1 .views-field-nothing {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
  font-size: 1.3em;
}
/* Optional: tighten typography */
.view-category.view-display-id-block_1 .views-field-nothing * {
  margin: 0;
}
/* Hover effects */
.view-category.view-display-id-block_1 .views-row:hover
.views-field-field-category-image::after {
  background: rgba(0, 0, 0, 0.45);
}
.view-category.view-display-id-block_1 .views-row:hover
.views-field-field-category-image img {
  transform: scale(1.05);
}
/* txt link */
.view-category.view-display-id-block_1 .views-field-nothing a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.view-category.view-display-id-block_1 .views-row:hover
.views-field-nothing a {
  text-decoration: none;
}

/* --------------------------------------------------
   Cabin Teaser Tiles
-------------------------------------------------- */

/* === Teaser Tile Base === */
.mt-teaser-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.mt-teaser-tile:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* === Media === */
.mt-teaser-tile .mt-teaser-tile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}

.mt-teaser-tile .mt-teaser-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Gradient Overlay for Readability === */
.mt-teaser-tile .mt-teaser-tile__media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.4) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1; /* Above swiper but below text */
}

/* Make sure title is above gradient */
.mt-teaser-tile .mt-teaser-tile__title {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3; /* Changed from 2 to 3 */
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Make sure meta is above gradient */
.mt-teaser-tile .mt-teaser-tile__meta {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  z-index: 3; /* Changed from 2 to 3 */
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Title - Top Left of Image === */
.mt-teaser-tile .mt-teaser-tile__title a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.mt-teaser-tile .mt-teaser-tile__title a:hover {
  color: #F3C45D;
}

/* === Facet Meta - Bottom Center of Image === */
/* Individual meta items - no background, smaller, inline */
.mt-teaser-tile .mt-teaser-tile__meta .meta-item {
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* Add separator between items */
.mt-teaser-tile .mt-teaser-tile__meta .meta-item:not(:last-child)::after {
  content: ' . ';
  margin: 0 0.2rem;
  opacity: 0.7;
}

/* === Content Below Image === */
.mt-teaser-tile .mt-teaser-tile__content {
  padding: 0.5rem 0.5rem 0.6rem;
}

/* === Price - Above Meta on Image Overlay === */
.mt-teaser-tile .mt-teaser-tile__price {
  position: absolute;
  bottom: 2.5rem; /* Above the meta items */
  left: 1rem; /* Align left with margin */
  right: 1rem;
  z-index: 3;
  margin: 0;
  font-size: 1.1rem; /* Bigger than meta (0.75rem), smaller than title (1.4rem) */
  font-weight: 700;
  color: #F3C45D; /* Yellow to stand out */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* === Meta - Align Left === */
.mt-teaser-tile .mt-teaser-tile__meta {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem; /* Changed from centered to left aligned */
  right: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  justify-content: flex-start; /* Changed from center to flex-start */
  flex-wrap: wrap;
}


/* =====================================================================
   TEASER TILE CTA BUTTONS
   ===================================================================== */

.mt-teaser-tile__cta {
  display: flex !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  padding: 0 0.4rem 0.5rem !important;
}

.mt-teaser-tile__cta__info__btn,
.mt-teaser-tile__cta__book__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 20px;
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-teaser-tile__cta__info__btn {
  background: #fff;
  color: #2B2B2B;
  border: 2px solid #ddd;
}
.mt-teaser-tile__cta__info__btn:hover {
  border-color: #F3C45D;
  color: #2B2B2B;
}
.mt-teaser-tile__cta__book__btn {
  background: #F3C45D;
  color: #2B2B2B;
  border: 2px solid #F3C45D;
}
.mt-teaser-tile__cta__book__btn:hover {
  background: #e6b84f;
  border-color: #e6b84f;
  box-shadow: 0 2px 8px rgba(243, 196, 93, 0.4);
}
.mt-teaser-tile__cta__info__btn,
.mt-teaser-tile__cta__info__btn:hover,
.mt-teaser-tile__cta__info__btn:focus,
.mt-teaser-tile__cta__info__btn:visited {
  color: #2B2B2B !important;
}
.mt-teaser-tile__cta__book__btn,
.mt-teaser-tile__cta__book__btn:hover,
.mt-teaser-tile__cta__book__btn:focus,
.mt-teaser-tile__cta__book__btn:visited {
  color: #2B2B2B !important;
}



/* =====================================================================
   SHOWCASE TEASER TILES (Explore Island Park)
   ===================================================================== */

/* Showcase tiles inherit base .mt-teaser-tile styles */

.mt-teaser-tile__body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  padding: 0.5rem 0.5rem 0;
  margin-bottom: 0.4rem;
}

.mt-teaser-tile--showcase .mt-teaser-tile__cta {
  justify-content: center !important;
}

/* Review Stars — teaser cards + cabin page */
.cabin-review-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.5rem;
  margin-bottom: 0.3rem;
}
.cabin-review-stars__icons {
  display: inline-flex;
  gap: 1px;
  color: #E8A838;
  font-size: 0.85rem;
  line-height: 1;
}
.cabin-review-stars__icons .star-full { color: #E8A838; }
.cabin-review-stars__icons .star-half { color: #E8A838; }
.cabin-review-stars__icons .star-empty { color: #ccc; }
.cabin-review-stars__score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2B2B2B;
}
.cabin-review-stars__count {
  font-size: 0.75rem;
  color: #777;
}

/* Full reviews on cabin node page */
.cabin-reviews {
  margin: 2rem 0;
}
.cabin-reviews__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.cabin-reviews__avg {
  font-size: 2rem;
  font-weight: 700;
  color: #2B2B2B;
}
.cabin-reviews__avg-stars {
  display: inline-flex;
  gap: 2px;
  color: #E8A838;
  font-size: 1.2rem;
}
.cabin-reviews__total {
  font-size: 0.9rem;
  color: #777;
}
.cabin-review-card {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 0;
}
.cabin-review-card:last-child {
  border-bottom: none;
}
.cabin-review-card__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.cabin-review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8A838;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cabin-review-card__meta {
  flex: 1;
}
.cabin-review-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #2B2B2B;
}
.cabin-review-card__date {
  font-size: 0.75rem;
  color: #999;
}
.cabin-review-card__rating {
  color: #E8A838;
  font-size: 0.8rem;
}
.cabin-review-card__headline {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.cabin-review-card__body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #444;
}
.cabin-reviews__show-more {
  display: block;
  margin: 1rem auto 0;
  padding: 0.5rem 1.5rem;
  border: 2.5px solid #E8A838;
  border-radius: 24px;
  background: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cabin-reviews__show-more:hover {
  background: #F3C45D;
}



/* =====================================================================
   LOCATION CARDS — matches cabin card (mt-teaser-tile) style
   ===================================================================== */

/* --- Card Container --- */
.location-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin-bottom: 1.5rem;
}
.location-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* --- Link Reset --- */
.location-card__link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

/* --- Media / Image --- */
.location-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #2B2B2B;
}
.location-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.location-card:hover .location-card__media img {
  transform: scale(1.05);
}
.location-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2B2B2B 0%, #444 100%);
}

/* --- Gradient Overlay --- */
.location-card__overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 30%,
    transparent 45%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* --- Title --- */
.location-card__title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: bottom 0.3s ease, color 0.2s ease;
}
.location-card:hover .location-card__title {
  color: #F3C45D;
}

/* --- Description --- */
.location-card__description {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.location-card:hover .location-card__description {
  max-height: 4rem;
  opacity: 1;
}
.location-card__description p {
  margin: 0;
}

/* When description shows on hover, push title up above it */
.location-card:hover .location-card__title {
  bottom: calc(1rem + 5rem);
}

/* --- Drupal field wrapper cleanup --- */
.location-card__media .field--name-field-category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.location-card__media .field--name-field-category-image .field__item,
.location-card__media .field--name-field-category-image .field__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}