/*
 * chinatravel — style.css
 * Design ref: muchbetteradventures.com (clean, photo-forward, minimal chrome)
 */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  /* ── 川西自然高级感 + 成都烟火气 ────────────────── */
  --color-bg: #FBF8F2;         /* 宣纸暖白 */
  --color-bg-alt: #F1E8D8;     /* 浅砂岩 */
  --color-bg-card: #FFFFFF;

  --color-text: #1F2A24;       /* 深竹墨绿 */
  --color-text-muted: #66736A;
  --color-text-soft: #909C94;

  --color-primary: #1F5E4B;    /* 竹林深绿 */
  --color-primary-hover: #174839;

  --color-accent: #C7472F;     /* 成都朱红 */
  --color-accent-hover: #A93A27;
  --color-accent-disabled: #F2D5D0;
  --color-accent-soft: #FDF3F1;

  --color-secondary: #2F8F9D;  /* 九寨沟湖蓝 */

  --color-gold: #B8893B;       /* 寺庙金 */

  --color-border: #DED3C2;
  --color-border-soft: #EAE1D3;
  --color-bg-strong: #E5DAC8;

  --color-warning: #FFF3CD;
  --color-warning-border: #FFC107;
  --color-success: #D4EDDA;
  --color-danger: #F8D7DA;

  --color-bg-dark: #18241F;    /* 深竹墨 */

  --color-gradient-top: #F1E8D8;
  --color-gradient-mid: #FBF8F2;
  --gradient-section: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);

  --radius: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 2px 6px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #167255; text-decoration: none; }

/* ── Transitions & Animations ──────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes skeletonPulse {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-in {
  animation: fadeInUp 0.5s ease both;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* ── Skeleton Loading ───────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, #e8e8e8 37%, var(--color-bg-alt) 63%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease infinite;
  border-radius: var(--radius);
}
.skeleton-text { height: 1em; margin-bottom: 0.5em; }
.skeleton-text:last-child { width: 70%; }
.skeleton-heading { height: 1.6em; width: 60%; margin-bottom: 1em; }
.skeleton-image { height: 200px; width: 100%; border-radius: var(--radius-card); }
.skeleton-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
}
.skeleton-card .skeleton-image { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.skeleton-card-body { padding: 1.25rem; }

/* ── Spinner ────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: #167255;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ── Page Loader ───────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ── Toast / Notification ──────────────────────────── */
.toast-container {
  position: fixed;
  top: 100px;
  right: 1.5rem;
  z-index: 90000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--color-text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  animation: fadeInUp 0.3s ease both;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 360px;
}
.toast.success { background: #155724; }
.toast.error { background: #721C24; }

/* ── Back to Top ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #167255;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #0F4F3D; }
a:hover { color: var(--color-accent-hover); }

/* ── Layout ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-soft);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2rem; height: 80px;
}
main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-dark {
  background: linear-gradient(180deg, #101816 0%, #18241F 40%, #1D2B25 100%);
  color: #F8F1E7;
}
.section-dark h2, .section-dark h3, .section-dark h4 {
  color: #FBF8F2;
}
.section-dark p, .section-dark .service-duration {
  color: #C9D0C8;
}
.section-dark .service-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #F8F1E7;
}
.section-dark .service-card h4 { color: #FBF8F2; }
.section-dark .eyebrow { color: var(--color-secondary); }

/* ── Nav ───────────────────────────────────────────── */
.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.brand:hover { color: var(--color-primary-hover); }

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--color-text-muted);
}
.nav-links a:hover { color: var(--color-text); }

.lang-switcher {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  color: var(--color-text);
}

.hamburger {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  padding: 0.25rem;
}

