/* Quito Layover Tours: design tokens, tour page (.qlt-tp), tour cards and WhatsApp buttons.
   Tour page rules are scoped under .qlt-tp so Hello Elementor's reset and Elementor styles can't reach them. */
:root {
  --bg: #F3F5F4;
  --surface: #FFFFFF;
  --ink: #13212C;
  --muted: #586672;
  --line: #DCE2E0;
  --blue: #1C4F8C;
  --blue-soft: #E5EDF6;
  --gold: #F2B233;
  --gold-ink: #2E2200;
  --gold-soft: #FFF5DC;
  --ok: #1D7349;
  --ok-soft: #E2F2E9;
  --warn: #A3420F;
  --warn-soft: #FBEADB;
  --wa: #16794A;
  --night: #13212C;
  --night-fg: #EEF2F1;
  --night-muted: #A9B6BF;
  --scrim: rgb(19 33 44 / .72);
  --shadow: 0 1px 2px rgb(19 33 44 / .06), 0 10px 28px rgb(19 33 44 / .09);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 14px;
  --r-sm: 10px;
}

.qlt-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
@media (max-width: 480px) { .qlt-wrap { padding-inline: 16px; } }

/* ---------- Tour page ---------- */
.qlt-tp { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
.qlt-tp *, .qlt-tp *::before, .qlt-tp *::after { box-sizing: border-box; }
.qlt-tp img { max-width: 100%; display: block; }
.qlt-tp [hidden] { display: none !important; }
.qlt-tp h1, .qlt-tp h2, .qlt-tp h3 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; margin: 0; color: var(--ink); }
.qlt-tp h1 { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.7rem); font-weight: 800; }
.qlt-tp h2 { font-size: 1.55rem; font-weight: 700; }
.qlt-tp h3 { font-size: 1.05rem; font-weight: 700; }
.qlt-tp p { margin: 0; }
.qlt-tp a { color: var(--blue); }
.qlt-tp :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.qlt-tp .eyebrow { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.qlt-tp .tour { padding-block: 22px 64px; }
.qlt-tp .crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.qlt-tp .crumbs a { color: var(--muted); }
.qlt-tp .facts { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.qlt-tp .facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: var(--muted); }
.qlt-tp .facts b { color: var(--ink); font-weight: 600; }
.qlt-tp .facts .code { font-family: var(--f-mono); font-weight: 600; color: var(--blue); }

/* Photo mosaic: layout adapts to 1-5 photos */
.qlt-tp .mosaic { display: grid; gap: 6px; border-radius: var(--r); overflow: hidden; grid-template-rows: 210px 210px; }
.qlt-tp .mosaic figure { margin: 0; position: relative; min-width: 0; }
.qlt-tp .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.qlt-tp .mosaic figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--scrim); color: #fff; font-size: .78rem; padding: 3px 9px; border-radius: 6px; }
.qlt-tp .mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 426px; }
.qlt-tp .mosaic.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 426px; }
.qlt-tp .mosaic.n3 { grid-template-columns: 2fr 1fr; }
.qlt-tp .mosaic.n3 figure:first-child { grid-row: span 2; }
.qlt-tp .mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; }
.qlt-tp .mosaic.n4 figure:first-child { grid-row: span 2; }
.qlt-tp .mosaic.n4 figure:nth-child(2) { grid-column: span 2; }
.qlt-tp .mosaic.n5 { grid-template-columns: 2fr 1fr 1fr; }
.qlt-tp .mosaic.n5 figure:first-child { grid-row: span 2; }
@media (max-width: 760px) {
  .qlt-tp .mosaic, .qlt-tp .mosaic[class*="n"] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 0; }
  .qlt-tp .mosaic figure { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; }
  .qlt-tp .mosaic.n1 figure { flex-basis: 100%; }
}

.qlt-tp .tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 52px; margin-top: 36px; align-items: start; }
.qlt-tp .tour-main { min-width: 0; display: grid; gap: 48px; }
.qlt-tp .booking { position: sticky; top: calc(var(--qlt-head, 64px) + 20px); min-width: 0; }
@media (max-width: 960px) { .qlt-tp .tour-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .qlt-tp .booking { position: static; } }

.qlt-tp .sec { display: grid; gap: 14px; scroll-margin-top: 96px; }
.qlt-tp .sec > p, .qlt-tp .content { max-width: 65ch; }
.qlt-tp .content > * { margin: 0 0 12px; }
.qlt-tp .content > *:last-child { margin-bottom: 0; }
.qlt-tp .lead { font-size: 1.1rem; }

