/* CB Travel Booking – components. Colors and fonts come from the theme's
   --cb-* tokens; the fallbacks keep it usable with any theme. */
.cbtg-packages, .cbtg-book, .cbtg-detail, .cbtg-done, .cbtg-gallery {
  --_bg: var(--cb-bg, #f5f9fa); --_surface: var(--cb-surface, #fff); --_ink: var(--cb-ink, #0f2a3a);
  --_muted: var(--cb-muted, #4d6573); --_line: var(--cb-line, #d9e4e8); --_pink: var(--cb-pink, #e8336d);
  --_pink-ink: var(--cb-pink-ink, #fff); --_sea: var(--cb-sea, #0a8a8f); --_sun: var(--cb-sun, #ffc53d);
  --_soft: var(--cb-soft, #eaf3f4); --_display: var(--cb-display, Georgia, serif); --_body: var(--cb-body, system-ui, sans-serif);
  --_r: var(--cb-radius, 14px);
  color: var(--_ink); font-family: var(--_body);
}
.cbtg-packages *, .cbtg-book *, .cbtg-detail *, .cbtg-gallery * { box-sizing: border-box; }
.cbtg-eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--_muted); margin: 0; font-weight: 600; }
.cbtg-photo { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--_soft); }

/* Buttons */
.cbtg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--_pink); color: var(--_pink-ink); font: 700 1rem/1.1 var(--_body); text-decoration: none; border: 2px solid var(--_pink);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.cbtg-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px var(--_pink); color: var(--_pink-ink); }
.cbtg-btn:focus-visible { outline: 3px solid var(--_sun); outline-offset: 3px; }
.cbtg-btn--ghost { background: transparent; color: var(--_ink); border-color: var(--_line); }
.cbtg-btn--ghost:hover { color: var(--_ink); border-color: var(--_ink); box-shadow: none; }
.cbtg-btn--big { width: 100%; padding: 17px 24px; font-size: 1.08rem; }
.cbtg-btn[disabled] { opacity: .6; cursor: wait; }

/* Package cards */
.cbtg-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.cbtg-card { background: var(--_surface); border-radius: var(--_r); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--_line), 0 20px 40px -28px rgba(15, 42, 58, .35); min-width: 0; }
.cbtg-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.cbtg-card__media img { transition: transform .6s ease; }
.cbtg-card:hover .cbtg-card__media img { transform: scale(1.04); }
.cbtg-stamp { position: absolute; top: 16px; right: 16px; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  text-align: center; font: 800 .74rem/1.15 var(--_body); text-transform: uppercase; letter-spacing: .04em;
  background: var(--_sun); color: #0f2a3a; transform: rotate(8deg); border: 3px dashed rgba(15, 42, 58, .35); }
.cbtg-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cbtg-card__title { font: 800 clamp(2rem, 4vw, 2.6rem)/1 var(--_display); margin: 0; letter-spacing: -.01em; }
.cbtg-card__title a { color: inherit; text-decoration: none; }
.cbtg-card__tagline { margin: 0; color: var(--_muted); line-height: 1.55; }
.cbtg-price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 14px 0; border-block: 1px dashed var(--_line); }
.cbtg-price__amount { font: 800 2rem/1 var(--_display); }
.cbtg-price__unit { color: var(--_muted); font-size: .9rem; }
.cbtg-price__plan { font-size: .92rem; color: var(--_muted); }
.cbtg-price__plan strong { color: var(--_pink); }
.cbtg-mini-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: .93rem; font-weight: 600; }
.cbtg-mini-days li { display: grid; gap: 1px; }
.cbtg-mini-days span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--_sea); font-weight: 700; }
.cbtg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* Gallery mosaic */
.cbtg-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.cbtg-gallery__item { margin: 0; border-radius: 10px; overflow: hidden; }
.cbtg-gallery__item--1 { grid-column: span 2; grid-row: span 2; }
.cbtg-gallery__item--6 { grid-column: 1 / -1; }
@media (max-width: 700px) { .cbtg-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; } }

