/* Trip presentation (product page). Everything is scoped to .ap-trip so the rest of the site is untouched. */
.ap-trip {
  --ap-bg: #f5f4f0;
  --ap-panel: #fff;
  --ap-line: #d9d8d2;
  --ap-ink: #252525;
  --ap-muted: #555;
  --ap-accent: #9b471e;
  --ap-dark: #202020;
  --ap-head: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --ap-body: 'DM Sans', 'Open Sans', sans-serif;
  background: var(--ap-bg);
  color: var(--ap-ink);
  font: 16px/1.6 var(--ap-body);
  overflow-x: clip;
}
.ap-trip *, .ap-trip *::before, .ap-trip *::after { box-sizing: border-box; }
.ap-trip h1, .ap-trip h2, .ap-trip h3, .ap-trip .ap-num, .ap-trip .ap-feature__num, .ap-trip .ap-mini-stats b {
  font-family: var(--ap-head);
  text-transform: uppercase;
  letter-spacing: .025em;
  color: inherit;
}
.ap-trip h1 { font-size: clamp(64px, 14vw, 200px); line-height: .87; margin: 14px 0 24px; font-weight: 700; }
.ap-trip h2 { font-size: clamp(40px, 6.5vw, 84px); line-height: 1.02; margin: 0 0 28px; font-weight: 600; }
.ap-trip h3 { font-size: 26px; line-height: 1.15; margin: 0 0 12px; font-weight: 600; }
.ap-trip a { color: var(--ap-accent); }
.ap-trip .ap-accent { color: var(--ap-accent); }
.ap-trip .ap-wrap { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.ap-trip section { padding: 96px 0; border-bottom: 1px solid #0000000f; scroll-margin-top: 70px; }
.ap-trip .ap-eyebrow { color: var(--ap-accent); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.ap-trip .ap-muted { color: var(--ap-muted); line-height: 1.7; }
.ap-trip .ap-note { font-size: 12px; color: var(--ap-muted); margin-top: 10px; }
.ap-trip .ap-grid2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; }
.ap-trip .ap-sectiontop { display: flex; align-items: end; justify-content: space-between; gap: 25px; }

/* Buttons */
.ap-trip .ap-btn { display: inline-block; background: var(--ap-accent); color: #fff; border: 1px solid var(--ap-accent); border-radius: 30px; padding: 13px 24px; font-weight: 700; text-decoration: none; letter-spacing: .04em; transition: filter .15s; }
.ap-trip .ap-btn:hover { filter: brightness(1.12); color: #fff; }
.ap-trip .ap-btn--ghost { background: transparent; border-color: #ffffffb3; }
.ap-trip .ap-btn--small { padding: 8px 16px; font-size: 13px; }

/* Hero */
.ap-trip .ap-hero {
  min-height: 88vh; display: flex; align-items: center; padding: 90px 0 70px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #202020f2 0%, #20202099 55%, #56534c66 100%), var(--ap-hero-img, none) center / cover no-repeat, linear-gradient(120deg, #202020, #56534c);
}
.ap-trip .ap-hero::after { content: 'ALPS'; position: absolute; right: -2%; bottom: -10%; font: 700 27vw var(--ap-head); color: #ffffff0a; pointer-events: none; line-height: 1; }
.ap-trip .ap-hero .ap-wrap { position: relative; z-index: 1; }
.ap-trip .ap-hero .ap-eyebrow { color: #fff; }
.ap-trip .ap-hero .ap-accent { color: #e07a45; }
.ap-trip .ap-lead { font-size: clamp(20px, 2.8vw, 32px); max-width: 780px; line-height: 1.25; color: #eee; margin: 0 0 12px; }
.ap-trip .ap-sub { font-size: 17px; color: #ddd; margin: 0; }
.ap-trip .ap-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ap-trip .ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.ap-trip .ap-stat { padding: 22px 20px; background: #ffffff12; border: 1px solid #ffffff2b; border-radius: 8px; backdrop-filter: blur(4px); }
.ap-trip .ap-num { font-size: clamp(32px, 4.6vw, 62px); line-height: 1; color: #fff; font-weight: 600; }
.ap-trip .ap-num span { font-size: .45em; }
.ap-trip .ap-stat small { display: block; margin-top: 12px; color: #ddd; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

/* In-page navigation */
.ap-trip .ap-subnav { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: #242424f2; backdrop-filter: blur(12px); }
.ap-trip .ap-subnav .ap-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.ap-trip .ap-subnav__links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.ap-trip .ap-subnav__links a { color: #e5e5e5; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; padding: 6px 0; }
.ap-trip .ap-subnav__links a:hover, .ap-trip .ap-subnav__links a.is-current { color: #fff; box-shadow: inset 0 -2px 0 #e07a45; }
.ap-trip .ap-subnav .ap-btn { white-space: nowrap; }

/* Notices from WooCommerce */
.ap-trip > .woocommerce-notices-wrapper:not(:empty) { width: min(1280px, calc(100% - 64px)); margin: 24px auto 0; }

/* Overview */
.ap-trip .ap-stops { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.ap-trip .ap-stop { border: 1px solid #ccc; padding: 9px 13px; border-radius: 20px; font-size: 13px; background: #fff; }
.ap-trip .ap-stop b { color: var(--ap-accent); }
.ap-trip .ap-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0; }
.ap-trip .ap-table th { text-align: left; color: var(--ap-accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ap-trip .ap-table td, .ap-trip .ap-table th { padding: 12px; border: 0; border-bottom: 1px solid var(--ap-line); background: none; }
.ap-trip .ap-table td:last-child, .ap-trip .ap-table th:last-child, .ap-trip .ap-table td:nth-child(3), .ap-trip .ap-table th:nth-child(3) { text-align: right; }
.ap-trip .ap-table tfoot td { font-weight: 700; color: var(--ap-accent); }

/* Maps and profiles */
.ap-trip .ap-map { height: 390px; background: #e8eee7; border: 1px solid #c9d2c8; border-radius: 12px; overflow: hidden; position: relative; }
.ap-trip .ap-map button { background: #fff; color: #222; border: 1px solid #bbb; border-radius: 5px; padding: 5px 9px; font: 600 13px var(--ap-body); cursor: pointer; line-height: 1.2; }
.ap-trip .ap-map .ap-mapcredit { position: absolute; bottom: 0; right: 0; background: #ffffffd9; color: #333; font-size: 11px; padding: 2px 5px; z-index: 3; }
.ap-trip .ap-map .ap-mapcredit a { color: #333; }
.ap-trip .ap-profile { display: block; width: 100%; height: 390px; background: #fff; border: 1px solid var(--ap-line); border-radius: 12px; }
.ap-trip .ap-grid2 .ap-profile { height: 260px; margin-top: 16px; }
.ap-trip .ap-routegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

/* Highlights */
.ap-trip .ap-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ap-trip .ap-feature { padding: 28px; background: #fff; border: 1px solid var(--ap-line); border-radius: 9px; min-height: 280px; }
.ap-trip .ap-feature__num { font-size: 60px; font-weight: 700; color: var(--ap-accent); line-height: 1.1; }
.ap-trip .ap-feature p { line-height: 1.65; color: #444; margin: 0; }

/* Stages */
.ap-trip .ap-stage-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.ap-trip .ap-stage-buttons button { background: transparent; color: var(--ap-ink); border: 1px solid #b9b7ae; border-radius: 7px; padding: 12px 18px; cursor: pointer; font: 700 15px var(--ap-body); }
.ap-trip .ap-stage-buttons button.is-optional { border-style: dashed; }
.ap-trip .ap-stage-buttons button[aria-selected="true"] { background: var(--ap-accent); color: #fff; border-color: var(--ap-accent); }
.ap-trip .ap-stage-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 34px; border: 1px solid var(--ap-line); border-radius: 10px; background: #fff; }
.ap-trip .ap-stage-panel[hidden] { display: none; }
.ap-trip .ap-stage-title { font-size: clamp(34px, 4.6vw, 62px) !important; margin: 8px 0 15px !important; }
.ap-trip .ap-stage-route { font-size: 18px; color: var(--ap-accent); font-weight: 700; }
.ap-trip .ap-stage-text { line-height: 1.75; color: #444; }
.ap-trip .ap-mini-stats { display: flex; gap: 30px; margin: 22px 0 0; }
.ap-trip .ap-mini-stats b { display: block; color: var(--ap-accent); font-size: 40px; font-weight: 600; line-height: 1.1; }
.ap-trip .ap-mini-stats span { color: var(--ap-muted); font-size: 12px; text-transform: uppercase; }
.ap-trip .ap-climb { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--ap-line); }
.ap-trip .ap-climb strong { font-size: 15px; }
.ap-trip .ap-climb a { text-decoration: underline; text-underline-offset: 4px; }
.ap-trip .ap-climb small { display: block; color: var(--ap-muted); margin-top: 5px; }
.ap-trip .ap-climb em { font-style: normal; color: var(--ap-accent); font-weight: 700; }

/* Practical */
.ap-trip .ap-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ap-trip .ap-info article { border: 1px solid var(--ap-line); background: var(--ap-panel); padding: 26px; border-radius: 8px; }
.ap-trip .ap-info article p { line-height: 1.7; color: var(--ap-muted); }
.ap-trip .ap-subheading { margin-top: 40px !important; }
.ap-trip .ap-hotels > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 100px; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ap-line); align-items: center; }
.ap-trip .ap-hotels a { text-decoration: underline; }
.ap-trip .ap-hotels span:last-child { text-align: right; }
.ap-trip .ap-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 28px; flex-wrap: wrap; }

/* FAQ */
.ap-trip .ap-faq { border-top: 1px solid var(--ap-line); }
.ap-trip .ap-faq details { border-bottom: 1px solid var(--ap-line); }
.ap-trip .ap-faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.ap-trip .ap-faq summary::-webkit-details-marker { display: none; }
.ap-trip .ap-faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 600 30px var(--ap-head); color: var(--ap-accent); transition: transform .2s; }
.ap-trip .ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-trip .ap-faq__a { padding: 0 0 22px; color: #444; max-width: 860px; }

/* Prices and booking */
.ap-trip .ap-price { background: #fff; }
.ap-trip .ap-price__text ul { padding-left: 20px; }
.ap-trip .ap-booking { background: var(--ap-dark); color: #fff; border-radius: 12px; padding: 32px; align-self: start; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px); }
.ap-trip .ap-booking__title { font: 600 24px var(--ap-head); text-transform: uppercase; letter-spacing: .03em; }
.ap-trip .ap-booking__price { font-size: 22px; margin: 6px 0 18px; color: #f3c3a5; }
.ap-trip .ap-booking__price del { opacity: .6; }
.ap-trip .ap-booking__price ins { text-decoration: none; }
.ap-trip .ap-booking .ap-note { color: #ccc; }
.ap-trip .ap-booking form.cart { margin: 0; }
.ap-trip .ap-booking table.variations { width: 100%; border: 0; margin: 0 0 12px; }
.ap-trip .ap-booking table.variations th, .ap-trip .ap-booking table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; color: #fff; }
.ap-trip .ap-booking table.variations label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #ddd; }
.ap-trip .ap-booking select { width: 100%; padding: 12px; border-radius: 7px; border: 0; font: 15px var(--ap-body); margin: 6px 0; color: #222; background: #fff; }
.ap-trip .ap-booking .reset_variations { color: #ddd; font-size: 13px; }
.ap-trip .ap-booking .woocommerce-variation-price .price { color: #f3c3a5; font-size: 20px; }
.ap-trip .ap-booking .stock { color: #f3c3a5; }
.ap-trip .ap-booking .woocommerce-variation-add-to-cart, .ap-trip .ap-booking form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 14px; }
.ap-trip .ap-booking .quantity input { width: 70px; height: 100%; min-height: 48px; border-radius: 7px; border: 0; text-align: center; font: 16px var(--ap-body); }
.ap-trip .ap-booking button.single_add_to_cart_button { flex: 1; min-height: 48px; background: var(--ap-accent); color: #fff; border: 0; border-radius: 30px; padding: 12px 24px; font: 700 16px var(--ap-body); letter-spacing: .04em; cursor: pointer; }
.ap-trip .ap-booking button.single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* Small screens */
@media (max-width: 850px) {
  .ap-trip .ap-grid2, .ap-trip .ap-stage-panel, .ap-trip .ap-routegrid { grid-template-columns: 1fr; }
  .ap-trip .ap-highlights { grid-template-columns: 1fr; }
  .ap-trip .ap-stats { grid-template-columns: repeat(2, 1fr); }
  .ap-trip .ap-wrap, .ap-trip > .woocommerce-notices-wrapper:not(:empty) { width: calc(100% - 32px); }
  .ap-trip .ap-hero { min-height: 0; padding: 60px 0 40px; }
  .ap-trip section { padding: 64px 0; }
  .ap-trip .ap-sectiontop { display: block; }
  .ap-trip .ap-stage-panel { padding: 22px; }
  .ap-trip .ap-map, .ap-trip .ap-profile { height: 300px; }
  .ap-trip .ap-subnav .ap-btn { display: none; }
  .ap-trip .ap-booking { position: static; padding: 24px; }
  .ap-trip .ap-feature { min-height: 0; }
}
@media (max-width: 600px) {
  .ap-trip .ap-hotels > div { grid-template-columns: 1fr; gap: 2px; }
  .ap-trip .ap-hotels span:last-child { text-align: left; }
}