/* ── Buttons ───────────────────────────────────────── */
.button {
  display: inline-block;
  padding: 14px 24px;
  font-size: 1rem; font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius);
  background: #167255;
  color: #fff;
  border: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  text-align: center;
  text-decoration: none;
  height: auto;
}
.button:hover { background: #0F4F3D; color: #fff; }
.button:active { transform: scale(0.98); }
.button.small {
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
}
.button.outline {
  background: transparent;
  border: 2px solid #167255;
  color: #167255;
}
.button.outline:hover { background: #167255; color: #fff; }
.button.small { padding: 0.4rem 1rem; font-size: 0.85rem; }
.button.danger { background: #dc3545; }
.button.danger:hover { background: #c82333; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #101816 0%, #18241F 40%, #1D2B25 100%);
  color: #fff;
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Dark overlay for text readability on video */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(24,36,31,0.72) 0%, rgba(24,36,31,0.38) 48%, rgba(24,36,31,0.68) 100%);
}
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem; font-weight: 600;
  line-height: 1.25; margin-bottom: 0.75rem;
  max-width: 600px;
  letter-spacing: -0.3px;
}
.hero-overlay p {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 480px;
  line-height: 1.5;
}
.hero-overlay .button {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  background: #fff;
  color: #167255;
}
.hero-overlay .button:hover { background: rgba(255,255,255,0.9); }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.hero-cta .button.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-cta .button.outline:hover { background: rgba(255,255,255,0.15); }

/* ── Features ──────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-icon {
  font-size: 2.5rem; margin-bottom: 0.75rem;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: #E3EFE8;
  color: var(--color-primary);
  border-radius: var(--radius-card);
  margin: 0 auto 0.75rem auto;
}
.feature h3 {
  font-size: 1.1rem; margin-bottom: 0.5rem;
}
.feature p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ── Tour Cards Grid ───────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card img {
  width: 100%; height: 200px;
  object-fit: contain;
  background: var(--color-bg-alt);
}
.card .placeholder-img {
  width: 100%; height: 200px;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-body {
  padding: 1.25rem;
}
.card-body .eyebrow {
  font-size: 0.8rem; color: var(--color-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.card-body h3 {
  font-size: 1.15rem; margin-bottom: 0.5rem;
}
.card-body p {
  font-size: 0.9rem; color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.card-body .price {
  font-weight: 700; color: #167255;
}

/* ── Forms ─────────────────────────────────────────── */
.form {
  max-width: 500px;
  margin: 0 auto;
}
.form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem; font-weight: 500;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: #167255;
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.16);
}
.form textarea { resize: vertical; min-height: 80px; }

