/* ============================================================
   holiday.css – the shared Tourmate "holiday" skin for TripSphere.
   Loaded LAST on every page, so it only re-themes: same palette, type,
   sticker cards, nav sky + plane, travel scene and TourMate strip as
   Tourmate and Solo2Squad. It changes no ids, forms or app logic.
   ============================================================ */
:root {
  --ink: #12213a; --ink2: #44546d; --paper: #fff3da; --line: #e6d9bd;
  --sky: #c4e9f7; --coral: #ff6b3d; --coral-d: #b83a14; --coral-t: #ffdfd2;
  --teal: #14a3a0; --teal-d: #0b6b69; --teal-t: #cdeeea;
  --gold: #ffc93c; --gold-t: #ffeeb5; --grass: #8fd0a6; --road: #3b4558;
  --font: "DM Sans", system-ui, sans-serif;
  --disp: "Bricolage Grotesque", "DM Sans", sans-serif;

  /* re-point the variables the existing stylesheets already use */
  --primary: var(--teal-d); --primary-dark: #084e4d; --accent: var(--coral);
  --text: var(--ink); --text-muted: var(--ink2);
  --bg: var(--paper); --surface: #fff; --border: var(--line);
  --danger: #b83a14; --success: #0b6b69;
  --radius: 14px; --shadow: 5px 5px 0 var(--ink);
}
html, body { overflow-x: clip; }
body { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--paper); }
body:before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: url("../images/travel-doodles.svg") 0 0 / 400px;
  animation: hd-pan 120s linear infinite;
}
@keyframes hd-pan { to { background-position: 400px 400px; } }
@keyframes hd-fly { from { transform: translateX(-240px); } to { transform: translateX(100vw); } }
@keyframes hd-drift { from { transform: translateX(-120px); } to { transform: translateX(100vw); } }
@keyframes hd-bob { 50% { translate: 0 5px; } }
@keyframes hd-spin { to { transform: rotate(360deg); } }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 700; letter-spacing: -.025em; }
h1, h2 { font-weight: 800; }
a { color: var(--teal-d); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- TourMate strip (top + bottom, injected by js/holiday.js) ---------- */
.tm-ecosystem { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 6%; background: var(--ink); color: #c3cde0; font: 500 13px/1.4 var(--font); }
.tm-ecosystem__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-ecosystem__mark { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--coral); color: var(--ink); border: 2px solid #fff; font: 800 17px/1 var(--disp); }
.tm-ecosystem__wordmark { color: #fff; font: 800 16px/1 var(--disp); text-decoration: none; }
.tm-ecosystem__wordmark:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-ecosystem__divider { color: #6c7b95; }
.tm-ecosystem__product { color: #fff; font-weight: 650; white-space: nowrap; }
.tm-ecosystem__note { color: #9eacc4; }
.tm-ecosystem__home { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 2px solid var(--gold); font-weight: 650; text-decoration: none; transition: background .18s, transform .18s; }
.tm-ecosystem__home:hover { background: #ffd966; transform: translateY(-1px); text-decoration: none; }
.tm-ecosystem-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 6%; background: var(--ink); color: #9eacc4; font: 13px/1.5 var(--font); border-top: 2px dashed #3c4d6b; }
.tm-ecosystem-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.tm-ecosystem-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-ecosystem-footer__arrow { margin-right: 6px; color: var(--gold); }

/* ---------- Header: sky with a plane flying across ---------- */
.site-header, .simple-header { position: relative; background: var(--sky); border-bottom: 3px solid var(--ink); box-shadow: none; }
.site-header { position: sticky; }
.site-header > *, .simple-header > * { position: relative; z-index: 1; }
.site-header:before, .simple-header:before {
  content: ""; position: absolute; top: 8px; left: 0; width: 230px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 30' width='230' height='30'%3E%3Cpath d='M0 15h150' stroke='white' stroke-width='3' stroke-dasharray='8 7'/%3E%3Cg transform='translate%28158 0%29'%3E%3Cpath d='M7 13 3 2h8l8 11z' fill='%23ff6b3d' stroke='%2312213a' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M3 16c0-3 5-6 12-6h36c10 0 19 3 19 6s-9 6-19 6H15C8 22 3 19 3 16z' fill='white' stroke='%2312213a' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M30 17 21 29h10l15-12z' fill='%23ffc93c' stroke='%2312213a' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M55 12h7c3 1 6 2 6 4H55z' fill='%237cc7e6'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
  animation: hd-fly 18s linear infinite, hd-bob 2.4s ease-in-out infinite;
}
.site-header:after, .simple-header:after {
  content: ""; position: absolute; top: 30px; left: 0; width: 80px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' width='80' height='30'%3E%3Cpath d='M22 42a18 18 0 0 1 0-36 24 24 0 0 1 44-4 20 20 0 0 1 34 14 15 15 0 0 1 2 26z' fill='white'/%3E%3C/svg%3E") no-repeat;
  animation: hd-drift 75s linear -20s infinite;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.5rem var(--disp); letter-spacing: -.03em; color: var(--ink); min-height: 44px; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--coral); color: var(--ink); border: 2px solid var(--ink); font: 800 19px var(--disp); transform: rotate(-6deg); transition: transform .3s; }
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.08); }
.nav-link { color: var(--ink); font-weight: 600; transition: box-shadow .2s; }
.nav-link:hover, .nav-link.active { background: none; color: var(--ink); box-shadow: inset 0 -.45em 0 var(--gold); }
.nav-user { color: var(--ink); }
.nav-auth .btn:not(.btn-outline) { background: var(--ink); color: #fff; box-shadow: none; border-color: var(--ink); }
.nav-auth .btn:not(.btn-outline):hover { background: var(--coral-d); border-color: var(--coral-d); transform: none; box-shadow: none; }
.nav-toggle { border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.nav-toggle span { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn { font: 700 15px var(--font); background: var(--coral); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 12px 22px; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { background: var(--coral); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { background: #ddd2b8; color: #6b7280; box-shadow: none; transform: none; opacity: 1; }
.btn-small { padding: 7px 16px; font-size: 14px; }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--gold-t); color: var(--ink); }
.btn-danger { background: var(--coral-d); color: #fff; }
.btn-danger:hover { background: #8f2c0d; color: #fff; }
.group-link, .link-button { color: var(--teal-d); }

/* ---------- Forms ---------- */
.form-group label, label { font-weight: 700; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea, .table-toolbar select, .admin-card-head select {
  border: 2px solid var(--ink); border-radius: 12px; font-family: var(--font); transition: box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--gold); }
.picker-grid select:disabled { background: #efe2c4; }
.message { border: 2px solid var(--ink); font-weight: 600; }
.message-error { background: var(--coral-t); color: #8a2d1c; }
.message-success { background: var(--teal-t); color: var(--teal-d); }
.message-info { background: var(--sky); color: var(--ink); }
.demo-note, .form-hint, .section-note, .muted { color: var(--ink2); }

/* ---------- Sticker cards ---------- */
.card, .package-card, .group-card, .stat, .auth-card, .hotel-card, .timeline-card, .destination-card, .empty-state, .trip-info, .child-form {
  border: 2.5px solid var(--ink); border-radius: 20px;
}
.card, .package-card, .group-card, .stat, .auth-card { box-shadow: 5px 5px 0 var(--ink); }
.package-card, .group-card, .destination-card { transition: transform .2s, box-shadow .2s; }
.package-card:hover, .group-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.package-image { border-bottom: 2.5px solid var(--ink); background: var(--teal); }
.package-name, .group-card-top h3 { font-size: 1.25rem; }
.package-price strong, .choice-price, .summary-list .summary-total dd, .stat strong { color: var(--teal-d); font-family: var(--disp); }
.package-meta div, .group-meta div, .summary-list div, .person-row { border-bottom: 2px dashed var(--line); }
.empty-state, .child-form, .trip-info { background: #fff; border-style: dashed; }
.trip-info, .child-form { background: var(--gold-t); border-radius: 16px; }
.hotel-card, .timeline-card { border-width: 2px; border-radius: 14px; background: #fff; }
.chips li { background: #fff; border: 2px solid var(--ink); font-weight: 600; }

/* Badges and pills */
.badge, .hero-tag { background: #fff; color: var(--ink); border: 2px solid var(--ink); font-weight: 700; }
.badge-demo { background: var(--gold); color: var(--ink); }
.badge-inline { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
.status-badge, .state-pill, .role-tag { border: 2px solid var(--ink); color: var(--ink); }
.status-open, .state-good, .status-upcoming { background: var(--teal-t); color: var(--teal-d); }
.status-full, .state-wait { background: var(--gold-t); color: #7a5200; }
.status-closed, .state-bad, .status-cancelled { background: #fff; color: var(--ink2); }
.status-completed, .role-organizer { background: var(--sky); color: var(--ink); }
.pending-count, .warn { color: var(--coral-d); }

/* Seats progress bar */
.progress { height: 12px; background: #fff; border: 2px solid var(--ink); }
.progress-fill { background: var(--teal); border-right: 2px solid var(--ink); }

/* ---------- Hero (home) ---------- */
.hero { border-bottom: 3px solid var(--ink); padding: 5rem 0 4.5rem; }
.hero:before { background: rgba(18, 33, 58, .55); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; line-height: 1; }
.hero-subtitle { color: #fff; font-size: 1.15rem; }
.search-box { border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.hd-stamp { position: absolute; right: 6%; top: 28px; width: 104px; animation: hd-spin 24s linear infinite; z-index: 1; }

/* ---------- Page banner (sky, with a sun) ---------- */
.page-banner { position: relative; overflow: hidden; background: var(--sky); color: var(--ink); border-bottom: 3px solid var(--ink); padding: 3.2rem 0; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.02; }
.page-banner p { color: var(--ink2); font-size: 1.08rem; }
.hd-sun { position: absolute; z-index: 0; right: 6%; top: 14px; width: 110px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; animation: hd-spin 40s linear infinite; }
.hd-sun circle { fill: var(--gold); }

/* ---------- Sections ---------- */
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-subtitle { color: var(--ink2); }
.destination-card { border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); background-color: var(--teal); font-family: var(--disp); font-size: 1.3rem; font-weight: 800; }
.destination-card:before { background: linear-gradient(to top, rgba(18, 33, 58, .72), rgba(18, 33, 58, .1) 62%); }
.destination-card:nth-child(odd) { transform: rotate(-1deg); }
.destination-card:nth-child(even) { transform: rotate(.9deg); }
.destination-card:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 8px 8px 0 var(--ink); }

.step { background: var(--teal-t); border: 2px solid var(--ink); border-radius: 18px; padding: 24px 18px 20px; box-shadow: 4px 4px 0 var(--ink); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.step:nth-child(odd) { transform: rotate(-1.4deg); }
.step:nth-child(even) { transform: rotate(1.2deg); }
.step:nth-child(2) { background: var(--coral-t); }
.step:nth-child(3) { background: var(--gold-t); }
.step:hover { transform: rotate(0) translateY(-4px); box-shadow: 7px 7px 0 var(--ink); }
.step-number { background: var(--coral); color: var(--ink); border: 2px solid var(--ink); font-family: var(--disp); font-weight: 800; }
.step p { color: #2f3c52; }
.feature-card h3 { color: var(--ink); }
.feature-card p { color: #2f3c52; }
.feature-card:nth-child(3n+1) { background: var(--teal-t); }
.feature-card:nth-child(3n+2) { background: var(--gold-t); }
.feature-card:nth-child(3n) { background: var(--coral-t); }

/* ---------- Details page ---------- */
.details-hero { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); background: var(--teal); }
.details-hero-text h1 { font-weight: 800; }
.choice-body { border: 2px solid var(--ink); border-radius: 14px; }
.choice:hover .choice-body { border-color: var(--ink); background: var(--gold-t); }
.choice input:checked + .choice-body { border-color: var(--ink); background: var(--coral-t); box-shadow: 3px 3px 0 var(--ink); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--ink); }
.timeline:before { width: 0; border-left: 3px dashed var(--ink); opacity: .5; background: none; }
.timeline-day { background: var(--coral); color: var(--ink); border: 2px solid var(--ink); font-family: var(--disp); }
.timeline-location, .hotel-nights { color: var(--teal-d); }
.check-list.included li:before { color: var(--teal-d); }

/* ---------- Tables ---------- */
.data-table th { background: var(--sky); border-bottom: 2px solid var(--ink); color: var(--ink); }
.data-table td { border-bottom: 2px dashed var(--line); }
.table-wrap { border-radius: 12px; }

/* ---------- Auth ---------- */
.auth-card { border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.admin-card { border-top: 2.5px solid var(--ink); }
.auth-card.admin-card { box-shadow: 8px 8px 0 var(--coral); }
.auth-card h1 { font-weight: 800; }
.auth-card .subtitle { color: var(--ink2); }
.auth-page .auth-wrapper { padding-bottom: 3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3cde0; margin-top: 0; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { border-color: #fff; }
.footer-links a { color: #c3cde0; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-note { border-top: 2px dashed #3c4d6b; color: #9eacc4; }

.error-banner { background: var(--ink); border: 2px solid #fff; border-radius: 14px; }

/* ---------- Travel scene: ship, train, bus (injected by js/holiday.js) ---------- */
.scene { position: relative; z-index: 2; line-height: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); overflow: hidden; background: var(--sky); margin-top: 4rem; }
.auth-page .scene { margin-top: 0; }
.scene .hills { display: block; width: 100%; height: 56px; }
.scene .lane { position: relative; height: 58px; border-top: 3px solid var(--ink); }
.scene .sea { background: var(--teal); overflow: hidden; }
.scene .sea:before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14'%3E%3Cpath d='M0 8q12-10 24 0t24 0' fill='none' stroke='white' stroke-width='3' opacity='.6'/%3E%3C/svg%3E") repeat-x 0 30px; animation: hd-wave 2.4s linear infinite; }
.scene .rail { background: var(--grass); }
.scene .rail:after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 13px; border-top: 3px solid var(--ink); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Crect x='9' width='6' height='10' fill='%237a4a1f'/%3E%3C/svg%3E") repeat-x; }
.scene .road { background: var(--road); }
.scene .road:after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='4'%3E%3Crect width='28' height='4' rx='2' fill='white'/%3E%3C/svg%3E") repeat-x; animation: hd-wave 1s linear infinite; }
@keyframes hd-wave { to { background-position-x: 48px; } }
.scene .veh { position: absolute; left: 0; z-index: 1; animation: hd-ride var(--d, 30s) linear var(--o, 0s) infinite; }
.scene .veh svg { display: block; overflow: visible; }
.scene .ship { bottom: 14px; --d: 55s; } .scene .ship svg { width: 130px; }
.scene .train { bottom: 11px; --d: 16s; } .scene .train svg { width: 230px; }
.scene .bus { bottom: 6px; --d: 24s; animation-name: hd-ride-l; } .scene .bus svg { width: 112px; transform: scaleX(-1); }
.scene .ship .bob { animation: hd-tilt 3s ease-in-out infinite; }
.scene .bus .bob { animation: hd-jolt .5s steps(2) infinite; }
.scene .wh { transform-box: fill-box; transform-origin: center; animation: hd-spin .7s linear infinite; }
.scene .puff { transform-box: fill-box; transform-origin: center; animation: hd-puff 2s ease-out infinite; }
@keyframes hd-ride { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
@keyframes hd-ride-l { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes hd-tilt { 50% { transform: translateY(5px) rotate(-3deg); } }
@keyframes hd-jolt { 50% { transform: translateY(-1.5px); } }
@keyframes hd-puff { from { transform: translate(0, 0) scale(.5); opacity: .95; } to { transform: translate(-20px, -28px) scale(1.3); opacity: 0; } }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .nav-menu { background: var(--sky); border-bottom: 3px solid var(--ink); box-shadow: none; }
  .nav-link { border-bottom: 2px solid var(--ink); border-radius: 0; }
  .nav-auth { border-top: 0; }
}
@media (max-width: 600px) {
  .tm-ecosystem { align-items: flex-start; flex-direction: column; gap: 10px; padding: 11px 6%; }
  .tm-ecosystem__identity { flex-wrap: wrap; row-gap: 4px; }
  .tm-ecosystem__note { flex-basis: 100%; padding-left: 38px; }
  .tm-ecosystem__home { align-self: stretch; justify-content: center; }
  .tm-ecosystem-footer { flex-direction: column; }
  .hd-stamp { width: 76px; right: 4%; top: 16px; }
  .hd-sun { width: 76px; }
  .step:nth-child(n) { transform: none; }
  .destination-card:nth-child(n) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body:before, .site-header:before, .site-header:after, .simple-header:before, .simple-header:after, .hd-stamp, .hd-sun { animation: none !important; }
  .site-header:before, .simple-header:before { left: 40%; }
  .site-header:after, .simple-header:after { left: 15%; }
  .scene .veh { left: var(--s, 30%); animation: none !important; }
}
