/*
 * HAINAN TOUR global refinement layer
 * Keeps existing layouts and interactions while unifying spacing, radii,
 * typography and surface hierarchy across all public pages.
 */

html {
  scroll-padding-top: 92px;
}

body {
  font-size: 16px;
  line-height: 1.68;
  background: #f7f9f8;
}

main {
  min-width: 0;
}

.site-header,
.notice-bar,
.page-hero,
.home-hero,
.detail-banner,
.activity-hero {
  background-color: var(--color-white);
}

.section,
.news-section,
.account-section,
.activity-section,
.builder-section {
  padding-block: var(--section-space);
}

.page-title {
  max-width: 18ch;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.section-title {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.page-hero .container > p:last-child,
.home-section-heading > p,
.catalog-heading > p,
.news-page-head p,
.account-hero p {
  max-width: 720px;
  line-height: 1.75;
}

/* Interactive elements remain soft and obvious; decorative sections do not. */
.button,
.form-control,
.search-widget__control,
button[class*="cta"],
a[class*="cta"] {
  border-radius: var(--radius-sm);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  margin-bottom: 10px;
}

.form-control,
.search-widget__control {
  min-height: 52px;
  padding-inline: 16px;
  background: #fff;
}

.card,
.course-card,
.travel-item-card,
.golf-package-card,
.news-card,
.hotel-card,
.auth-card,
.profile-card,
.benefits-card,
.account-panel,
.activity-card,
.builder-elevated-card,
.builder-summary,
.ref-card,
.itinerary-card,
.course-flow-card {
  border-color: rgba(112, 132, 137, .22);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.card:hover,
.course-card:hover,
.travel-item-card:hover,
.golf-package-card:hover,
.news-card:hover,
.hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__media,
.course-card__img-wrapper,
.travel-item-card .card__media,
.golf-package-card__media,
.news-card__media {
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.card__body,
.course-card__body {
  padding: 22px;
}

.card__title {
  margin-bottom: 10px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.card__desc {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Catalogs: filters read as controls, products remain the visual focus. */
.travel-catalog-section,
.golf-catalog-section {
  background: #fff;
}

.travel-filter-panel,
.golf-filter-panel,
.sidebar-filter,
.search-widget,
.travel-results__bar,
.news-filter-panel {
  border-color: rgba(112, 132, 137, .2);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.travel-results__bar,
.sorting-bar {
  background: #f8faf9;
}

.travel-package-grid,
.golf-package-grid,
.news-card-grid,
.card-grid {
  gap: 32px 24px;
}

/* Large page areas are separated by rhythm and hairlines instead of nested boxes. */
.home-section-heading,
.catalog-heading,
.detail-section-heading,
.activity-content > section,
.account-content > section {
  margin-bottom: 32px;
}

.home-planner__shell,
.detail-customizer,
.activity-layout,
.account-layout {
  border-color: rgba(112, 132, 137, .18);
  box-shadow: none;
}

.home-planner__panel,
.home-planner-results__summary,
.custom-itinerary-summary,
.activity-guide,
.activity-source {
  box-shadow: none;
}

/* Package detail: give long content room and remove the box-inside-box feeling. */
.product-visual-shell,
.product-hero-shell,
.detail-product-hero,
.travel-detail-hero,
.golf-detail-hero {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.product-summary,
.product-hero__info,
.detail-hero__info {
  padding: clamp(28px, 3vw, 44px);
}

.product-summary h1,
.product-hero__info h1,
.detail-hero__info h1 {
  overflow: visible;
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  line-height: 1.28;
  text-overflow: unset;
  white-space: normal;
  word-break: keep-all;
}

/* Planner: one clear task, compact secondary information. */
.builder-layout {
  gap: 32px;
}

.builder-main,
.builder-elevated-card {
  min-width: 0;
}

.builder-elevated-card {
  overflow: visible;
  border-radius: var(--radius-lg);
}

.builder-main .builder-step {
  padding-inline: clamp(20px, 3vw, 40px);
}

.builder-summary {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.builder-category-tabs {
  gap: 8px;
}

.builder-category-tabs button,
.package-tab,
.news-magazine__tab-btn,
.package-category-tabs button,
.course-category-tabs button {
  min-height: 42px;
  border-radius: 999px;
}

/* Account and auth screens are calmer, with fewer elevated containers. */
.auth-wrapper {
  padding-block: clamp(56px, 8vw, 96px);
}

.auth-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.account-layout {
  gap: 32px;
}

.account-panel {
  padding: clamp(24px, 3vw, 40px);
}

@media (max-width: 1023px) {
  body { font-size: 15px; }
  .section,
  .news-section,
  .account-section,
  .activity-section,
  .builder-section { padding-block: clamp(52px, 8vw, 72px); }
  .builder-layout,
  .account-layout { gap: 24px; }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; }
  body { line-height: 1.62; }
  .page-title { font-size: clamp(1.8rem, 9vw, 2.25rem); }
  .section-title { font-size: clamp(1.45rem, 7vw, 1.8rem); }
  .card-grid,
  .travel-package-grid,
  .golf-package-grid,
  .news-card-grid { gap: 24px; }
  .card__body,
  .course-card__body { padding: 20px; }
  .builder-main .builder-step { padding-inline: 18px; }
  .auth-card,
  .account-panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .course-card,
  .travel-item-card,
  .golf-package-card,
  .news-card,
  .hotel-card { transition: none; }
  .card:hover,
  .course-card:hover,
  .travel-item-card:hover,
  .golf-package-card:hover,
  .news-card:hover,
  .hotel-card:hover { transform: none; }
}
