/* ==========================================================
   Scenic Iceland — 产品详情页共享样式
   取自 design-src/tour-styles.css（面包屑 → 相关推荐），
   线路页与活动页共用。导航/按钮/页脚已在各自的组件文件里。
   ========================================================== */

/* ============== BREADCRUMB ============== */
.crumbs {
  padding: 1.1rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
}
.crumbs a { color: var(--color-text-secondary); text-decoration: none; transition: var(--transition); }
.crumbs a:hover { color: var(--color-accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--color-text); font-weight: 600; }

/* ============== TITLE BLOCK (above gallery) ============== */
.detail-head {
  padding: 0.5rem 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.detail-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.detail-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.detail-badge.b-tour { background: var(--color-accent-bright); color: white; }
.detail-badge.b-summer { background: var(--color-sun); color: #5a3a00; }
.detail-badge.b-bestseller { background: var(--color-grass); color: white; }
.detail-badge.b-soft {
  background: var(--color-mist); color: var(--color-accent);
  font-weight: 600; letter-spacing: 0.04em; text-transform: none;
}
.detail-title {
  font-size: clamp(1.6rem, 0.6rem + 2.2vw, 2.8rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}
.detail-title .accent {
  font-style: italic; font-weight: 400; color: var(--color-accent);
  position: relative;
}
.detail-title .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: var(--color-meadow); z-index: -1; border-radius: 4px; opacity: 0.6;
}
.detail-rating-row {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
}
.detail-rating {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; color: var(--color-text-secondary);
}
.detail-rating strong { color: var(--color-text); font-weight: 800; font-size: 1.05rem; margin-right: 0.15rem; }
.detail-rating .stars-row { color: var(--color-sun); letter-spacing: 0.04em; font-size: 1rem; }
.detail-rating a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

.detail-pin {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--color-text-secondary); font-size: 0.92rem; font-weight: 500;
}
.detail-pin svg { width: 16px; height: 16px; stroke: var(--color-accent); stroke-width: 2; fill: none; }

/* 供应商产品编码：给客服与供应商对单用，低调地跟在地点后面 */
.detail-code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  padding: 0.1rem 0.45rem; border-radius: 6px;
  background: var(--color-surface-alt, rgba(15, 62, 84, 0.06));
}

.detail-actions { display: flex; gap: 0.5rem; align-self: end; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  color: var(--color-text); transition: var(--transition);
}
.icon-btn:hover { border-color: var(--color-accent-bright); color: var(--color-accent); background: var(--color-sky-soft); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============== GALLERY (variant 1: grid) ============== */
.gallery {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.gallery-cell { position: relative; overflow: hidden; background: var(--color-mist); cursor: pointer; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-cell:hover img { transform: scale(1.05); }
.gallery-cell.main { grid-row: 1 / span 2; grid-column: 1; }
.gallery-cell:not(.main):hover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 62, 84, 0) 0%, rgba(15, 62, 84, 0.18) 100%);
  pointer-events: none;
}
.gallery-show-all {
  position: absolute; bottom: 1.25rem; right: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border: none; border-radius: 100px; font-size: 0.85rem; font-weight: 700;
  color: var(--color-text); cursor: pointer; transition: var(--transition);
  box-shadow: 0 6px 18px rgba(15, 62, 84, 0.18);
}
.gallery-show-all:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 62, 84, 0.22); }
.gallery-show-all svg { width: 16px; height: 16px; stroke: var(--color-text); stroke-width: 2; fill: none; }

