/* ============================================
   VIAGGIANOW HOMEPAGE (v6, Nov 2026)
   Bright travel-site look: dark hero band with an arch photo and an overlapping search card,
   benefits on sand, tall destination photo cards, offer cards, help band, about band.
   Tokens and shared components come from vn-design.css; the search card from vn-pages.css.
   ============================================ */

/* ---------- Hero ---------- */

.vn-hero__band {
  position: relative;
  overflow: hidden;
  background: var(--vn-ink);
  color: #fff;
}

.vn-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 120px;
}

.vn-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.vn-hero__title {
  max-width: 14ch;
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.25rem);
  font-weight: 800 !important;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.vn-hero__subtitle {
  max-width: 36em;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.55;
}

.vn-hero__deal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  padding: 10px 10px 10px 10px;
  border-radius: var(--vn-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none !important;
  transition: background-color 0.18s var(--vn-ease);
}

.vn-hero__deal:hover {
  background: rgba(255, 255, 255, 0.16);
}

.vn-hero__deal-label {
  padding: 4px 12px;
  border-radius: var(--vn-radius-pill);
  background: var(--vn-sun);
  color: var(--vn-ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.vn-hero__deal-text {
  font-size: 0.9375rem;
}

.vn-hero__deal-price {
  padding-right: 8px;
  font-size: 0.9375rem;
}

.vn-hero__deal-price strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.vn-hero__deal-per {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  white-space: nowrap;
}

.vn-hero__arch {
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.vn-hero__arch img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px var(--vn-radius-lg) var(--vn-radius-lg);
}

.vn-hero__search {
  position: relative;
  z-index: 5;
  margin-top: -84px;
}

/* ---------- Benefits ---------- */

.vn-benefits {
  background: var(--vn-surface);
  margin-top: 56px;
}

.vn-benefits .vn-title {
  margin-bottom: 28px;
}

.vn-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-benefit {
  padding: 24px;
  border-radius: var(--vn-radius);
  background: var(--vn-white);
  box-shadow: var(--vn-shadow-sm);
}

.vn-benefit__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.vn-benefit h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.vn-benefit svg {
  flex: 0 0 auto;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vn-accent-soft);
  color: var(--vn-accent);
}

.vn-benefit p {
  margin: 0;
  color: var(--vn-text);
  font-size: 0.9375rem;
}

/* ---------- Destinations ---------- */

.vn-places__head,
.vn-offers__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 40px;
  margin-bottom: 28px;
}

.vn-places__head .vn-title,
.vn-offers__head .vn-title {
  margin: 0;
}

.vn-places__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-place {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  border-radius: var(--vn-radius);
  background: var(--vn-ink);
  color: #fff !important;
  text-decoration: none !important;
}

.vn-place img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--vn-ease);
}

.vn-place:hover img {
  transform: scale(1.04);
}

.vn-place::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 43, 0.28);
}

.vn-place__top,
.vn-place__line {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
}

