/**
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.txt
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
.tn-home-hook {
  padding-top: 2.4rem;
  padding-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
}

.tn-home-hook:empty {
  display: none;
}

.tn-home-section {
  margin-top: 1.95rem;
}

.tn-section-title,
.section-title {
  margin: 0 0 1.45rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 200;
  color: #2e3140;
}

.tn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.95rem 0.95rem;
}

.tn-card {
  background: var(--tn-surface);
  border-radius: var(--tn-radius-md);
  border: 1px solid rgba(229, 230, 237, 0.9);
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(16, 17, 24, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tn-card:hover {
  /* transform: translateY(-6px); */
  box-shadow: var(--tn-shadow-card);
  border-color: rgba(229, 0, 99, 0.35);
}

.tn-card-media {
  position: relative;
  overflow: hidden;
}

.tn-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tn-card:hover img {
  transform: scale(1.06);
}

.tn-card-chip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(21, 26, 43, 0.72);
  backdrop-filter: blur(2px);
}

.tn-card-body {
  padding: 0.9rem 1rem 1rem;
}

.tn-card-title {
  margin: 0;
  color: var(--tn-primary);
  line-height: 1.22;
  font-size: 1.7rem;
  font-weight: 700;
  min-height: 2.92rem;
}

.tn-card-meta {
  margin-top: 0.45rem;
  color: #2f3445;
  font-size: 0.82rem;
  font-weight: 700;
}

.tn-card-meta small {
  display: block;
}

.tn-card-meta span {
  color: #80869a;
  font-weight: 500;
  margin-left: 0.16rem;
}

.tn-old-price {
  color: #9ea2b2;
  text-decoration: line-through;
  font-size: 1.115rem;
  font-weight: 600;
}

.tn-price {
  color: var(--tn-primary);
  font-size: clamp(2rem, 2.2vw, 2.65rem);
  line-height: 1;
  font-weight: 800;
}

.tn-card-grid--trending .tn-card {
  position: relative;
  border-radius: 0;
}

.tn-card-grid--featured .tn-card {
  position: relative;
  border-radius: 0;
}

.tn-card-grid--featured .tn-card-title {
  font-size: 1.55rem;
  line-height: 1.2;
  min-height: 2.7rem;
}

.tn-card-grid--featured .tn-card-meta {
  font-size: 0.95rem;
}

.tn-card-grid--featured .tn-price {
  font-size: clamp(2.05rem, 2.4vw, 3rem);
}

.tn-featured-hover {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: var(--cc-primary);
  color: #fff !important;
  padding: 1.4rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.tn-featured-hover h3 {
    margin: 0;
    font-size: 1.26rem;
    line-height: 1.24;
    font-weight: 700;
}

.tn-featured-rating {
  margin-top: 0.46rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.tn-featured-rating strong {
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
}

.tn-featured-stars {
  font-size: 1.46rem;
  color: #fff;
  letter-spacing: 0.03em;
}

.tn-featured-reviews {
  margin: 0.15rem 0 0;
  font-size: 1.06rem;
  opacity: 0.95;
}

/* .tn-featured-description {
  margin: 0.6rem 0 0;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 500;
} */

.tn-featured-hover .tn-featured-reviews, .tn-featured-description {
    color: white;
}

.tn-card-grid--featured .tn-card:hover .tn-featured-hover {
  opacity: 1;
  transform: translateY(0);
}

.tn-card-grid--trending .tn-card-body {
  padding: 0.86rem 0.95rem 0.9rem;
}

.tn-card-grid--trending .tn-card-title {
  font-size: 1.22rem;
  line-height: 1.22;
  min-height: 0.9rem;
}

.tn-card-grid--trending .tn-card-meta {
  margin-top: 0.42rem;
  font-size: 0.84rem;
}

.tn-card-grid--trending .tn-old-price {
  font-size: 0.88rem;
}

.tn-card-grid--trending .tn-price {
  font-size: clamp(1.5rem, 1.8vw, 2.2rem);
}

.tn-trending-hover {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: var(--cc-primary);
  color: #fff;
  padding: 0.95rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.42rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.tn-trending-hover h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.24;
  font-weight: 700;
}

.tn-trending-hover-score {
  margin-top: 0.2rem;
  display: flex;
  align-items: flex-end;
  gap: .5rem;
}

.tn-trending-hover-score strong {
  display: block;
  font-size: 3.125rem;
  line-height: 1;
  font-weight: 800;
}

.tn-show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.9rem !important;
}

.tn-show-more-wrap button:hover,
.tn-show-more-wrap a.tn-show-more:hover {
    color: #fff !important;
    background: var(--cc-primary) !important;
    border-color: var(--cc-primary) !important;
}

.tn-trending-hover-ratings {
    margin-bottom: 2px;
}

.tn-trending-hover-score span {
  display: block;
  /* margin-top: 0.1rem; */
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.96;
}

.tn-trending-hover p {
  margin: 0.18rem 0 0;
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 500;
  color: #fff;
}

.tn-card--activity:hover .tn-trending-hover {
  opacity: 1;
  transform: translateY(0);
}

.tn-card--activity.is-image-broken .tn-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #5d6379, #3a3f53);
}

