/*
Theme Name: DADI Travel — Bromo Tour
Author: DADI Travel
Version: 1.9.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dadi-travel
Tags: travel, tour, multilingual, one-page, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--red: #C8102E;        /* Chinese vermilion — auspicious, high trust */
	--red-dark: #A00C24;
	--gold: #D4A03C;
	--gold-soft: #F3E3C3;
	--ember: #F2762E;      /* Volcano sunrise */
	--ink: #14161A;
	--ink-soft: #2A2E36;
	--body: #4A5058;
	--muted: #858C96;
	--line: #E6E8EC;
	--bg: #FFFFFF;
	--bg-soft: #F7F8FA;
	--bg-dark: #0F1115;
	--white: #FFFFFF;

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 22px;
	--shadow-sm: 0 2px 8px rgba(20, 22, 26, .06);
	--shadow: 0 12px 32px rgba(20, 22, 26, .10);
	--shadow-lg: 0 24px 60px rgba(20, 22, 26, .16);

	--head: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
	--text: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;

	--header-h: 74px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.65;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* CJK needs a touch more leading and no letter-spacing tricks */
body.lang-zh { line-height: 1.85; letter-spacing: .01em; }
body.lang-zh .hero-title { letter-spacing: 0; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; width: auto; height: auto;
	clip: auto; padding: 10px 16px; background: var(--white); z-index: 9999; border-radius: var(--r-sm);
}

.dtcn-icon { flex: none; vertical-align: -.15em; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
	font-family: var(--head); font-size: 15px; font-weight: 700; cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(200, 16, 46, .28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 12px 28px rgba(200, 16, 46, .36); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-ghost { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }

/* ==========================================================================
   4. Top bar + header
   ========================================================================== */

.topbar {
	background: var(--ink); color: rgba(255, 255, 255, .72);
	font-size: 13px; position: relative; z-index: 60;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar-note, .topbar-contact, .topbar-contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact a:hover { color: var(--gold); }

.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	display: flex; align-items: center;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; }

.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
	width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--red), var(--ember)); color: var(--white);
}
.brand-text { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.brand-text em { font-style: normal; color: var(--red); }
.custom-logo,
.brand-logo { max-height: 44px; width: auto; display: block; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); position: relative; }
.main-nav a::after {
	content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
	background: var(--red); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-toggle {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--white); font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--ink);
}
.lang-toggle:hover { border-color: var(--red); color: var(--red); }
.lang-menu {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: var(--shadow); padding: 6px; opacity: 0; visibility: hidden;
	transform: translateY(-6px); transition: all .2s var(--ease); z-index: 70;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.lang-menu a:hover { background: var(--bg-soft); color: var(--red); }
.lang-menu a.is-active { background: var(--gold-soft); color: var(--ink); }
.lang-flag { font-size: 16px; }

.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 24s ease-in-out infinite alternate; }
.hero-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15, 17, 21, .62) 0%, rgba(15, 17, 21, .28) 42%, rgba(15, 17, 21, .86) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 90px 0; max-width: 760px; }

.eyebrow, .section-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
	padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
	font-family: var(--head); letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: var(--gold-soft); backdrop-filter: blur(6px); }
body.lang-zh .eyebrow, body.lang-zh .section-kicker { text-transform: none; letter-spacing: .02em; }

.hero-title { font-size: clamp(34px, 5.2vw, 62px); color: var(--white); margin-bottom: 20px; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .88); max-width: 620px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-stat strong { display: block; font-family: var(--head); font-size: 28px; color: var(--gold); line-height: 1.1; }
.hero-stat span { font-size: 13.5px; color: rgba(255, 255, 255, .74); }

@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   6. Trust bar
   ========================================================================== */

.trustbar { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 20px 0; }
.trustbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.trust-item .dtcn-icon { color: var(--gold); }

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section { padding: 92px 0; }
.section-muted { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: rgba(255, 255, 255, .74); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-kicker { background: var(--gold-soft); color: var(--red-dark); }
.section-dark .section-kicker { background: rgba(212, 160, 60, .16); color: var(--gold); }
.section-head h2 { font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .62); }