.qlt-tp .itin { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.qlt-tp .itin li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; margin: 0; }
.qlt-tp .itin .t { font-family: var(--f-mono); font-size: .8rem; font-weight: 600; color: var(--blue); padding-top: 1px; font-variant-numeric: tabular-nums; }
.qlt-tp .itin .stop { position: relative; border-left: 2px solid var(--line); padding: 0 0 22px 20px; min-width: 0; }
.qlt-tp .itin .stop::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); }
.qlt-tp .itin li:last-child .stop { border-left-color: transparent; padding-bottom: 0; }
.qlt-tp .itin .airport .stop::before { background: var(--gold); border-color: var(--gold); }
.qlt-tp .itin h3 { font-size: 1rem; }
.qlt-tp .itin p { color: var(--muted); font-size: .95rem; margin-top: 2px; max-width: 62ch; }

.qlt-tp .incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qlt-tp .incl h3 { margin-bottom: 8px; }
.qlt-tp .incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qlt-tp .incl li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin: 0; }
.qlt-tp .incl .yes li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.qlt-tp .incl .no li::before { content: "✕"; color: var(--muted); font-size: .8rem; padding-top: 3px; }
@media (max-width: 560px) { .qlt-tp .incl { grid-template-columns: minmax(0, 1fr); } }

.qlt-tp .know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.qlt-tp .know div { border-top: 1px solid var(--line); padding-block: 14px; display: grid; gap: 2px; }
.qlt-tp .know dt { font-family: var(--f-mono); font-weight: 600; font-size: 1.05rem; color: var(--blue); margin: 0; }
.qlt-tp .know dd { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 560px) { .qlt-tp .know { grid-template-columns: minmax(0, 1fr); } }

.qlt-tp .steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.qlt-tp .steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; margin: 0; }
.qlt-tp .steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 800; font-size: 1rem; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.qlt-tp .steps p { color: var(--muted); font-size: .94rem; }
@media (max-width: 640px) { .qlt-tp .steps { grid-template-columns: minmax(0, 1fr); } }

.qlt-tp .faq { display: grid; }
.qlt-tp .faq details { border-top: 1px solid var(--line); }
.qlt-tp .faq details:last-child { border-bottom: 1px solid var(--line); }
.qlt-tp .faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; position: relative; }
.qlt-tp .faq summary::-webkit-details-marker { display: none; }
.qlt-tp .faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.3rem; color: var(--blue); }
.qlt-tp .faq details[open] summary::after { content: "–"; }
.qlt-tp .faq details p { color: var(--muted); padding-bottom: 16px; max-width: 62ch; }

/* Booking card */
.qlt-tp .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px; }
.qlt-tp .price-now { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qlt-tp .amt { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.qlt-tp .per { color: var(--muted); }
.qlt-tp .price-sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.qlt-tp .tiers-head, .qlt-tp .tiers button { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.qlt-tp .tiers-head { font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
.qlt-tp .tiers-head span:last-child, .qlt-tp .tiers .t-total { text-align: right; }
.qlt-tp .tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.qlt-tp .tiers li { margin: 0; }
.qlt-tp .tiers button, .qlt-tp .tiers button:focus { width: 100%; font: inherit; font-size: .93rem; text-align: left; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: var(--r-sm); padding: 7px 12px; cursor: pointer; font-variant-numeric: tabular-nums; white-space: normal; }
.qlt-tp .tiers button:hover { background: var(--bg); color: var(--ink); }
.qlt-tp .tiers button.on, .qlt-tp .tiers button.on:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); }
.qlt-tp .tiers .t-pp { font-weight: 700; }
.qlt-tp .tiers .t-total { color: var(--muted); }

.qlt-tp .fields { display: grid; gap: 12px; margin: 0; }
.qlt-tp .field { display: grid; gap: 5px; min-width: 0; }
.qlt-tp .field label { font-size: .84rem; font-weight: 600; margin: 0; }
.qlt-tp .opt { font-weight: 400; color: var(--muted); }
.qlt-tp .card input, .qlt-tp .card textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; width: 100%; min-width: 0; margin: 0; box-shadow: none; }
.qlt-tp .card input:focus, .qlt-tp .card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.qlt-tp .card input[type="time"] { font-family: var(--f-mono); }
.qlt-tp .card textarea { resize: vertical; }
.qlt-tp .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qlt-tp .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qlt-tp .stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; width: 148px; }
.qlt-tp .stepper button, .qlt-tp .stepper button:hover, .qlt-tp .stepper button:focus { width: 44px; height: 42px; border: 0; border-radius: 0; padding: 0; background: var(--bg); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.qlt-tp .stepper button:hover { background: var(--line); }
.qlt-tp .stepper button:disabled { color: var(--line); background: var(--bg); cursor: not-allowed; }
.qlt-tp .stepper output { flex: 1; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qlt-tp .trav-lbl { font-weight: 600; font-size: .9rem; }
.qlt-tp .check { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); cursor: pointer; font-weight: 400; }
.qlt-tp .card .check input { width: 16px; height: 16px; padding: 0; accent-color: var(--blue); flex: none; }
.qlt-tp .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qlt-tp .lay { border-radius: var(--r-sm); padding: 12px; background: var(--bg); display: grid; gap: 10px; font-size: .88rem; }
.qlt-tp .lay.ok { background: var(--ok-soft); }
.qlt-tp .lay.warn { background: var(--warn-soft); }
.qlt-tp .lay-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qlt-tp .pill { font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
.qlt-tp .pill.ok { background: var(--ok); }
.qlt-tp .pill.warn { background: var(--warn); }
.qlt-tp .bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface); }
.qlt-tp .bar span { display: block; height: 100%; }
.qlt-tp .k-arr { background: var(--muted); }
.qlt-tp .k-tour { background: var(--blue); }
.qlt-tp .k-free { background: var(--surface); }
.qlt-tp .k-buf { background: var(--gold); }
.qlt-tp .lay-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.qlt-tp .lay-times dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 5px; font-weight: 400; margin: 0; }
.qlt-tp .lay-times dt i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.qlt-tp .lay-times dd { margin: 0; font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.qlt-tp .lay-foot { color: var(--muted); }

.qlt-tp .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.qlt-tp .total span { color: var(--muted); font-variant-numeric: tabular-nums; }
.qlt-tp .total strong { font-family: var(--f-display); font-size: 1.45rem; font-variant-numeric: tabular-nums; text-align: right; }
.qlt-tp .cta, .qlt-tp .cta:hover, .qlt-tp .cta:focus, .qlt-tp .cta:visited { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; font: inherit; font-weight: 700; font-size: 1rem; background: var(--gold); color: var(--gold-ink); border: 0; border-radius: var(--r-sm); padding: 14px 18px; cursor: pointer; text-decoration: none; }
.qlt-tp .cta:hover { filter: brightness(.95); }
.qlt-tp .cta:disabled { opacity: .7; cursor: progress; }
.qlt-tp .fine { font-size: .8rem; color: var(--muted); text-align: center; }
.qlt-tp .err { font-size: .86rem; color: var(--warn); }
.qlt-tp .back, .qlt-tp .back:hover, .qlt-tp .back:focus { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--blue); cursor: pointer; }
.qlt-tp .summary { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; font-size: .88rem; display: grid; gap: 2px; }
.qlt-tp .summary b { font-family: var(--f-display); font-size: 1rem; }