.tn-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.9rem 0.8rem;
}

.tn-home-top-destinations {
  margin-top: 3.9rem;
}

.tn-destination-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 248px;
  box-shadow: 0 9px 24px rgba(27, 28, 32, 0.16);
  transition: transform 0.28s ease;
}

/* .tn-destination-card:hover {
  transform: translateY(20px);
} */

.tn-destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tn-destination-card.is-image-broken {
  background: linear-gradient(135deg, #5d6379, #3a3f53);
}

.tn-destination-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 15, 0.52), rgba(10, 10, 15, 0.08));
  transition: background 0.35s ease;
}

.tn-destination-card:hover img {
  transform: scale(1.08);
}

.tn-destination-card:hover::before {
  background: linear-gradient(0deg, rgba(10, 10, 15, 0.66), rgba(10, 10, 15, 0.16));
}

.tn-destination-overlay {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 0.92rem;
  color: #fff;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.tn-destination-overlay h3 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 700;
}

.tn-destination-hover {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: var(--cc-primary);
  color: #fff;
  padding: 50px 1.15rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.tn-destination-hover h3 {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 700;
}

.tn-destination-card:hover .tn-destination-hover {
  opacity: 1;
  transform: translateY(0);
}

.tn-destination-card:hover .tn-destination-overlay {
  opacity: 0;
  transform: translateY(4px);
}

.tn-destination-stats-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 0.6rem;
}

.tn-destination-stats-grid strong {
  display: block;
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 800;
}

.tn-destination-stats-grid span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

.tn-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.9rem;
}

.tn-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229, 0, 100, 0.5);
  color: var(--tn-primary);
  background: transparent;
  /* min-width: 156px;
  height: 52px; */
  border-radius: 999px;
  font-size: 1.03rem;
  font-weight: 500;
  transition: all 0.24s ease;
  padding: 1.125rem 2.5625rem;
}

.tn-show-more:hover {
  color: #fff;
  background: var(--tn-primary);
  border-color: var(--tn-primary);
}

[data-animate='fade-up'] {
  /* opacity: 0; */
  /* transform: translateY(24px); */
  transition: opacity 0.48s ease, transform 0.48s ease;
}

[data-animate='fade-up'].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .tn-section-title,
  .section-title {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  }

  .tn-card-title {
    font-size: 1.35rem;
  }

  .tn-price {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  }

  .tn-card-grid--trending .tn-price {
    font-size: clamp(1.3rem, 2vw, 1.95rem);
  }

  .tn-featured-hover h3 {
    font-size: 1.65rem;
  }

  .tn-featured-rating strong {
    font-size: 3rem;
  }

  .tn-featured-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 991px) {
  .tn-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tn-card-grid,
  .tn-destination-grid {
    grid-template-columns: 1fr;
  }

  .tn-destination-card {
    grid-column: auto;
  }

  .tn-destination-overlay h3 {
    font-size: 1.55rem;
  }

  .tn-card-grid--trending .tn-card-title,
  .tn-trending-hover h3 {
    font-size: 1.06rem;
  }

  .tn-card-grid--featured .tn-card-title {
    font-size: 1.2rem;
  }

  .tn-featured-hover {
    padding: 1rem 0.95rem;
  }

  .tn-featured-hover h3 {
    font-size: 1.36rem;
  }

  .tn-featured-rating strong {
    font-size: 2.2rem;
  }

  .tn-featured-stars {
    font-size: 1.05rem;
  }

  .tn-featured-reviews,
  .tn-featured-description {
    font-size: 0.82rem;
  }

  .tn-trending-hover-score strong {
    font-size: 2rem;
  }

  .tn-trending-hover p {
    font-size: 0.84rem;
  }

  .tn-destination-hover {
    padding: 1rem;
  }

  .tn-destination-hover h3 {
    font-size: 1.55rem;
  }

  .tn-destination-stats-grid strong {
    font-size: 1.35rem;
  }

  .tn-destination-stats-grid span {
    font-size: 0.82rem;
  }
}


/* Trending Activities cards - title, reviews, price (match reference) */
.tn-card-grid--trending .tn-card-body {
  position: relative;
  padding-right: 6.5rem;
}

.tn-card-grid--trending .tn-card-title {
  margin: 0 0 0.2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--cc-primary);
}

.tn-card-grid--trending .tn-card-meta {
  margin-top: 0;
}

.tn-card-grid--trending .tn-card-meta small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cc-primary);
}

.tn-card-grid--trending .tn-card-meta small span {
  color: #8b94a5;
  font-weight: 500;
}

.tn-card-grid--trending .tn-card-price-row {
  position: absolute;
  top: 0;
  right: 12px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-end;
}

.tn-card-grid--trending .tn-old-price {
  font-size: 1.05rem;
  color: #9aa0aa;
  font-weight: 600;
  text-decoration: line-through;
}

.tn-card-grid--trending .tn-price {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--cc-primary);
  line-height: 1;
}

@media (max-width: 767px) {
  .tn-card-grid--trending .tn-card-body {
    padding-right: 0;
  }

  .tn-card-grid--trending .tn-card-price-row {
    position: static;
    align-items: flex-start;
    margin-top: 0.2rem;
  }
}