/* ==========================================================================
   8. Tour cards
   ========================================================================== */

/* Fixed three-up everywhere tours are listed. auto-fit would stretch a single
   card across the full width, which reads as a different design rather than as
   one result. */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.tour-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tour-card.is-featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 60, .16); }

.tour-badge {
	position: absolute; top: 16px; left: 16px; z-index: 2;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 13px; border-radius: 999px; background: var(--red); color: var(--white);
	font-family: var(--head); font-size: 12.5px; font-weight: 700;
}

.tour-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card:hover .tour-media img { transform: scale(1.07); }

.tour-body { padding: 24px 24px 8px; flex: 1; }
.tour-body h3 { font-size: 20px; margin-bottom: 8px; }
.tour-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.tour-desc { font-size: 15px; margin: 0; }

.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 24px; border-top: 1px solid var(--line); margin-top: 18px; }
.tour-price-label { display: block; font-size: 12px; color: var(--muted); }
.tour-price strong { font-family: var(--head); font-size: 21px; color: var(--red); }

/* ==========================================================================
   9. Why us
   ========================================================================== */

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.why-item {
	padding: 30px 26px; border-radius: var(--r); background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .09); transition: transform .3s var(--ease), background .3s var(--ease);
}
.why-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
.why-icon {
	display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
	border-radius: 14px; background: linear-gradient(135deg, rgba(200, 16, 46, .9), rgba(242, 118, 46, .9)); color: var(--white);
}
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { font-size: 14.5px; margin: 0; color: rgba(255, 255, 255, .66); }

/* ==========================================================================
   10. Timeline
   ========================================================================== */

.timeline { position: relative; max-width: 780px; margin-inline: auto; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--red)); }
.timeline-item { position: relative; display: flex; gap: 22px; padding: 0 0 34px 22px; }
.timeline-item::before {
	content: ''; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px;
	border-radius: 50%; background: var(--white); border: 3px solid var(--red);
}
.timeline-time { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--red); min-width: 58px; padding-top: 2px; }
.timeline-body h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-body p { font-size: 15px; margin: 0; }

/* ==========================================================================
   11. Gallery
   ========================================================================== */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.gallery-item { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1; background: var(--line); }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* ==========================================================================
   12. Reviews
   ========================================================================== */

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.review-card { position: relative; margin: 0; padding: 32px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.review-quote { position: absolute; top: 22px; right: 24px; color: var(--gold-soft); }
.review-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.review-stars .dtcn-icon { fill: currentColor; }
.review-card blockquote { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-soft); }
.review-card figcaption strong { display: block; font-family: var(--head); color: var(--ink); }
.review-card figcaption span { font-size: 13.5px; color: var(--muted); }

/* Reviews carousel — only rendered once there are more reviews than fit.
   The track holds the cards themselves rather than pages of three, so it steps
   one card at a time and the row on screen stays a row of three. Built on
   scroll-snap, so it still swipes and still scrolls with the script removed. */
.review-carousel { position: relative; --rev-gap: 26px; --rev-per-view: 3; }
.review-track {
	display: flex; gap: var(--rev-gap); overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: var(--r); }
.review-track > .review-card {
	flex: 0 0 calc((100% - (var(--rev-per-view) - 1) * var(--rev-gap)) / var(--rev-per-view));
	scroll-snap-align: start;
}

.review-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.review-arrow {
	display: grid; place-items: center; width: 42px; height: 42px; flex: none; cursor: pointer;
	border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink);
	transition: border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.review-arrow:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.review-arrow:disabled { opacity: .3; cursor: not-allowed; }
.review-arrow[data-review-prev] .dtcn-icon { transform: rotate(180deg); }