/* Package detail */
.cbtg-detail { display: grid; gap: 48px; }
.cbtg-detail h2 { font: 800 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--_display); margin: 0 0 18px; }
.cbtg-detail__hero { position: relative; border-radius: var(--_r); overflow: hidden; min-height: 420px; display: grid; align-items: end; }
.cbtg-detail__hero > img { position: absolute; inset: 0; }
.cbtg-detail__heading { position: relative; padding: 120px clamp(20px, 4vw, 44px) 40px; color: #fff;
  background: linear-gradient(0deg, rgba(8, 24, 33, .78), rgba(8, 24, 33, 0)); }
.cbtg-detail__heading .cbtg-eyebrow { color: rgba(255, 255, 255, .85); }
.cbtg-detail__heading h1 { max-width: 16ch; font: 800 clamp(2.4rem, 6vw, 4.2rem)/1 var(--_display); margin: 8px 0 12px; color: #fff; }
.cbtg-detail__heading p:last-child { margin: 0; font-size: 1.1rem; max-width: 56ch; }
.cbtg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--_line); border-radius: var(--_r); overflow: hidden; }
.cbtg-facts div { background: var(--_surface); padding: 16px 18px; display: grid; gap: 2px; }
.cbtg-facts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--_muted); }
.cbtg-detail__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .cbtg-detail__cols { grid-template-columns: 1fr; } }
.cbtg-itinerary ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cbtg-itinerary li { position: relative; padding: 0 0 26px 30px; border-left: 2px dashed var(--_line); margin-left: 8px; }
.cbtg-itinerary li:last-child { border-left-color: transparent; padding-bottom: 0; }
.cbtg-itinerary li::before { content: ""; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--_sun); border: 3px solid var(--_surface); box-shadow: 0 0 0 2px var(--_sea); }
.cbtg-itinerary__day { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--_sea); }
.cbtg-itinerary h3 { margin: 2px 0 6px; font: 700 1.2rem/1.25 var(--_body); }
.cbtg-itinerary p { margin: 0; color: var(--_muted); line-height: 1.6; }
.cbtg-included { background: var(--_soft); border-radius: var(--_r); padding: 26px; align-self: start; }
.cbtg-included ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.cbtg-included li { padding-left: 28px; position: relative; }
.cbtg-included > ul:not(.cbtg-dates) li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--_sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.cbtg-included h2 { font-size: 1.35rem; margin-top: 8px; }
.cbtg-note { font-size: .88rem; color: var(--_muted); margin: 0 0 22px; }
.cbtg-dates li { padding-left: 0; }
.cbtg-dates a { display: block; padding: 10px 14px; border-radius: 10px; background: var(--_surface); color: var(--_ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--_line); }
.cbtg-dates a:hover { border-color: var(--_pink); color: var(--_pink); }

