:root {
  --ink: #18211c;
  --muted: #6e766f;
  --line: #dfe3de;
  --paper: #f6f4ef;
  --white: #fff;
  --forest: #183e32;
  --forest-2: #245343;
  --sage: #a9b9a7;
  --gold: #c9934b;
  --peach: #e9c7ad;
  --danger: #a33b32;
  --shadow: 0 18px 55px rgba(22, 45, 35, .12);
  --radius: 18px;
  --wrap: min(1280px, calc(100% - 96px));
  --font-zh: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-zh); line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button { touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--font-zh); letter-spacing: -.025em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: 120px 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 12px 18px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 20px; }
.eyebrow { margin-bottom: 16px; color: var(--forest-2); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow.light { color: #d9e8df; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.22; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .72fr); align-items: end; gap: 64px; margin-bottom: 56px; }
.split-heading > p { max-width: 560px; margin: 0 0 6px; color: var(--muted); font-size: 1rem; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; width: var(--wrap); height: 94px; margin-inline: auto; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.28); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; flex: 0 0 auto; color: var(--forest); background: #f4ead9; border-radius: 50%; font-family: "Noto Serif TC", serif; font-size: 1.35rem; font-weight: 700; }
.brand-logo { width: auto; max-width: 148px; height: 50px; flex: 0 0 auto; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Noto Serif TC", serif; font-size: 1.14rem; letter-spacing: .08em; }
.brand small { margin-top: -2px; font-size: .56rem; font-weight: 600; letter-spacing: .18em; opacity: .72; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: .88rem; font-weight: 500; }
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-cta { min-width: 116px; padding: 11px 20px; color: var(--ink); text-align: center; background: var(--white); border-radius: 999px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 23px; height: 1px; margin: 7px auto; background: currentColor; transition: .25s ease; }

.hero { position: relative; height: max(720px, 100svh); min-height: 720px; overflow: hidden; color: var(--white); background: var(--forest); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { visibility: hidden; opacity: 0; background-image: var(--hero-image); background-position: center; background-size: cover; transform: scale(1.035); transition: opacity .9s ease, visibility .9s ease, transform 6.5s ease; }
.hero-slide.active { visibility: visible; opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,18,.78) 0%, rgba(8,24,18,.45) 52%, rgba(8,24,18,.12) 80%), linear-gradient(0deg, rgba(8,24,18,.3), transparent 55%); }
.hero-content { position: relative; z-index: 2; display: flex; height: 100%; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 92px; }
.hero-content h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 6rem); line-height: 1.13; text-shadow: 0 2px 20px rgba(0,0,0,.18); }
.hero-content > p:not(.eyebrow) { max-width: 680px; margin-bottom: 36px; font-size: clamp(1rem, 1.6vw, 1.32rem); letter-spacing: .04em; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 28px; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 600; transition: transform .2s ease, color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.light-button { color: var(--ink); background: var(--white); }
.light-button:hover { color: var(--white); background: var(--forest); }
.hero-controls { position: absolute; right: 0; bottom: 62px; left: 0; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 18px; pointer-events: none; }
.hero-controls button { pointer-events: auto; }
.hero-arrow { width: 44px; height: 44px; padding: 0; color: var(--white); border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.08); border-radius: 50%; cursor: pointer; backdrop-filter: blur(6px); }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot { width: 26px; height: 2px; padding: 0; border: 0; background: rgba(255,255,255,.36); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dot.active { width: 58px; background: var(--white); }
.scroll-cue { position: absolute; bottom: 0; left: max(24px, calc((100% - min(1280px, calc(100% - 96px))) / 2)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .56rem; letter-spacing: .2em; }
.scroll-cue i { width: 1px; height: 46px; background: rgba(255,255,255,.6); }

.news-strip { padding-block: 82px; background: #eee9df; }
.news-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 80px; }
.compact h2 { font-size: 2.6rem; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.news-card { min-width: 0; min-height: 255px; cursor: pointer; perspective: 1200px; }
.news-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 220px; }
.news-card-inner { position: relative; width: 100%; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.72,.2,1); }
.news-face { position: absolute; inset: 0; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 12px 28px rgba(31,54,43,.07); }
.news-front { color: var(--ink); background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.85); }
.news-back { color: var(--white); background: linear-gradient(145deg, #214f3e, #102f25); transform: rotateY(180deg); }
.news-card-top, .news-face footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.news-card-top time { color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.news-card-top span { color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .12em; }
.news-face h3 { margin: 18px 0 9px; font-size: 1.05rem; line-height: 1.5; }
.news-face p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.75; }
.news-face footer { padding-top: 13px; border-top: 1px solid rgba(95,112,103,.18); }
.news-face footer small { color: var(--muted); font-size: .6rem; }
.news-face footer i { color: var(--gold); font-size: 1.05rem; font-style: normal; }
.news-back .news-card-top time, .news-back p, .news-back footer small { color: #cfddd6; }
.news-back .news-card-top span { color: #efce87; }
.news-back footer { border-top-color: rgba(255,255,255,.16); }
.news-detail-copy { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.news-detail-copy p { white-space: pre-line; }
.news-card.is-flipped .news-card-inner { transform: rotateY(180deg); }
.news-card:focus-visible { outline: 3px solid rgba(184,139,59,.45); outline-offset: 4px; border-radius: 16px; }
@media (hover: hover) and (pointer: fine) {
  .news-card:hover .news-card-inner { transform: rotateY(180deg); }
}

.destinations { background: var(--paper); }
.destination-grid { display: grid; grid-auto-rows: 285px; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.destination-card { position: relative; min-width: 0; overflow: hidden; padding: 0; color: var(--white); text-align: left; border: 0; background-image: var(--card-image); background-position: center; background-size: cover; border-radius: var(--radius); cursor: pointer; isolation: isolate; }
.destination-card::before { position: absolute; inset: 0; z-index: -2; background: inherit; content: ""; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.destination-card:hover::before { transform: scale(1.07); }
.destination-card.wide { grid-column: span 2; }
.destination-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(9,27,20,.8), rgba(9,27,20,.06) 70%); }
.destination-copy { position: absolute; right: 70px; bottom: 26px; left: 26px; }
.destination-copy small, .destination-copy strong, .destination-copy em { display: block; }
.destination-copy small { margin-bottom: 6px; font-size: .64rem; font-style: normal; letter-spacing: .16em; opacity: .8; }
.destination-copy strong { font-family: "Noto Serif TC", serif; font-size: 2rem; line-height: 1.2; }
.destination-copy em { margin-top: 7px; overflow: hidden; font-size: .78rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.circle-arrow { position: absolute; right: 22px; bottom: 22px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transition: color .2s, background .2s; }
.destination-card:hover .circle-arrow { color: var(--ink); background: var(--white); }

.tours { background: var(--white); }
.tour-filter { display: flex; gap: 8px; margin: -12px 0 36px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.tour-filter::-webkit-scrollbar { display: none; }
.tour-filter button { flex: 0 0 auto; min-height: 42px; padding: 8px 18px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 999px; cursor: pointer; }
.tour-filter button.active, .tour-filter button:hover { color: var(--white); border-color: var(--forest); background: var(--forest); }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 22px; }
.tour-card { min-width: 0; }
.tour-card[hidden] { display: none; }
.tour-image { position: relative; display: block; height: 310px; overflow: hidden; border-radius: var(--radius); }
.tour-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tour-card:hover .tour-image img { transform: scale(1.045); }
.tour-image > span { position: absolute; top: 18px; left: 18px; padding: 6px 13px; color: var(--forest); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .7rem; font-weight: 600; backdrop-filter: blur(8px); }
.tour-body { padding: 22px 5px 0; }
.tour-meta { display: flex; gap: 20px; margin-bottom: 12px; color: var(--forest-2); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.tour-body h3 { margin-bottom: 12px; font-family: "Noto Serif TC", serif; font-size: 1.3rem; line-height: 1.45; }
.tour-body h3 a:hover { color: var(--forest-2); }
.tour-body > p { display: -webkit-box; min-height: 3.4em; margin-bottom: 20px; overflow: hidden; color: var(--muted); font-size: .88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tour-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.tour-foot small, .tour-foot strong { display: block; }
.tour-foot small { color: var(--muted); font-size: .68rem; }
.tour-foot strong { margin-top: -1px; color: var(--forest); font-size: 1.15rem; }
.tour-foot > a { font-size: .8rem; font-weight: 600; }
.empty-state { padding: 50px; color: var(--muted); text-align: center; background: #f8f8f5; border-radius: var(--radius); }
.center-action { margin-top: 52px; text-align: center; }
.outline-button { color: var(--forest); border-color: var(--forest); background: transparent; }
.outline-button:hover { color: var(--white); background: var(--forest); }

.about { overflow: hidden; background: #e8ded0; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(60px, 9vw, 130px); }
.about-photo { position: relative; }
.about-photo > img { width: 100%; height: 660px; object-fit: cover; border-radius: 220px 220px 18px 18px; }
.about-photo > div { position: absolute; right: -46px; bottom: 55px; display: grid; width: 160px; height: 160px; place-items: center; padding: 22px; color: var(--white); text-align: center; background: var(--forest); border-radius: 50%; }
.about-photo strong, .about-photo span { display: block; }
.about-photo strong { font-family: "Noto Serif TC", serif; font-size: 2.2rem; line-height: 1; }
.about-photo span { margin-top: -20px; font-size: .72rem; }
.about-copy h2 { margin-bottom: 28px; font-size: clamp(2.2rem, 4vw, 3.65rem); line-height: 1.35; }
.about-copy > p:not(.eyebrow) { color: #545a54; }
.about-copy ul { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(24,33,28,.2); }
.about-copy li { display: flex; gap: 26px; padding: 17px 0; border-bottom: 1px solid rgba(24,33,28,.2); font-family: "Noto Serif TC", serif; font-size: 1.05rem; }
.about-copy li span { color: var(--forest-2); font-family: "Noto Sans TC", sans-serif; font-size: .66rem; letter-spacing: .08em; }

.contact { color: var(--white); background: var(--forest); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(480px, 1fr); gap: clamp(70px, 10vw, 150px); }
.contact-copy h2 { margin-bottom: 26px; font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1.3; }
.contact-copy > p:not(.eyebrow) { max-width: 430px; color: #b9c9c1; }
.contact-facts { display: flex; flex-wrap: wrap; gap: 50px; margin-top: 55px; }
.contact-facts span { font-size: 1rem; font-weight: 600; }
.contact-facts small { display: block; margin-bottom: 4px; color: #91a89d; font-size: .64rem; letter-spacing: .12em; }
.contact-form, .admin-form, .login-card { display: grid; gap: 22px; }
label > span { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
input, textarea, select { width: 100%; min-height: 48px; padding: 10px 0; color: inherit; border: 0; border-bottom: 1px solid currentColor; outline: 0; background: transparent; border-radius: 0; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.contact-form input, .contact-form textarea, .contact-form select { color: var(--white); border-color: #547165; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #91a89d; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.submit-button { color: var(--white); border: 0; background: var(--gold); cursor: pointer; }
.submit-button:hover { color: var(--forest); background: #e1b676; }
.contact-form .submit-button { justify-self: start; min-width: 220px; margin-top: 10px; }

.site-footer { display: grid; grid-template-columns: 1.1fr .75fr 1fr; gap: 65px; padding: 72px max(48px, calc((100% - 1280px) / 2)); color: #dce5e0; background: #102b23; }
.footer-intro p { max-width: 370px; margin: 24px 0 0; color: #91a89d; font-size: .84rem; }
.footer-brand .brand-mark { color: #f0e5d4; background: #385247; }
.site-footer h3 { margin-bottom: 18px; color: #92a99e; font-size: .68rem; letter-spacing: .14em; }
.site-footer > div:not(.footer-intro):not(.footer-bottom) p { margin-bottom: 8px; font-size: .82rem; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 30px; color: #71897e; border-top: 1px solid #365047; font-size: .7rem; }

.flash-stack { position: fixed; top: 110px; right: 24px; z-index: 200; display: grid; gap: 8px; width: min(380px, calc(100% - 48px)); }
.flash { padding: 14px 18px; color: var(--white); background: var(--forest); border-radius: 12px; box-shadow: var(--shadow); animation: flash-in .35s ease; }
.flash.error { background: var(--danger); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } }

/* Tour search */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-hero { display: flex; min-height: 430px; align-items: flex-end; padding: 150px 0 70px; color: var(--white); background: linear-gradient(90deg, rgba(10,35,27,.88), rgba(10,35,27,.42)), url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?auto=format&fit=crop&w=2000&q=85') center/cover; }
.search-hero h1 { margin-bottom: 12px; font-size: clamp(2.8rem, 5.5vw, 5.2rem); line-height: 1.2; }
.search-hero p:last-child { margin: 0; color: #d7e2dc; }
.search-page { background: #f4f3ef; }
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 46px; }
.search-filter-panel { position: sticky; top: 104px; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(22,45,35,.07); }
.search-filter-panel summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.search-filter-panel summary::-webkit-details-marker { display: none; }
.search-filter-panel summary span { font-family: "Noto Serif TC", serif; font-size: 1.15rem; font-weight: 700; }
.search-filter-panel summary small { display: none; color: var(--muted); }
.search-form { display: grid; gap: 20px; padding: 24px 22px 28px; }
.search-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.search-form legend { margin-bottom: 8px; font-size: .72rem; font-weight: 600; }
.search-form .form-row { gap: 10px; }
.search-form input, .search-form select { padding-inline: 10px; border: 1px solid var(--line); background: #fbfbf9; border-radius: 8px; }
.search-form .submit-button { width: 100%; }
.search-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-checks label { display: flex; align-items: center; gap: 7px; font-size: .74rem; }
.search-checks input { width: 17px; min-height: 17px; padding: 0; accent-color: var(--forest); }
.reset-link { color: var(--muted); font-size: .74rem; text-align: center; text-decoration: underline; }
.search-results { min-width: 0; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.results-head .eyebrow { margin-bottom: 4px; }
.results-head h2 { margin: 0; font-size: 2.2rem; }
.results-head h2 small { color: var(--muted); font-family: "Noto Sans TC", sans-serif; font-size: .78rem; font-weight: 500; }
.sort-form select { min-width: 150px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
.result-list { display: grid; gap: 16px; }
.result-card { display: grid; grid-template-columns: 260px minmax(0, 1fr) 170px; min-width: 0; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(22,45,35,.05); transition: transform .2s ease, box-shadow .2s ease; }
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.result-image { position: relative; min-height: 250px; overflow: hidden; }
.result-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.result-card:hover .result-image img { transform: scale(1.04); }
.result-image span, .result-image b { position: absolute; left: 15px; padding: 5px 10px; border-radius: 999px; font-size: .66rem; }
.result-image span { top: 15px; color: var(--forest); background: rgba(255,255,255,.92); }
.result-image b { bottom: 15px; color: var(--white); background: var(--gold); }
.result-copy { min-width: 0; padding: 24px; }
.result-topline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; color: var(--forest-2); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.result-topline em { padding: 1px 7px; color: #a75928; background: #fae9dd; border-radius: 999px; font-style: normal; }
.result-copy h3 { margin-bottom: 9px; font-family: "Noto Serif TC", serif; font-size: 1.18rem; line-height: 1.45; }
.result-copy > p { display: -webkit-box; margin-bottom: 18px; overflow: hidden; color: var(--muted); font-size: .8rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.result-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; }
.result-copy dl div { display: flex; gap: 8px; min-width: 0; }
.result-copy dt { color: var(--muted); font-size: .68rem; }
.result-copy dd { margin: 0; overflow: hidden; font-size: .7rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.result-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 24px; text-align: right; border-left: 1px solid var(--line); }
.result-price small { margin-bottom: 28px; color: var(--muted); font-size: .68rem; }
.result-price span { color: var(--muted); font-size: .68rem; }
.result-price strong { margin-bottom: 18px; color: var(--forest); font-family: "Noto Serif TC", serif; font-size: 1.35rem; white-space: nowrap; }
.result-price .button { width: 100%; min-height: 44px; padding-inline: 14px; }
.no-results { padding: 80px 30px; text-align: center; background: var(--white); border-radius: var(--radius); }
.no-results strong { font-family: "Noto Serif TC", serif; font-size: 1.5rem; }
.no-results p { color: var(--muted); }
.no-results a { color: var(--forest-2); text-decoration: underline; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; font-size: .8rem; }
.pagination a { padding: 9px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; }

/* Individual tour page */
.detail-hero { position: relative; display: flex; min-height: 690px; align-items: flex-end; overflow: hidden; color: var(--white); background-image: var(--detail-image); background-position: center; background-size: cover; }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,25,18,.88), rgba(8,25,18,.15) 75%); }
.detail-hero-copy { position: relative; z-index: 1; padding-bottom: 85px; }
.back-link { display: inline-block; margin-bottom: 40px; font-size: .78rem; opacity: .8; }
.detail-hero h1 { max-width: 920px; margin-bottom: 20px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: 1.18; }
.detail-hero-copy > p:last-child { max-width: 730px; margin: 0; font-size: 1.08rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.detail-badges span { padding: 5px 11px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; font-size: .65rem; letter-spacing: .07em; backdrop-filter: blur(5px); }
.promo-ribbon { display: inline-flex; margin-top: 24px; padding: 8px 15px; color: #3b2914; background: #eac48c; border-radius: 8px; font-size: .75rem; font-weight: 700; }
.detail-nav { position: sticky; top: 0; z-index: 45; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.detail-nav .wrap { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.detail-nav .wrap::-webkit-scrollbar { display: none; }
.detail-nav a { flex: 0 0 auto; padding: 17px 0 15px; color: var(--muted); border-bottom: 2px solid transparent; font-size: .76rem; font-weight: 600; }
.detail-nav a:hover { color: var(--forest); border-bottom-color: var(--gold); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 90px; }
.detail-main { min-width: 0; }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 45px 0 80px; background: var(--line); }
.highlight-grid > div { min-height: 150px; padding: 26px; background: var(--paper); }
.highlight-grid span { color: var(--gold); font-size: .7rem; letter-spacing: .1em; }
.highlight-grid h3 { margin: 24px 0 0; font-family: "Noto Serif TC", serif; font-size: 1.12rem; }
.feature-showcase { display: grid; gap: 28px; margin: 45px 0 58px; }
.feature-story { display: grid; min-height: 320px; grid-template-columns: minmax(260px, 1.05fr) minmax(280px, .95fr); overflow: hidden; background: var(--white); border-radius: 20px; box-shadow: 0 14px 38px rgba(24,62,50,.09); }
.feature-story:nth-child(even) { grid-template-columns: minmax(280px, .95fr) minmax(260px, 1.05fr); }
.feature-story:nth-child(even) > img { grid-column: 2; }
.feature-story:nth-child(even) > div { grid-column: 1; grid-row: 1; }
.feature-story > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-story > div { display: flex; flex-direction: column; justify-content: center; padding: 46px; }
.feature-story span { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.feature-story h3 { margin: 14px 0 16px; font-size: 1.45rem; line-height: 1.45; }
.feature-story p { margin: 0; color: var(--muted); font-size: .93rem; white-space: pre-line; }
.feature-story.text-only { min-height: 0; grid-template-columns: 1fr; }
.feature-copy { padding: 42px 48px; color: #4f5c55; background: #e9e3d8; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.feature-copy p:last-child { margin-bottom: 0; }
.detail-section { padding-top: 100px; scroll-margin-top: 70px; }
.small-heading h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.flight-table-wrap, .departure-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.flight-table, .departure-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); font-size: .75rem; }
.flight-table th, .flight-table td, .departure-table th, .departure-table td { padding: 15px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.flight-table th, .departure-table th { color: var(--muted); background: #f2f3ef; font-size: .65rem; letter-spacing: .05em; }
.flight-table tr:last-child td, .departure-table tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 12px; color: var(--muted); font-size: .72rem; }
.itinerary-list { border-top: 1px solid var(--line); }
.itinerary-day { border-bottom: 1px solid var(--line); }
.itinerary-day summary { display: grid; grid-template-columns: 90px minmax(0,1fr) 30px; align-items: center; gap: 20px; padding: 25px 6px; cursor: pointer; list-style: none; }
.itinerary-day summary::-webkit-details-marker { display: none; }
.itinerary-day summary > span { color: var(--forest-2); font-size: .62rem; letter-spacing: .12em; }
.itinerary-day summary > span strong { display: block; margin-top: -8px; font-family: "Noto Serif TC", serif; font-size: 2rem; letter-spacing: 0; }
.itinerary-day summary h3 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 1.02rem; line-height: 1.45; }
.itinerary-day summary i { font-size: 1.3rem; font-style: normal; transition: transform .25s ease; }
.itinerary-day[open] summary i { transform: rotate(45deg); }
.day-content { display: grid; gap: 22px; padding: 5px 6px 38px 116px; }
.day-overview { display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: stretch; gap: 24px; padding: 16px; background: #f2f3ef; border-radius: 14px; }
.day-overview.text-only { grid-template-columns: 1fr; }
.day-overview.image-only { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.day-overview.image-only > img { height: 260px; border-radius: 14px; }
.day-overview > img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; }
.day-overview > div { align-self: center; }
.day-overview span, .day-stop span { color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.day-overview p { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.day-description { white-space: pre-line; }
.day-stop-list { display: grid; gap: 14px; }
.day-stop { display: grid; grid-template-columns: 190px minmax(0,1fr); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 20px rgba(24,62,50,.04); }
.day-stop.text-only { grid-template-columns: 1fr; }
.day-stop > img { width: 100%; height: 100%; min-height: 185px; object-fit: cover; }
.day-stop > div { padding: 24px 26px; }
.day-stop h4 { margin: 8px 0 10px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.day-stop p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.9; white-space: pre-line; }
.meal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 2px 0 0; padding: 17px 20px; background: #edf2ed; border-radius: 12px; }
.meal-list div { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.meal-list dt { flex: 0 0 auto; color: var(--forest-2); font-size: .68rem; font-weight: 700; }
.meal-list dd { margin: 0; font-size: .7rem; }
.price-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-info-card { padding: 30px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; }
.price-info-card h3 { margin-bottom: 20px; font-family: "Noto Serif TC", serif; }
.price-info-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.price-info-card li { position: relative; padding-left: 23px; color: var(--muted); font-size: .8rem; }
.price-info-card li::before { position: absolute; left: 0; color: #3f8a60; content: "✓"; font-weight: 700; }
.price-info-card.excluded li::before { color: #a6594e; content: "—"; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notes-grid article { padding: 30px; background: #ede9df; border-radius: 14px; }
.notes-grid h3 { font-family: "Noto Serif TC", serif; font-size: 1.05rem; }
.notes-grid p { position: relative; margin-bottom: 11px; padding-left: 17px; color: var(--muted); font-size: .76rem; }
.notes-grid p::before { position: absolute; top: .65em; left: 0; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; content: ""; }
.departure-table td small { display: block; color: var(--muted); }
.guarantee-tag, .signup-tag { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: .62rem; white-space: nowrap; }
.guarantee-tag { margin-bottom: 4px; color: #98551f; background: #fae6d1; }
.signup-tag { color: #286541; background: #e3f2e8; }
.signup-tag.full { color: #864c47; background: #f5e7e4; }
.preorder-tag { display: block; width: max-content; margin: 0 0 5px; padding: 4px 7px; color: #835217; background: #fff1d8; border-radius: 5px; font-size: .6rem; white-space: nowrap; }
.detail-story { padding: 50px; background: #e9e3d8; border-radius: var(--radius); }
.detail-story h2 { font-size: 2rem; }
.detail-story p { color: var(--muted); }
.booking-card { position: sticky; top: 110px; padding: 34px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-card > p { margin-bottom: 20px; color: var(--muted); font-size: .72rem; letter-spacing: .1em; }
.booking-price { margin-bottom: 28px; }
.booking-price small, .booking-price strong { display: block; }
.booking-price small { color: var(--muted); }
.booking-price strong { color: var(--forest); font-family: "Noto Serif TC", serif; font-size: 2rem; }
.booking-card dl { margin: 0 0 28px; border-top: 1px solid var(--line); }
.booking-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.booking-card dt { color: var(--muted); font-size: .78rem; }
.booking-card dd { margin: 0; font-size: .82rem; font-weight: 600; text-align: right; }
.booking-card .button { display: flex; width: 100%; }
.booking-card > small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }
.download-link { display: block; margin-top: 16px; color: var(--forest-2); font-size: .76rem; font-weight: 600; text-align: center; }
.detail-cta { padding: 110px 0; color: var(--white); text-align: center; background: linear-gradient(rgba(15,54,41,.78), rgba(15,54,41,.85)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&q=80') center/cover; }
.detail-cta h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.3; }
.detail-cta p { max-width: 560px; margin: 0 auto 30px; color: #d4e0da; }

/* Admin */
.admin-page { background: #f3f4f1; }
.admin-simple-header, .admin-topbar { display: flex; min-height: 78px; align-items: center; padding: 12px 34px; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
.admin-topbar { position: sticky; top: 0; z-index: 80; justify-content: space-between; }
.admin-topbar > div { display: flex; align-items: center; gap: 24px; }
.admin-topbar a, .admin-topbar button { font-size: .78rem; font-weight: 600; }
.admin-topbar form { display: inline; }
.admin-topbar button { padding: 9px 15px; border: 1px solid var(--line); background: transparent; border-radius: 999px; cursor: pointer; }
.login-shell { display: grid; min-height: calc(100svh - 78px); place-items: center; padding: 40px 20px; background: radial-gradient(circle at 20% 10%, #dce9df, transparent 35%), #f3f0e9; }
.login-card { width: min(460px, 100%); padding: 48px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.login-card h1 { margin-bottom: 0; font-size: 2.2rem; }
.login-card > p:not(.eyebrow), .login-card > small { color: var(--muted); }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100svh - 78px); }
.admin-sidebar { position: sticky; top: 78px; height: calc(100svh - 78px); padding: 42px 25px; background: var(--forest); }
.admin-sidebar > p { color: #8fa59b; font-size: .68rem; letter-spacing: .14em; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 8px 12px; color: #c8d5cf; border-radius: 8px; font-size: .82rem; }
.admin-sidebar a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.admin-sidebar b { display: grid; min-width: 23px; height: 23px; place-items: center; background: rgba(255,255,255,.1); border-radius: 50%; font-size: .64rem; }
.admin-content { min-width: 0; padding: 55px clamp(30px, 5vw, 78px) 100px; }
.admin-welcome { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.admin-welcome h1 { margin-bottom: 8px; font-size: clamp(2rem, 3.5vw, 3.1rem); }
.admin-welcome p:not(.eyebrow) { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 70px; }
.stat-grid > div { padding: 22px; background: var(--white); border-radius: 14px; }
.stat-grid span, .stat-grid strong { display: block; }
.stat-grid span { color: var(--muted); font-size: .72rem; }
.stat-grid strong { margin-top: 8px; font-family: "Noto Serif TC", serif; font-size: 2rem; }
.admin-section { margin-top: 44px; padding: 34px; scroll-margin-top: 100px; background: var(--white); border-radius: 18px; }
.admin-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-section-head h2 { margin: 0; font-size: 1.85rem; }
.admin-section-head .eyebrow { margin-bottom: 5px; }
.small-button { min-height: 40px; padding: 8px 16px; color: var(--white); border: 0; background: var(--forest); border-radius: 999px; cursor: pointer; }
.admin-list { display: grid; gap: 10px; }
.admin-tour-search { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; margin-bottom: 13px; padding: 12px; background: #f1f4ef; border-radius: 12px; }
.admin-tour-search label { min-width: 0; }
.admin-tour-search input { width: 100%; min-height: 44px; padding-inline: 14px; border: 1px solid #cfd8d1; background: var(--white); border-radius: 9px; font-size: .78rem; }
.admin-tour-search button { min-height: 44px; padding: 0 18px; color: var(--white); background: var(--forest); border: 0; border-radius: 9px; font-size: .74rem; font-weight: 700; cursor: pointer; }
.admin-tour-search a { padding: 9px 7px; color: var(--forest-2); font-size: .7rem; font-weight: 600; }
.admin-tour-resultbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: .7rem; }
.admin-tour-resultbar strong { color: var(--forest); }
.tour-folder-list { display: grid; gap: 13px; }
.tour-folder { overflow: hidden; border: 1px solid #d9dfda; background: #fbfcfa; border-radius: 14px; }
.tour-folder > summary { display: grid; grid-template-columns: 46px minmax(0,1fr) auto 24px; align-items: center; gap: 13px; min-height: 76px; padding: 12px 18px; cursor: pointer; list-style: none; }
.tour-folder > summary::-webkit-details-marker { display: none; }
.folder-icon { position: relative; display: block; width: 42px; height: 31px; margin-top: 5px; background: #d9b25f; border-radius: 5px; box-shadow: inset 0 -4px 0 rgba(112,76,26,.1); }
.folder-icon::before { position: absolute; top: -7px; left: 3px; width: 19px; height: 9px; background: #d9b25f; border-radius: 5px 5px 0 0; content: ""; }
.tour-folder summary small { color: var(--muted); font-size: .62rem; }
.tour-folder summary h3 { margin: 1px 0 0; color: var(--forest); font-size: 1rem; }
.tour-folder summary b { padding: 5px 10px; color: #6e5a31; background: #f5ead1; border-radius: 999px; font-size: .64rem; }
.tour-folder summary i { color: var(--forest); font-size: 1.2rem; font-style: normal; transition: transform .2s ease; }
.tour-folder[open] summary i { transform: rotate(45deg); }
.folder-items { padding: 0 14px 14px; border-top: 1px solid #e1e5e1; }
.folder-items .admin-item:first-child { margin-top: 14px; }
.admin-empty-search { padding: 45px 20px; color: var(--muted); background: #f7f8f5; border: 1px dashed #cbd4cd; border-radius: 13px; text-align: center; }
.admin-empty-search strong { display: block; color: var(--ink); font-size: 1rem; }
.admin-empty-search p { margin: 7px 0 14px; font-size: .75rem; }
.admin-empty-search a { color: var(--forest-2); font-size: .74rem; font-weight: 700; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; font-size: .72rem; }
.admin-pagination > div { display: flex; gap: 6px; }
.admin-pagination a { display: grid; min-width: 34px; min-height: 34px; place-items: center; padding-inline: 9px; color: var(--forest); border: 1px solid var(--line); background: var(--white); border-radius: 999px; }
.admin-pagination a.current { color: var(--white); background: var(--forest); border-color: var(--forest); }
.admin-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.admin-item > img { width: 86px; height: 70px; object-fit: cover; border-radius: 8px; }
.admin-item-main { min-width: 0; }
.admin-item-main small, .admin-item-main p { color: var(--muted); font-size: .72rem; }
.admin-item-main h3 { margin: 2px 0; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-main p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { padding: 5px 10px; color: var(--muted); background: #eceeeb; border-radius: 999px; font-size: .65rem; }
.status.online { color: #23643f; background: #e3f2e8; }
.item-actions { display: flex; gap: 5px; }
.item-actions form { display: inline; }
.item-actions button { padding: 7px 9px; border: 1px solid var(--line); background: transparent; border-radius: 7px; font-size: .7rem; cursor: pointer; }
.item-actions > a { padding: 7px 9px; color: var(--forest-2); border: 1px solid var(--line); border-radius: 7px; font-size: .7rem; }
.item-actions .danger { color: var(--danger); }
.text-item { grid-template-columns: 60px minmax(0, 1fr) auto auto; }
.date-tile { display: grid; width: 50px; height: 50px; place-items: center; color: var(--forest); background: #e9eee9; border-radius: 9px; font-size: .72rem; font-weight: 700; }
.inquiry-table { overflow-x: auto; }
.table-row { display: grid; min-width: 760px; grid-template-columns: 1.1fr 1fr 1.5fr 110px; align-items: center; gap: 20px; padding: 16px 6px; border-bottom: 1px solid var(--line); font-size: .76rem; }
.table-row > span { min-width: 0; }
.table-row small, .table-row strong { display: block; }
.table-row small { color: var(--muted); }
.table-head { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .06em; }
.table-row select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); background: var(--white); border-radius: 7px; }
.settings-form { max-width: 820px; }
.admin-form input, .admin-form textarea, .admin-form select, .login-card input { padding-inline: 12px; border: 1px solid var(--line); background: #fafaf8; border-radius: 8px; }
.settings-form .submit-button { justify-self: start; margin-top: 8px; }
.edit-dialog { width: min(650px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 20px; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
#tour-dialog { width: min(900px, calc(100% - 32px)); }
.edit-dialog::backdrop { background: rgba(12,27,20,.7); backdrop-filter: blur(4px); }
.edit-dialog .admin-form { padding: 34px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 2rem; }
.dialog-close { width: 40px; height: 40px; padding: 0; border: 0; background: #f0f0ec; border-radius: 50%; cursor: pointer; }
.check-row { display: flex; align-items: center; gap: 26px; }
.check-row label, label.check-row { display: flex; align-items: center; gap: 9px; font-size: .8rem; }
.check-row input { width: 17px; min-height: 17px; accent-color: var(--forest); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; }
.text-button { padding: 10px 18px; border: 0; background: transparent; cursor: pointer; }
.admin-form-section { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.admin-form-section > summary { padding: 16px 18px; color: var(--forest); background: #f4f5f1; cursor: pointer; font-family: "Noto Serif TC", serif; font-size: .95rem; font-weight: 700; list-style: none; }
.admin-form-section > summary::-webkit-details-marker { display: none; }
.admin-form-section > summary::after { float: right; content: "＋"; font-family: "Noto Sans TC", sans-serif; }
.admin-form-section[open] > summary::after { content: "−"; }
.admin-form-section > div { display: grid; gap: 20px; padding: 22px; }
.slug-field { padding: 16px; background: #eef3ee; border-radius: 10px; }
.slug-field label > div { display: flex; align-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
.slug-field b { flex: 0 0 auto; padding-left: 12px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.slug-field input { border: 0; background: transparent; }
.slug-field small, .field-help { color: var(--muted); font-size: .68rem; }
.field-help { margin: 0; padding: 9px 12px; background: #f7f5ef; border-radius: 7px; }
.image-field { display: grid; grid-template-columns: 1fr 1fr 130px; align-items: end; gap: 14px; }
.field-image-preview { width: 130px; height: 92px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.file-picker { display: grid; gap: 7px; padding: 14px; background: #eef3ee; border: 1px dashed #aebdb4; border-radius: 10px; cursor: pointer; }
.file-picker > span { color: var(--forest); font-size: .78rem; font-weight: 700; }
.file-picker input[type="file"] { min-height: auto; padding: 7px; background: var(--white); font-size: .7rem; }
.file-picker small { color: var(--muted); font-size: .65rem; }
.file-picker.compact { padding: 10px; }
.brand-upload-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px; background: #f7f8f5; border-radius: 12px; }
.upload-preview-card { display: grid; height: 100px; place-items: center; padding: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.upload-preview-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload-preview-card.landscape { height: 130px; }
.upload-preview-card.landscape img { width: 100%; height: 100%; object-fit: cover; }
.repeater { display: grid; gap: 16px; }
.repeater-item { display: grid; gap: 16px; padding: 20px; background: #fbfbf9; border: 1px solid var(--line); border-radius: 14px; }
.repeater-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.repeater-head strong { color: var(--forest); font-size: .86rem; }
.repeater-head button { padding: 5px 9px; color: var(--danger); background: transparent; border: 1px solid #e7cbc8; border-radius: 6px; font-size: .66rem; cursor: pointer; }
.add-row-button { min-height: 46px; color: var(--forest); background: #edf3ee; border: 1px dashed #91aa9b; border-radius: 10px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.add-row-button:hover { background: #e1ece4; }
.editor-media { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 16px; }
.editor-image { display: grid; width: 180px; height: 120px; place-items: center; overflow: hidden; color: #8c958e; background: #e9ece8; border-radius: 10px; font-size: .7rem; }
.editor-image img { width: 100%; height: 100%; object-fit: cover; }
.departure-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.flight-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.meal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.option-row { display: flex; flex-wrap: wrap; align-items: end; gap: 18px; padding: 13px; background: #f1f4ef; border-radius: 9px; }
.option-row > label { display: flex; align-items: center; gap: 7px; font-size: .74rem; }
.option-row input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: var(--forest); }
.preview-label-field { opacity: .42; pointer-events: none; }
.is-preorder .preview-label-field { opacity: 1; pointer-events: auto; }
.day-lock-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; color: #345a49; background: #e7f0e9; border: 1px solid #c9ddce; border-radius: 11px; }
.day-lock-note strong { display: block; font-size: .82rem; }
.day-lock-note p { margin: 4px 0 0; color: #60776c; font-size: .68rem; }
.day-lock-note > b { flex: 0 0 auto; padding: 7px 12px; color: var(--white); background: var(--forest); border-radius: 999px; font-size: .68rem; }
.day-fixed-head small { color: var(--muted); font-size: .66rem; }
.day-items-editor { display: grid; gap: 14px; padding: 18px; background: #eef2ed; border-radius: 12px; }
.day-items-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.day-items-head strong { display: block; color: var(--forest); font-size: .8rem; }
.day-items-head small { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; }
.day-items-head button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; color: var(--white); background: var(--forest); border: 0; border-radius: 8px; font-size: .7rem; font-weight: 700; cursor: pointer; }
.day-items-list { display: grid; gap: 13px; }
.day-item-editor { display: grid; gap: 14px; padding: 17px; background: var(--white); border: 1px solid #d7dfd8; border-left: 4px solid var(--gold); border-radius: 10px; }
.day-item-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.day-item-head strong { color: var(--forest); font-size: .74rem; }
.day-item-head button { padding: 5px 9px; color: var(--danger); background: transparent; border: 1px solid #e7cbc8; border-radius: 6px; font-size: .64rem; cursor: pointer; }
.compact-media { grid-template-columns: 150px minmax(0,1fr); }
.compact-media .editor-image { width: 150px; height: 105px; }

/* 11-inch iPad and compact laptops */
@media (max-width: 1100px) {
  :root { --wrap: min(100% - 56px, 1000px); }
  .section { padding: 96px 0; }
  .site-header { height: 82px; }
  .main-nav { gap: 20px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 680px; }
  .destination-grid { grid-template-columns: repeat(3, 1fr); }
  .destination-card.wide { grid-column: span 2; }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-image { height: 330px; }
  .about-layout { gap: 70px; }
  .about-photo > img { height: 570px; }
  .contact-layout { grid-template-columns: .8fr 1fr; gap: 60px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-inline: 32px; }
  .footer-intro { grid-column: 1 / -1; }
  .detail-layout { gap: 50px; }
  .search-layout { grid-template-columns: 260px minmax(0,1fr); gap: 28px; }
  .result-card { grid-template-columns: 210px minmax(0,1fr); }
  .result-price { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding-top: 0; text-align: left; border: 0; }
  .result-price small { display: none; }
  .result-price strong { margin: 0; }
  .result-price .button { width: auto; }
  .day-content { padding-left: 20px; }
  .admin-layout { grid-template-columns: 190px minmax(0,1fr); }
  .admin-sidebar { padding-inline: 18px; }
  .admin-content { padding-inline: 28px; }
  .admin-item { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .admin-item > img { width: 70px; height: 62px; }
  .item-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .text-item { grid-template-columns: 60px minmax(0,1fr) auto; }
}

/* 11-inch iPad portrait */
@media (max-width: 860px) {
  :root { --wrap: calc(100% - 44px); }
  .site-header { width: var(--wrap); }
  .main-nav .nav-cta { display: none; }
  .nav-toggle { display: block; color: var(--white); cursor: pointer; }
  .main-nav { position: fixed; inset: 0; z-index: -1; display: flex; visibility: hidden; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 110px 22px 45px; opacity: 0; background: rgba(16,43,35,.98); transition: opacity .25s ease, visibility .25s ease; }
  .main-nav.open { visibility: visible; opacity: 1; }
  .main-nav.open a, .main-nav.open .nav-cta { display: block; width: 100%; padding: 8px 0; color: var(--white); background: transparent; font-family: "Noto Serif TC", serif; font-size: clamp(1.7rem, 6vw, 2.8rem); text-align: left; }
  .nav-toggle[aria-expanded="true"] { position: fixed; top: 18px; right: 22px; z-index: 2; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero-content h1 { max-width: 700px; font-size: clamp(3.2rem, 9vw, 5.4rem); }
  .split-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 42px; }
  .news-layout { grid-template-columns: 1fr; gap: 35px; }
  .destination-grid { grid-auto-rows: 280px; grid-template-columns: repeat(2, 1fr); }
  .destination-card.wide { grid-column: span 2; }
  .tour-image { height: 290px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { width: 83%; }
  .about-photo > img { height: 600px; }
  .contact-layout { grid-template-columns: 1fr; gap: 70px; }
  .site-footer { gap: 45px; }
  .detail-hero { min-height: 640px; }
  .detail-layout { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .search-filter-panel { position: static; }
  .search-filter-panel summary small { display: block; }
  .result-card { grid-template-columns: 230px minmax(0,1fr); }
  .result-price { grid-column: 1 / -1; padding: 18px 24px 24px; border-top: 1px solid var(--line); }
  .detail-nav { top: 0; }
  .booking-card { position: static; }
  .admin-layout { display: block; }
  .admin-sidebar { position: sticky; top: 78px; z-index: 30; height: auto; padding: 10px 20px; overflow-x: auto; white-space: nowrap; }
  .admin-sidebar > p { display: none; }
  .admin-sidebar nav { display: flex; }
  .admin-sidebar a { flex: 0 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* iPhone 17 class and other phones */
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); --radius: 15px; }
  html { scroll-padding-top: 72px; }
  .section { padding: 74px 0; }
  .site-header { height: 72px; }
  .brand { gap: 9px; }
  .brand-mark { width: 39px; height: 39px; font-size: 1.1rem; }
  .brand strong { font-size: .98rem; }
  .brand small { font-size: .48rem; }
  .nav-toggle { width: 42px; height: 42px; }
  .hero { height: 100svh; min-height: 620px; max-height: 850px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,24,18,.88), rgba(8,24,18,.12) 75%), linear-gradient(90deg, rgba(8,24,18,.35), transparent); }
  .hero-slide { background-position: 60% center; }
  .hero-content { justify-content: flex-end; padding: 130px 0 115px; }
  .hero-content .eyebrow { margin-bottom: 12px; font-size: .62rem; }
  .hero-content h1 { margin-bottom: 18px; font-size: clamp(2.55rem, 12vw, 3.55rem); line-height: 1.2; }
  .hero-content > p:not(.eyebrow) { margin-bottom: 27px; font-size: .94rem; }
  .hero-content .button { width: 100%; }
  .hero-controls { bottom: 30px; justify-content: center; }
  .hero-arrow { display: none; }
  .hero-dot { width: 18px; }
  .hero-dot.active { width: 38px; }
  .scroll-cue { display: none; }
  .eyebrow { margin-bottom: 10px; font-size: .62rem; }
  .section-heading h2 { font-size: 2.1rem; }
  .split-heading { margin-bottom: 34px; }
  .news-strip { padding-block: 65px; }
  .compact h2 { font-size: 2.1rem; }
  .news-layout { gap: 28px; }
  .news-list { grid-template-columns: 1fr; }
  .news-card, .news-card:last-child:nth-child(odd) { grid-column: auto; min-height: 245px; }
  .news-face { padding: 21px 19px; }
  .destination-grid { display: flex; margin-right: -16px; padding-right: 16px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .destination-grid::-webkit-scrollbar { display: none; }
  .destination-card, .destination-card.wide { width: 82vw; min-width: 280px; height: 385px; flex: 0 0 82vw; scroll-snap-align: start; }
  .destination-copy { right: 64px; bottom: 22px; left: 22px; }
  .destination-copy strong { font-size: 1.8rem; }
  .destination-copy em { white-space: normal; }
  .tour-filter { margin-top: -4px; margin-right: -16px; padding-right: 16px; }
  .tour-grid { grid-template-columns: 1fr; gap: 42px; }
  .tour-image { height: 270px; }
  .tour-body h3 { font-size: 1.2rem; }
  .about-layout { gap: 55px; }
  .about-photo { width: calc(100% - 20px); }
  .about-photo > img { height: 450px; border-radius: 150px 150px 15px 15px; }
  .about-photo > div { right: -20px; bottom: 28px; width: 118px; height: 118px; }
  .about-photo strong { font-size: 1.7rem; }
  .about-photo span { margin-top: -14px; font-size: .61rem; }
  .about-copy h2 { font-size: 2.1rem; }
  .contact-layout { gap: 55px; }
  .contact-copy h2 { font-size: 2.35rem; }
  .contact-facts { gap: 28px; margin-top: 35px; }
  .form-row { grid-template-columns: 1fr; gap: 22px; }
  .contact-form .submit-button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 35px; padding: 55px 20px 28px; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { grid-column: auto; flex-direction: column; gap: 10px; }
  .detail-hero { min-height: 100svh; align-items: flex-end; }
  .detail-hero-copy { padding-bottom: 62px; }
  .back-link { margin-bottom: 30px; }
  .detail-hero h1 { font-size: 2.55rem; }
  .detail-hero-copy > p:last-child { font-size: .93rem; }
  .highlight-grid { grid-template-columns: 1fr; margin-block: 34px 55px; }
  .highlight-grid > div { min-height: 110px; }
  .detail-story { padding: 28px; }
  .booking-card { padding: 27px; }
  .search-hero { min-height: 390px; padding-bottom: 55px; }
  .search-hero h1 { font-size: 2.55rem; }
  .search-filter-panel summary { padding-inline: 17px; }
  .search-form { padding-inline: 17px; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .results-head h2 { font-size: 1.85rem; }
  .sort-form, .sort-form label, .sort-form select { width: 100%; }
  .result-card { display: block; }
  .result-image { min-height: 235px; }
  .result-copy { padding: 21px 18px; }
  .result-copy dl { grid-template-columns: 1fr; }
  .result-price { display: grid; grid-template-columns: 1fr auto; padding: 18px; text-align: left; }
  .result-price span { grid-column: 1; }
  .result-price strong { grid-column: 1; }
  .result-price .button { grid-column: 2; grid-row: 1 / 3; }
  .detail-nav .wrap { margin-right: 0; padding-right: 16px; }
  .feature-copy { padding: 28px 24px; }
  .detail-section { padding-top: 76px; }
  .itinerary-day summary { grid-template-columns: 62px minmax(0,1fr) 22px; gap: 10px; padding-block: 20px; }
  .itinerary-day summary > span strong { font-size: 1.55rem; }
  .itinerary-day summary h3 { font-size: .9rem; }
  .day-content { gap: 18px; padding: 0 0 28px; }
  .day-overview, .day-stop { grid-template-columns: 1fr; }
  .day-overview > img { height: 210px; }
  .day-stop > img { height: 210px; min-height: 0; }
  .day-stop > div { padding: 21px 19px; }
  .meal-list { grid-template-columns: 1fr; }
  .price-info-grid, .notes-grid { grid-template-columns: 1fr; }
  .price-info-card, .notes-grid article { padding: 24px; }
  .flight-table-wrap, .departure-table-wrap { margin-right: -16px; border-radius: 12px 0 0 12px; }
  .detail-cta { padding: 80px 0; }
  .admin-simple-header, .admin-topbar { min-height: 70px; padding: 10px 16px; }
  .admin-topbar .brand small { display: none; }
  .admin-topbar > div { gap: 10px; }
  .admin-topbar > div > a { display: none; }
  .login-shell { min-height: calc(100svh - 70px); }
  .login-card { padding: 30px 24px; }
  .admin-sidebar { top: 70px; padding-inline: 10px; }
  .admin-content { padding: 35px 14px 70px; }
  .admin-welcome { align-items: flex-start; }
  .admin-welcome .button { display: none; }
  .stat-grid { gap: 8px; margin: 28px 0 42px; }
  .stat-grid > div { padding: 17px; }
  .stat-grid strong { font-size: 1.6rem; }
  .admin-section { margin-top: 20px; padding: 22px 14px; border-radius: 14px; }
  .admin-section-head { align-items: center; }
  .admin-section-head h2 { font-size: 1.5rem; }
  .small-button { min-height: 38px; padding-inline: 12px; font-size: .74rem; }
  .admin-tour-search { grid-template-columns: 1fr auto; }
  .admin-tour-search label { grid-column: 1 / -1; }
  .admin-tour-search a { text-align: center; }
  .admin-tour-resultbar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .tour-folder > summary { grid-template-columns: 40px minmax(0,1fr) auto 18px; gap: 9px; padding-inline: 11px; }
  .folder-icon { width: 36px; height: 27px; }
  .folder-items { padding-inline: 8px; }
  .admin-pagination { flex-wrap: wrap; gap: 10px; }
  .admin-item, .text-item { grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
  .admin-item > img { width: 64px; height: 58px; }
  .admin-item .status { grid-column: 1; justify-self: start; }
  .item-actions { grid-column: 2; }
  .date-tile { width: 48px; height: 48px; }
  .admin-item-main h3 { white-space: normal; }
  .admin-item-main p { white-space: normal; }
  .settings-form .form-row { grid-template-columns: 1fr; }
  .edit-dialog { max-height: calc(100svh - 16px); }
  .edit-dialog .admin-form { padding: 24px 18px; }
  .admin-form-section > div { padding: 18px 14px; }
  .slug-field label > div { align-items: stretch; flex-direction: column; }
  .slug-field b { padding: 10px 12px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dialog-actions .button { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 860px) {
  .feature-story, .feature-story:nth-child(even) { grid-template-columns: 1fr; }
  .feature-story:nth-child(even) > img, .feature-story:nth-child(even) > div { grid-column: 1; grid-row: auto; }
  .departure-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand-logo { max-width: 112px; height: 40px; }
  .feature-showcase { gap: 18px; margin-block: 34px 45px; }
  .feature-story { min-height: 0; border-radius: 15px; }
  .feature-story > img { min-height: 0; height: 220px; }
  .feature-story > div { padding: 26px 22px 30px; }
  .feature-story h3 { font-size: 1.2rem; }
  .image-field { grid-template-columns: 1fr; }
  .field-image-preview { width: 100%; height: 170px; }
  .brand-upload-grid { grid-template-columns: 1fr; }
  .editor-media { grid-template-columns: 1fr; }
  .editor-image { width: 100%; height: 180px; }
  .compact-media .editor-image { width: 100%; height: 170px; }
  .day-lock-note, .day-items-head { align-items: flex-start; flex-direction: column; }
  .day-items-head button { width: 100%; }
  .day-items-editor { padding: 13px 10px; }
  .departure-fields, .flight-fields, .meal-fields { grid-template-columns: 1fr 1fr; }
  .repeater-item { padding: 16px 12px; }
}

/* 全站閱讀字體：Apple 使用蘋方正黑、Windows 使用微軟正黑體。 */
body, button, input, textarea, select,
h1, h2, h3, .brand-mark, .brand strong, .destination-copy strong,
.tour-body h3, .about-photo strong, .about-copy li, .search-filter-panel summary span,
.about-copy li span, .results-head h2 small, .result-copy h3, .result-price strong,
.no-results strong, .itinerary-day summary > span strong,
.itinerary-day summary h3, .price-info-card h3, .notes-grid h3,
.booking-price strong, .stat-grid strong, .admin-form-section > summary,
.admin-form-section > summary::after, .main-nav.open a, .main-nav.open .nav-cta { font-family: var(--font-zh); }
