/* ==========================================================================
   Booking.com 复刻版 — 全站设计系统
   颜色、字体、间距、组件均对齐 Booking.com 中文站视觉规范
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #003b95;            /* Booking.com 深蓝 */
  --brand-dark: #00224f;
  --brand-600: #0057b8;
  --link: #006ce4;             /* 链接蓝 */
  --link-dark: #0057b8;
  --yellow: #ffb700;           /* 强调黄（搜索按钮/品牌） */
  --yellow-dark: #e6a500;
  --blue-bg: #ebf3ff;          /* 浅蓝背景 */
  --blue-bg-2: #d7e6ff;
  --green: #008234;
  --green-bg: #e6f5ea;
  --red: #c0392b;
  --red-bg: #fdecea;
  --orange: #e55800;
  --orange-bg: #fff3e6;
  --text: #1a1a1a;
  --text-2: #595959;
  --text-3: #7a7a7a;
  --border: #d9d9d9;
  --border-2: #e7e7e7;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-soft-2: #f8f9fb;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.16);
  --font: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: "Avenir Next", "PingFang SC", "Microsoft YaHei", BlinkMacSystemFont,
    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1140px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
svg { display: inline-block; vertical-align: middle; }
fieldset { border: none; margin: 0; padding: 0; }
::selection { background: #cfe0ff; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 32px 0; }
.section-sm { padding: 20px 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--border-2); border: 0; margin: 20px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, .h1 { font-family: var(--font-heading); font-size: 32px; line-height: 1.2; font-weight: 700; }
h2, .h2 { font-family: var(--font-heading); font-size: 24px; line-height: 1.25; font-weight: 700; }
h3, .h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
h4, .h4 { font-size: 14px; font-weight: 700; }
.title-lg { font-family: var(--font-heading); font-size: 28px; font-weight: 800; }
.section-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.section-sub { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.link-arrow { font-weight: 500; font-size: 14px; white-space: nowrap; }
.link-arrow:hover { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 14px; font-weight: 500; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--link); color: #fff; }
.btn-primary:hover { background: var(--link-dark); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--text); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--text); }
.btn-secondary { background: #fff; color: var(--link); border-color: var(--link); }
.btn-secondary:hover { background: var(--blue-bg); color: var(--link-dark); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--blue-bg); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f0f4ff; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a5321f; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-icon { padding: 8px; border-radius: 50%; color: var(--link); }
.btn-icon:hover { background: var(--blue-bg); }

/* ---------- Header ---------- */
.site-header {
  background: var(--brand); color: #fff; position: relative; z-index: 50;
}
.site-header a { color: #fff; }
.site-header a:hover { text-decoration: none; }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.header-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-logo .logo-text {
  font-family: var(--font-heading); font-size: 24px; font-weight: 800; letter-spacing: -0.3px;
  color: #fff;
}
.header-logo .logo-text:hover { opacity: 0.9; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-util {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: #fff; background: transparent;
}
.header-util:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.header-util svg { flex-shrink: 0; }
.header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  background: #fff; color: var(--brand) !important; border: 1px solid #fff;
}
.header-btn:hover { background: #eaf0ff; }
.header-btn.outline { background: transparent; color: #fff !important; border-color: #fff; }
.header-nav { display: flex; gap: 4px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.header-nav::-webkit-scrollbar { display: none; }
.header-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: var(--radius-sm); color: #fff !important; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.header-tab:hover { background: rgba(255, 255, 255, 0.14); }
.header-tab.active { border: 1px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); }
.header-tab svg { opacity: 0.95; }
.header-user { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); }
.header-user:hover { background: rgba(255, 255, 255, 0.14); }
.header-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; z-index: 100;
  border: 1px solid var(--border-2);
}
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text) !important; font-size: 14px; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown-menu .divider { margin: 6px 0; }

/* ---------- Search widget ---------- */
.searchbox {
  display: flex; gap: 0; background: #fff; border: 2px solid var(--yellow); border-radius: var(--radius);
  padding: 4px; box-shadow: var(--shadow); align-items: stretch;
}
.searchbox-field {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 0;
  border-radius: var(--radius-sm); position: relative; background: #fff;
}
.searchbox-field:hover { background: #f6f8fb; }
.searchbox-field + .searchbox-field { border-left: 1px solid var(--border-2); }
.searchbox-field svg { color: var(--text-2); flex-shrink: 0; }
.searchbox-field .field-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.searchbox-field label {
  font-size: 11px; font-weight: 600; color: var(--text-2); line-height: 1.3; letter-spacing: 0.2px;
}
.searchbox-field input {
  border: 0; outline: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--text);
  width: 100%; min-width: 0; background: transparent; height: 22px;
}
.searchbox-field input::placeholder { color: var(--text-3); font-weight: 400; }
.searchbox-field.dest { flex: 1.4; }
.searchbox-field.dates { flex: 1.15; }
.searchbox-field.guests { flex: 1.15; }
.searchbox-btn { flex-shrink: 0; margin-left: 4px; }
.searchbox .btn-search {
  height: 100%; min-height: 48px; padding: 0 28px; background: var(--link); color: #fff;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 500;
}
.searchbox .btn-search:hover { background: var(--link-dark); }
.searchbox-compact { padding: 3px; }
.searchbox-compact .searchbox-field { padding: 6px 10px; }
.searchbox-compact .searchbox-field label { font-size: 10px; }
.searchbox-compact input { font-size: 13px; height: 20px; }
.searchbox-compact .btn-search { min-height: 42px; padding: 0 22px; font-size: 14px; }
.searchbox-hidden { position: fixed; top: 0; left: 0; right: 0; background: var(--brand); padding: 10px 0; z-index: 40; box-shadow: var(--shadow); }
.business-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; color: #fff; }
.search-page .business-check { color: var(--text-2); }

/* Date range popover */
.date-popover {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-2); padding: 16px; z-index: 90; width: 640px;
}
.date-months { display: flex; gap: 24px; }
.date-month { flex: 1; }
.date-month h4 { text-align: center; margin-bottom: 8px; font-size: 14px; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-grid .dow { font-size: 11px; color: var(--text-2); text-align: center; padding: 4px 0; font-weight: 600; }
.date-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 13px; cursor: pointer; color: var(--text);
}
.date-cell:hover { background: var(--blue-bg); }
.date-cell.muted { color: #c4c4c4; cursor: default; pointer-events: none; }
.date-cell.in-range { background: var(--blue-bg); border-radius: 0; }
.date-cell.start, .date-cell.end { background: var(--link); color: #fff; font-weight: 600; }
.date-cell.disabled { color: #d9d9d9; pointer-events: none; }
.date-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.date-shortcuts { display: flex; gap: 8px; }

/* Guests popover */
.popover {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-2); padding: 16px; z-index: 90; width: 340px;
}
.stepper-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--border-2); }
.stepper-label { font-size: 14px; font-weight: 500; }
.stepper-hint { font-size: 12px; color: var(--text-2); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--link); color: var(--link);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.stepper button:disabled { border-color: var(--border); color: var(--border); cursor: not-allowed; }
.stepper .value { min-width: 24px; text-align: center; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: #001a4d; color: #fff; position: relative; overflow: hidden; }
.hero-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 0 72px; min-height: 320px;
}
.hero-copy { max-width: 600px; }
.hero-eyebrow { font-size: 14px; color: #b9d2ff; margin-bottom: 8px; }
.hero-title { font-family: var(--font-heading); font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { font-size: 18px; color: #dbe7ff; margin-top: 12px; max-width: 520px; }
.hero-cta { margin-top: 24px; }
.hero-badge { display: inline-block; background: var(--yellow); color: var(--brand); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; letter-spacing: 0.4px; }
.hero-art {
  position: relative; flex-shrink: 0; width: 420px; height: 240px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0a2a6b 0%, #0b4bb3 55%, #1a6bff 100%);
  overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-art::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(254, 187, 2, 0.9) 0%, rgba(254, 187, 2, 0) 65%);
  filter: blur(2px);
}
.hero-art-inner { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-art-title { font-family: var(--font-heading); font-size: 52px; font-weight: 900; line-height: 0.92; letter-spacing: -1px; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.hero-art-title .accent { color: var(--yellow); }
.hero-art-sub { font-size: 13px; color: #d6e4ff; margin-top: 8px; }
.hero-art-dots { position: absolute; top: 20px; right: 24px; display: flex; gap: 6px; }
.hero-art-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero-art-dots span:first-child { background: var(--yellow); }
.hero-search-wrap { margin-top: -36px; position: relative; z-index: 10; }
.hero-search-wrap .searchbox { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); }
.home-business { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin: 14px 0 0; color: var(--text-2); }

/* ---------- Badges / scores / stars ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 600; background: var(--blue-bg); color: var(--brand);
}
.badge-yellow { background: #fff3d1; color: #7a5200; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-gray { background: var(--bg-soft); color: var(--text-2); }
.badge-outline { background: #fff; border: 1px solid var(--border); color: var(--text-2); }
.badge-lg { padding: 5px 10px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: 13px; background: var(--bg-soft); color: var(--text); border: 1px solid transparent; }
.pill:hover { background: #ececec; text-decoration: none; }
.pill.active { background: var(--blue-bg); border-color: var(--link); color: var(--brand); }

.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars svg { display: block; }
.stars.gold { color: #febb02; }
.stars.sm svg { width: 12px; height: 12px; }

.score-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px;
  padding: 0 6px; border-radius: 6px 6px 6px 0; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700;
}
.score-badge.good { background: #2b5fa8; }
.score-badge.great { background: #1a7f4b; }
.score-badge.top { background: #0f7b3f; }
.score-box { display: flex; align-items: center; gap: 10px; }
.score-meta { display: flex; flex-direction: column; }
.score-label { font-size: 14px; font-weight: 600; }
.score-count { font-size: 12px; color: var(--text-2); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.card-hover:hover { box-shadow: var(--shadow); border-color: var(--border); }
.card-pad { padding: 20px; }
.card-img { width: 100%; height: 180px; object-fit: cover; background: var(--bg-soft); }

/* image tile (destinations / property types / offers) */
.tile {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background: var(--bg-soft); aspect-ratio: 4 / 3;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.tile:hover img { transform: scale(1.04); text-decoration: none; }
.tile:hover { text-decoration: none; color: #fff; }
.tile-overlay {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  color: #fff;
}
.tile-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tile-sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.tile-lg { aspect-ratio: 16 / 9; }
.tile-lg .tile-title { font-size: 22px; }

/* section header with arrows */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.carousel-arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--link);
}
.arrow-btn:hover { background: var(--blue-bg); border-color: var(--link); }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: 0 0 calc((100% - 48px) / 4); }
.carousel > .carousel-wide { flex-basis: calc((100% - 16px) / 2); }

/* mini hotel card (home carousels) */
.mini-card { border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.mini-card .img-wrap { position: relative; }
.mini-card .img-wrap img { width: 100%; height: 150px; object-fit: cover; }
.mini-card .heart {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.mini-card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mini-card .name { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card .loc { font-size: 12px; color: var(--text-2); }
.mini-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 18px; font-weight: 700; color: var(--text); }
.price-small { font-size: 13px; font-weight: 600; }
.price-note { font-size: 12px; color: var(--text-2); font-weight: 400; }
.price-old { font-size: 13px; color: var(--text-3); text-decoration: line-through; margin-right: 6px; }

/* property search result card */
.property-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 210px; gap: 0;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
}
.property-card + .property-card { margin-top: 16px; }
.property-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.property-media { position: relative; }
.property-media img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.property-media .heart {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.property-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.property-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.property-title a { color: var(--text); }
.property-title a:hover { color: var(--link); text-decoration: none; }
.property-loc { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.property-loc a { font-weight: 500; }
.property-dist { font-size: 12px; color: var(--text-2); }
.property-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--green);
  background: var(--green-bg); padding: 3px 8px; border-radius: 4px; font-weight: 500;
}
.tag-blue { color: var(--brand); background: var(--blue-bg); }
.property-perks { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.perk { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 6px; }
.perk.neutral { color: var(--text-2); }
.property-price-col {
  padding: 16px; border-left: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 10px;
}
.property-price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.property-price-col .btn { margin-top: auto; }
.review-row { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* ---------- Filters (search sidebar) ---------- */
.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 16px; }
.filter-block { border: 1px solid var(--border-2); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.filter-block h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.filter-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.filter-list.expanded { max-height: none; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--text); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--link); margin: 0; flex-shrink: 0; }
.checkbox .count { color: var(--text-3); font-size: 12px; margin-left: auto; }
.range-inputs { display: flex; gap: 8px; align-items: center; }
.range-inputs input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; outline: none;
}
.range-inputs input:focus { border-color: var(--link); box-shadow: 0 0 0 2px rgba(0, 108, 228, 0.15); }
.filter-more { font-size: 13px; font-weight: 500; color: var(--link); margin-top: 8px; display: inline-block; }

/* ---------- Results toolbar ---------- */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }
.results-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.sort-select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
  background: #fff; min-width: 180px;
}
.view-toggles { display: flex; gap: 8px; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb .sep { color: var(--text-3); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 8px; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--link); background: #fff;
}
.page-btn:hover { background: var(--blue-bg); text-decoration: none; }
.page-btn.active { background: var(--link); border-color: var(--link); color: #fff; }
.page-btn:disabled { color: var(--text-3); border-color: var(--border-2); cursor: not-allowed; }
.results-map { position: sticky; top: 16px; }
.map-card {
  height: 180px; border-radius: var(--radius-lg); border: 1px solid var(--border-2); overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, #e8f1ff 0 20%, transparent 21%),
    radial-gradient(circle at 70% 60%, #e8f1ff 0 24%, transparent 25%),
    repeating-linear-gradient(90deg, #f2f2f2 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, #f2f2f2 0 1px, transparent 1px 40px),
    #fafafa;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; }
.map-pin span { transform: rotate(45deg); color: #fff; font-size: 14px; font-weight: 700; }

/* empty state */
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-2); margin-bottom: 20px; }

/* ---------- Hotel detail page ---------- */
.hotel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.hotel-title { font-family: var(--font-heading); font-size: 32px; font-weight: 800; line-height: 1.15; }
.hotel-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 130px 130px; gap: 6px; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: filter 0.15s; }
.gallery-grid img:hover { filter: brightness(0.92); }
.gallery-grid img:first-child { grid-row: 1 / 3; }
.hotel-actions { display: flex; gap: 8px; flex-shrink: 0; }
.hotel-facilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.facility-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.facility-item svg { color: var(--text-2); flex-shrink: 0; }
.hotel-info-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.sticky-side { position: sticky; top: 20px; }
.highlight-card { border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.highlight-card + .highlight-card { margin-top: 16px; }
.highlight-list { display: flex; flex-direction: column; gap: 10px; }
.highlight-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.highlight-item svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; }
.hotel-section { padding: 24px 0; border-top: 1px solid var(--border-2); }
.hotel-section:first-of-type { border-top: 0; }
.desc-text { color: var(--text); line-height: 1.7; white-space: pre-line; }
.review-score-card { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; }
.review-score-big { font-size: 40px; font-weight: 800; line-height: 1; }
.review-score-label { font-size: 18px; font-weight: 700; }
.breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.breakdown-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.breakdown-row .label { flex: 1; color: var(--text-2); }
.breakdown-row .score { font-weight: 700; }
.meter { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; width: 90px; }
.meter span { display: block; height: 100%; background: var(--link); border-radius: 3px; }
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border-2); }
.review-card:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.review-author { font-weight: 700; }
.review-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.review-title { font-size: 15px; font-weight: 700; margin: 8px 0 4px; }
.review-body { font-size: 14px; line-height: 1.6; }
.review-pros { margin-top: 8px; font-size: 13px; color: var(--green); }
.review-cons { margin-top: 4px; font-size: 13px; color: var(--red); }

/* room table */
.room-card { border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 16px; display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 16px; align-items: stretch; }
.room-card + .room-card { margin-top: 12px; }
.room-card img { width: 100%; border-radius: var(--radius); height: 100%; object-fit: cover; min-height: 130px; }
.room-body { display: flex; flex-direction: column; gap: 8px; }
.room-name { font-size: 17px; font-weight: 700; }
.room-fac { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.room-fac li { display: flex; align-items: center; gap: 4px; }
.room-price { border-left: 1px solid var(--border-2); padding-left: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.room-price .price { font-size: 22px; }
.available-left { font-size: 12px; color: var(--red); font-weight: 600; }
.available-ok { font-size: 12px; color: var(--green); font-weight: 600; }

/* booking steps */
.steps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin: 20px 0; }
.steps .step { display: flex; align-items: center; gap: 8px; }
.steps .num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.steps .step.active .num { background: var(--link); color: #fff; }
.steps .step.active { color: var(--text); font-weight: 600; }
.steps .sep { flex: 1; height: 1px; background: var(--border-2); min-width: 24px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }

/* forms */
.form-row { margin-bottom: 16px; }
.form-row label, .field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--link); box-shadow: 0 0 0 2px rgba(0, 108, 228, 0.15); }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 90px; resize: vertical; }
.input.highlight { border: 2px solid var(--link); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-hint { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }
.form-card { border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { font-size: 20px; margin-bottom: 16px; }
.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.radio-row + .radio-row { margin-top: 8px; }
.radio-row.selected { border-color: var(--link); background: var(--blue-bg); }
.radio-row input { margin-top: 2px; accent-color: var(--link); }

/* summary card */
.summary-card { border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.summary-media { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-2); }
.summary-media img { width: 88px; height: 66px; border-radius: var(--radius-sm); object-fit: cover; }
.summary-body { padding: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; color: var(--text-2); }
.summary-row .v { color: var(--text); font-weight: 500; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-2); margin-top: 10px; padding-top: 14px; font-size: 16px; font-weight: 700; }
.free-cancel { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 13px; font-weight: 500; }

/* confirmation page */
.confirm-wrap { max-width: 760px; margin: 0 auto; padding: 40px 0 64px; }
.confirm-banner { display: flex; gap: 16px; align-items: flex-start; background: var(--green-bg); border: 1px solid #b7dfc4; border-radius: var(--radius-lg); padding: 24px; }
.confirm-check { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.confirm-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 1px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.detail-item .k { font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.detail-item .v { font-size: 14px; font-weight: 500; }

/* my trips */
.trip-card { border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; }
.trip-card + .trip-card { margin-top: 16px; }
.trip-card img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.trip-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.trip-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-2); margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent;
  white-space: nowrap; background: none;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--link); border-bottom-color: var(--link); }
.tab .count { font-weight: 400; color: var(--text-2); margin-left: 4px; }

/* auth pages */
.auth-wrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.auth-panel { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-aside { background: linear-gradient(150deg, #001a4d, #003b95 60%, #0a63d6); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-aside h2 { font-size: 32px; line-height: 1.2; }
.auth-aside ul { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #dbe7ff; }
.auth-card { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-logo { margin-bottom: 24px; }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--text-2); margin-bottom: 24px; }
.auth-hint { background: var(--blue-bg); border-radius: var(--radius); padding: 12px 14px; font-size: 12px; color: var(--brand); margin-top: 16px; line-height: 1.6; }
.social-divider { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 12px; margin: 20px 0; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.social-btns { display: flex; flex-direction: column; gap: 8px; }

/* Genius banner */
.genius-banner {
  background: linear-gradient(110deg, #00224f 0%, #003b95 60%, #0b57c4 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 32px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; overflow: hidden; position: relative;
}
.genius-banner h2 { font-size: 26px; margin-bottom: 8px; }
.genius-banner p { color: #d6e4ff; max-width: 560px; }
.genius-art { font-size: 64px; font-weight: 900; color: var(--yellow); letter-spacing: -2px; flex-shrink: 0; }

/* toast */
.toast-wrap { position: fixed; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast {
  background: #1a1a1a; color: #fff; padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 14px; max-width: 360px; animation: toast-in 0.2s ease;
}
.toast.success { background: #06662c; }
.toast.error { background: #8f2219; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 900; }
.modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 24px; position: relative;
}
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.modal-close:hover { background: var(--bg-soft); }
.modal h3 { font-size: 20px; margin-bottom: 8px; }

/* footer */
.site-footer { background: var(--bg-soft); margin-top: 48px; padding: 40px 0 24px; color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text); }
.footer-col a:hover { color: var(--link); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px;
}
.footer-bottom .logo-text { color: var(--brand); font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.footer-legal a { color: var(--text-2); }
.footer-meta { font-size: 12px; color: var(--text-2); }
.footer-langs { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 34px; }
  .hero-art { width: 340px; height: 210px; }
  .hero-art-title { font-size: 42px; }
  .search-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .hotel-info-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .carousel > * { flex-basis: calc((100% - 32px) / 3); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 16px; }
  .header-top { min-height: 60px; }
  .header-logo .logo-text { font-size: 20px; }
  .header-actions .hide-sm { display: none; }
  .header-nav { padding-bottom: 8px; }
  .header-tab { padding: 8px 10px; font-size: 13px; }
  h1, .h1 { font-size: 26px; }
  h2, .h2 { font-size: 20px; }
  .section-title { font-size: 20px; }
  .hero-inner { padding: 32px 0 56px; min-height: 0; }
  .hero-search-wrap { margin-top: -24px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-art { display: none; }
  .searchbox { flex-direction: column; padding: 6px; gap: 2px; }
  .searchbox-field { border-left: 0 !important; border-bottom: 1px solid var(--border-2); padding: 10px 12px; }
  .searchbox-field:last-of-type { border-bottom: 0; }
  .searchbox-btn { margin: 6px 0 0; }
  .searchbox .btn-search { width: 100%; min-height: 48px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .property-card { grid-template-columns: 1fr; }
  .property-media img { min-height: 180px; height: 180px; }
  .property-price-col { border-left: 0; border-top: 1px solid var(--border-2); flex-direction: row; align-items: center; justify-content: space-between; }
  .property-price-col .btn { margin-top: 0; }
  .review-row { justify-content: flex-start; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-block { padding: 12px; }
  .hotel-info-grid { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 90px; }
  .gallery-grid img:first-child { grid-row: auto; grid-column: 1 / 3; }
  .hotel-head { flex-direction: column; gap: 12px; }
  .hotel-title { font-size: 24px; }
  .hotel-facilities { grid-template-columns: 1fr; }
  .room-card { grid-template-columns: 1fr; }
  .room-card img { height: 160px; min-height: 0; }
  .room-price { border-left: 0; border-top: 1px solid var(--border-2); padding-left: 0; padding-top: 12px; flex-direction: row; align-items: center; justify-content: space-between; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .breakdown { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-panel { padding: 32px 20px; }
  .genius-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .genius-art { font-size: 48px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel > * { flex-basis: calc((100% - 16px) / 2); }
  .carousel > .carousel-wide { flex-basis: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .trip-card { grid-template-columns: 1fr; }
  .trip-card img { height: 160px; min-height: 0; }
  .date-popover, .popover { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 70vh; overflow-y: auto; }
  .date-months { flex-direction: column; gap: 8px; }
  .results-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   搜索框内部补充样式（日期/人数触发器、目的地联想、日历头部）
   ========================================================================== */
.date-trigger, .guest-trigger {
  border: 0; background: transparent; padding: 0; margin: 0; text-align: left;
  font-size: 14px; font-weight: 500; color: var(--text); height: 22px; line-height: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; cursor: pointer;
}
.searchbox-compact .date-trigger, .searchbox-compact .guest-trigger { font-size: 13px; height: 20px; line-height: 20px; }
.date-trigger:focus-visible, .guest-trigger:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.calendar-hint { font-size: 12px; color: var(--text-2); }
.date-popover .date-cell { font-size: 13px; }
.suggest-pop {
  position: absolute; top: calc(100% + 6px); left: 0; width: 340px; background: #fff;
  border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 95;
}
.suggest-head { font-size: 12px; color: var(--text-2); padding: 8px 10px; }
.suggest-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; text-align: left;
  border-radius: var(--radius-sm); color: var(--text);
}
.suggest-item:hover { background: var(--bg-soft); }
.suggest-item svg { color: var(--text-2); flex-shrink: 0; }
.suggest-name { display: block; font-size: 14px; font-weight: 500; }
.suggest-meta { display: block; font-size: 12px; color: var(--text-2); }
.suggest-more { display: block; width: 100%; padding: 10px; text-align: left; color: var(--link); font-size: 13px; font-weight: 500; border-top: 1px solid var(--border-2); margin-top: 4px; }
.suggest-more:hover { background: var(--bg-soft); }
.header-search { padding-bottom: 12px; }
.pb-12 { padding-bottom: 12px; }

/* ==========================================================================
   首页模块
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--blue-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.why-title { font-size: 15px; font-weight: 700; }
.why-text { font-size: 13px; color: var(--text-2); line-height: 1.55; }

.offer-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: #fff; min-height: 200px; position: relative; }
.offer-card .offer-media { position: relative; height: 120px; }
.offer-card .offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-card .offer-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.offer-card .offer-title { font-size: 16px; font-weight: 700; }
.offer-card .offer-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-card .offer-foot { margin-top: auto; padding-top: 10px; }
.offer-card.is-promo { background: linear-gradient(135deg, #00224f 0%, #003b95 55%, #0b57c4 100%); color: #fff; border-color: transparent; }
.offer-card.is-promo .offer-desc { color: #d6e4ff; }
.offer-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.offer-card.is-promo .offer-media { height: 0; }

.type-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.type-card:hover img { transform: scale(1.04); }
.type-card:hover { text-decoration: none; }
.type-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; font-size: 16px; font-weight: 700; }

.home-hotel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.heart-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--brand); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.18); z-index: 2;
}
.heart-btn:hover { background: #fff; }
.heart-btn.active { color: #d11a2a; }
.img-wrap { position: relative; overflow: hidden; }
.img-wrap img { display: block; }

.genius-points { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.genius-point { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d6e4ff; }

.recent-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-card { flex: 0 0 260px; border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; }
.recent-card img { width: 100%; height: 120px; object-fit: cover; }
.recent-card .body { padding: 10px 12px; }
.recent-card .name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 页脚双行 */
.text-right-sm { text-align: right; }
@media (max-width: 768px) {
  .text-right-sm { text-align: left; }
  .why-grid { grid-template-columns: 1fr; gap: 18px; }
  .why-item { flex-direction: row; align-items: flex-start; gap: 14px; }
  .home-hotel-row { grid-template-columns: 1fr; }
  .why-icon { flex-shrink: 0; }
  .suggest-pop { width: 100%; left: 0; }
}

/* 优惠卡片徽章与促销卡补丁 */
.offer-card.is-promo .offer-body { padding-top: 44px; }
.offer-card .offer-badge { position: absolute; top: 12px; left: 14px; }
.offer-card .offer-title { margin-top: 2px; }
.mini-card .foot { flex-direction: column; align-items: flex-start; gap: 2px; }
.mini-card .foot .badge { order: -1; margin-bottom: 2px; }
.mini-card .price { font-size: 17px; }
.mini-card .price-note { display: block; margin-top: 1px; }

/* 移动端页头紧凑化 */
@media (max-width: 480px) {
  .header-top { gap: 8px; }
  .header-logo .logo-text { font-size: 18px; letter-spacing: -0.5px; }
  .header-actions { gap: 4px; }
  .header-btn { padding: 8px 12px; font-size: 13px; }
  .header-user { padding: 6px 8px; }
  .header-avatar { width: 24px; height: 24px; font-size: 12px; }
  .header-tab { padding: 8px 8px; gap: 6px; }
  .header-tab svg { width: 16px; height: 16px; }
}

/* ---------- 支付相关（收银台支付方式标签） ---------- */
.pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  background: #eef2f8;
  color: #5a6b85;
  vertical-align: middle;
  white-space: nowrap;
}
.pay-badge.paypal {
  background: #e8f0ff;
  color: #123a8f;
  border: 1px solid #d3e2ff;
}

/* ---------- 页头 语言 / 货币 选择器 ---------- */
.header-select .header-util { display: inline-flex; align-items: center; gap: 6px; }
.header-select .dropdown-menu.header-menu {
  min-width: 230px;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 6px;
  right: 0;
  left: auto;
}
.header-menu-title {
  padding: 8px 10px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-3);
  text-transform: uppercase;
}
.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.dropdown-menu .dropdown-item:hover { background: var(--bg-soft); }
.dropdown-menu .dropdown-item.active { background: var(--blue-bg, #ebf3ff); color: var(--link); font-weight: 600; }
.dropdown-menu .dropdown-item .cur-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  flex: none;
  border-radius: 6px;
  background: #eef2f8;
  font-size: 12.5px;
  font-weight: 700;
  color: #354155;
}
.dropdown-menu .dropdown-item .small { flex: none; }


/* 移动端：语言 / 货币切换只显示图标，点开仍可切换 */
@media (max-width: 768px) {
  .header-select .header-util { padding: 6px 8px; gap: 2px; }
  .header-select .header-util span { display: none; }
  .header-select .header-util svg:last-child { display: none; }
  .header-select .dropdown-menu.header-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    left: auto;
    min-width: 230px;
    max-width: calc(100vw - 24px);
  }
}
