/* Django tour detail: readable editorial overview */
.detail-overview {
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .92fr);
  gap: 28px;
  align-items: stretch;
}

.detail-overview .detail-description {
  padding: 32px 34px;
  border: 1px solid color-mix(in srgb, var(--era-accent, #9d692d) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--era-paper, #f4ebdf) 76%, white 24%);
  box-shadow: 0 16px 42px rgba(76, 48, 22, .06);
}

.detail-overview .detail-description section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--era-accent, #9d692d) 20%, transparent);
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}

.detail-section-title svg {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--era-accent, #9d692d);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-section-title div {
  display: grid;
  gap: 5px;
}

.detail-section-title small {
  color: var(--era-accent, #9d692d);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.detail-overview .detail-description h2 {
  margin: 0;
  font: 400 21px/1.15 var(--serif);
  letter-spacing: .02em;
  text-transform: none;
}

.detail-overview .detail-description p {
  margin: 0;
  color: color-mix(in srgb, var(--era-ink, #2b2119) 86%, transparent);
  font-size: 15px;
  line-height: 1.8;
}

.detail-overview .detail-description ul {
  gap: 11px;
  margin: 0;
}

.detail-overview .detail-description li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  line-height: 1.55;
}

.detail-overview .detail-description li::before {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  color: var(--era-accent, #9d692d);
  font-size: 15px;
}

.detail-overview .detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.detail-overview .detail-facts > div {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: center;
  column-gap: 13px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--era-accent, #9d692d) 27%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--era-paper, #f4ebdf) 72%, white 28%);
  box-shadow: 0 12px 30px rgba(76, 48, 22, .045);
}

.detail-overview .detail-facts > div:last-child {
  grid-column: 1 / -1;
  min-height: 100px;
}

.detail-overview .detail-facts svg {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--era-accent, #9d692d);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-overview .detail-facts span {
  grid-column: 2;
  align-self: end;
  margin-bottom: 7px;
  color: color-mix(in srgb, var(--era-ink, #2b2119) 58%, transparent);
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-overview .detail-facts b {
  grid-column: 2;
  align-self: start;
  overflow-wrap: anywhere;
  font: 400 13px/1.45 var(--serif);
}

/* Compact route collection: one rich card instead of a long article list. */
.route-showcase {
  margin-top: 48px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--era-accent, #9d692d) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--era-paper, #f4ebdf) 75%, white 25%);
  box-shadow: 0 22px 60px rgba(76, 48, 22, .07);
  scroll-margin-top: 25px;
}

.route-showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.route-showcase-heading span {
  color: var(--era-accent, #9d692d);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.route-showcase-heading h2 {
  margin: 7px 0 0;
  font: 400 30px/1.15 var(--serif);
}

.route-showcase-heading p {
  max-width: 410px;
  margin: 0;
  color: color-mix(in srgb, var(--era-ink, #2b2119) 66%, transparent);
  font-size: 12px;
  line-height: 1.6;
}

.route-showcase-tools { display:flex; align-items:flex-end; gap:18px; }
.route-selector-controls { flex:0 0 auto; display:flex; gap:7px; }
.route-selector-controls button { width:38px; height:38px; display:grid; place-items:center; border:1px solid color-mix(in srgb,var(--era-accent,#9d692d) 38%,transparent); border-radius:50%; color:var(--era-ink,#2b2119); background:transparent; font-size:16px; cursor:pointer; transition:.2s; }
.route-selector-controls button:hover { color:#fff; border-color:var(--era-accent,#9d692d); background:var(--era-accent,#9d692d); }

.route-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -30px 0 0;
  padding: 0 30px 14px 0;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--era-accent, #9d692d) 35%, transparent) transparent;
}

.route-selector-item {
  flex: 0 0 210px;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--era-accent, #9d692d) 22%, transparent);
  border-radius: 7px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: .25s;
}

.route-selector-item small {
  color: var(--era-accent, #9d692d);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-selector-item span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 400 12px/1.35 var(--serif);
}

.route-selector-item.is-active {
  color: #fffaf2;
  border-color: var(--era-accent, #9d692d);
  background: var(--era-accent, #9d692d);
  box-shadow: 0 12px 25px rgba(76, 48, 22, .16);
}

.route-selector-item.is-active small { color: inherit; opacity: .72; }

.route-stage { margin-top: 12px; }

.route-preview {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(330px, .92fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--era-accent, #9d692d) 24%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--era-paper, #f4ebdf) 60%, white 40%);
}

.route-preview[hidden] { display: none; }

.route-preview-image { position: relative; min-height: 100%; overflow: hidden; }
.route-preview-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(20,14,9,.5)); pointer-events:none; }
.route-preview-image img { width:100%; height:100%; display:block; object-fit:cover; }
.route-preview-image>span { position:absolute; z-index:1; left:18px; bottom:16px; padding:8px 11px; color:#fff; border:1px solid rgba(255,255,255,.4); background:rgba(24,18,13,.38); font-size:8px; letter-spacing:.12em; text-transform:uppercase; backdrop-filter:blur(7px); }

.route-preview-copy { min-width:0; display:flex; flex-direction:column; padding:30px; }
.route-preview-top>span { color:var(--era-accent,#9d692d); font-size:8px; letter-spacing:.16em; text-transform:uppercase; }
.route-preview-top h3 { margin:9px 0 20px; font:400 clamp(21px,2.3vw,30px)/1.25 var(--serif); }
.route-preview-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:20px; }
.route-preview-meta>span { display:grid; gap:5px; padding:10px 11px; border-top:1px solid color-mix(in srgb,var(--era-accent,#9d692d) 28%,transparent); }
.route-preview-meta small,.route-prices small { color:color-mix(in srgb,var(--era-ink,#2b2119) 55%,transparent); font-size:7px; letter-spacing:.08em; text-transform:uppercase; }
.route-preview-meta b { overflow-wrap:anywhere; font:400 10px/1.4 var(--serif); }
.route-preview-copy>p { display:-webkit-box; overflow:hidden; margin:0; color:color-mix(in srgb,var(--era-ink,#2b2119) 78%,transparent); font-size:13px; line-height:1.7; -webkit-box-orient:vertical; -webkit-line-clamp:7; }
.route-preview-footer { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-top:auto; padding-top:22px; }
.route-prices { min-width:0; display:flex; gap:8px; overflow-x:auto; padding-bottom:2px; scrollbar-width:thin; }
.route-prices>span { flex:0 0 auto; display:grid; gap:5px; min-width:112px; padding:9px 11px; border-left:2px solid var(--era-accent,#9d692d); background:color-mix(in srgb,var(--era-accent,#9d692d) 7%,transparent); }
.route-prices b { font:400 13px/1.2 var(--serif); }
.route-preview-footer>a { flex:0 0 142px; min-height:44px; display:flex; align-items:center; justify-content:center; border:1px solid var(--era-accent,#9d692d); border-radius:999px; color:#fff; background:var(--era-accent,#9d692d); text-decoration:none; font-size:9px; letter-spacing:.08em; text-transform:uppercase; }

@media (max-width: 900px) {
  .detail-overview {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-overview .detail-description {
    padding: 26px;
  }

  .detail-overview .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-showcase { padding:24px; }
  .route-showcase-heading { align-items:start; flex-direction:column; gap:10px; }
  .route-showcase-tools { width:100%; align-items:center; justify-content:space-between; }
  .route-selector { margin:0 -24px 0 0; padding-left:0; padding-right:24px; }
  .route-preview { grid-template-columns:1fr; }
  .route-preview-image { height:320px; min-height:0; }
}

@media (max-width: 560px) {
  .detail-header {
    min-height:72px;
    grid-template-columns:34px minmax(0,1fr) 34px;
    padding:9px 12px;
  }

  .detail-header h1 {
    overflow-wrap:anywhere;
    font-size:15px;
    line-height:1.25;
  }

  .detail-main { width:calc(100% - 22px); margin-top:18px; }
  .detail-hero { height:245px; border-radius:9px; }

  .detail-overview .detail-description {
    padding: 21px 18px;
  }

  .detail-overview .detail-description p {
    font-size: 14px;
    line-height: 1.7;
  }

  .detail-overview .detail-description li {
    font-size: 13px;
  }

  .detail-overview .detail-facts {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .detail-overview .detail-facts > div,
  .detail-overview .detail-facts > div:last-child {
    grid-column: auto;
    min-height: 88px;
    padding: 14px 16px;
  }

  .route-showcase { margin-top:30px; padding:18px 14px; }
  .route-showcase-heading h2 { font-size:25px; }
  .route-showcase-heading p { font-size:11px; }
  .route-showcase-tools { align-items:flex-start; flex-direction:column; }
  .route-selector { margin:0 -14px 0 0; padding:0 14px 12px 0; }
  .route-selector-item { flex-basis:172px; min-height:66px; }
  .route-preview-image { height:230px; }
  .route-preview-copy { padding:21px 17px; }
  .route-preview-top h3 { font-size:21px; }
  .route-preview-meta { grid-template-columns:1fr 1fr; }
  .route-preview-meta>span:last-child { grid-column:1/-1; }
  .route-preview-copy>p { font-size:13px; -webkit-line-clamp:9; }
  .route-preview-footer { align-items:stretch; flex-direction:column; }
  .route-prices { width:100%; }
  .route-preview-footer>a { flex-basis:auto; width:100%; }

  .purchase-card { margin-top:28px; padding:21px 17px; }
  .purchase-card strong { font-size:24px; }
  .contact-form-card { padding:21px 17px; }
}