.vn-place__top {
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vn-place__name {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.vn-place__price {
  font-size: 0.9375rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.vn-place__per {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.vn-place__line {
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 8px 10px;
  border-radius: var(--vn-radius-sm);
  background: rgba(15, 30, 43, 0.62);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.vn-places__more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 24px 0 0;
  color: var(--vn-muted);
}

.vn-places__more a {
  color: var(--vn-accent);
  font-weight: 600;
}

/* ---------- Offers ---------- */

.vn-offers {
  padding-top: 0;
}

.vn-offers__head p {
  max-width: 34em;
  margin: 0;
  color: var(--vn-muted);
}

.vn-offers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-offer {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  background: var(--vn-white);
  color: var(--vn-ink) !important;
  text-decoration: none !important;
  transition: box-shadow 0.2s var(--vn-ease), transform 0.2s var(--vn-ease);
}

.vn-offer:hover {
  box-shadow: var(--vn-shadow);
  transform: translateY(-2px);
}

.vn-offer__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--vn-surface);
}

.vn-offer__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-offer__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--vn-radius-pill);
  background: #fff;
  color: var(--vn-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.vn-offer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}

.vn-offer__place {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vn-offer__meta {
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-offer__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.vn-offer__price {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vn-offer__price small {
  color: var(--vn-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.vn-offer__cta {
  padding: 8px 16px;
  border-radius: var(--vn-radius-pill);
  background: var(--vn-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.vn-offer:hover .vn-offer__cta {
  background: var(--vn-accent-hover);
}

/* ---------- Flight cards (under the search, before the hotels) ---------- */

.vn-flights {
  padding-top: clamp(40px, 3vw + 24px, 64px);
  padding-bottom: 0;
}

.vn-flights__head {
  margin-bottom: 24px;
}

.vn-flights__head .vn-title {
  margin: 0 0 6px;
}

.vn-flights__head p {
  max-width: 44em;
  margin: 0;
  color: var(--vn-muted);
}

.vn-flights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-flight {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  background: var(--vn-white);
  color: var(--vn-ink) !important;
  text-decoration: none !important;
  transition: box-shadow 0.2s var(--vn-ease), border-color 0.2s var(--vn-ease);
}

.vn-flight:hover {
  border-color: var(--vn-border-strong);
  box-shadow: var(--vn-shadow);
}

.vn-flight:focus-visible {
  outline: 3px solid var(--vn-accent);
  outline-offset: 2px;
}

.vn-flight__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vn-flight__airline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.vn-flight__airline img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.vn-flight__tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--vn-radius-pill);
  background: var(--vn-surface);
  color: var(--vn-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.vn-flight__route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.vn-flight__end {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vn-flight__end--to {
  text-align: right;
}

.vn-flight__end strong {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.vn-flight__end span {
  color: var(--vn-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.vn-flight__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  color: var(--vn-accent);
}

.vn-flight__line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px dashed var(--vn-border-strong);
}

.vn-flight__line svg {
  position: relative;
  padding: 0 4px;
  background: var(--vn-white);
  box-sizing: content-box;
}

.vn-flight__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--vn-border);
}

.vn-flight__dates {
  color: var(--vn-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.vn-flight__price {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.vn-flight__price small {
  color: var(--vn-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.vn-flight__price .vn-flight__per {
  display: block;
  margin-top: 2px;
}

@media (max-width: 991.98px) {
  .vn-flights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones: one row that swipes sideways, like the hotels. */
@media (max-width: 639.98px) {
  .vn-flights__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .vn-flights__grid::-webkit-scrollbar {
    display: none;
  }

  .vn-flights__grid > li {
    min-width: 0;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vn-flight {
    transition: none;
  }
}

/* ---------- Hotel carousel (under the search) ---------- */

.vn-hotels {
  padding-top: clamp(40px, 3vw + 24px, 64px);
  padding-bottom: 0;
}

.vn-hotels__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: 24px;
}

.vn-hotels__head .vn-title {
  margin: 0 0 6px;
}

.vn-hotels__head p {
  max-width: 40em;
  margin: 0;
  color: var(--vn-muted);
}

.vn-hotels__nav {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.vn-hotels__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--vn-border-strong);
  border-radius: var(--vn-radius-pill);
  background: var(--vn-white);
  color: var(--vn-ink);
  cursor: pointer;
  transition: background 0.2s var(--vn-ease), color 0.2s var(--vn-ease), border-color 0.2s var(--vn-ease);
}

.vn-hotels__arrow:hover:not(:disabled) {
  border-color: var(--vn-accent);
  background: var(--vn-accent);
  color: #fff;
}

.vn-hotels__arrow:focus-visible {
  outline: 3px solid var(--vn-accent);
  outline-offset: 2px;
}

.vn-hotels__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.vn-hotels__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  margin: 0;
  padding: 4px 0 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.vn-hotels__track::-webkit-scrollbar {
  display: none;
}

.vn-hotels__item {
  min-width: 0;
  scroll-snap-align: start;
}

.vn-hotel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  background: var(--vn-white);
  color: var(--vn-ink) !important;
  text-decoration: none !important;
  transition: box-shadow 0.2s var(--vn-ease);
}

.vn-hotel:hover {
  box-shadow: var(--vn-shadow);
}

.vn-hotel:focus-visible {
  outline: 3px solid var(--vn-accent);
  outline-offset: 2px;
}

.vn-hotel__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--vn-surface);
}

.vn-hotel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-hotel__photo {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--vn-radius-pill);
  background: rgba(15, 30, 43, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Hidden while the hotel's own photo is shown; if it fails, the place photo takes over and the label shows. */
.vn-hotel__photo--standby {
  display: none;
}

.vn-hotel__media.is-place .vn-hotel__photo--standby {
  display: block;
}

.vn-hotel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.vn-hotel__loc {
  color: var(--vn-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.vn-hotel__name {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.vn-hotel__stars {
  color: var(--vn-sun);
  font-size: 0.9375rem;
  letter-spacing: 2px;
  line-height: 1.2;
}

.vn-hotel__meal {
  color: var(--vn-text);
  font-size: 0.875rem;
}

.vn-hotel__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.vn-hotel__trip {
  color: var(--vn-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.vn-hotel__price {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.vn-hotel__price small {
  color: var(--vn-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.vn-hotel__price .vn-hotel__per {
  display: block;
  margin-top: 2px;
}

@media (max-width: 1199.98px) {
  .vn-hotels__track {
    grid-auto-columns: calc((100% - 2 * 20px) / 3);
  }
}

@media (max-width: 991.98px) {
  .vn-hotels__track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 639.98px) {
  .vn-hotels__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .vn-hotels__track {
    grid-auto-columns: 82%;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vn-hotel,
  .vn-hotels__arrow {
    transition: none;
  }
}

/* ---------- Help band ---------- */

.vn-help {
  background: var(--vn-white);
}

.vn-help__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.vn-help__text p {
  max-width: 32em;
  margin: 0 0 24px;
  color: var(--vn-text);
  font-size: 1.0625rem;
}

.vn-help__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.vn-help__phone {
  color: var(--vn-ink) !important;
  font-weight: 600;
}

.vn-help__photos {
  position: relative;
  height: 400px;
}

.vn-help__photo {
  position: absolute;
  width: 62%;
  height: 76%;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: var(--vn-radius-lg);
  box-shadow: var(--vn-shadow);
}

.vn-help__photo--back {
  top: 0;
  right: 0;
  transform: rotate(4deg);
}

.vn-help__photo--front {
  bottom: 0;
  left: 8%;
  transform: rotate(-4deg);
}

/* ---------- About band ---------- */

.vn-about {
  background: var(--vn-surface);
}

.vn-about__top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px 48px;
  margin-bottom: 40px;
}

.vn-about__mark {
  margin: 0;
  color: var(--vn-ink);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.vn-about__mark em {
  font-style: normal;
  color: var(--vn-accent);
}

.vn-about__text p {
  margin: 0 0 16px;
  color: var(--vn-text);
  font-size: 1.0625rem;
}

.vn-about__text .vn-about__company {
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-about__company a {
  color: var(--vn-accent);
}

.vn-about__photo {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 420px);
  object-fit: cover;
  border-radius: var(--vn-radius-lg);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .vn-places__row {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .vn-places__row > li {
    scroll-snap-align: start;
  }
}

@media (max-width: 991.98px) {
  .vn-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 44px;
    padding-bottom: 104px;
  }

  .vn-hero__arch {
    display: none;
  }

  .vn-benefits__grid,
  .vn-offers__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vn-help__grid,
  .vn-about__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-help__photos {
    height: 320px;
  }
}

@media (max-width: 639.98px) {
  .vn-benefits__grid,
  .vn-offers__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-places__row {
    grid-template-columns: repeat(5, 72%);
  }

  .vn-hero__deal {
    border-radius: var(--vn-radius);
  }

  .vn-help__photos {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vn-place img,
  .vn-offer {
    transition: none;
  }
}

/* ---------- Destinations index (Destinations/Index.php) ---------- */

.vn-index__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--vn-ink);
}

.vn-index__list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--vn-border-strong);
  color: var(--vn-ink) !important;
  text-decoration: none !important;
}

.vn-index__thumb {
  display: block;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: var(--vn-radius-xs);
  background: var(--vn-surface-2);
}

.vn-index__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-index__text {
  display: flex;
  flex-direction: column;
}

.vn-index__city {
  font-family: var(--vn-font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.vn-index__country {
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-index__arrow {
  color: var(--vn-accent);
  transition: transform 0.2s var(--vn-ease);
}

.vn-index__list a:hover .vn-index__arrow {
  transform: translateX(4px);
}

@media (max-width: 991.98px) {
  .vn-index__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .vn-index__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

