/* ============================================================
   desktop-shell.css — POC v3 (29/04/2026)

   Light app shell για desktop ≥1024px:
   - Top bar (logo αριστερά, nav text-only, auth+contact δεξιά)
   - Left sidebar (Hotel Profile / Tariff / Revenue / Settings / Info / Logout)
   - Mega-menu για Transfer (3 cascading columns)
   - Floating "AI Assistant" pill button bottom-right
   - Hides mobile bottom-tab footer + demo banner

   Mobile/tablet (<1024px): ZERO regression.
   ============================================================ */

/* Dark mode (Night) overrides — applies when html.ma-force-dark + viewport ≥1024px */
@import url("/moveathens/css/desktop/dark-mode.desktop.css");

/* Contact us modal — desktop only, replaces mobile WhatsApp/phone flow */
@import url("/moveathens/css/desktop/contact-modal.desktop.css");

/* Hide desktop shell completely σε mobile/tablet */
.ma-shell { display: none; }

@media (min-width: 1024px) {

  /* ─── Theme tokens ─── */
  .ma-shell {
    --shell-marine: #1A2456;        /* Marine Blue (top bar, brand) */
    --shell-marine-soft: rgba(26, 36, 86, 0.10);
    --shell-sand: #E5E7EB;          /* Warm Sand (boutique hotel luxury) */
    --shell-sand-deep: #CBD5E1;     /* slightly darker for borders */
    --shell-blue: #94A3B8;          /* accent — warm gold (hover/active) */
    --shell-blue-dark: #64748B;
    --shell-text: #1A2456;
    --shell-text-muted: rgba(26, 36, 86, 0.70);
    --shell-border: rgba(26, 36, 86, 0.12);
    --shell-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shell-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
    --shell-topbar-h: 96px;
    --shell-sidebar-w: 240px;
  }

  /* ─── Force-light home page (override dark hero) ─── */
  body.ma-hero-page {
    background: #E5E7EB !important;
    height: auto !important;
    overflow: auto !important;
  }

  .ma-hero__media,
  .ma-hero__scrim,
  .ma-hero__overlay {
    display: none !important;
  }

  .ma-hero-stage {
    height: auto !important;
    min-height: calc(100vh - 96px) !important;
    padding: 96px 0 0 240px !important;
    overflow: visible !important;
    background: #E5E7EB !important;
    box-sizing: border-box;
    width: 100%;
  }

  .ma-hero {
    height: auto !important;
    min-height: calc(100vh - 96px) !important;
    background: #E5E7EB !important;
  }

  /* ─── Hide mobile UI ─── */
  .ma-footer { display: none !important; }
  html.ma-gate-pending body { visibility: visible !important; }

  /* ─── Page background — αποτρέπει το σκούρο html bg να φαίνεται κάτω
     από το hero όταν αυτό δεν φτάνει στο τέλος του viewport (welcome page).
     Boosted specificity (html:not(.ma-force-dark) body.ma-page) ώστε να νικάει
     το `@media (prefers-color-scheme: dark) html:not(.ma-force-light) .ma-page`
     από dark-mode.css όταν το macOS είναι σε system dark mode. */
  html, body { background: #E5E7EB !important; }
  html:not(.ma-force-dark) body.ma-page,
  html:not(.ma-force-dark) body.ma-hero-page,
  html:not(.ma-force-dark) body.ma-transfer-page,
  html:not(.ma-force-dark) body.ma-ai-page,
  html:not(.ma-force-dark) body.ma-info-page,
  html:not(.ma-force-dark) body.ma-trips-page {
    background: #E5E7EB !important;
    background-image: none !important;
  }

  /* ─── Shell visible ─── */
  .ma-shell {
    display: block;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }

  /* ─── Top bar (MARINE BLUE) ─── */
  .ma-shell__topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: #1A2456; /* Marine Blue */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    z-index: 100;
    box-sizing: border-box;
    column-gap: 24px;
  }

  /* Left cluster: brand */
  .ma-shell__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    justify-self: start;
  }

  .ma-shell__brand-logo {
    width: 88px;
    height: 88px;
    background-image: url('/moveathens/videos/hero-logo.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Logo is dark blue — invert to white so it pops on Marine Blue bg */
    filter: brightness(0) invert(1);
  }

  /* Center cluster: nav */
  .ma-shell__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-self: center;
  }

  .ma-shell__nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color 150ms ease;
  }

  .ma-shell__nav-item:hover,
  .ma-shell__nav-item[aria-current="page"] {
    color: #ffffff;
  }

  .ma-shell__nav-item[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 2px;
    background: #0aa1d6;
  }

  /* v1462 — Notification badge on top-nav (e.g. My Trips unread count).
     v1464 — Add white ring around the badge (matches mobile footer style)
     so it stands out on the marine-blue topbar in both day & night modes. */
  .ma-shell__nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 11px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.45);
    pointer-events: none;
    box-sizing: border-box;
  }

  /* Right cluster: auth + cta */
  .ma-shell__topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
  }

  /* v1409 — Vertical separators between top-right items (Mews-style). */
  .ma-shell__top-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
  }

  .ma-shell__top-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 150ms ease;
  }

  .ma-shell__top-link:hover {
    color: #ffffff;
  }

  /* v1409 — Icon + label combo (Language / Search triggers). */
  .ma-shell__top-iconlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px !important;
    border-radius: 8px;
    transition: color 150ms ease, background 150ms ease;
  }
  .ma-shell__top-iconlink:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .ma-shell__top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 15px;
  }
  .ma-shell__top-iconlabel {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .ma-shell__top-caret {
    opacity: 0.7;
    transition: transform 150ms ease;
  }
  .ma-shell__top-pop[data-open] .ma-shell__top-caret {
    transform: rotate(180deg);
  }

  /* v1409 — Popover container (positioning relative to its trigger). */
  .ma-shell__top-pop {
    position: relative;
  }

  /* Generic dropdown menu base */
  .ma-shell__top-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 1000;
    color: #1A2456;
    font-size: 13.5px;
  }
  .ma-shell__top-menu[hidden] {
    display: none;
  }

  /* Language menu items */
  .ma-shell__lang-menu li {
    list-style: none;
  }
  .ma-shell__lang-menu li button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1A2456;
    cursor: pointer;
    transition: background 120ms ease;
  }
  .ma-shell__lang-menu li button:hover {
    background: rgba(26, 36, 86, 0.06);
  }
  .ma-shell__lang-menu li button[aria-current="true"] {
    background: rgba(26, 36, 86, 0.10);
    font-weight: 700;
  }

  /* Search popover */
  .ma-shell__search-pop {
    width: 360px;
    padding: 12px;
  }
  .ma-shell__search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    transition: border-color 120ms ease, background 120ms ease;
  }
  .ma-shell__search-row:focus-within {
    border-color: rgba(26, 36, 86, 0.35);
    background: #ffffff;
  }
  .ma-shell__search-row-icon {
    color: #6b7280;
    flex-shrink: 0;
  }
  .ma-shell__search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1A2456;
    min-width: 0;
  }
  .ma-shell__search-input::placeholder {
    color: rgba(15, 23, 42, 0.45);
  }
  .ma-shell__search-go {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #1A2456;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
  }
  .ma-shell__search-go:hover {
    background: #0f1838;
    transform: translateX(1px);
  }
  .ma-shell__search-results {
    list-style: none;
    margin: 8px 0 0;
    padding: 4px 0 0;
    max-height: 320px;
    overflow-y: auto;
  }
  .ma-shell__search-results[hidden] {
    display: none;
  }
  .ma-shell__search-results li {
    list-style: none;
  }
  .ma-shell__search-results li button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1A2456;
    cursor: pointer;
    transition: background 120ms ease;
  }
  .ma-shell__search-results li button:hover {
    background: rgba(26, 36, 86, 0.06);
  }
  .ma-shell__search-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.55);
    list-style: none;
  }
  .ma-shell__search-hint {
    margin: 8px 4px 2px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.5);
  }
  .ma-shell__search-hint[hidden] {
    display: none;
  }

  .ma-shell__cta {
    background: #ffffff;
    color: #1A2456;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 150ms ease;
  }

  .ma-shell__cta:hover {
    background: #E5E7EB;
    color: #1A2456;
  }

  /* ─── Mega-menu (Transfer) ─── */
  /* v1381: megamenu disabled — Transfer top-nav now navigates directly
     to the full categories page (preserves the audio-guide UX).
     Rules below remain so any cached HTML still parses, but the
     wrapper is force-hidden via the rules at the top of this block. */
  .ma-shell__megamenu {
    display: none !important;
    /* legacy props kept for cached pages */
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    background: #E5E7EB;
    border-bottom: 1px solid rgba(26, 36, 86, 0.12);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    padding: 20px 28px 28px;
    z-index: 99;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 96px);
    overflow: visible;
  }

  .ma-shell__megamenu[data-open="true"] {
    display: none !important; /* v1381: keep disabled even if JS toggles data-open */
  }

  /* Search row at top */
  .ma-shell__mm-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(26, 36, 86, 0.18);
    border-radius: 8px;
    padding: 0 12px;
    height: 42px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .ma-shell__mm-search-icon {
    color: rgba(26, 36, 86, 0.55);
    flex-shrink: 0;
    margin-right: 8px;
  }
  .ma-shell__mm-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #1A2456;
    font-size: 15px;
    height: 100%;
  }
  .ma-shell__mm-search-input::placeholder {
    color: rgba(26, 36, 86, 0.45);
  }
  .ma-shell__mm-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(26, 36, 86, 0.18);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    max-height: 50vh;
    overflow-y: auto;
    /* v1378: lifted above the megamenu (z:99) and topbar (z:100)
       so it is never clipped or hidden behind the page content. */
    z-index: 110;
  }
  .ma-shell__mm-search-results .ma-shell__mm-link {
    color: #1A2456;
  }

  /* 3-column grid wrapper */
  .ma-shell__mm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    flex: 1;
    min-height: 0;
  }
  .ma-shell__mm-grid[data-no-subs="true"] {
    grid-template-columns: 1fr 2fr;
  }
  .ma-shell__mm-col[data-empty="true"] {
    display: none;
  }

  .ma-shell__mm-col {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: 60vh;
  }

  .ma-shell__mm-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A2456;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(26, 36, 86, 0.18);
  }

  .ma-shell__mm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
  }

  .ma-shell__mm-link {
    display: block;
    padding: 8px 12px;
    color: #0f172a;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: background 120ms ease, color 120ms ease;
  }

  .ma-shell__mm-link:hover,
  .ma-shell__mm-link[data-active="true"] {
    background: rgba(26, 36, 86, 0.10);
    color: #1A2456;
  }

  .ma-shell__mm-empty {
    padding: 12px;
    color: #475569;
    font-size: 13px;
    font-style: italic;
  }

  /* ─── Left sidebar ─── */
  .ma-shell__sidebar {
    position: fixed;
    top: 96px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #ffffff;
    border-right: 1px solid rgba(26, 36, 86, 0.12);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    z-index: 90;
    box-sizing: border-box;
  }

  .ma-shell__sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A2456;
    margin: 0 0 10px;
    padding: 0 12px 10px;
    /* Λεπτή διαχωριστική γραμμή ώστε ο τίτλος "HOTEL" να ξεχωρίζει
       οπτικά από τα κουμπιά (Tariff / Settings / Information).
       Day mode: marine 12% · Night mode: το override παρακάτω. */
    border-bottom: 1px solid rgba(26, 36, 86, 0.12);
  }

  .ma-shell__side-link {
    display: block;
    padding: 9px 12px;
    color: #1A2456;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background 120ms ease, color 120ms ease;
  }

  .ma-shell__side-link:hover {
    background: rgba(26, 36, 86, 0.12);
    color: #1A2456;
  }

  .ma-shell__side-link[aria-current="page"] {
    background: #1A2456;
    color: #ffffff;
    font-weight: 600;
  }

  .ma-shell__side-spacer {
    flex: 1;
  }

  /* v1377 — Version info block at the bottom of the left sidebar.
     Replaces the redundant "Log out" button (top-right keeps Log out).
     Compact, readable, dimmed; non-interactive. */
  .ma-shell__side-version {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding: 10px 12px 4px;
    border-top: 1px solid rgba(26, 36, 86, 0.18);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(26, 36, 86, 0.55);
    user-select: text;
  }
  .ma-shell__side-version-build {
    font-weight: 700;
    color: rgba(26, 36, 86, 0.75);
    letter-spacing: 0.02em;
  }
  .ma-shell__side-version-time {
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    color: rgba(26, 36, 86, 0.50);
  }

  /* ─── Floating AI Assistant pill — hidden v1445 (same decision as mobile) ─── */
  .ma-shell__ai-fab { display: none !important; }

  /* kept for reference only:
  .ma-shell__ai-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1A2456;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #1A2456;
    cursor: pointer;
    box-shadow: none;
    z-index: 80;
    transition: background 150ms ease, color 150ms ease;
  }

  .ma-shell__ai-fab:hover {
    background: #0f1838;
    color: #ffffff;
    transform: none;
    box-shadow: none;
  } */

  /* NOTE (v1420, 2026-05-01): Removed dead `.ma-welcome-dashboard` block (~95 lines).
     Was overridden 100% by insights.desktop.css and hidden by welcome.desktop.css.
     Audit log: BACKLOG-moveathens.md → "CSS Cleanup — Post-v1419 audit". */

  /* ═══ Generic non-hero pages (my-trips, hotel-revenue, transfer, hotel-profile,
     hotel-settings, info, prices) — desktop content area inside shell ═══ */
  body.ma-page:not(.ma-hero-page) {
    background: #E5E7EB !important;
    color: #1A2456 !important;
    min-height: 100vh;
  }

  body.ma-page:not(.ma-hero-page) .ma-main {
    margin-left: 240px !important;
    margin-right: 0 !important;
    padding-top: calc(96px + 24px) !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    padding-bottom: 32px !important;
    background: #E5E7EB !important;
    /* Lock to exactly the area below the topbar. The page itself never
       scrolls — instead, when content overflows, scrolling happens
       inside <main> and the topbar/sidebar stay fixed in view. */
    height: 100vh !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
  }

  /* Page itself never scrolls on desktop dashboards. */
  html body.ma-page:not(.ma-hero-page) {
    overflow: hidden !important;
    height: 100vh !important;
  }

  /* Flatten any 3D-looking buttons / cards inside the content on desktop.
     Mobile stays untouched (rules live inside @media ≥1024px).
     v1442 — exclude .ma-login-modal__btn so the gradient background is preserved. */
  body.ma-page:not(.ma-hero-page) button:not(.ma-login-modal__btn),
  body.ma-page:not(.ma-hero-page) .ma-btn,
  body.ma-page:not(.ma-hero-page) [class*="-btn"]:not(.ma-login-modal__btn) {
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    background-image: none !important;
  }

  body.ma-page:not(.ma-hero-page) button:not(.ma-login-modal__btn):hover,
  body.ma-page:not(.ma-hero-page) .ma-btn:hover,
  body.ma-page:not(.ma-hero-page) [class*="-btn"]:not(.ma-login-modal__btn):hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