.review-dots { display: flex; align-items: center; gap: 9px; }
.review-dot {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--line); transition: background .2s var(--ease), transform .2s var(--ease);
}
.review-dot:hover { background: var(--gold); }
.review-dot.is-active { background: var(--red); transform: scale(1.35); }

/* Cards that fit at a glance, not squeezed: two on a tablet, one on a phone. */
@media (max-width: 900px) {
	.review-carousel { --rev-per-view: 2; --rev-gap: 20px; }
}
@media (max-width: 620px) {
	.review-carousel { --rev-per-view: 1; --rev-gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.review-track { scroll-behavior: auto; }
	.review-dot { transition: none; }
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
	padding: 18px 22px; font-family: var(--head); font-weight: 700; font-size: 16.5px; color: var(--ink); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .dtcn-icon { color: var(--red); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary .dtcn-icon { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; font-size: 15px; }

/* ==========================================================================
   14. Booking
   ========================================================================== */

.booking { background: linear-gradient(160deg, #FFF7F0 0%, #FFFFFF 60%); }
.booking-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.booking-intro h2 { font-size: clamp(26px, 3.2vw, 38px); }
.booking-intro > p { color: var(--muted); font-size: 17px; }
.booking-or { margin: 32px 0 14px; font-weight: 700; color: var(--ink); font-family: var(--head); }

.contact-chip {
	display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 12px;
	padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r);
	background: var(--white); text-align: left; cursor: pointer; font: inherit; color: var(--ink);
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-chip:hover { border-color: var(--red); transform: translateY(-2px); }
.contact-chip .dtcn-icon { color: var(--red); }
.contact-chip span { display: flex; flex-direction: column; }
.contact-chip strong { font-family: var(--head); font-size: 15px; }
.contact-chip em { font-style: normal; font-size: 13px; color: var(--muted); }

.booking-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
	background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm);
	transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(200, 16, 46, .10);
}
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 15px; }
.alert-success { background: #E9F7EF; color: #1B7A46; }
.alert-error { background: #FDECEF; color: var(--red-dark); }
.alert-warn { background: #FDF4E3; color: #7A5C14; }

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .62); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 48px; }
/* Without the language column there are three, not three plus a hole. */
.footer-grid.is-compact { grid-template-columns: 1.6fr 1fr 1.3fr; }
.footer-brand { color: var(--white); display: inline-block; margin-bottom: 14px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; }
.footer-about p { font-size: 14.5px; max-width: 320px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-social a { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 13px; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-links li, .footer-contact li { margin-bottom: 11px; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-links a.is-active { color: var(--gold); }
.footer-contact .dtcn-icon { color: var(--gold); }
.footer-bottom { padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13.5px; text-align: center; }

/* ==========================================================================
   16. Modal + mobile bar
   ========================================================================== */

.dtcn-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.dtcn-modal[hidden] { display: none; }
.dtcn-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, .62); backdrop-filter: blur(3px); }
.dtcn-modal-box {
	position: relative; z-index: 1; width: min(360px, calc(100% - 40px));
	background: var(--white); border-radius: var(--r-lg); padding: 30px; text-align: center; box-shadow: var(--shadow-lg);
}
.dtcn-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.dtcn-modal-close:hover { color: var(--red); }
.wechat-qr { width: 210px; height: 210px; object-fit: contain; margin: 8px auto 16px; border-radius: var(--r-sm); }
.wechat-qr-empty { display: grid; place-items: center; background: var(--bg-soft); border: 2px dashed var(--line); color: var(--muted); }
.wechat-id { margin: 0 0 4px; font-size: 15px; }
.wechat-hint { margin: 0; font-size: 13.5px; color: var(--muted); }

.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(20, 22, 26, .10); }
.mobile-bar-item {
	flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
	background: none; border: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.mobile-bar-cta { background: var(--red); color: var(--white); }

/* ==========================================================================
   17. Inner pages
   ========================================================================== */

.page-section { padding: 64px 0 88px; }
.entry-head h1 { font-size: clamp(27px, 3.6vw, 40px); }
.entry-thumb { margin: 0 0 28px; border-radius: var(--r); overflow: hidden; }
.entry-content { font-size: 16.5px; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--ink-soft); }
.lead { font-size: 18px; color: var(--ink-soft); }

.post-list { display: grid; gap: 26px; }
.post-card { display: grid; grid-template-columns: 260px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 22px 0; }
.post-body h3 { font-size: 20px; }
.post-meta { font-size: 13.5px; color: var(--muted); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); font-family: var(--head); }
.pagination { margin-top: 40px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-right: 6px; }
.pagination .page-numbers.current { background: var(--red); color: var(--white); border-color: var(--red); }

.error-code { font-family: var(--head); font-size: clamp(70px, 14vw, 140px); font-weight: 800; color: var(--gold-soft); line-height: 1; display: block; }

.tour-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.tour-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: none; }
.tour-hero-inner { position: relative; z-index: 1; padding: 48px 0; }
.tour-hero h1 { color: var(--white); font-size: clamp(27px, 4vw, 44px); }
.tour-hero .tour-meta { color: rgba(255, 255, 255, .8); }

.tour-single-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.booking-box { position: sticky; top: calc(var(--header-h) + 20px); padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.booking-box .btn { margin-bottom: 10px; }
.tour-price-big { display: block; font-family: var(--head); font-size: 30px; color: var(--red); margin-bottom: 18px; }
.booking-box-list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.booking-box-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 9px; }
.booking-box-list .dtcn-icon { color: #1B7A46; }

/* ==========================================================================
   18. Inner page hero, breadcrumbs, filters
   ========================================================================== */

.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 380px; color: var(--white); overflow: hidden; }
.page-hero-sm { min-height: 300px; }
.page-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: none; }
.page-hero-inner { position: relative; z-index: 1; padding: 44px 0 48px; max-width: 780px; }
.page-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .84); font-size: 16.5px; margin: 0; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.page-hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; }

