/* EOS Partners Portal — shared theme.
 * Loaded site-wide via web_include_css. Rules target only our own
 * elements (.agent-nav, .eos-portal-page, .eos-filter-row, etc.) so
 * the stylesheet is safe outside /agent/* pages. */

:root {
    --eos-primary:        #1f3a5f;   /* deep navy — links, brand */
    --eos-primary-hover:  #16263f;
    --eos-success:        #2e7d32;
    --eos-warning:        #d97706;
    --eos-danger:         #c62828;
    --eos-info:           #0277bd;
    --eos-neutral:        #5a6168;   /* readable on white */
    --eos-bg:             #ffffff;
    --eos-card-bg:        #ffffff;
    --eos-card-border:    #e1e4e8;
    --eos-text:           #1f2328;
    --eos-text-muted:     #57606a;
    --eos-on-color:       #ffffff;
    --eos-row-divider:    #eef0f3;

    /* Status badge palette (spec §15) */
    --eos-status-grey:    #6c757d;
    --eos-status-blue:    #0d6efd;
    --eos-status-amber:   #fd7e14;
    --eos-status-green:   #198754;
    --eos-status-red:     #dc3545;
    --eos-status-muted:   #adb5bd;

    /* Layout tokens */
    --eos-sidebar-w:           240px;
    --eos-sidebar-collapsed-w: 64px;
    --eos-topbar-h:            56px;
    --eos-content-max:         1280px;
    --eos-content-pad:         2rem;
    --eos-sidebar-bg:          #f6f8fa;

    /* Public-zone accent (marketing tone — cyan / Cyprus sea).
     * Used only inside .eos-public-page; portal stays navy. */
    --eos-public-accent:       #00B4D8;
    --eos-public-accent-dark:  #0096C7;
}

/* ============================================================
 * Portal shell — topbar + sidebar + main
 * ============================================================ */

.eos-portal-page {
    display: grid;
    grid-template-columns: var(--eos-sidebar-w) 1fr;
    grid-template-rows: var(--eos-topbar-h) 1fr;
    grid-template-areas:
        "topbar topbar"
        "sidebar main";
    min-height: 100vh;
    background: var(--eos-bg);
}

.eos-topbar {
    grid-area: topbar;
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--eos-card-border);
}
.eos-topbar-brand {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 600; color: var(--eos-primary); text-decoration: none;
}
.eos-topbar-brand:hover { color: var(--eos-primary-hover); text-decoration: none; }
.eos-topbar-actions { display: flex; align-items: center; gap: 1rem; }
.eos-topbar-bell {
    position: relative; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--eos-card-border); background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--eos-text-muted); cursor: pointer;
}
.eos-topbar-bell .eos-bell-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--eos-status-red);
    display: none;  /* shown when new notifications exist */
}
.eos-topbar-user {
    display: flex; align-items: center; gap: .5rem; cursor: pointer; position: relative;
    color: var(--eos-text);
}
.eos-topbar-user summary { list-style: none; padding: .375rem .75rem; border-radius: 4px; }
.eos-topbar-user summary::-webkit-details-marker { display: none; }
.eos-topbar-user summary:hover { background: var(--eos-row-divider); }
.eos-topbar-user[open] summary { background: var(--eos-row-divider); }
.eos-topbar-user .dropdown-menu-c {
    position: absolute; right: 0; top: calc(100% + 4px);
    background: #fff; border: 1px solid var(--eos-card-border); border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    min-width: 200px; padding: .25rem 0;
}
.eos-topbar-user .dropdown-menu-c a {
    display: block; padding: .5rem .9rem; color: var(--eos-text); text-decoration: none;
}
.eos-topbar-user .dropdown-menu-c a:hover { background: var(--eos-row-divider); }

