/* Qansha 4.0 — additional features on top of the established white/orange UI */
.tabs{grid-template-columns:repeat(4,minmax(0,1fr));}
.tab span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flight-prefs{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:3px 0 6px;flex-wrap:wrap}
.trip-switch{display:flex;align-items:center;gap:5px;padding:5px;background:#fff2e8;border-radius:13px;border:1px solid #ffddc7;flex:1;max-width:420px}
.trip-option{flex:1;min-width:0;padding:11px 10px;border-radius:9px;background:transparent;color:#6f594a;border:0;font-size:13px;font-weight:750}
.trip-option.is-active{background:#fff;color:#e85814;box-shadow:0 2px 10px #a4542e20}
.compact-select{display:flex;align-items:center;gap:9px}.compact-select label,.advanced-filters label,.compare-controls label{font-size:12px;font-weight:700;color:var(--muted)}
.compact-select select,.advanced-filters select,.advanced-filters input[type=number],.compare-controls select{height:43px;background:#fff;border:1px solid var(--border);color:var(--text);border-radius:10px;padding:0 11px;min-width:0;width:100%;font:inherit;font-size:13px}
.compact-select select{min-width:112px}.fx-caption{font-size:11px;color:var(--muted);margin:5px 0 18px}
.advanced-filters{padding:17px;background:#fffaf5;border:1px solid #f3dfd0;border-radius:15px;margin:19px 0 8px}
.filters-intro{display:flex;align-items:baseline;gap:15px;justify-content:space-between;margin-bottom:14px}.filters-intro strong{font-size:15px;color:var(--text)}.filters-intro small{color:var(--muted);font-size:11px}
.hotel-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.hotel-filter-grid>div{display:grid;gap:6px;min-width:0}.check-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:7px 2px}.check-filter input{accent-color:var(--accent);width:17px;height:17px}.check-filter small{width:100%;font-size:10px;color:var(--muted);padding-left:25px}
.hotel-filter-grid label{line-height:1.3}.hotel-placeholder{height:75px;width:85px;border-radius:10px;display:grid;place-items:center;background:#fff0e5;color:#e8632a;font-size:35px;flex:none}
.load-more{display:block;width:100%;margin:18px auto 0;max-width:340px;background:#fff5ee;border:1px solid #f3c5aa;border-radius:12px;padding:14px;font-weight:800;color:#d64c17}.hotel-offer{transition:border-color .15s ease,transform .15s ease}.hotel-offer:hover{border-color:#ffa76d}
.trip-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:19px}.scenario-card{padding:18px 13px;border:1px solid #f3ddd0;background:#fff;border-radius:14px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px;color:var(--text);min-width:0}.scenario-card.active{border:2px solid var(--accent);padding:17px 12px;background:#fff4eb;box-shadow:0 6px 18px #f4612220}.scenario-label{font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.6px}.scenario-card strong{font-size:21px;letter-spacing:-.6px}.scenario-card small{color:var(--muted);font-size:10.5px;line-height:1.6}
.budget-estimate-hero{background:linear-gradient(105deg,#fa682e,#ef480e);border-radius:16px;color:#fff;padding:22px 23px;display:flex;flex-direction:column;gap:6px;margin:0 0 24px}.budget-estimate-hero span{font-size:12px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:#fff4e7}.budget-estimate-hero strong{font-size:36px;letter-spacing:-1.5px}.budget-estimate-hero small{font-size:12px;color:#fff5ed;line-height:1.55}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}.section-title h3{font-size:20px;margin:0;letter-spacing:-.5px}.section-title span{font-size:11px;color:var(--muted)}.budget-spend-guide,.activity-guide{margin:22px 0}
.spend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.spend-entry{display:flex;align-items:center;gap:10px;background:#fffaf6;border:1px solid #f1e5da;border-radius:12px;padding:14px 12px;min-width:0}.spend-icon{width:30px;height:30px;border-radius:8px;background:#fff0e4;display:grid;place-items:center;flex:none;font-size:16px}.spend-info{flex:1;min-width:0}.spend-info strong{display:block;font-size:11px;line-height:1.3}.spend-entry>b{font-size:12px;white-space:nowrap}.spend-track{height:5px;background:#f5e8dc;border-radius:9px;margin-top:9px;overflow:hidden}.spend-track span{height:100%;display:block;background:#f37639;border-radius:9px}
.ideas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.idea-card{border:1px solid #f2e4d8;border-radius:13px;padding:15px;display:flex;align-items:flex-start;gap:10px;background:#fff;min-width:0}.idea-num{color:#ed6c38;font-size:12px;font-weight:850;padding-top:2px}.idea-card strong{font-size:13px;display:block;line-height:1.45}.idea-card small{font-size:11px;line-height:1.4;color:var(--muted);margin-top:5px;display:block}
.compare-intro{padding:15px 17px;border:1px solid #f4dbc9;border-radius:13px;background:#fff7ef;font-size:13px;line-height:1.65;color:#785b49;margin-bottom:19px}.compare-controls{display:grid;grid-template-columns:1fr 1fr .65fr;gap:11px;margin-bottom:17px}.compare-controls>div{display:flex;flex-direction:column;gap:8px;min-width:0}.compare-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compare-card{border:1px solid #f0e0d3;background:#fff;border-radius:14px;padding:17px;min-width:0}.compare-country{display:flex;flex-direction:column;gap:4px}.compare-country b{font-size:18px}.compare-country span,.compare-card small{font-size:12px;color:var(--muted)}.compare-price{font-size:24px;margin:18px 0 12px;display:block;color:#ec5a23}.compare-track{height:9px;background:#f5e9df;border-radius:8px;overflow:hidden;margin-bottom:10px}.compare-track span{height:100%;display:block;border-radius:8px;background:linear-gradient(90deg,#ffaf68,#f46a2d)}.compare-winner{grid-column:1/-1;background:#fff5ec;padding:16px;border-radius:12px;font-size:13px;color:#704a32;line-height:1.6}.compare-rank-heading{margin:26px 0 12px}.compare-rank-heading h3{margin:0 0 5px;font-size:19px}.compare-rank-heading p{margin:0;font-size:12px;color:var(--muted)}.compare-ranking{display:grid;gap:8px}.rank-item{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #f0e4d9;border-radius:11px;padding:11px 14px}.rank-item span{background:#fff0e5;border-radius:7px;width:26px;height:26px;display:grid;place-items:center;color:#e9581f;font-weight:800;font-size:12px}.rank-item b{flex:1;font-size:13px}.rank-item strong{color:#df5621;font-size:14px;white-space:nowrap}
@media(max-width:750px){.hotel-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scenario-card strong{font-size:18px}.trip-scenarios{gap:7px}.scenario-card{padding:12px}.scenario-card.active{padding:11px}.tabs{gap:4px}.tab{padding:11px 4px;font-size:12px}.tab span{font-size:12px}.compact-select{flex:0 1 130px}}
@media(max-width:480px){.flight-prefs{align-items:stretch}.trip-switch{flex-basis:100%;max-width:100%}.compact-select{width:100%;justify-content:space-between;flex:1}.compact-select select{max-width:160px}.tab{font-size:13px;gap:4px}.tab span{font-size:11px}.hotel-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.advanced-filters{padding:12px}.filters-intro{display:block}.filters-intro small{display:block;margin-top:4px}.scenario-card{padding:11px 7px}.scenario-card.active{padding:10px 6px}.scenario-card strong{font-size:15px}.scenario-card small{font-size:9px}.scenario-label{font-size:10px}.spend-grid,.ideas-grid{grid-template-columns:1fr}.compare-controls{grid-template-columns:1fr 1fr}.compare-controls>div:last-child{grid-column:1/-1}.compare-card{padding:11px}.compare-country b{font-size:15px}.compare-price{font-size:19px}.budget-estimate-hero strong{font-size:30px}.hotel-offer .hotel-row{align-items:flex-start}.hotel-offer .offer-top{flex-direction:column;align-items:flex-start;gap:5px}.hotel-offer .offer-price{font-size:17px}.hotel-placeholder{width:64px;height:64px}.hotel-offer .hotel-image{height:64px;width:64px}}