/* VEGOTravel - AI Packages / trip builder (admin and site) */
.apb { --ap-navy: var(--heading, #1e497e); --ap-deep: var(--navy-deep, #12335f); --ap-teal: var(--teal, #3fb5b5); --ap-amber: var(--amber, #f8ae0a); --ap-line: var(--line, #dfe5ec); --ap-soft: var(--soft, #f2f5f9); --ap-muted: var(--muted, #6b7a8c); color: #2f3c4b; font-size: 14.5px; }
.apb *, .apb *::before, .apb *::after { box-sizing: border-box; }
.apb h2, .apb h3 { color: var(--ap-deep); margin: 0; }
.apb.is-busy { cursor: progress; }
.apb.is-busy .apb-main, .apb.is-busy .apb-sum { opacity: .55; pointer-events: none; transition: opacity .2s; }
.apb-admin .apb { max-width: 1400px; }
.apb-wrap { padding-block: 26px 56px; }
.apb-preview { display: inline-block; background: #fff4dc; color: #8a5a00; border-radius: 6px; padding: 6px 12px; font-size: 13px; margin: 10px 0 0; }

/* Trip */
.apb-trip { background: #fff; border: 1px solid var(--ap-line); border-radius: 10px; padding: 18px 20px; box-shadow: 0 10px 28px rgba(18, 51, 95, .07); margin-bottom: 18px; }
.apb-trip-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr repeat(4, minmax(70px, .55fr)); gap: 12px; align-items: end; }
.apb-f { display: grid; gap: 4px; font-size: 12.5px; color: var(--ap-muted); min-width: 0; }
.apb-f small { font-weight: 400; }
.apb-f input, .apb-f select, .apb-f textarea { width: 100%; min-width: 0; border: 1px solid var(--ap-line); border-radius: 6px; padding: 9px 10px; font-size: 14.5px; color: var(--ap-deep); background: #fff; line-height: 1.3; min-height: 42px; }
.apb-f textarea { min-height: 0; }
.apb-f input:focus, .apb-f select:focus, .apb-f textarea:focus { outline: none; border-color: var(--ap-teal); box-shadow: 0 0 0 3px rgba(63, 181, 181, .2); }
.apb-trip-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.apb-nights { font-weight: 700; color: var(--ap-deep); background: var(--ap-soft); border-radius: 20px; padding: 6px 14px; }
.apb-nights:empty { display: none; }
.apb-msg { margin: 0; font-weight: 600; color: var(--ap-teal); }
.apb-msg.err { color: #c0392b; }

/* Buttons */
.apb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ap-amber); background: var(--ap-amber); color: #fff; font-weight: 700; font-size: 14px; border-radius: 6px; padding: 10px 18px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.apb-btn:hover { filter: brightness(.96); color: #fff; }
.apb-btn.line { background: #fff; color: var(--ap-deep); border-color: var(--ap-line); }
.apb-btn.line:hover { border-color: var(--ap-teal); color: var(--ap-deep); }
.apb-btn.wa { background: #1f9d55; border-color: #1f9d55; }
.apb-btn.sm { padding: 6px 12px; font-size: 13px; }
.apb-btn.full { width: 100%; }
.apb-btn[disabled] { opacity: .45; cursor: not-allowed; }
.apb-auto { background: linear-gradient(90deg, var(--ap-deep), #2b6cb0); border-color: var(--ap-deep); }

/* Layout */
.apb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.apb-main { display: grid; gap: 16px; min-width: 0; }
.apb-part { background: #fff; border: 1px solid var(--ap-line); border-radius: 10px; padding: 16px 18px; transition: opacity .2s; }
.apb-part.off .apb-list, .apb-part.off .apb-mode { opacity: .35; pointer-events: none; filter: grayscale(1); }
.apb-part-head { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.apb-ico { font-size: 28px; color: var(--ap-teal); }
.apb-part-head h2 { font-size: 18px; }
.apb-part-head p { margin: 2px 0 0; color: var(--ap-muted); font-size: 13px; }
.apb-inc { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--ap-muted); }
.apb-inc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apb-inc span { width: 40px; height: 22px; border-radius: 22px; background: #c8d1db; position: relative; transition: background .2s; flex: none; }
.apb-inc span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.apb-inc input:checked + span { background: var(--ap-teal); }
.apb-inc input:checked + span::after { transform: translateX(18px); }
[dir="rtl"] .apb-inc input:checked + span::after { transform: translateX(-18px); }
.apb-inc input:focus-visible + span { box-shadow: 0 0 0 2px var(--ap-amber); }
.apb-inc em { font-style: normal; }
.apb-mode { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: -4px 0 12px; font-size: 13.5px; }
.apb-mode label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.apb-empty { margin: 0; color: var(--ap-muted); background: var(--ap-soft); border-radius: 6px; padding: 12px 14px; list-style: none; }
.apb-small { margin: 8px 0 0; font-size: 12.5px; color: var(--ap-muted); }

/* Options */
.apb-list { display: grid; gap: 8px; }
.apb-opt { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1.5px solid var(--ap-line); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.apb-opt:hover { border-color: #b9c6d4; }
.apb-opt.on { border-color: var(--ap-teal); background: #f3fbfa; box-shadow: 0 4px 14px rgba(63, 181, 181, .15); }
.apb-opt > input, .apb-tour-l > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apb-opt:focus-within { outline: 2px solid var(--ap-teal); outline-offset: 2px; }
.apb-air { width: 48px; height: 48px; border-radius: 50%; background: var(--ap-deep); color: #fff; display: grid; place-items: center; font-size: 13px; letter-spacing: .04em; }
.apb-air img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; padding: 5px; box-sizing: border-box; }
.apb-fl-b { display: grid; gap: 2px; min-width: 0; }
.apb-fl-b b { color: var(--ap-deep); }
.apb-fl-b small { color: var(--ap-muted); font-size: 12px; }
.apb-fl-b span { font-size: 13px; }
.apb-pr { display: grid; text-align: end; line-height: 1.2; }
.apb-pr b { font-size: 18px; color: var(--ap-deep); white-space: nowrap; }
.apb-pr b.ask { font-size: 13px; color: var(--ap-muted); }
.apb-pr small { color: var(--ap-muted); font-size: 11.5px; }
.apb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.apb-card { grid-template-columns: 76px minmax(0, 1fr) auto; }
.apb-img { width: 76px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--ap-soft); display: block; }
.apb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apb-card-b { display: grid; gap: 2px; min-width: 0; }
.apb-card-b b { color: var(--ap-deep); font-size: 14px; line-height: 1.3; }
.apb-card-b small { color: var(--ap-muted); font-size: 12px; }
.apb-stars { color: var(--ap-amber); font-size: 12px; letter-spacing: 1px; }
.apb-tour { display: block; padding: 0; }
.apb-tour-l { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; }
.apb-day { margin: 0 12px 10px; width: calc(100% - 24px); border: 1px solid var(--ap-line); border-radius: 6px; padding: 6px 8px; font-size: 13px; color: var(--ap-deep); background: #fff; }

/* Summary */
.apb-side { position: sticky; top: 46px; }
body:not(.wp-admin) .apb-side { top: 20px; }
.has-sticky-header .apb-side { top: 100px; }
.apb-sum { background: #fff; border: 1px solid var(--ap-line); border-radius: 10px; padding: 18px; box-shadow: 0 12px 30px rgba(18, 51, 95, .09); display: grid; gap: 10px; }
.apb-sum h2 { font-size: 18px; }
.apb-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.apb-lines li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--ap-line); }
.apb-lines li span { display: grid; min-width: 0; }
.apb-lines li b { color: var(--ap-deep); font-size: 13.5px; }
.apb-lines li small { color: var(--ap-muted); font-size: 12px; }
.apb-lines li em { font-style: normal; font-weight: 700; color: var(--ap-deep); white-space: nowrap; }
.apb-net, .apb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.apb-net { color: var(--ap-muted); font-size: 13px; }
.apb-total { padding-top: 6px; }
.apb-total b { font-size: 28px; color: var(--ap-amber); }
.apb-pp { margin: -6px 0 0; text-align: end; color: var(--ap-muted); font-size: 13px; }
.apb-pp:empty, .apb-note:empty { display: none; }
.apb-note { margin: 0; font-size: 12px; color: var(--ap-muted); background: var(--ap-soft); border-radius: 6px; padding: 8px 10px; }
.apb-markup { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ap-muted); }
.apb-markup span { margin-inline-end: auto; }
.apb-markup input { width: 70px; border: 1px solid var(--ap-line); border-radius: 6px; padding: 4px 6px; text-align: end; }
.apb-cust { display: grid; gap: 8px; border-top: 1px solid var(--ap-line); padding-top: 12px; }
.apb-cust h3 { font-size: 16px; }
.apb-acts { display: grid; gap: 8px; }
.apb-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.apb-links:empty { display: none; }
.apb-quote { width: 100%; font-family: inherit; font-size: 13px; border: 1px solid var(--ap-line); border-radius: 6px; padding: 8px; background: var(--ap-soft); }
.apb-done p { margin: 0 0 10px; color: #2e7d4f; font-weight: 600; }
.apb .hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 1280px) {
	.apb-trip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.apb-cards { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
	.apb-layout { grid-template-columns: 1fr; }
	.apb-side { position: static; }
}
@media (max-width: 640px) {
	.apb-trip-grid { grid-template-columns: 1fr 1fr; }
	.apb-trip-grid .apb-f:not(.sm) { grid-column: 1 / -1; }
	.apb-part-head { grid-template-columns: 30px 1fr auto; }
	.apb-part-head [data-flights] { grid-column: 1 / -1; order: 5; }
	.apb-opt, .apb-card, .apb-tour-l { grid-template-columns: 52px minmax(0, 1fr); }
	.apb-pr { grid-column: 2; text-align: start; }
	.apb-img { width: 52px; height: 44px; }
	.apb-trip-acts .apb-btn { flex: 1 1 100%; }
}
/* Icons: the nico font is loaded on both sides, the SVG fallback is not needed */
.apb .vico-fb { display: none !important; }
.apb .vi { width: 22px; height: 22px; }
/* Phones: total always visible */
.apb-mbar { display: none; }
@media (max-width: 1000px) {
	.apb-mbar:not([hidden]) { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-top: 1px solid var(--ap-line); padding: 10px 16px; box-shadow: 0 -8px 24px rgba(18, 51, 95, .12); }
	.apb-mbar b { color: var(--ap-amber); font-size: 20px; margin-inline-start: 6px; }
	body:not(.wp-admin) .apb { padding-bottom: 70px; }
}
@media (max-width: 1000px) { body:has(.apb-mbar:not([hidden])) .wa-float { bottom: 84px; } }
/* Flights: other dates, added by hand */
.apb-tag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; background: #e8f3fb; color: #1a5aa6; border-radius: 10px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: middle; }
.apb-tag.other { background: #fff4dc; color: #8a5a00; }
.apb-manual { margin: -2px 0 12px; border: 1px dashed var(--ap-line); border-radius: 8px; padding: 8px 12px; }
.apb-manual summary { cursor: pointer; font-weight: 600; color: var(--ap-deep); }
.apb-manual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
@media (max-width: 640px) { .apb-manual-grid { grid-template-columns: 1fr 1fr; } }