.eos-sidebar {
    grid-area: sidebar;
    background: var(--eos-sidebar-bg);
    border-right: 1px solid var(--eos-card-border);
    padding: 1rem 0;
    overflow-y: auto;
    position: sticky; top: var(--eos-topbar-h); align-self: start;
    max-height: calc(100vh - var(--eos-topbar-h));
}
.eos-sidebar-group-head {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--eos-text-muted); padding: 1rem 1.25rem .25rem;
}
.eos-sidebar a.eos-nav-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 1.25rem; color: var(--eos-text); text-decoration: none;
    border-left: 3px solid transparent;
    font-size: .92rem;
}
.eos-sidebar a.eos-nav-link:hover { background: #eef1f4; }
.eos-sidebar a.eos-nav-link.active {
    border-left-color: var(--eos-primary);
    background: #eef1f4; color: var(--eos-primary); font-weight: 600;
}
.eos-sidebar a.eos-nav-link .eos-nav-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.25rem; height: 1.25rem; color: var(--eos-text-muted);
    flex-shrink: 0;
}
.eos-sidebar a.eos-nav-link.active .eos-nav-icon { color: var(--eos-primary); }

.eos-icon { display: inline-block; vertical-align: -0.15em; }

.eos-main {
    grid-area: main;
    padding: var(--eos-content-pad);
    max-width: var(--eos-content-max);
    width: 100%;
}

/* Mobile / tablet — sidebar collapses to drawer */
.eos-mobile-toggle {
    display: none;
    background: transparent; border: 0; padding: .25rem .5rem;
    font-size: 1.25rem; color: var(--eos-text);
}
@media (max-width: 900px) {
    .eos-portal-page {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "main";
    }
    .eos-sidebar {
        position: fixed; left: 0; top: var(--eos-topbar-h); bottom: 0;
        width: 80%; max-width: 320px; z-index: 50;
        transform: translateX(-100%); transition: transform .2s ease;
    }
    .eos-portal-page.eos-drawer-open .eos-sidebar { transform: translateX(0); }
    .eos-mobile-toggle { display: inline-flex; }
}

/* ============================================================
 * Status badge — shared dot+label component (spec §15)
 * ============================================================ */
