/* tour-card.css: moved out of src/components/TourCard.astro on 2026-10-27, so a style fix is a single file upload. */

.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.tour-card:hover {
  transform: translateY(-4px);
}

.tour-card .photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
}

.tour-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.tour-card:hover .photo img {
  transform: scale(1.04);
}

.tour-card .days {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.76rem/1 var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-card .text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.tour-card .text :is(h2, h3) {
  font-size: 1.3rem;
  font-stretch: 92%;
}

.tour-card .text a {
  text-decoration: none;
}

.tour-card .text a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.tour-card .text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tour-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.tour-card .grade {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-soft);
  font-weight: 600;
}

.tour-card .grade i {
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: var(--line);
}

.tour-card .grade i:nth-of-type(4) {
  margin-right: 6px;
}

.tour-card .grade[data-grade='1'] i:nth-of-type(-n + 1),
.tour-card .grade[data-grade='2'] i:nth-of-type(-n + 2),
.tour-card .grade[data-grade='3'] i:nth-of-type(-n + 3),
.tour-card .grade[data-grade='4'] i:nth-of-type(-n + 4) {
  background: var(--accent);
}

.tour-card .price b {
  font: 800 1.3rem/1 var(--head);
}
