/* =========================
   HG TOUR CARD GRID
========================= */

.hg-tour-card-grid {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

/* =========================
   CARD
========================= */

.hg-tour-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

/* =========================
   IMAGE
========================= */

.hg-tour-card__media {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f3f3f3;
  text-decoration: none !important;
}

.hg-tour-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
}

.hg-tour-card__no-image {
  width: 100%;
  height: 100%;
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   ROUTE ICON
========================= */

.hg-tour-card__route {
  position: absolute;
  top: 178px;
  right: 22px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #0d5b42;
  border: 5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.hg-tour-card__route svg {
  width: 44px;
  height: 44px;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* =========================
   BODY
========================= */

.hg-tour-card__body {
  flex: 1;
  padding: 48px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hg-tour-card__pin {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex: 0 0 auto;
}

.hg-tour-card__pin svg {
  width: 26px;
  height: 26px;
  fill: #f15a00;
}

/* =========================
   TITLE
========================= */

.hg-tour-card h3 {
  margin: 0;
  max-width: 100%;
  color: #0d5b42;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

/* =========================
   LINE
========================= */

.hg-tour-card__line {
  display: block;
  width: 44px;
  height: 3px;
  background: #f15a00;
  margin: 14px auto 18px;
  flex: 0 0 auto;
}

/* =========================
   EXCERPT
========================= */

.hg-tour-card__excerpt {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 22px;
  color: #777;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   FOOTER + BUTTON
========================= */

.hg-tour-card__footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hg-tour-card__btn {
  width: 210px;
  max-width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #0d5b42;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.hg-tour-card__btn:hover {
  background: #084531;
  color: #fff !important;
}

.hg-tour-card__btn span {
  font-size: 22px;
  line-height: 1;
}

/* =========================
   TABLET
========================= */

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

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .hg-tour-card-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 16px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hg-tour-card-grid::-webkit-scrollbar {
    height: 6px;
  }

  .hg-tour-card-grid::-webkit-scrollbar-thumb {
    background: rgba(13, 91, 66, 0.35);
    border-radius: 999px;
  }

  .hg-tour-card {
    flex: 0 0 78%;
    min-height: 430px;
    border-radius: 20px;
    scroll-snap-align: start;
  }

  .hg-tour-card__media {
    height: 170px;
  }

  .hg-tour-card__route {
    top: 135px;
    right: 18px;
    width: 66px;
    height: 66px;
    border-width: 4px;
  }

  .hg-tour-card__route svg {
    width: 36px;
    height: 36px;
  }

  .hg-tour-card__body {
    padding: 38px 18px 22px;
  }

  .hg-tour-card__pin {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .hg-tour-card__pin svg {
    width: 23px;
    height: 23px;
  }

  .hg-tour-card h3 {
    font-size: 21px;
  }

  .hg-tour-card__excerpt {
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    margin-bottom: 18px;
  }

  .hg-tour-card__btn {
    width: 180px;
    height: 44px;
    font-size: 14px;
  }

  .hg-tour-card__btn span {
    font-size: 20px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {
  .hg-tour-card {
    flex-basis: 84%;
  }
}