.eos-status {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 500;
    padding: .125rem .5rem; border-radius: 12px;
    background: var(--eos-row-divider); color: var(--eos-text);
    white-space: nowrap;
}
.eos-status::before {
    content: ""; width: .5rem; height: .5rem; border-radius: 50%;
    background: var(--eos-status-grey);
}
.eos-status-grey   { background: #f1f3f5; }     .eos-status-grey::before   { background: var(--eos-status-grey); }
.eos-status-blue   { background: #cfe2ff; }     .eos-status-blue::before   { background: var(--eos-status-blue); }
.eos-status-amber  { background: #ffe5b4; }     .eos-status-amber::before  { background: var(--eos-status-amber); }
.eos-status-green  { background: #d1e7dd; }     .eos-status-green::before  { background: var(--eos-status-green); }
.eos-status-red    { background: #f8d7da; }     .eos-status-red::before    { background: var(--eos-status-red); }
.eos-status-muted  { background: #e9ecef; color: var(--eos-text-muted); }
.eos-status-muted::before  { background: var(--eos-status-muted); }

/* ============================================================
 * Empty state — illustration + message + CTA
 * ============================================================ */
.eos-empty {
    text-align: center; padding: 3rem 1rem; color: var(--eos-text-muted);
}
.eos-empty .eos-empty-icon { font-size: 3rem; opacity: .35; margin-bottom: 1rem; }
.eos-empty .eos-empty-msg  { margin-bottom: 1rem; }
.eos-empty .eos-empty-cta  { margin-top: .5rem; }

/* ============================================================
 * Public zone (pre-login marketing pages)
 * ============================================================ */
.eos-public-page {
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    min-height: 100vh;
}

.eos-public-topbar {
    position: sticky; top: 0; z-index: 30;
    background: #fff; border-bottom: 1px solid var(--eos-card-border);
    padding: .75rem 0;
}
.eos-public-brand {
    color: var(--eos-primary); font-weight: 600; text-decoration: none; font-size: 1.05rem;
}
.eos-public-brand:hover { color: var(--eos-primary-hover); text-decoration: none; }
.eos-public-link {
    color: var(--eos-text); text-decoration: none; font-size: .92rem;
    padding: 0 .25rem; margin: 0 .5rem;
}
.eos-public-link.active, .eos-public-link:hover { color: var(--eos-primary); }
.eos-public-topbar nav.d-md-flex { gap: 1rem; }
.eos-public-topbar nav .btn { margin-left: .25rem; }

.eos-public-main { min-height: 60vh; }

.eos-hero {
    background: linear-gradient(135deg, var(--eos-public-accent) 0%, var(--eos-public-accent-dark) 100%);
    color: #fff; padding: 3rem 0; text-align: center;
}
.eos-hero h1,
.eos-hero h2,
.eos-hero .lead { color: #fff; }
.eos-hero h1 {
    font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.eos-hero .lead {
    font-size: 1.2rem; opacity: 1; margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.eos-hero .btn-light { color: var(--eos-public-accent-dark); font-weight: 600; }
.eos-hero .btn-outline-light {
    color: #fff; border-color: #fff; font-weight: 600;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(2px);
}
.eos-hero .btn-outline-light:hover {
    color: var(--eos-public-accent-dark); background: #fff; border-color: #fff;
}

/* Public CTA buttons — cyan gradient with glow. */
.eos-public-page .btn-primary,
.eos-public-page .btn-primary:focus {
    background: linear-gradient(135deg, var(--eos-public-accent) 0%, var(--eos-public-accent-dark) 100%);
    border-color: var(--eos-public-accent-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 180, 216, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.eos-public-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, .4);
    color: #fff;
}
.eos-public-page .btn-outline-primary {
    color: var(--eos-public-accent-dark);
    border-color: var(--eos-public-accent-dark);
}
.eos-public-page .btn-outline-primary:hover {
    background: var(--eos-public-accent-dark);
    border-color: var(--eos-public-accent-dark);
    color: #fff;
}

/* Public value-prop icons + h2 colour. */
.eos-public-page [style*="--eos-primary"] { /* legacy inline color refs */ }
.eos-public-page .eos-public-section h2 { color: #0b1220; }

.eos-public-section { padding: 2.5rem 0; }

/* Destinations page — resort cards (photo left + facts right). */
.eos-destination-card {
    background: #fff;
    border: 1px solid var(--eos-card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    transition: box-shadow .2s ease, transform .2s ease;
    margin-bottom: 2.5rem;     /* clear vertical air between cards */
}
.eos-destination-card:last-of-type { margin-bottom: 0; }
.eos-destination-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}
.eos-destination-photo > * {
    width: 100%; height: 100%; min-height: 240px;
    object-fit: cover; display: block;
}
.eos-destination-body { padding: 1.5rem 1.75rem; }
.eos-destination-name {
    font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem;
    color: #0b1220;
}
.eos-destination-tagline {
    color: var(--eos-text-muted); margin-bottom: 1rem; font-style: italic;
}
.eos-destination-facts {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: .4rem .75rem;
    margin: 0;
    font-size: .92rem;
}
.eos-destination-facts dt {
    color: var(--eos-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .04em;
    padding-top: 2px;
}
.eos-destination-facts dd {
    color: #1f2328;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .eos-destination-photo > * { min-height: 180px; }
    .eos-destination-body { padding: 1.25rem; }
    .eos-destination-facts { grid-template-columns: 5.5rem 1fr; }
}

/* Recommendations block (spans full card width below photo+facts). */
.eos-destination-rec {
    padding: 1.25rem 1.75rem 1.5rem;
    border-top: 1px solid var(--eos-card-border);
    background: linear-gradient(180deg, rgba(0,180,216,.04) 0%, transparent 80%);
    scroll-margin-top: 80px;  /* keeps anchor target below the topbar */
}
.eos-destination-rec-title {
    color: var(--eos-public-accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .06em;
    margin-bottom: .5rem;
    display: inline-flex; align-items: center; gap: .35rem;
}
.eos-destination-rec-body {
    color: #1f2328;
    line-height: 1.6;
    font-size: .95rem;
}
.eos-destination-rec-body p:last-child { margin-bottom: 0; }
.eos-destination-rec-body ul, .eos-destination-rec-body ol {
    padding-left: 1.25rem; margin-bottom: .5rem;
}

/* Smooth-scroll for in-page anchors (public zone only — portal is
   data-heavy and benefits from instant jumps). */
.eos-public-page { scroll-behavior: smooth; }
html:has(.eos-public-page) { scroll-behavior: smooth; }

/* Contact page — static map image with click-through to Maps. */
.eos-map-link { display: block; }
.eos-map-img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--eos-card-border);
    border-radius: 8px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.eos-map-link:hover .eos-map-img {
    box-shadow: 0 6px 16px rgba(0, 180, 216, .25);
    transform: translateY(-1px);
}

/* Quote status tabs */
.eos-quote-tabs .nav-link {
    color: var(--eos-text-muted); padding: .35rem .9rem;
    border-radius: 6px; font-size: .9rem;
}
.eos-quote-tabs .nav-link:hover { background: var(--eos-row-divider); }
.eos-quote-tabs .nav-link.active {
    background: var(--eos-primary); color: #fff;
}
.eos-quote-tabs .nav-link.active .badge {
    background: rgba(255,255,255,.25) !important; color: #fff !important;
}

/* Legal article container (Terms, Privacy, Cookies). */
.container.eos-legal {
    max-width: 880px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 16px 60px rgba(15, 23, 42, 0.08);
}
.eos-legal h1 {
    font-weight: 700; margin-bottom: .25rem; color: #0b1220;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.eos-legal .effective-date {
    color: #64748b; margin-bottom: 2rem; font-size: .95rem;
}
.eos-legal h2 {
    font-size: 1.3rem; font-weight: 700;
    margin-top: 2rem; margin-bottom: .75rem; color: #0b1220;
}
.eos-legal p, .eos-legal li { line-height: 1.65; color: #334155; }
.eos-legal ul, .eos-legal ol { margin-left: 1.25rem; margin-bottom: 1rem; }
.eos-legal li { margin-bottom: .35rem; }
.eos-legal strong { color: #0b1220; font-weight: 600; }
@media (max-width: 768px) {
    .container.eos-legal { padding: 2rem 1.25rem; }
}
.eos-public-section.alt { background: #f6f8fa; }
.eos-public-section h2 { font-weight: 700; margin-bottom: 2rem; text-align: center; }

.eos-public-footer {
    background: #f6f8fa; border-top: 1px solid var(--eos-card-border); margin-top: 3rem;
}
.eos-public-footer h6 { font-weight: 700; margin-bottom: .75rem; }
.eos-public-footer a { color: var(--eos-text); text-decoration: none; }
.eos-public-footer a:hover { color: var(--eos-primary); }

/* ============================================================
 * Polish (Phase 4)
 * ============================================================ */

/* Card hover lift */
.eos-card-hover {
    transition: transform .15s ease, box-shadow .15s ease;
    will-change: transform;
}
.eos-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 .375rem 1rem rgba(0, 0, 0, .08) !important;
}

/* Visible focus state for keyboard navigation */
.eos-portal-page a:focus-visible,
.eos-portal-page button:focus-visible,
.eos-portal-page input:focus-visible,
.eos-portal-page select:focus-visible,
.eos-portal-page textarea:focus-visible,
.eos-public-page a:focus-visible,
.eos-public-page button:focus-visible {
    outline: 2px solid var(--eos-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Sticky table headers in long lists */
.eos-portal-page .table-responsive {
    max-height: calc(100vh - var(--eos-topbar-h) - 12rem);
    overflow-y: auto;
}
.eos-portal-page .table-responsive thead th {
    position: sticky; top: 0; z-index: 5;
    background: #fff;
    box-shadow: inset 0 -1px 0 var(--eos-card-border);
}

/* Subtle row hover */
.eos-portal-page .table-hover > tbody > tr:hover { background-color: var(--eos-row-divider); }

/* Placeholder polish */
.eos-placeholder { user-select: none; }

/* Print rules — keep voucher clean, hide nav */
@media print {
    .eos-topbar, .eos-sidebar, .eos-public-topbar, .eos-public-footer,
    .eos-mobile-toggle, .eos-topbar-bell, .eos-topbar-user,
    .agent-nav, .navbar, button {
        display: none !important;
    }
    .eos-portal-page, .eos-public-page {
        display: block !important;
        grid-template-columns: 1fr !important;
        grid-template-areas: "main" !important;
    }
    .eos-main { padding: 0 !important; max-width: none !important; }
    a { color: inherit !important; text-decoration: none !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* Reduce motion for users who prefer */
@media (prefers-reduced-motion: reduce) {
    .eos-card-hover, .eos-sidebar { transition: none !important; }
}

/* Hide Frappe's native top navbar when we're on a portal page.
 * .eos-portal-page is the wrapper we render at the top of every
 * /agent/* template; the rule uses :has() to look outside the wrapper. */
body:has(.eos-portal-page) > nav.navbar.navbar-expand-lg.navbar-light,
html:has(.eos-portal-page) > body > nav.navbar.navbar-expand-lg.navbar-light {
    display: none !important;
}

/* EOS agent header. */
.agent-nav {
    border-bottom: 1px solid var(--eos-card-border);
    background: var(--eos-bg);
}
.agent-nav .navbar-brand {
    color: var(--eos-text);
    font-weight: 600;
}
.agent-nav .nav-link {
    color: var(--eos-text);
}
.agent-nav .nav-link.active {
    color: var(--eos-primary);
    font-weight: 600;
}
.agent-nav .nav-link.logout {
    color: var(--eos-text-muted);
}
.agent-nav .nav-link.logout:hover {
    color: var(--eos-danger);
}

/* Status badges — force readable contrast across the portal. */
.eos-portal-page .badge {
    font-weight: 500;
    padding: .35em .65em;
    border-radius: .35rem;
}
.eos-portal-page .badge.bg-secondary { background: var(--eos-neutral) !important; color: var(--eos-on-color); }
.eos-portal-page .badge.bg-warning   { background: var(--eos-warning)  !important; color: var(--eos-on-color); }
.eos-portal-page .badge.bg-info      { background: var(--eos-info)     !important; color: var(--eos-on-color); }
.eos-portal-page .badge.bg-success   { background: var(--eos-success)  !important; color: var(--eos-on-color); }
.eos-portal-page .badge.bg-danger    { background: var(--eos-danger)   !important; color: var(--eos-on-color); }
.eos-portal-page .badge.bg-primary   { background: var(--eos-primary)  !important; color: var(--eos-on-color); }
.eos-portal-page .badge.bg-light     { background: #f1f3f5 !important; color: var(--eos-text); border: 1px solid var(--eos-card-border); }

/* Buttons — unify shape, keep Bootstrap semantics. */
.eos-portal-page .btn {
    border-radius: .375rem;
    font-weight: 500;
}
.eos-portal-page .btn-primary {
    background: var(--eos-primary);
    border-color: var(--eos-primary);
    color: var(--eos-on-color);
}
.eos-portal-page .btn-primary:hover,
.eos-portal-page .btn-primary:focus {
    background: var(--eos-primary-hover);
    border-color: var(--eos-primary-hover);
}
.eos-portal-page .btn-success {
    background: var(--eos-success);
    border-color: var(--eos-success);
}
.eos-portal-page .btn-danger {
    background: var(--eos-danger);
    border-color: var(--eos-danger);
}
.eos-portal-page .btn-outline-primary { color: var(--eos-primary); border-color: var(--eos-primary); }
.eos-portal-page .btn-outline-primary:hover { background: var(--eos-primary); color: var(--eos-on-color); }
.eos-portal-page .btn-outline-secondary { color: var(--eos-text-muted); border-color: var(--eos-card-border); }
.eos-portal-page .btn-outline-danger { color: var(--eos-danger); border-color: var(--eos-danger); }

/* Cards */
.eos-portal-page .card {
    border-color: var(--eos-card-border);
    background: var(--eos-card-bg);
}
.eos-portal-page .card .card-title {
    color: var(--eos-text);
    font-weight: 600;
}

/* Bootstrap 5 gutter polyfill — Frappe's bundled CSS doesn't ship
 * the .g-2 / .g-3 / .g-4 / .g-5 utility classes, so .row g-* renders
 * with zero column padding (fields look fused). Implement the gutters
 * directly so existing markup just works.
 */
.eos-portal-page .row.g-2,
.eos-public-page  .row.g-2 { margin-right: -.25rem; margin-left: -.25rem; }
.eos-portal-page .row.g-2 > [class*="col-"],
.eos-public-page  .row.g-2 > [class*="col-"] { padding-right: .25rem; padding-left: .25rem; }
.eos-portal-page .row.g-3,
.eos-public-page  .row.g-3 { margin-right: -.5rem; margin-left: -.5rem; }
.eos-portal-page .row.g-3 > [class*="col-"],
.eos-public-page  .row.g-3 > [class*="col-"] { padding-right: .5rem; padding-left: .5rem; }
.eos-portal-page .row.g-4,
.eos-public-page  .row.g-4 { margin-right: -.75rem; margin-left: -.75rem; }
.eos-portal-page .row.g-4 > [class*="col-"],
.eos-public-page  .row.g-4 > [class*="col-"] { padding-right: .75rem; padding-left: .75rem; }
.eos-portal-page .row.g-5,
.eos-public-page  .row.g-5 { margin-right: -1rem; margin-left: -1rem; }
.eos-portal-page .row.g-5 > [class*="col-"],
.eos-public-page  .row.g-5 > [class*="col-"] { padding-right: 1rem; padding-left: 1rem; }

/* Package hero on /agent/wizard. */
.eos-pkg-hero {
    background: var(--eos-row-divider);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 360px;
}
.eos-pkg-hero img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Day-by-day Itinerary — photo + body per row. */
.eos-day-list { list-style: none; padding: 0; margin: 0; }
.eos-day-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: .75rem;
    background: #fff;
    border: 1px solid var(--eos-card-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    position: relative;
}
.eos-day-row:last-child { margin-bottom: 0; }
.eos-day-row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--eos-public-accent-dark);
    border-radius: 8px 0 0 8px;
}
.eos-day-image {
    width: 100%;
    height: 100%;
    min-height: 100px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: var(--eos-row-divider);
}
.eos-day-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eos-text-muted);
    font-weight: 500;
    font-size: .85rem;
}
.eos-day-body { padding: .1rem 0; }
.eos-day-title { margin-bottom: .4rem; }
.eos-day-num {
    display: inline-block;
    background: var(--eos-public-accent-dark);
    color: #fff;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .15rem .5rem;
    border-radius: 4px;
    margin-right: .5rem;
    vertical-align: 2px;
}
.eos-day-title-text { font-weight: 600; color: var(--eos-text); }
.eos-day-desc {
    color: var(--eos-text);
    margin: .25rem 0 .5rem;
    line-height: 1.5;
    white-space: pre-line;
}
@media (max-width: 576px) {
    .eos-day-row { grid-template-columns: 1fr; }
    .eos-day-image { max-height: 220px; }
}

/* Operator-authored overview on the wizard page. */
.eos-overview p:last-child { margin-bottom: 0; }
.eos-overview img { max-width: 100%; height: auto; }

/* Marketing leaflet CTA on the wizard page. */
.eos-leaflet-cta {
    text-decoration: none;
    background: rgba(0, 180, 216, .07);
    border: 1px solid rgba(0, 180, 216, .35);
    border-radius: 8px;
    padding: .75rem 1rem;
    gap: .75rem;
    color: var(--eos-text);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.eos-leaflet-cta:hover {
    background: rgba(0, 180, 216, .14);
    box-shadow: 0 4px 12px rgba(0, 180, 216, .15);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--eos-text);
}
.eos-leaflet-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--eos-public-accent-dark);
    color: #fff;
    border-radius: 6px;
    flex-shrink: 0;
}
.eos-leaflet-title { display: block; font-weight: 600; }
.eos-leaflet-sub { display: block; font-size: .82rem; color: var(--eos-text-muted); }
.eos-leaflet-arrow {
    color: var(--eos-public-accent-dark);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Pax-count badge in the wizard header (smaller, badge-sized). */
.eos-badge-pax {
    background: rgba(0, 180, 216, .12);
    color: var(--eos-public-accent-dark);
    border: 1px solid rgba(0, 180, 216, .25);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .3em .55em;
}
.eos-badge-pax svg { flex-shrink: 0; }

/* Pax-count callout on catalog cards (bigger, more readable). */
.eos-pax-callout {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0, 180, 216, .10);
    color: var(--eos-public-accent-dark);
    border: 1px solid rgba(0, 180, 216, .28);
    border-radius: 6px;
    padding: .35rem .65rem;
    font-size: 1rem;
}
.eos-pax-callout strong {
    font-size: 1.1rem;
    color: var(--eos-text);
}
.eos-pax-callout svg { flex-shrink: 0; }

/* Quorum / hold-until-confirmation callout inside Group Details card. */
.eos-quorum-callout {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    background: rgba(15, 191, 188, 0.08);
    border: 1px solid rgba(15, 191, 188, 0.25);
    border-radius: 6px;
    font-size: .9rem;
    color: var(--eos-text);
}
.eos-quorum-callout > svg { color: var(--eos-cyan); flex-shrink: 0; }
.eos-quorum-info {
    background: none;
    border: 0;
    padding: 0;
    line-height: 0;
    color: var(--eos-cyan);
    cursor: help;
    flex-shrink: 0;
}
.eos-quorum-info:hover, .eos-quorum-info:focus { color: var(--eos-cyan-dark, #0a8a88); outline: none; }

/* FAQ accordion (native HTML5 <details> / <summary>). */
.eos-faq-search input { max-width: 480px; }
.eos-faq-body .faq-cat {
    background: #fff;
    border: 1px solid var(--eos-card-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.eos-faq-body .faq-cat > h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--eos-primary);
    margin: 0 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--eos-card-border);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.eos-faq-body .faq-item {
    border-bottom: 1px solid var(--eos-row-divider);
    padding: .5rem 0;
}
.eos-faq-body .faq-item:last-child { border-bottom: 0; }
.eos-faq-body .faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: .5rem 0 .5rem 1.5rem;
    position: relative;
    font-weight: 500;
    color: var(--eos-text);
}
.eos-faq-body .faq-item > summary::-webkit-details-marker { display: none; }
.eos-faq-body .faq-item > summary::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--eos-text-muted);
    transition: transform .15s ease;
    display: inline-block;
}
.eos-faq-body .faq-item[open] > summary::before { transform: rotate(90deg); }
.eos-faq-body .faq-item > summary:hover { color: var(--eos-primary); }
.eos-faq-body .faq-a {
    padding: .25rem 0 .75rem 1.5rem;
    color: var(--eos-text);
    line-height: 1.55;
}
.eos-faq-body .faq-a p:last-child { margin-bottom: 0; }
.eos-faq-noresults { padding-top: 2rem; }

/* Brand logo in top bars (Website Settings -> Navbar -> Brand Image). */
.eos-topbar-brand,
.eos-public-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.eos-topbar-logo,
.eos-public-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Quick Quote on dashboard — 2-col grid: fields in 2×2 + button row. */
.eos-quick-quote {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}
.eos-quick-quote .eos-qq-field { min-width: 0; }
.eos-quick-quote .eos-qq-field:last-child {
    grid-column: 1 / -1;   /* Find packages button spans full width */
}
@media (max-width: 480px) {
    .eos-quick-quote { grid-template-columns: 1fr; }
}

/* Filter row — bottom-align labels + inputs + button on the same baseline. */
.eos-portal-page .eos-filter-row {
    align-items: end;
}
.eos-portal-page .eos-filter-row .form-label {
    color: var(--eos-text-muted);
    margin-bottom: .25rem;
}

/* Headings & muted text */
.eos-portal-page h2,
.eos-portal-page h3,
.eos-portal-page h4,
.eos-portal-page h5 {
    color: var(--eos-text);
}
.eos-portal-page .text-muted {
    color: var(--eos-text-muted) !important;
}
