/* Modern travel-site design system — homepage + shared chrome */
:root {
  --brand: #cc2650; /* was #e0335a (4.38:1 on white); 5.30:1 (F31) */
  --brand-dark: #b91c47;
  --ink: #1f2937;
  --muted: #6b7280;
  --cream: #fbf7f3;
  --line: #ececec;
  --amber: #f59e0b;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
  --shadow-sm: 0 6px 18px rgba(31, 41, 55, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; margin: 8px 0 10px; letter-spacing: -0.02em; }
.lead { color: var(--muted); max-width: 620px; }
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-radius: 999px; padding: 12px 24px; cursor: pointer; border: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; font-size: 0.95rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(224, 51, 90, 0.32); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.nav .brand img { width: 34px; height: 34px; }
.nav .brand b { color: var(--brand); }
.nav .links { display: flex; gap: 24px; margin-left: 18px; }
.nav .links a { font-weight: 600; color: #374151; font-size: 0.95rem; }
.nav .links a:hover, .nav .links a.active { color: var(--brand); }
.nav .spacer { flex: 1; }
.nav .nav-cta { display: flex; align-items: center; gap: 12px; }
.nav .lang { font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.82rem; }
.nav .lang:hover { color: var(--brand); border-color: var(--brand); }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); transition: opacity 1.2s ease; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,26,.82), rgba(15,17,26,.35) 55%, rgba(15,17,26,.55)); }
.hero .hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 780px; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero p.tag { font-size: 1.1rem; max-width: 560px; margin-top: 16px; color: #f1f1f1; }
.hero .rating { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 600; }
.hero .rating .stars { color: var(--amber); letter-spacing: 2px; }

/* ---- Search bar ---- */
.searchbar { margin-top: 30px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; max-width: 900px; }
.searchbar .field { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; padding: 6px 12px; border-radius: 12px; }
.searchbar .field + .field { border-left: 1px solid var(--line); }
.searchbar label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.searchbar input, .searchbar select { border: none; outline: none; font-size: 1rem; font-family: inherit; color: var(--ink); background: transparent; font-weight: 600; }
.searchbar .btn { flex: 0 0 auto; height: 52px; }

/* ---- Destination cards ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.card:hover .thumb img { transform: scale(1.12); }
.card .price-tag { position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; box-shadow: var(--shadow-sm); }
.card .price-tag b { color: var(--brand); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { font-size: 1.2rem; font-weight: 800; }
.card .body .stars { color: var(--amber); font-size: 0.85rem; letter-spacing: 1px; margin: 4px 0 8px; }
.card .body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.card .body .btn { margin-top: 14px; align-self: flex-start; }

/* ---- Packages ---- */
.pkg { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.pkg .dur { font-size: 0.78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.pkg h3 { font-size: 1.3rem; font-weight: 800; margin: 6px 0 12px; }
.pkg ul { list-style: none; margin: 0 0 16px; display: grid; gap: 8px; }
.pkg li { font-size: 0.92rem; color: #374151; padding-left: 24px; position: relative; }
.pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.pkg .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.pkg .foot .from { color: var(--muted); font-size: 0.8rem; }
.pkg .foot .from b { display: block; color: var(--ink); font-size: 1.35rem; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature { text-align: center; padding: 10px; }
.feature .ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(224,51,90,.1); }
.feature h4 { font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* ---- Testimonials ---- */
.tst { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.tst .stars { color: var(--amber); letter-spacing: 2px; }
.tst p { margin: 12px 0 16px; color: #374151; font-style: italic; }
.tst .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.tst .who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--amber)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.tst .who small { display: block; color: var(--muted); font-weight: 500; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--brand), #7c2d51); color: #fff; border-radius: 24px; padding: 48px; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-band p { opacity: .92; max-width: 520px; margin: 10px auto 22px; }
.cta-band form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.cta-band input { flex: 1 1 220px; border: none; border-radius: 999px; padding: 13px 20px; font-size: 1rem; font-family: inherit; }
.cta-band .note { margin-top: 12px; font-size: 0.82rem; opacity: .85; }

/* ---- Footer ---- */
.site-footer { background: #14161d; color: #cbd0d8; padding: 56px 0 26px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; font-weight: 700; }
.site-footer a { display: block; color: #9aa2ad; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.site-footer .brand img { width: 32px; filter: brightness(0) invert(1); }
.site-footer .socials { display: flex; gap: 12px; margin-top: 14px; }
.site-footer .socials a { background: rgba(255,255,255,.08); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; padding: 0; }
.site-footer .socials img { width: 18px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer .socials a:hover { background: var(--brand); }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px; text-align: center; font-size: 0.82rem; color: #7b828d; }

/* ---- Auth + contact pages ---- */
.page-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 20px; position: relative; background: #1f2937; overflow: hidden; }
.page-wrap .page-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.page-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(31,41,55,.88), rgba(58,34,48,.8)); }
.auth-card { position: relative; z-index: 1; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 36px; width: 100%; max-width: 440px; }
.auth-card .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; margin-bottom: 20px; }
.auth-card .logo img { width: 30px; } .auth-card .logo b { color: var(--brand); }
.auth-card h2 { font-size: 1.55rem; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 4px 0 22px; font-size: 0.92rem; }
.auth-card .input-group { margin-bottom: 16px; position: relative; }
.auth-card label { display: block; font-size: 0.8rem; font-weight: 700; color: #374151; margin-bottom: 6px; }
.auth-card input, .auth-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.auth-card input:focus, .auth-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224,51,90,.15); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.auth-card .alt a { color: var(--brand); font-weight: 700; }
.auth-card .back { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 0.85rem; }
.auth-card .back:hover { color: var(--brand); }
.auth-card.wide { max-width: 720px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 620px) { .auth-grid { grid-template-columns: 1fr; } }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav .links, .nav .nav-cta .btn { display: none; }
  .hero { min-height: 80vh; }
  .searchbar .field + .field { border-left: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 34px 22px; }
}
@media (max-width: 520px) {
  .section { padding: 52px 0; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card .thumb img, .hero .bg { transition: none; }
  .card:hover .thumb img { transform: none; }
}
