/* Offer card, feature card, list row, destination tile. */

.fn-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 10px; border-radius: 26px; background: var(--fn-paper); box-shadow: var(--fn-shadow-s); border: 1px solid var(--fn-line); transition: transform .35s var(--fn-ease), box-shadow .35s var(--fn-ease); min-width: 0; }
.fn-card:hover { transform: translateY(-6px); box-shadow: var(--fn-shadow); }
.fn-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.fn-card__link:focus-visible { outline-offset: 4px; }
.fn-card__media { position: relative; aspect-ratio: 4 / 3.3; border-radius: 19px; overflow: hidden; background: var(--fn-sky); }
.fn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--fn-ease); }
.fn-card:hover .fn-card__media img { transform: scale(1.07); }
.fn-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.fn-card__place { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.93); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-card__place svg { width: 14px; height: 14px; color: var(--fn-red); flex: none; }
.fn-card__body { display: flex; flex-direction: column; gap: 9px; padding: 2px 8px 8px; flex: 1; }
.fn-card__title { font-size: 1.12rem; line-height: 1.2; }
.fn-card__text { font-size: .9rem; color: var(--fn-ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.fn-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fn-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--fn-line); font-weight: 800; font-size: .92rem; }
.fn-card__go { width: 38px; height: 38px; border-radius: 50%; background: var(--fn-red); color: #fff; display: grid; place-items: center; transition: transform .3s var(--fn-ease); }
.fn-card__go svg { width: 16px; height: 16px; }
.fn-card:hover .fn-card__go { transform: rotate(-45deg); }

/* Feature (big top offer) */
.fn-feature, .fn-row { text-decoration: none; color: inherit; }
.fn-feature { position: relative; min-height: 520px; border-radius: 32px; overflow: hidden; color: #fff; display: flex; align-items: end; isolation: isolate; }
.fn-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--fn-ease); }
.fn-feature:hover img { transform: scale(1.05); }
.fn-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,51,0) 35%, rgba(10,26,51,.82) 100%); }
.fn-feature__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 12px; justify-items: start; }
.fn-feature h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.fn-feature p { margin: 0; max-width: 46ch; opacity: .92; }
.fn-feature .fn-stars { color: var(--fn-sun); }
.fn-feature__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-weight: 700; font-size: .92rem; }
.fn-feature__meta .fn-tag { background: rgba(255,255,255,.18); color: #fff; }

/* Row (list item) */
.fn-row { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 22px; background: var(--fn-paper); border: 1px solid var(--fn-line); transition: border-color .2s ease, transform .3s var(--fn-ease), box-shadow .3s ease; }
.fn-row:hover { border-color: var(--fn-blue); transform: translateX(4px); box-shadow: var(--fn-shadow-s); }
.fn-row img { width: 118px; height: 92px; object-fit: cover; border-radius: 15px; }
.fn-row h3 { font-size: 1.02rem; line-height: 1.2; }
.fn-row__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: .84rem; color: var(--fn-ink-2); font-weight: 700; }
.fn-row__go { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--fn-ink); display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.fn-row__go svg { width: 16px; height: 16px; }
.fn-row:hover .fn-row__go { background: var(--fn-ink); color: #fff; }

/* Destination tile */
.fn-tile { position: relative; display: flex; align-items: end; min-height: 240px; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.fn-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--fn-ease); }
.fn-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,51,0) 40%, rgba(10,26,51,.75) 100%); }
.fn-tile:hover img { transform: scale(1.06); }
.fn-tile__body { width: 100%; padding: 20px 22px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.fn-tile h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.fn-tile small { display: block; margin-top: 7px; font-size: .86rem; font-weight: 600; opacity: .92; }
.fn-tile__count { flex: none; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--fn-ink); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.fn-tile--big h3 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); }

@media (max-width: 560px) {
  .fn-row { grid-template-columns: 88px minmax(0, 1fr); padding-right: 12px; }
  .fn-row img { width: 88px; height: 76px; }
  .fn-row__go { display: none; }
  .fn-feature { min-height: 420px; }
}
