:root {
  --ink: #202b43;
  --muted: #657087;
  --indigo: #4445a4;
  --pale: #f2f4f8;
  --line: #e7e9ef;
  --white: #fff;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: absolute; z-index: 10; inset: 0 0 auto; width: 100%; }
.nav-row { position: relative; display: grid; width: 100%; min-height: 72px; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(24px, calc((100vw - 1080px) / 2)); background: rgba(255,255,255,.98); }
.brand { display: inline-flex; width: max-content; align-items: center; }
.brand-logo { display: block; width: 170px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.nav-links a { position: relative; display: inline-block; padding: 8px 0; color: #26334c; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-links a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: #4648c9; content: ""; transform: scaleX(0); transform-origin: center; transition: transform .28s ease; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--indigo); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-contact { display: flex; justify-self: end; align-items: center; color: var(--indigo); }
.nav-contact svg { width: 31px; height: 31px; }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--indigo); cursor: pointer; }
.menu-toggle svg { width: 19px; height: 19px; }
:focus-visible { outline: 2px solid #7172df; outline-offset: 3px; }

.packages-hero { position: relative; display: grid; min-height: 430px; place-items: center; overflow: hidden; background: #24384a; color: white; text-align: center; }
.packages-hero-image, .packages-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.packages-hero-image { object-fit: cover; object-position: center 54%; }
.packages-hero-shade { background: linear-gradient(90deg, rgba(13,24,38,.55), rgba(18,25,36,.28) 52%, rgba(17,25,39,.48)), linear-gradient(0deg, rgba(15,21,31,.45), transparent 78%); }
.packages-hero-copy { position: relative; z-index: 1; width: min(730px, calc(100% - 40px)); padding: 88px 0 28px; }
.eyebrow { margin: 0 0 12px; color: rgba(255,255,255,.83); font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.packages-hero h1 { margin: 0; color: white; font-size: clamp(38px, 6vw, 62px); font-weight: 750; line-height: 1.15; }
.packages-hero-copy > p:last-child { max-width: 570px; margin: 18px auto 0; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.8; }
.packages-section { padding-top: 64px; padding-bottom: 82px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.eyebrow-dark { margin-bottom: 9px; color: var(--indigo); }
.catalog-heading h2, .detail-section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(27px, 3.2vw, 36px); font-weight: 750; line-height: 1.3; }
.results-count { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.sort-control { display: grid; gap: 7px; min-width: 174px; color: var(--muted); font-size: 12px; font-weight: 700; }
.sort-control select { min-height: 44px; padding: 0 36px 0 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 13px; }
.search-form { display: flex; align-items: end; gap: 12px; margin-bottom: 27px; }
.search-box { display: flex; min-height: 50px; flex: 1; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-box:focus-within { border-color: #999add; box-shadow: 0 0 0 3px rgba(68,69,164,.09); }
.search-box svg { width: 21px; height: 21px; flex: 0 0 auto; color: #737d90; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #929bad; }
.price-range { display: flex; gap: 8px; }
.price-range-field { display: grid; min-width: 125px; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.price-input-wrap { display: flex; min-height: 40px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #778196; font-size: 11px; }
.price-input-wrap:focus-within { border-color: #999add; box-shadow: 0 0 0 3px rgba(68,69,164,.09); }
.price-input-wrap input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.price-input-wrap input::placeholder { color: #929bad; }
.price-input-wrap input::-webkit-inner-spin-button, .price-input-wrap input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.price-input-wrap input { appearance: textfield; }
.search-clear { min-height: 42px; padding: 0 14px; border: 0; background: transparent; color: var(--indigo); font-size: 13px; font-weight: 700; cursor: pointer; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 22px; }
.package-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e9ebf0; border-radius: 12px; background: white; box-shadow: 0 6px 22px rgba(32,43,67,.055); transition: transform .2s ease, box-shadow .2s ease; }
.package-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(32,43,67,.12); }
.package-card-image-link { position: relative; display: block; overflow: hidden; background: #e8edf2; }
.package-card-image { width: 100%; height: 205px; object-fit: cover; transition: transform .35s ease; }
.package-card:hover .package-card-image { transform: scale(1.04); }
.package-card-badge { position: absolute; top: 13px; left: 13px; max-width: calc(100% - 26px); padding: 6px 10px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.94); color: var(--indigo); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.package-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 17px 16px; }
.package-card-location { display: -webkit-box; height: 31px; align-items: start; gap: 6px; margin: 0 0 8px; overflow: hidden; color: #748096; font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.package-card-location svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--indigo); }
.package-card-title { display: -webkit-box; height: 46px; margin: 0; overflow: hidden; color: #26334c; font-size: 16px; font-weight: 750; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.package-card-desc { display: -webkit-box; height: 57px; margin: 10px 0 14px; overflow: hidden; color: #657087; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.package-card-meta { display: flex; height: 23px; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; overflow: hidden; }
.package-meta-pill { padding: 4px 8px; border-radius: 4px; background: #f2f4f8; color: #5f6b81; font-size: 10px; }
.package-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #eef0f4; }
.package-price-label { display: block; margin-bottom: 3px; color: #828b9b; font-size: 10px; }
.package-price { color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.package-rating { margin-bottom: 4px; color: #8b641c; font-size: 11px; white-space: nowrap; }
.package-rating strong { color: #323d53; }
.card-link { color: var(--indigo); font-size: 11px; font-weight: 750; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 52px 24px; border: 1px dashed #d7dbe5; border-radius: 12px; background: #fafbfc; text-align: center; }
.empty-state h3, .empty-state h1 { margin: 0 0 9px; color: var(--ink); font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 38px; }
.page-button { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #526078; font-size: 13px; cursor: pointer; }
.page-button:hover:not(:disabled), .page-button[aria-current="page"] { border-color: var(--indigo); background: var(--indigo); color: white; }
.page-button:disabled { opacity: .42; cursor: not-allowed; }
.load-error { padding: 18px; border-radius: 8px; background: #fff0ef; color: #9b342d; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

.product-main { min-height: 65vh; padding-top: 104px; padding-bottom: 84px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 13px 0 30px; color: #7a8496; font-size: 12px; }
.breadcrumb a:hover { color: var(--indigo); }
.breadcrumb span[aria-current="page"] { max-width: min(460px, 70vw); overflow: hidden; color: #3c4961; text-overflow: ellipsis; white-space: nowrap; }
.product-heading { max-width: 850px; margin: 0 0 27px; }
.product-heading h1 { margin: 0; color: var(--ink); font-size: clamp(27px, 4vw, 41px); font-weight: 800; line-height: 1.25; }
.product-location { margin: 12px 0 8px; color: #657087; font-size: 14px; }
.product-rating { display: flex; align-items: center; gap: 7px; color: #7d5c1c; font-size: 13px; }
.product-rating strong { color: var(--ink); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .72fr); align-items: start; gap: 30px; }
.product-gallery { min-width: 0; }
.product-main-image { position: relative; overflow: hidden; border-radius: 12px; background: #e8edf2; }
.product-main-image > img { width: 100%; height: 440px; object-fit: cover; }
.gallery-counter { position: absolute; right: 13px; bottom: 13px; padding: 7px 11px; border-radius: 20px; background: rgba(24,31,43,.72); color: white; font-size: 11px; }
.product-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 8px; }
.product-thumbnail { width: 80px; height: 64px; flex: 0 0 auto; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 7px; background: #e8edf2; cursor: pointer; }
.product-thumbnail[aria-pressed="true"] { border-color: var(--indigo); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.booking-card { position: sticky; top: 24px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 28px rgba(32,43,67,.07); }
.booking-label { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.booking-price { margin: 0; color: var(--ink); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; overflow-wrap: anywhere; }
.booking-note { margin: 15px 0 20px; color: #68748a; font-size: 12px; line-height: 1.8; }
.pill-button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 24px; background: var(--indigo); color: white; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; cursor: pointer; }
.pill-button:hover { transform: translateY(-2px); background: #333482; }
.booking-button { width: 100%; }
.booking-assurance { margin: 13px 0 0; color: #7a8496; font-size: 11px; line-height: 1.7; text-align: center; }
.product-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.fact-chip { display: flex; align-items: center; gap: 8px; min-height: 33px; padding: 7px 11px; border-radius: 6px; background: white; color: #4c5870; font-size: 12px; }
.fact-chip::before { width: 6px; height: 6px; border-radius: 50%; background: #5c5db8; content: ""; }
.product-description { padding-top: 56px; }
.related-packages { padding-top: 56px; }
.detail-section-heading { margin-bottom: 18px; }
.detail-section-heading h2 { font-size: 27px; }
.description-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.description-item { position: relative; padding: 16px 17px 16px 42px; border: 1px solid #eaecf1; border-radius: 9px; color: #58657c; font-size: 13px; line-height: 1.75; }
.description-item::before { position: absolute; top: 17px; left: 17px; color: var(--indigo); font-size: 15px; font-weight: 800; content: "✓"; }
.product-error { margin-top: 40px; }
.product-error .pill-button { margin-top: 22px; }

.site-footer { padding: 48px 0 38px; background: white; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr .85fr 1.4fr; gap: 40px; }
.footer-about { max-width: 245px; margin: 21px 0 0; color: #4d5b72; font-size: 10px; line-height: 1.9; }
.footer-col h3 { margin: 4px 0 17px; color: #26334c; font-size: 13px; font-weight: 750; }
.footer-col ul { display: grid; gap: 11px; padding: 0; margin: 0; list-style: none; }
.footer-col li, .footer-col p, .footer-col a { color: #5e6878; font-size: 10px; line-height: 1.8; }
.footer-col a:hover { color: var(--indigo); }
.footer-contact { margin-top: 12px !important; }
.footer-bottom { margin-top: 40px; padding-top: 17px; border-top: 1px solid var(--line); color: #5d6680; font-size: 10px; text-align: center; }
.back-top { position: fixed; z-index: 8; right: 20px; bottom: 18px; display: grid; width: 35px; height: 35px; place-items: center; border-radius: 3px; background: var(--indigo); color: white; }
.back-top svg { width: 17px; height: 17px; }

@media (min-width: 801px) and (max-width: 1100px) {
  .footer-grid { gap: 25px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 70px; }
  .nav-row { min-height: 66px; grid-template-columns: 1fr auto auto; gap: 14px; padding-inline: 22px; }
  .nav-row > nav { position: absolute; inset: 0; pointer-events: none; }
  .menu-toggle { display: grid; }
  .nav-links { position: absolute; top: 59px; right: 10px; left: 10px; display: none; align-items: stretch; gap: 0; padding: 10px 18px 14px; border-radius: 0 0 18px 18px; background: white; box-shadow: 0 15px 24px rgba(32,43,67,.12); pointer-events: auto; }
  .nav-links.is-open { display: flex; flex-direction: column; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 12px 2px; font-size: 14px; }
  .nav-contact svg { width: 27px; height: 27px; }
  .packages-hero { min-height: 390px; }
  .packages-section { padding-top: 52px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-main { padding-top: 91px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .booking-card { position: static; }
  .product-main-image > img { height: min(54vw, 430px); min-height: 280px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 25px; }
  .footer-about, .footer-col h3, .footer-col li, .footer-col p, .footer-col a, .footer-bottom { font-size: 13px; }
}
@media (max-width: 540px) {
  .wrap { width: min(100% - 36px, 1080px); }
  .nav-row { min-height: 64px; padding-inline: 18px; }
  .brand-logo { width: 145px; }
  .menu-toggle { width: 37px; height: 37px; }
  .packages-hero { min-height: 340px; }
  .packages-hero-copy { padding-top: 76px; }
  .packages-hero-copy > p:last-child { font-size: 13px; }
  .packages-section { padding-top: 42px; padding-bottom: 58px; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 16px; }
  .sort-control { width: 100%; }
  .search-form { flex-wrap: wrap; align-items: end; gap: 9px; }
  .search-box { flex-basis: 100%; }
  .price-range { flex: 1; }
  .price-range-field { min-width: 0; flex: 1; }
  .search-clear { padding-inline: 8px; font-size: 11px; }
  .package-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .package-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .package-card-image-link { min-height: 100%; }
  .package-card-image { height: 100%; min-height: 205px; }
  .package-card-body { padding: 13px; }
  .package-card-location { height: 29px; margin-bottom: 6px; font-size: 10px; }
  .package-card-title { height: 40px; font-size: 14px; }
  .package-card-desc { height: 38px; margin: 8px 0 10px; font-size: 11px; line-height: 1.7; -webkit-line-clamp: 2; }
  .package-card-meta { height: 20px; gap: 4px; margin-bottom: 9px; }
  .package-meta-pill { font-size: 9px; }
  .package-card-bottom { align-items: start; flex-direction: column; gap: 7px; padding-top: 9px; }
  .package-price { font-size: 16px; }
  .product-main { padding-top: 80px; padding-bottom: 60px; }
  .breadcrumb { gap: 7px; margin-bottom: 22px; font-size: 11px; }
  .product-heading h1 { font-size: 27px; }
  .product-main-image > img { height: 63vw; min-height: 220px; }
  .product-thumbnails { gap: 7px; }
  .product-thumbnail { width: 70px; height: 55px; }
  .booking-card { padding: 20px; }
  .product-facts { gap: 7px; padding: 13px; }
  .fact-chip { font-size: 11px; }
  .product-description { padding-top: 42px; }
  .related-packages { padding-top: 42px; }
  .description-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-brand, .footer-col:last-child { grid-column: span 2; }
  .site-footer { padding-top: 39px; }
  .footer-bottom { margin-top: 30px; line-height: 1.7; }
  .back-top { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