/* ============== GALLERY (variant 2: full-bleed) ============== */
.gallery.is-fullbleed {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 620px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  gap: 0;
}
.gallery.is-fullbleed .gallery-cell:not(.main) { display: none; }
.gallery.is-fullbleed .gallery-cell.main { grid-row: 1; grid-column: 1; }
.gallery.is-fullbleed .gallery-cell.main::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 62, 84, 0) 0%, rgba(15, 62, 84, 0.10) 50%, rgba(15, 62, 84, 0.65) 100%);
}
.gallery.is-fullbleed .fb-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem max(3rem, calc((100vw - 1280px) / 2 + 2rem));
  color: white; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
}
.gallery .fb-overlay { display: none; }
.fb-overlay-title { font-size: clamp(1.8rem, 1rem + 2.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 18ch; }
.fb-overlay-meta { display: flex; gap: 1.5rem; font-size: 0.95rem; font-weight: 500; margin-top: 1rem; flex-wrap: wrap; }
.fb-overlay-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.fb-overlay-thumbs {
  display: flex; gap: 0.5rem; align-self: flex-end;
}
.fb-overlay-thumbs button {
  width: 80px; height: 60px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.4);
  overflow: hidden; padding: 0; cursor: pointer; background: transparent;
  transition: var(--transition);
}
.fb-overlay-thumbs button.is-active { border-color: white; transform: translateY(-2px); }
.fb-overlay-thumbs button img { width: 100%; height: 100%; object-fit: cover; }

/* When full-bleed mode, hide the title block above gallery */
.is-hero-fullbleed .detail-head .detail-head-text > .detail-meta-row,
.is-hero-fullbleed .detail-head .detail-head-text > .detail-title,
.is-hero-fullbleed .detail-head .detail-head-text > .detail-rating-row { display: none; }
.is-hero-fullbleed .detail-head { padding-bottom: 0; }

/* ============== QUICK INFO STRIP ============== */
.quickbar {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.quickbar-item {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem 0.7rem 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 62, 84, 0.04);
  transition: var(--transition);
  overflow: hidden;
}
.quickbar-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--color-accent-bright));
  border-radius: 3px 0 0 3px;
}
.quickbar-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent, var(--color-accent-bright));
  box-shadow: 0 8px 18px rgba(15, 62, 84, 0.08);
}

