/* Alexander Adventures — admin panel overrides (static; no build step; loaded via FilamentAsset). */

/* Breadcrumbs: ONE line. Long record titles (adventure/departure names) used to
   wrap the header onto several lines — now each crumb truncates with an ellipsis
   and the full title still shows as the page heading below. */
.fi-breadcrumbs { min-width: 0; }
.fi-breadcrumbs-list { display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; }
.fi-breadcrumbs-item { display: inline-flex; align-items: center; min-width: 0; }
.fi-breadcrumbs-item-label {
    display: inline-block;
    max-width: 24rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
@media (max-width: 1280px) { .fi-breadcrumbs-item-label { max-width: 16rem; } }
@media (max-width: 768px)  { .fi-breadcrumbs-item-label { max-width: 9rem; } }

/* Page headings may wrap, but never break mid-word or push the action buttons off-grid. */
.fi-header-heading { overflow-wrap: anywhere; }

/* "Where does this show on the website" popover (WEB pill hover/click — see public/js/web-map.js). */
.aa-webmap { position: fixed; z-index: 70; width: 380px; max-width: calc(100vw - 24px); padding: 12px 14px 10px; border-radius: 12px;
    background: #ffffff; color: #111827; border: 1px solid #e5e7eb; box-shadow: 0 12px 32px rgba(17, 24, 39, .18); font-size: 12px; line-height: 1.4;
    opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease; }
.aa-webmap.is-open { opacity: 1; pointer-events: auto; transform: none; }
.dark .aa-webmap { background: #1f2937; color: #f3f4f6; border-color: #374151; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.aa-webmap__title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.aa-webmap__pill { font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 3px 5px; border-radius: 5px; background: #dbeafe; color: #1e40af; }
.aa-webmap__text { margin: 4px 0 0; color: #4b5563; }
.dark .aa-webmap__text { color: #d1d5db; }
.aa-webmap__link { display: inline-block; margin-top: 4px; color: #1d4ed8; text-decoration: underline; }
.dark .aa-webmap__link { color: #93c5fd; }
.aa-webmap__frames { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin-top: 10px; }
.aa-webmap--itin .aa-webmap__frames { grid-template-columns: 1fr 1fr; }
.aa-webmap__pill--itin { background: #dcfce7; color: #166534; }
.aa-webmap--itin .aa-webmap__zone.is-on { background: #166534; box-shadow: 0 0 0 2px #86efac; }
.dark .aa-webmap--itin .aa-webmap__zone.is-on { background: #22c55e; color: #052e16; box-shadow: 0 0 0 2px #14532d; }
.aa-webmap--none .aa-webmap__frames { opacity: .45; }
.aa-webmap__frame { margin: 0; }
.aa-webmap__frame figcaption { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin-bottom: 4px; }
.aa-webmap__card, .aa-webmap__page { display: flex; flex-direction: column; gap: 3px; padding: 5px; border: 1px solid #d1d5db; border-radius: 6px; background: #f9fafb; }
.dark .aa-webmap__card, .dark .aa-webmap__page { border-color: #4b5563; background: #111827; }
.aa-webmap__row { display: flex; gap: 3px; }
.aa-webmap__row > * { flex: 1; }
.aa-webmap__zone { position: relative; min-height: 14px; padding: 2px 4px; border-radius: 3px; background: #e5e7eb; color: #6b7280; font-size: 9px; line-height: 1.2; }
.dark .aa-webmap__zone { background: #374151; color: #9ca3af; }
.aa-webmap__zone--tiny { min-height: 10px; font-size: 8px; }
.aa-webmap__zone--tall { min-height: 26px; }
.aa-webmap__zone--photo { min-height: 46px; }
.aa-webmap__zone--hero { min-height: 58px; display: flex; flex-direction: column; gap: 2px; }
.aa-webmap__badge { position: absolute; top: 3px; left: 3px; font-style: normal; padding: 1px 4px; font-size: 8px; }
.aa-webmap__inner { display: block; font-style: normal; font-size: 8px; padding: 1px 4px; }
.aa-webmap__zone.is-on { background: #1e40af; color: #ffffff; box-shadow: 0 0 0 2px #93c5fd; z-index: 1; }
.dark .aa-webmap__zone.is-on { background: #3b82f6; box-shadow: 0 0 0 2px #1e3a8a; }
.aa-webmap__none { display: none; margin: 8px 0 0; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 6px 8px; }
.aa-webmap--none .aa-webmap__none { display: block; }
@media (prefers-reduced-motion: reduce) { .aa-webmap { transition: none; } }

/* Bookings list — rows coloured by where the trip sits in time (Paul, 20 Sep 2026):
   green = upcoming, blue = the group is away now, red = past. Tints stay light so the
   status badges and text keep their contrast; the left stripe carries the colour. */
.fi-ta-row.aa-bk-upcoming > td { background-color: rgba(34, 197, 94, .09); }
.fi-ta-row.aa-bk-current  > td { background-color: rgba(59, 130, 246, .11); }
.fi-ta-row.aa-bk-past     > td { background-color: rgba(239, 68, 68, .08); }
.fi-ta-row.aa-bk-upcoming > td:first-child { box-shadow: inset 4px 0 0 #22c55e; }
.fi-ta-row.aa-bk-current  > td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
.fi-ta-row.aa-bk-past     > td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
.dark .fi-ta-row.aa-bk-upcoming > td { background-color: rgba(34, 197, 94, .14); }
.dark .fi-ta-row.aa-bk-current  > td { background-color: rgba(59, 130, 246, .16); }
.dark .fi-ta-row.aa-bk-past     > td { background-color: rgba(239, 68, 68, .13); }