.qlt-tp .sent { display: grid; gap: 12px; text-align: center; justify-items: center; }
.qlt-tp .sent-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.qlt-tp .sent p { color: var(--muted); font-size: .93rem; }
.qlt-tp .btn-wa, .qlt-tp .btn-wa:hover, .qlt-tp .btn-wa:visited { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--r-sm); padding: 12px 16px; }
.qlt-tp .btn-link, .qlt-tp .btn-link:hover, .qlt-tp .btn-link:focus { background: none; border: 0; padding: 0; font: inherit; font-size: .86rem; color: var(--muted); text-decoration: underline; cursor: pointer; }

.qlt-tp .more { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px; }
.qlt-tp .more h2 { margin-bottom: 24px; }

.qlt-tp .mbar { display: none; }
@media (max-width: 960px) {
  .qlt-tp { padding-bottom: 72px; }
  .qlt-tp .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .qlt-tp .mbar .cta { width: auto; padding: 11px 18px; }
  .qlt-tp .mbar-price { font-size: .86rem; color: var(--muted); line-height: 1.3; }
  .qlt-tp .mbar-price b { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
  body.single-tour .qlt-wa-float { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Tour cards ([qlt_tours]) ---------- */
/* Three across on desktop, so five tours read as 3 + 2. Doubled class beats Elementor's global link color. */
.qlt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .qlt-cards { grid-template-columns: minmax(0, 1fr); } }
.qlt-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); min-width: 0; color: var(--ink); text-decoration: none; font-family: var(--f-body); transition: box-shadow .15s, transform .15s; }
.qlt-cards .qlt-card, .qlt-cards .qlt-card:hover, .qlt-cards .qlt-card:visited { color: var(--ink); }
.qlt-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.qlt-card img, .qlt-card-noimg { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--blue-soft); }
.qlt-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.qlt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qlt-chip { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.qlt-card-title { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.qlt-card-text { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.qlt-card-from { margin-top: auto; padding-top: 6px; font-size: .9rem; }
.qlt-card-from b { font-family: var(--f-display); font-size: 1.2rem; }

/* ---------- WhatsApp ---------- */
.qlt-wa-float, .qlt-wa-float:hover, .qlt-wa-float:visited { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; font: 700 16px/1.2 var(--f-body); border-radius: 999px; padding: 12px 18px 12px 14px; box-shadow: var(--shadow); }
.qlt-wa-float:hover { filter: brightness(1.08); }
@media (max-width: 960px) {
  .qlt-wa-float { padding: 13px; }
  .qlt-wa-float span { display: none; }
}
.qlt-btn-wa, .qlt-btn-wa:hover, .qlt-btn-wa:visited { display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; font: 700 1rem/1.2 var(--f-body); border-radius: var(--r-sm); padding: 13px 20px; }
.qlt-btn-wa:hover { filter: brightness(1.08); }