.breadcrumbs { margin-bottom: 16px; font-size: 13.5px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .66); }
.breadcrumbs li + li::before { content: '/'; color: rgba(255, 255, 255, .38); }
.breadcrumbs a:hover { color: var(--gold); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white);
	font-family: var(--head); font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
}
.filter-chip span { color: var(--muted); font-size: 12.5px; }
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.filter-chip.is-active span { color: rgba(255, 255, 255, .72); }

.main-nav a.is-current { color: var(--red); }
.main-nav a.is-current::after { width: 100%; }

.section-cta { margin-top: 44px; text-align: center; }
.section-cta p { color: var(--muted); margin-bottom: 16px; }
.section-cta .btn + .btn { margin-left: 10px; }

.tour-cat {
	position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px;
	background: rgba(15, 17, 21, .72); color: var(--white); font-size: 12.5px; font-weight: 600;
	backdrop-filter: blur(6px);
}
.tour-card .tour-media { display: block; position: relative; }
.tour-card .tour-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tour-card .tour-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tour-body h3 a:hover { color: var(--red); }

/* ==========================================================================
   19. Albums and photo grids
   ========================================================================== */

/* Fixed four-up, same reasoning as the tour grid: a single album keeps its card
   size in the left-hand column instead of stretching across the row. */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.album-card {
	display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.album-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.album-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album-card:hover .album-media img { transform: scale(1.07); }
.album-body { display: block; padding: 18px 20px 20px; }
.album-cat { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
body.lang-zh .album-cat { text-transform: none; letter-spacing: 0; }
.album-body strong { display: block; font-family: var(--head); font-size: 17.5px; color: var(--ink); margin-bottom: 7px; }
.album-count { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.album-lead { max-width: 760px; margin-bottom: 30px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.photo-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.photo-item { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--line); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo-item:hover img { transform: scale(1.06); }
.photo-zoom {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(15, 17, 21, .38); color: var(--white); opacity: 0; transition: opacity .25s var(--ease);
}
.photo-item:hover .photo-zoom { opacity: 1; }

/* Lightbox */
.dtcn-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(10, 11, 14, .94); }
.dtcn-lightbox[hidden] { display: none; }
.dtcn-lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--r-sm); }
.dtcn-lightbox-btn {
	position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer; font-size: 22px; line-height: 1;
}
.dtcn-lightbox-btn:hover { background: rgba(255, 255, 255, .26); }
.dtcn-lightbox-prev { left: 3vw; }
.dtcn-lightbox-next { right: 3vw; }
.dtcn-lightbox-close { top: 24px; right: 3vw; transform: none; }
.dtcn-lightbox-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ==========================================================================
   20. Tour detail blocks
   ========================================================================== */

.tour-block { margin-bottom: 48px; }
.tour-block > h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.day-heading { margin: 32px 0 18px; }
.day-badge {
	display: inline-block; padding: 7px 18px; border-radius: 999px;
	background: linear-gradient(135deg, var(--red), var(--ember)); color: var(--white);
	font-family: var(--head); font-size: 15px; font-weight: 700;
}
.timeline-body h4 { font-size: 17px; margin-bottom: 6px; }

.inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.inc-exc h3 { font-size: 18px; margin-bottom: 14px; }
.list-check li, .list-cross li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.list-check .dtcn-icon { color: #1B7A46; margin-top: 4px; }
.list-cross .dtcn-icon { color: var(--muted); margin-top: 4px; }
.list-cross li { color: var(--muted); }

/* ==========================================================================
   21. Booking: selected tour card and calendar
   ========================================================================== */

.booking-lead { color: var(--muted); max-width: 640px; margin-bottom: 24px; }

.selected-tour {
	display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
	padding: 14px; margin-bottom: 22px;
	background: linear-gradient(135deg, rgba(200, 16, 46, .05), rgba(212, 160, 60, .08));
	border: 1px solid var(--gold); border-radius: var(--r);
}
.selected-tour-media { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.selected-tour-media img { width: 100%; height: 100%; object-fit: cover; }
.selected-tour-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.selected-tour-body em {
	font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--red);
}
body.lang-zh .selected-tour-body em { text-transform: none; letter-spacing: .02em; }
.selected-tour-body strong { font-family: var(--head); font-size: 17px; color: var(--ink); line-height: 1.3; }
.selected-tour-price { font-size: 13.5px; color: var(--muted); }
.selected-tour-price b { color: var(--red); font-size: 15px; }
.selected-tour-change { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.selected-tour-change:hover { color: var(--red); }

.dtcn-datefield { position: relative; }
.date-trigger {
	display: flex; align-items: center; gap: 10px; width: 100%;
	padding: 12px 14px; font: inherit; font-size: 15px; text-align: left; cursor: pointer;
	background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
	transition: border-color .2s var(--ease), background .2s var(--ease);
}
.date-trigger:hover { border-color: var(--red); }
.date-trigger[aria-expanded="true"] { border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(200, 16, 46, .10); }
.date-trigger .dtcn-icon { color: var(--red); flex: none; }
.date-label.is-empty { color: var(--muted); }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
/* Belongs to the WeChat field but sits under the whole row, so the two columns
   keep the same height. The row's own margin is on its fields, hence the pull. */
.booking-contact-hint { margin: -10px 0 16px; }
.field-hint.is-error { color: var(--red); font-weight: 600; }
.dtcn-datefield.has-error .date-trigger { border-color: var(--red); }

.dtcn-cal {
	position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 300px; max-width: 100%;
	padding: 14px; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.dtcn-cal[hidden] { display: none; }
.dtcn-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dtcn-cal-head strong { font-family: var(--head); font-size: 15.5px; color: var(--ink); }
.dtcn-cal-nav {
	width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer;
	border: 1px solid var(--line); border-radius: 8px; background: var(--white);
	font-size: 17px; line-height: 1; color: var(--ink);
}
.dtcn-cal-nav:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.dtcn-cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.dtcn-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dtcn-cal-dow { display: grid; place-items: center; height: 28px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.dtcn-cal-pad { height: 36px; }
.dtcn-cal-day {
	height: 36px; display: grid; place-items: center; cursor: pointer;
	border: 0; border-radius: 8px; background: transparent;
	font: inherit; font-size: 14px; color: var(--ink);
}
.dtcn-cal-day:hover:not(:disabled) { background: var(--gold-soft); }
.dtcn-cal-day:disabled { color: #C9CDD3; cursor: not-allowed; }
.dtcn-cal-day.is-blocked { text-decoration: line-through; color: #E0A2AC; }
.dtcn-cal-day.is-chosen { background: var(--red); color: var(--white); font-weight: 700; }

.booking-direct-inline { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.booking-direct-inline .booking-or { grid-column: 1 / -1; margin: 0; }
.booking-direct-inline .contact-chip { margin: 0; }

#book .booking-form-wrap { padding: 0; border: 0; box-shadow: none; background: transparent; }

/* ==========================================================================
   22. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	/* The fixed tracks stop fitting here; the rows step down rather than shrinking the cards. */
	.tour-grid { grid-template-columns: repeat(2, 1fr); }
	.album-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid, .footer-grid.is-compact { grid-template-columns: 1fr 1fr; }
	.booking-grid { grid-template-columns: 1fr; gap: 36px; }
	.tour-single-grid { grid-template-columns: 1fr; }
	.booking-box { position: static; }
}

@media (max-width: 860px) {
	.topbar-note { display: none; }
	.topbar-inner { justify-content: center; }

	.nav-toggle { display: inline-flex; }
	.btn-header { display: none; }

	.main-nav {
		position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0;
		background: var(--white); border-bottom: 1px solid var(--line);
		padding: 10px 20px 20px; box-shadow: var(--shadow);
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: all .25s var(--ease);
	}
	.main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav a { display: block; padding: 14px 0; font-size: 16px; }
	.main-nav a::after { display: none; }

	.section { padding: 64px 0; }
	.hero-inner { padding: 70px 0; }
	.hero-stats { gap: 26px; }
	.hero-cta .btn { flex: 1 1 auto; }

	.trustbar-inner { justify-content: flex-start; }

	.gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 1; aspect-ratio: 1 / 1; }

	.post-card { grid-template-columns: 1fr; }
	.post-body { padding: 0 22px 22px; }

	.mobile-bar { display: flex; }
	body { padding-bottom: 62px; }
	.site-footer { padding-bottom: 0; }
}

@media (max-width: 860px) {
	.inc-exc { grid-template-columns: 1fr; gap: 24px; }
	.page-hero { min-height: 300px; }
	.page-hero-inner { padding: 32px 0 36px; }
	.dtcn-lightbox-prev { left: 12px; }
	.dtcn-lightbox-next { right: 12px; }
	.dtcn-lightbox-close { right: 12px; top: 14px; }
}

@media (max-width: 620px) {
	.tour-grid { grid-template-columns: 1fr; }
	.album-grid { grid-template-columns: repeat(2, 1fr); }
	.selected-tour { grid-template-columns: 72px 1fr; }
	.selected-tour-change { grid-column: 1 / -1; text-align: center; }
	.booking-direct-inline { grid-template-columns: 1fr; }
	.dtcn-cal { width: 100%; }
}

@media (max-width: 520px) {
	.field-row { grid-template-columns: 1fr; }
	.photo-grid, .photo-grid-sm { grid-template-columns: 1fr 1fr; gap: 10px; }
	.album-grid { grid-template-columns: 1fr; }
	.filter-bar { gap: 8px; }
	.filter-chip { padding: 8px 14px; font-size: 13.5px; }
	.booking-form-wrap { padding: 22px; }
	.footer-grid, .footer-grid.is-compact { grid-template-columns: 1fr; gap: 30px; }
	.hero-stat strong { font-size: 23px; }
}