/* Booking form */
.cbtg-book { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .cbtg-book { grid-template-columns: 1fr; } .cbtg-ticket { order: -1; position: static !important; } }
.cbtg-form { display: grid; gap: 26px; background: var(--_surface); border-radius: var(--_r); padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 0 var(--_line), 0 24px 48px -36px rgba(15, 42, 58, .4); min-width: 0; }
.cbtg-step { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.cbtg-step legend { font: 800 1.25rem/1.2 var(--_display); padding: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.cbtg-step legend span { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--_sun); color: #0f2a3a; font: 800 .95rem var(--_body); flex: none; }
.cbtg-hint { margin: 0; color: var(--_muted); font-size: .93rem; }
.cbtg-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.cbtg-opt { position: relative; min-width: 0; }
.cbtg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cbtg-opt label { display: flex; gap: 12px; align-items: center; height: 100%; padding: 12px; border: 2px solid var(--_line); border-radius: 12px; cursor: pointer; background: var(--_surface); transition: border-color .15s; }
.cbtg-opt__img { width: 64px !important; height: 64px !important; border-radius: 9px; flex: none; }
.cbtg-opt__text { display: grid; gap: 3px; min-width: 0; }
.cbtg-opt__text b { font-size: 1.05rem; }
.cbtg-opt__text span { font-size: .88rem; color: var(--_muted); line-height: 1.4; }
.cbtg-choice--pay .cbtg-opt label { padding: 16px; align-items: start; }
.cbtg-opt input:checked + label { border-color: var(--_pink); background: color-mix(in srgb, var(--_pink) 6%, var(--_surface)); }
.cbtg-opt input:focus-visible + label { outline: 3px solid var(--_sun); outline-offset: 2px; }
.cbtg-opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.cbtg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.cbtg-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.cbtg-field--wide { grid-column: 1 / -1; }
.cbtg-field label { font-weight: 600; font-size: .93rem; }
.cbtg-field input, .cbtg-field select, .cbtg-field textarea { width: 100%; font: inherit; color: var(--_ink); background: var(--_bg); border: 1.5px solid var(--_line); border-radius: 10px; padding: 11px 13px; }
.cbtg-field input:focus, .cbtg-field select:focus, .cbtg-field textarea:focus { outline: none; border-color: var(--_sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_sea) 22%, transparent); }
.cbtg-field [aria-invalid="true"] { border-color: var(--_pink); }
.cbtg-err { color: var(--_pink); font-size: .85rem; font-weight: 600; }
.cbtg-err:empty { display: none; }
.cbtg-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .93rem; color: var(--_muted); cursor: pointer; }
.cbtg-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--_pink); }
.cbtg-secure { margin: -12px 0 0; font-size: .85rem; color: var(--_muted); text-align: center; }
.cbtg-alert { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--_pink) 12%, var(--_surface)); border: 1px solid var(--_pink); font-weight: 600; }
.cbtg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Summary ticket */
.cbtg-ticket { position: sticky; top: calc(var(--cb-header-h, 80px) + 16px); background: var(--_surface); border-radius: var(--_r); overflow: hidden; box-shadow: 0 1px 0 var(--_line), 0 24px 48px -36px rgba(15, 42, 58, .4); }
.cbtg-ticket__head { background: var(--cb-band, #0f2a3a); color: var(--cb-band-ink, #eef6f7); padding: 22px 24px 20px; position: relative; }
.cbtg-ticket__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--_surface) 6px, transparent 6.5px) 0 0 / 18px 14px repeat-x; }
.cbtg-ticket__head .cbtg-eyebrow { color: var(--_sun); }
.cbtg-ticket__head h3 { font: 800 2rem/1.05 var(--_display); margin: 6px 0 2px; color: inherit; }
.cbtg-ticket__sub { margin: 0; opacity: .75; font-size: .9rem; }
.cbtg-ticket__body { padding: 22px 24px; display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.cbtg-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.cbtg-row > span:first-child { color: var(--_muted); }
.cbtg-row > span:last-child { text-align: right; font-weight: 600; }
.cbtg-row--total { border-top: 1px solid var(--_line); padding-top: 10px; }
.cbtg-row--today { background: var(--_soft); margin-inline: -24px; padding: 12px 24px; align-items: center; }
.cbtg-row--today > span:first-child { color: var(--_ink); font-weight: 700; }
.cbtg-row--today > span:last-child { color: var(--_pink); font: 800 1.6rem/1 var(--_display); }
.cbtg-sched { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: .86rem; max-height: 240px; overflow: auto; }
.cbtg-sched li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted var(--_line); }
.cbtg-sched li span:first-child { color: var(--_muted); }

.cbtg-done { background: var(--_surface); border-radius: var(--_r); padding: 32px; display: grid; gap: 10px; border: 2px solid var(--_sea); }
.cbtg-done h3 { font: 800 1.8rem/1.1 var(--_display); margin: 0; }
.cbtg-done p { margin: 0; }
.cbtg-next { padding: 22px 24px; border-radius: 14px; background: var(--cb-soft, #eaf3f4); margin-bottom: 28px; }
.cbtg-next h2 { margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .cbtg-card__media img, .cbtg-btn { transition: none; } }