/* Color variants — each item gets a unique accent */
.quickbar-item.qi-duration { --accent: #2a7a96; }
.quickbar-item.qi-duration .quickbar-icon { background: linear-gradient(135deg, #d6eef9, #a9dff2); }
.quickbar-item.qi-duration .quickbar-icon svg { stroke: #1f5e75; }

.quickbar-item.qi-group { --accent: #4d9530; }
.quickbar-item.qi-group .quickbar-icon { background: linear-gradient(135deg, #e0f1d2, #c7e9b0); }
.quickbar-item.qi-group .quickbar-icon svg { stroke: #3a7325; }

.quickbar-item.qi-pickup { --accent: #d68a2e; }
.quickbar-item.qi-pickup .quickbar-icon { background: linear-gradient(135deg, #fff4d6, #ffd989); }
.quickbar-item.qi-pickup .quickbar-icon svg { stroke: #8a5a00; }

.quickbar-item.qi-langs { --accent: #4fb3d1; }
.quickbar-item.qi-langs .quickbar-icon { background: linear-gradient(135deg, #d6eef9, #93d3ea); }
.quickbar-item.qi-langs .quickbar-icon svg { stroke: #1f5e75; }

.quickbar-item.qi-diff { --accent: #6ec04a; }
.quickbar-item.qi-diff .quickbar-icon { background: linear-gradient(135deg, #e0f1d2, #b6dd95); }
.quickbar-item.qi-diff .quickbar-icon svg { stroke: #3a7325; }

.quickbar-item.qi-season { --accent: #b48ce7; }
.quickbar-item.qi-season .quickbar-icon { background: linear-gradient(135deg, #ece2fa, #cdb3f0); }
.quickbar-item.qi-season .quickbar-icon svg { stroke: #5e3d8e; }

.quickbar-icon {
  width: 32px; height: 32px; border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.quickbar-icon svg { width: 16px; height: 16px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.quickbar-text { line-height: 1.2; min-width: 0; flex: 1; }
.quickbar-label {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.quickbar-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Overview mini-features (different from quickbar) */
.overview-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 1.5rem;
  padding: 1rem; background: var(--color-paper);
  border-radius: 12px;
}
.ov-feat {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.4rem 0.6rem;
}
.ov-feat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ov-feat-icon svg { width: 18px; height: 18px; }
.ov-feat-label { font-size: 0.72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 0.15rem; }
.ov-feat-value { font-size: 0.88rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }

/* ============== SECTION TABS (sticky) ============== */
.tabbar {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(244, 250, 253, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-4) 0 0;
  padding: 0.65rem 0;
}
.tabbar-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex; align-items: center; gap: 0.5rem;
  overflow-x: auto;
}
.tabbar a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem; font-weight: 700;
  color: var(--color-text-secondary);
  text-decoration: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(15, 62, 84, 0.04);
}
.tabbar a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: var(--transition);
  flex-shrink: 0;
}
.tabbar a:hover {
  color: var(--color-text);
  border-color: var(--color-accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(42, 122, 150, 0.10);
}
.tabbar a:hover::before { background: var(--color-accent-bright); }
.tabbar a.is-active {
  color: white;
  background: var(--color-text);
  border-color: var(--color-text);
  box-shadow: 0 6px 18px rgba(15, 62, 84, 0.22);
}
.tabbar a.is-active::before { background: var(--color-grass); box-shadow: 0 0 0 3px rgba(110, 192, 74, 0.3); }
.tabbar-cta {
  margin-left: auto;
  padding: 0.55rem 1.1rem;
  background: var(--gradient-cta); color: white;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(77, 149, 48, 0.25);
  display: inline-flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
}
.tabbar-cta:hover { transform: translateY(-1px); }

/* ============== MAIN GRID ============== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
.detail-main > section { padding: 2.25rem 0; border-bottom: 1px solid var(--color-border); }
.detail-main > section:first-child { padding-top: 0; }
.detail-main > section:last-child { border-bottom: none; }

.sec-title {
  font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.35; margin-bottom: 1rem; color: var(--color-text-secondary);
}
.sec-title .accent { font-style: italic; font-weight: 500; color: var(--color-accent); }
.sec-lead {
  font-size: 1.02rem; color: var(--color-text-secondary);
  line-height: 1.7; max-width: 68ch; margin-bottom: 1.5rem;
}
.sec-lead p + p { margin-top: 1rem; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 1.5rem; color: var(--color-text);
  letter-spacing: -0.02em; text-transform: none; font-weight: 800;
  margin-bottom: 0.55rem;
}
.sec-eyebrow::before {
  content: ''; width: 10px; height: 10px; background: var(--color-accent-bright);
  border-radius: 50%; box-shadow: 0 0 0 4px rgba(79, 179, 209, 0.18);
}

/* ============== HIGHLIGHTS ============== */
.highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
  margin-top: 1.25rem;
}
.hl {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition);
}
.hl:hover { transform: translateY(-3px); border-color: var(--color-accent-bright); box-shadow: 0 12px 28px rgba(42, 122, 150, 0.12); }
.hl-image { aspect-ratio: 5 / 3; overflow: hidden; background: var(--color-mist); }
.hl-image img { width: 100%; height: 100%; object-fit: cover; }
.hl-body { padding: 0.85rem 1rem 1rem; }
.hl-num {
  display: inline-block; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; color: var(--color-accent); text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.hl-title { font-size: 1rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.35rem; }
.hl-desc { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; }

/* ============== DAY-BY-DAY TIMELINE ============== */
.timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 28px;
}
.timeline::before {
  content: ''; position: absolute; top: 16px; bottom: 16px;
  left: 12px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-border) 0 6px,
    transparent 6px 12px
  );
}
.day {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.day:last-child { padding-bottom: 0; }
/* 单日行程没有编号圆点，去掉给圆点让位的左缩进。 */
.day--solo { padding-left: 0; }
.day-dot {
  position: absolute; left: -28px; top: 0;
  width: 26px; height: 26px;
  background: var(--color-white);
  border: 2px solid var(--color-grass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: var(--color-grass-deep);
  box-shadow: 0 0 0 5px var(--color-paper);
}
.day-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 0.3rem;
}
.day-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.5rem; }
.day-summary {
  font-size: 0.95rem; color: var(--color-text-secondary);
  line-height: 1.6; margin-bottom: 1rem;
}
.day-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-bottom: 1rem;
}
.day-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.7rem;
  background: var(--color-mist); color: var(--color-accent);
  border-radius: 100px;
}
.day-chip svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.day-stops {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}
.day-stop {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}
.day-stop:last-child { border-bottom: none; }
.day-stop-img { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--color-mist); }
.day-stop-img img { width: 100%; height: 100%; object-fit: cover; }
.day-stop-body { padding: 0.1rem 0; }
.day-stop-time {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--color-grass-deep); text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.day-stop-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.25; }
.day-stop-desc { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.55; }

/* Expandable per-day */
.day-toggle {
  background: none; border: none; padding: 0.5rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; font-weight: 700; color: var(--color-accent); margin-top: 0.6rem;
  font-family: inherit;
}
.day-toggle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; transition: transform 0.25s; }
.day.is-collapsed .day-stops { display: none; }
.day:not(.is-collapsed) .day-toggle svg { transform: rotate(180deg); }
.day:not(.is-collapsed) .day-toggle .label-show { display: none; }
.day.is-collapsed .day-toggle .label-hide { display: none; }

/* ============== INCLUDED / NOT INCLUDED ============== */
.incl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-top: 1.25rem;
}
.incl-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
}
.incl-card.is-not { background: var(--color-paper); }
.incl-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--color-border); }
.incl-head h3 { font-size: 1.05rem; font-weight: 700; }
.incl-head .badge-pill {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-meadow); color: var(--color-grass-deep);
}
.incl-card.is-not .incl-head .badge-pill { background: #f6dad0; color: #b54e2e; }
.incl-head svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.incl-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.incl-list li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.5;
}
.incl-list li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 1px;
  background-repeat: no-repeat; background-position: center; background-size: 18px 18px;
}
.incl-card:not(.is-not) .incl-list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d9530' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
}
.incl-card.is-not .incl-list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b54e2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='18' y1='6' x2='6' y2='18'/></svg>");
}

/* ============== MAP ============== */
.map-wrap {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #eef7fb 0%, #e4f1f7 100%);
}
.map-svg { width: 100%; height: auto; display: block; }
.map-legend {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-radius: 10px; padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 62, 84, 0.12);
  display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.82rem; color: var(--color-text-secondary);
}
.map-legend strong { color: var(--color-text); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; margin-bottom: 0.15rem; }
.legend-row { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.18); }
.legend-dot.d1 { background: var(--color-grass); }
.legend-dot.d2 { background: var(--color-accent-bright); }
.legend-dot.d3 { background: var(--color-sun); }

/* ============== FAQ ============== */
/* ============== REVIEWS (detail-page version) ============== */
.reviews-summary {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  padding: 1.5rem; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  margin-top: 1rem; margin-bottom: 1.5rem;
  align-items: center;
}
.review-score {
  text-align: center;
  border-right: 1px solid var(--color-border);
  padding-right: 1.5rem;
}
.review-score-num { font-size: 3.25rem; font-weight: 800; line-height: 1; color: var(--color-text); letter-spacing: -0.04em; }
.review-score-stars { color: var(--color-sun); font-size: 1.15rem; letter-spacing: 0.06em; margin: 0.4rem 0 0.25rem; }
.review-score-label { font-size: 0.82rem; color: var(--color-text-muted); font-weight: 600; }
.review-bars { display: flex; flex-direction: column; gap: 0.45rem; }
.review-bar { display: grid; grid-template-columns: 80px 1fr 40px; gap: 0.75rem; align-items: center; font-size: 0.82rem; color: var(--color-text-secondary); }
.review-bar .bar-track { height: 8px; background: var(--color-mist); border-radius: 100px; overflow: hidden; }
.review-bar .bar-fill { height: 100%; background: var(--color-sun); border-radius: 100px; }
.review-bar .bar-count { text-align: right; font-weight: 600; color: var(--color-text-muted); }

.reviews-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.review-card-detail {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.15rem;
}
.rcd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.rcd-author { display: flex; align-items: center; gap: 0.65rem; }
.rcd-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.rcd-avatar.a1 { background: linear-gradient(135deg, #4fb3d1, #2a7a96); }
.rcd-avatar.a2 { background: linear-gradient(135deg, #6ec04a, #4d9530); }
.rcd-avatar.a3 { background: linear-gradient(135deg, #ffb547, #d68a2e); }
.rcd-avatar.a4 { background: linear-gradient(135deg, #b48ce7, #7a51b5); }
.rcd-name { font-size: 0.9rem; font-weight: 700; line-height: 1.2; }
.rcd-meta { font-size: 0.74rem; color: var(--color-text-muted); }
.rcd-stars { color: var(--color-sun); font-size: 0.88rem; letter-spacing: 0.04em; }
.rcd-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.rcd-text { font-size: 0.86rem; color: var(--color-text-secondary); line-height: 1.6; }
.reviews-more {
  margin-top: 1.25rem; text-align: center;
}
.reviews-more a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  color: var(--color-text); background: var(--color-white);
  transition: var(--transition);
}
.reviews-more a:hover { border-color: var(--color-accent-bright); color: var(--color-accent); }

/* ============== BOOKING WIDGET (sticky right rail) ============== */
.booking-wrap { position: sticky; top: 92px; }
.booking {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(15, 62, 84, 0.08);
  overflow: hidden;
}
.booking-head {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-white) 100%);
}
.booking-from {
  font-size: 0.72rem; color: var(--color-text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.25rem;
}
.booking-price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.booking-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; color: var(--color-grass-deep); line-height: 1; }
.booking-was { font-size: 0.95rem; color: #b54e2e; text-decoration: line-through; font-weight: 600; }
.booking-per { font-size: 0.78rem; color: var(--color-text-muted); }
.booking-save {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.65rem;
  background: var(--color-meadow); color: var(--color-grass-deep);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  border-radius: 100px; text-transform: uppercase;
}
.booking-body { padding: 0; }
.bokun-slot {
  display: block;
  width: 100%;
  min-height: 620px;
  border: none;
  background: var(--color-white);
}
.field-group { margin-bottom: 0.85rem; }
.field-label {
  display: block;
  font-size: 0.72rem; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  margin-bottom: 0.4rem;
}
.field-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit; font-size: 0.92rem; font-weight: 600; color: var(--color-text);
  background: var(--color-white); transition: var(--transition);
  cursor: pointer;
}
.field-input:focus { outline: none; border-color: var(--color-accent-bright); box-shadow: 0 0 0 3px rgba(79, 179, 209, 0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.field-stepper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}
.field-stepper-meta { font-size: 0.82rem; }
.field-stepper-meta strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--color-text); }
.field-stepper-meta small { color: var(--color-text-muted); font-size: 0.74rem; }
.stepper-controls { display: flex; align-items: center; gap: 0.45rem; }
.stepper-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  color: var(--color-text); transition: var(--transition);
}
.stepper-btn:hover:not(:disabled) { border-color: var(--color-accent-bright); color: var(--color-accent); }
.stepper-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper-value { min-width: 18px; text-align: center; font-weight: 700; font-size: 0.92rem; }

.book-divider { height: 1px; background: var(--color-border); margin: 1rem 0; }

.priceline { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--color-text-secondary); padding: 0.25rem 0; }
.priceline.total { padding-top: 0.6rem; margin-top: 0.4rem; border-top: 1px solid var(--color-border); font-size: 1.02rem; font-weight: 800; color: var(--color-text); }
.priceline.total strong { color: var(--color-grass-deep); font-size: 1.15rem; }

.booking-cta {
  display: flex; justify-content: center; align-items: center;
  width: 100%; padding: 1rem; border-radius: var(--radius-md);
  background: var(--gradient-cta); color: white;
  font-size: 0.98rem; font-weight: 800; letter-spacing: 0.01em;
  border: none; cursor: pointer; transition: var(--transition);
  margin-top: 1rem;
  box-shadow: 0 8px 22px rgba(77, 149, 48, 0.32);
  gap: 0.5rem;
}
.booking-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(77, 149, 48, 0.5); }
.booking-cta svg { width: 16px; height: 16px; }

.booking-trust {
  margin-top: 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  font-size: 0.78rem; color: var(--color-text-secondary);
}
.booking-trust > div { display: flex; align-items: center; gap: 0.4rem; }
.booking-trust svg { width: 14px; height: 14px; stroke: var(--color-grass-deep); stroke-width: 2.2; fill: none; flex-shrink: 0; }

.booking-foot {
  padding: 1rem 1.25rem;
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.82rem;
}
.booking-foot svg { width: 22px; height: 22px; stroke: var(--color-accent); stroke-width: 1.8; fill: none; flex-shrink: 0; }
.booking-foot strong { display: block; color: var(--color-text); font-weight: 700; }
.booking-foot span { color: var(--color-text-muted); }

/* ============== STICKY BOTTOM BAR ============== */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 28px rgba(15, 62, 84, 0.08);
  padding: 0.75rem 0;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-bar.is-visible { transform: translateY(0); }
.bottom-bar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4);
  display: flex; align-items: center; gap: 1.25rem;
}
.bb-info { flex: 1; min-width: 0; }
.bb-name { font-size: 0.92rem; font-weight: 700; line-height: 1.2; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-meta { font-size: 0.78rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; }
.bb-meta .stars-mini { color: var(--color-sun); letter-spacing: 0.05em; }
.bb-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; flex-shrink: 0; }
.bb-price small { font-size: 0.7rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.bb-price strong { font-size: 1.4rem; font-weight: 800; color: var(--color-grass-deep); letter-spacing: -0.02em; }
.bb-cta {
  padding: 0.85rem 1.5rem; background: var(--gradient-cta); color: white;
  border-radius: 100px; font-weight: 800; font-size: 0.92rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem;
  flex-shrink: 0; box-shadow: 0 6px 18px rgba(77, 149, 48, 0.32);
  transition: var(--transition);
}
.bb-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(77, 149, 48, 0.45); }

/* ============== RELATED TOURS ============== */
.related {
  padding: 3rem 0;
  background: var(--color-mist);
  border-top: 1px solid var(--color-border);
}
.related h2 {
  font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* Reuse .tour styles from index — keep here for completeness */
.tour {
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit; cursor: pointer;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px; overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(15, 62, 84, 0.05);
}
.tour:hover { transform: translateY(-4px); border-color: var(--color-accent-bright); box-shadow: 0 16px 40px rgba(42, 122, 150, 0.15); }
.tour-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.tour-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.tour:hover .tour-image img { transform: scale(1.04); }
.tour-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 0.45rem 0.9rem; background: var(--color-grass); color: white;
  border-radius: 8px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(77, 149, 48, 0.35);
}
.tour-body { padding: 1rem 1.25rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.tour-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.tour-rating .stars-row { color: var(--color-sun); letter-spacing: 0.05em; font-size: 0.95rem; }
.tour-rating-num { font-size: 0.85rem; font-weight: 700; color: var(--color-text); }
.tour-rating-count { font-size: 0.78rem; color: var(--color-text-muted); }
.tour-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.4rem; letter-spacing: -0.015em; color: var(--color-grass-deep); }
.tour:hover .tour-title { color: var(--color-grass); }
.tour-info { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.7rem; }
.tour-info-row { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--color-text-secondary); font-weight: 500; }
.tour-info-row svg { width: 13px; height: 13px; stroke: var(--color-grass-deep); stroke-width: 2; fill: none; }
.tour-desc { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; margin-top: auto; border-top: 1px solid var(--color-border); }
.tour-price-row { display: flex; align-items: baseline; gap: 0.4rem; }
.tour-price-from { font-size: 0.68rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.tour-price-original { font-size: 0.85rem; font-weight: 600; color: #b54e2e; text-decoration: line-through; }
.tour-price-amount { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; color: var(--color-grass-deep); }
.tour-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: white;
  background: var(--gradient-cta); padding: 0.55rem 0.9rem;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(77, 149, 48, 0.3);
}
/* ==========================================================
   Scenic Iceland — 详情页响应式
   取自 design-src/tour-styles.css 的 RESPONSIVE 段。
   ========================================================== */

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; }
  .booking-wrap { position: static; }
  .booking { max-width: 480px; margin: 0 auto; }
  .quickbar { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .detail-head { grid-template-columns: 1fr; gap: 1rem; }
  .detail-actions { align-self: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 100px 100px; height: auto; }
  .gallery-cell.main { grid-column: 1 / -1; grid-row: 1; }
  .quickbar { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .overview-features { grid-template-columns: 1fr; gap: 0.4rem; }
  .highlights { grid-template-columns: 1fr; }
  .incl-grid { grid-template-columns: 1fr; }
  .day-stop { grid-template-columns: 100px 1fr; }
  .reviews-summary { grid-template-columns: 1fr; }
  .review-score { border-right: none; border-bottom: 1px solid var(--color-border); padding-right: 0; padding-bottom: 1rem; }
  .reviews-detail-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============== 预订占位（Bokun 未接入时） ============== */
.booking-fallback { padding: 1.25rem; text-align: center; }
.booking-fallback-title {
  font-size: 0.95rem; font-weight: 800; color: var(--color-text); margin-bottom: 0.4rem;
}
.booking-fallback-text {
  font-size: 0.85rem; color: var(--color-text-secondary);
  line-height: 1.55; margin-bottom: 1rem;
}

/* ============== 画廊灯箱（设计稿未收录，本主题补齐） ============== */
.sc-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15, 62, 84, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.sc-lightbox img {
  max-width: min(1100px, 92vw); max-height: 88vh;
  object-fit: contain; border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.sc-lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.5rem; line-height: 1; color: var(--color-text);
  cursor: pointer; transition: var(--transition);
}
.sc-lightbox button:hover { background: var(--color-white); transform: scale(1.06); }
.sc-lightbox-close { top: var(--space-3); right: var(--space-3); }
.sc-lightbox-prev  { left: var(--space-3); }
.sc-lightbox-next  { right: var(--space-3); }

/* 分享按钮的「已复制」反馈：attr() 的 fallback 语法浏览器还不支持，
   直接用固定内容。 */
.icon-btn { position: relative; }
.icon-btn.is-copied { background: var(--color-meadow); border-color: var(--color-grass); }
.icon-btn.is-copied::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: inherit; border-radius: inherit;
  color: var(--color-grass-deep); font-weight: 800;
}

/* ============== 对设计稿 CSS 的修正 ============== */

/* .detail-grid 用了 align-items: start，右栏因此只有内容高度，
   里面 position: sticky 的 .booking-wrap 没有任何移动空间，
   等于 sticky 失效。让右栏撑满行高，粘性才有意义。 */
@media (min-width: 1101px) {
  .detail-grid > aside { align-self: stretch; }
}

/* ============== Bokun 挂件容器 ============== */
/* 挂件内部是 Bokun 自己的 DOM，样式不可控；我们只保证外层容器的
   留白、最小高度与圆角，让它在未加载完时不塌成一条线。 */
.bokun-slot { padding: 0.5rem; min-height: 320px; }
.bokun-slot iframe { width: 100%; border: 0; display: block; }

/* 挂件加载态 */
.bokun-loading {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 260px; padding: 1.25rem;
  font-size: 0.88rem; color: var(--color-text-muted);
  text-align: center;
}
.bokun-loading.is-error { color: var(--color-rust); font-weight: 600; }
.bokun-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: scenic-spin 0.8s linear infinite;
}
.bokun-loading.is-error .bokun-spinner { display: none; }
@keyframes scenic-spin { to { transform: rotate(360deg); } }

/* ============== 画廊：按图片数量自适应 ==============
   设计稿的一大四小网格只在 5 张及以上成立。图片更少时，
   原来的规则会让右侧两列整个空掉 —— 运营只传了一两张图的产品
   会露出一大片空白。这里按实际数量给出各自成立的版式。 */

.gallery[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 460px;
}
.gallery[data-count="1"] .gallery-cell.main { grid-row: 1; grid-column: 1; }

.gallery[data-count="2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  height: 460px;
}
.gallery[data-count="2"] .gallery-cell.main { grid-row: 1; grid-column: 1; }

/* 3 张：左侧大图占满两行，右侧两张上下叠 */
.gallery[data-count="3"] {
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* 4 张：等分的 2×2，比「一大三小」更稳当 */
.gallery[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery[data-count="4"] .gallery-cell.main { grid-row: 1; grid-column: 1; }

@media (max-width: 768px) {
  /* 窄屏下无论几张都退成单列大图 + 两行小图，
     product-detail.css 的响应式段已有基础规则，这里补少图的情况 */
  .gallery[data-count="1"],
  .gallery[data-count="2"] { height: 260px; }
  .gallery[data-count="1"] { grid-template-columns: 1fr; }
  .gallery[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
}