/* ── Payment page ──────────────────────────────────── */
.panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel h2 {
  font-size: 1.1rem; margin-bottom: 0.75rem;
}
.panel p {
  font-size: 0.9rem; color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.wallet-addr {
  display: flex; align-items: center;
  gap: 0.75rem;
  background: #1a1a1a;
  color: #00ff88;
  padding: 1rem;
  border-radius: var(--radius);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  word-break: break-all;
  margin: 1rem 0;
}
.wallet-addr button {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}
.wallet-addr button:hover { background: rgba(255,255,255,0.25); }

.warning-banner {
  background: var(--color-warning);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 1.5rem;
}

.success-banner {
  background: var(--color-success);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem; font-weight: 600;
  text-transform: capitalize;
}
.status-badge.pending_payment { background: #FFF3CD; color: #856404; }
.status-badge.pending_confirmation { background: #CCE5FF; color: #004085; }
.status-badge.confirmed { background: #D4EDDA; color: #155724; }
.status-badge.completed { background: #D1ECF1; color: #0C5460; }
.status-badge.cancelled { background: #F8D7DA; color: #721C24; }
.status-badge.expired { background: #E2E3E5; color: #383D41; }

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #101816 0%, #18241F 40%, #1D2B25 100%);
  border-top: none;
  padding: 3rem 1.5rem;
  margin-top: auto;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #C9D0C8;
}
.footer a { color: #E8D8BE; }
.footer a:hover { color: #FBF8F2; }
.footer strong { color: #FBF8F2; }

/* ── Narrow section ────────────────────────────────── */
.section.narrow {
  max-width: 700px;
  margin: 0 auto;
}

/* ── Tablet (768px - 1024px) ───────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 5rem 1.5rem; min-height: 50vh; }
  .hero-overlay h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
}

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 1rem; min-height: 45vh; }
  .hero-overlay h1 { font-size: 1.6rem; }
  .hero-overlay p { font-size: 0.9rem; margin-bottom: 1rem; }
  .hero-overlay .button { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

  .grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .outdoor-grid { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; }
  .detail-hero { height: 200px; }
  .detail-hero .hero-overlay h1 { font-size: 1.3rem; }
  .tour-header { height: 200px; }

  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a.button { display: inline-block; width: auto; }
  .lang-switcher {
    margin-left: auto;
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }

  .site-header { padding: 0 1rem; height: 64px; }
  .brand { font-size: 1.1rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { flex-direction: column; }
  .footer { flex-direction: column; text-align: center; padding: 1.5rem 1rem; font-size: 0.8rem; }
  .footer > div { width: 100%; }
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: 0.4rem 0.5rem; }
  .admin-stats { gap: 0.75rem; }
  .stat-card { padding: 0.75rem; }
  .stat-card .stat-num { font-size: 1.5rem; }
  .form { max-width: 100%; }

  .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; font-size: 1rem; }
  .toast-container { right: 0.5rem; left: 0.5rem; top: 80px; }
  .toast { max-width: 100%; }
}

/* ── Small Mobile ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero-overlay h1 { font-size: 1.35rem; }
  .features { grid-template-columns: 1fr; gap: 1.25rem; }
  .why-us-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .button { width: 100%; max-width: 260px; }
  .card img, .card .placeholder-img { height: 160px; }
  .service-card-img { height: 140px; }
  .two-col { padding: 1.5rem 1rem; }
  .panel { padding: 1rem; }
  .wallet-addr { flex-direction: column; font-size: 0.75rem; word-break: break-all; }
  .service-modal { width: 95vw; max-height: 90vh; border-radius: 12px; }
  .service-modal-header { padding: 1rem; }
  .service-modal-body { padding: 1rem; }
  .service-modal-footer { padding: 0.75rem 1rem; flex-direction: column; }
  .service-modal-footer .button { width: 100%; text-align: center; }
}

/* ── Tour detail ───────────────────────────────────── */
.tour-header {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.tour-header img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tour-header .placeholder-img {
  width: 100%; height: 100%;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.tour-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin: 1.5rem 0;
}
.tour-meta span {
  font-size: 0.9rem; color: var(--color-text-muted);
}
.tour-meta strong { color: var(--color-text); }
.itinerary-day {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* ── Admin (minimal styling) ───────────────────────── */
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.admin-table th {
  font-weight: 600; background: var(--color-bg-alt);
}
.admin-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 160px;
  padding: 1.25rem; background: var(--color-bg-alt);
  border-radius: var(--radius); border: 1px solid var(--color-border);
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.85rem; color: var(--color-text-muted); }

.admin-form { max-width: 600px; }
.admin-form textarea { min-height: 60px; }

/* ── Tour detail hero ──────────────────────────────── */
.detail-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex; align-items: flex-end;
  padding: 2rem 1.5rem;
}
.detail-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero .hero-overlay {
  position: relative; z-index: 1;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 2rem 1.5rem;
  margin: -2rem -1.5rem;
  width: 100%;
  color: #fff;
}
.detail-hero .hero-overlay h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.detail-hero .hero-overlay .eyebrow { opacity: 0.8; }
.detail-hero .hero-overlay .button { background: #fff; color: #167255; }

/* ── Two column layout ─────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .detail-hero { height: 240px; }
  .detail-hero .hero-overlay h1 { font-size: 1.5rem; }
}

/* ── Itinerary ─────────────────────────────────────── */
.itinerary {
  white-space: pre-line;
  font-family: var(--font-body);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ── FAQ accordion ─────────────────────────────────── */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border: none;
  font-size: 1rem; font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q:hover { background: #f0f0f0; }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--color-text-muted); }
.faq-q.open::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
  font-size: 0.9rem; color: var(--color-text-muted);
  line-height: 1.6;
}
.faq-a.open { max-height: 500px; padding: 0 1.25rem 1.25rem; }

/* ── Contact info ──────────────────────────────────── */
.contact-info {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* ── Service cards ─────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.service-card {
  display: flex;
  justify-content: space-between;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
}
.service-card:hover {
  box-shadow: var(--shadow);
}
.service-card-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}
.service-duration {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.service-card-price {
  text-align: right;
  flex-shrink: 0;
}
.price-label {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.service-card-price strong {
  font-size: 1.1rem;
  color: #167255;
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ── Service detail modal ──────────────────────────── */
.service-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.service-modal-overlay.open { display: flex; }

.service-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}
.service-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}
.service-modal-header .price-tag {
  color: #167255;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  margin-left: 1rem;
}
.service-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0 0 0 0.5rem;
  line-height: 1;
  color: var(--color-text-muted);
}
.service-modal-body {
  padding: 1.25rem 1.5rem;
}
.service-modal-body .detail-section {
  margin-bottom: 1.25rem;
}
.service-modal-body .detail-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}
.service-modal-body .detail-section ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.service-modal-body .detail-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.service-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.service-modal-footer .button { padding: 0.6rem 1.5rem; }

/* ── Testimonials ───────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin: 0 0 1rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}


/* ── Why Us ────────────────────────────────────────── */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.why-us-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
}
.why-us-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.why-us-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.why-us-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 600px) {
  .why-us-grid { grid-template-columns: 1fr; }
}

/* ── How It Works ──────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.step-card {
  text-align: center;
  padding: 1.25rem 1rem;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #167255;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── Outdoor / Adventure ────────────────────────────── */
.outdoor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.outdoor-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.outdoor-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.outdoor-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.outdoor-card-header h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.3rem; }
.outdoor-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: var(--color-text-muted); }
.outdoor-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  flex: 1;
  margin: 0 0 1rem;
}
.outdoor-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.outdoor-card-footer strong {
  font-size: 1rem;
  color: #167255;
}
.outdoor-note { }
@media (max-width: 600px) {
  .outdoor-grid { grid-template-columns: 1fr; }
}
.outdoor-warning { font-size:0.78rem; color:var(--color-accent); margin:0 0 0.75rem; line-height:1.4; }
/* ── Service modal options ──────────────────────────── */
.option-list { display: flex; flex-direction: column; gap: 0.5rem; }
.option-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0.85rem; background: var(--color-bg-alt);
  border: 1px solid var(--color-border); border-radius: var(--radius);
}
.option-row div { display: flex; flex-direction: column; gap: 0.15rem; }
.option-row strong { font-size: 0.85rem; }
.option-row span { font-size: 0.75rem; color: var(--color-text-muted); }
.option-price { font-size: 0.9rem; font-weight: 700; color: #167255; white-space: nowrap; }

/* ── Service card image ─────────────────────────────── */
.service-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -0.9rem -1.1rem 0.75rem -1.1rem;
  width: calc(100% + 2.2rem);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0.9rem 1.1rem;
}
.service-card:has(.service-card-img) {
  padding-top: 0;
}
.service-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

/* ── Social Share Bar ───────────────────────────────── */
.share-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-btn {
  width: 44px;
  height: 44px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-text-muted);
}
.share-btn:hover {
  background: #167255;
  color: #fff;
  border-color: #167255;
}
.share-btn.copied {
  background: #155724;
  color: #fff;
  border-color: #155724;
}
@media (max-width: 768px) {
  .share-bar {
    flex-direction: row;
    top: auto;
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
    transform: none;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    justify-content: space-around;
    padding: 0.3rem 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  }
  .share-btn {
    border: none;
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
