* {
        box-sizing: border-box;
      }
    #lock-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    --bg-opacity: 0.35;
  }

  #lock-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("./assets/MEL2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity);
    z-index: 0;
  }
  #lock-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 24, 0.35);
    z-index: 1;
  }

  .lock-card {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100% - 32px));
    padding: 28px;
    border-radius: 18px;
    background: #111b24;
    color: #f6efdf;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    border: 1px solid rgba(214,180,111,.18);
  }

    .lock-card h2 {
      margin: 0 0 10px;
      font-size: 24px;
    }

    .lock-card p {
      margin: 0 0 16px;
      color: #c5c0b2;
      line-height: 1.5;
    }

    .lock-card input {
      width: 100%;
      box-sizing: border-box;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid rgba(214,180,111,.25);
      background: #0b141d;
      color: #f6efdf;
      outline: none;
      font-size: 16px;
    }

    .lock-card button {
      width: 100%;
      margin-top: 12px;
      padding: 14px 16px;
      border: 0;
      border-radius: 12px;
      background: #d6b46f;
      color: #09131b;
      font-weight: 700;
      font-size: 16px;
      cursor: pointer;
    }

    .error {
      min-height: 20px;
      margin-top: 10px;
      color: #ff8a8a;
      font-size: 14px;
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      20%, 60% { transform: translateX(-4px); }
      40%, 80% { transform: translateX(4px); }
    }

    .password-wrapper.has-error {
      animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    }

    body.locked {
      overflow: hidden;
    }

    .password-wrapper {
      position: relative;
      width: 100%; /* Spans the full width of your lock-card layout */
      display: flex;
      align-items: center;
    }

    /* Make sure your input leaves a gap on the right so text doesn't overlap the eye */
    #password-input {
      width: 100%;
      padding-right: 40px; /* Crucial: stops long passwords from hiding behind the eye */
      box-sizing: border-box; /* Keeps padding from messing up the width */
    }

    #password-input:focus {
      border-color: #dbb376 !important; /* Matches your button's gold color */
      outline: none !important; /* Wipes out the browser's default blue ring */
      box-shadow: 0 0 10px rgba(219, 179, 118, 0.5) !important; /* Adds the soft gold shadow glow */
      transition: box-shadow 0.2s ease, border-color 0.2s ease; /* Makes the glow fade in smoothly */
    }

    .password-wrapper.has-error #password-input {
      border-color: #ef4444 !important;
      outline: 2px solid #ef4444 !important; /* Overrides default browser blue/white focus ring */
      box-shadow: 0 0 16px rgba(239, 68, 68, 0.701) !important; /* Adds a clean outer red glow */
    }

    /* Position the eye icon inside the input */
    .eye-icon {
      position: absolute;
      right: 12px; /* Distance from the right edge */
      cursor: pointer;
      color: #94a3b8; /* A clean, muted gray that looks great on dark themes */
      display: flex;
      align-items: center;
      user-select: none; /* Prevents text-highlighting the icon on double clicks */
      transition: color 0.2s ease;
    }

    /* Subtle hover effect */
    .eye-icon:hover {
      color: #f1f5f9; /* Brightens up when hovered */
    }

    #site-content {
      display: none;
    }
    :root, [data-theme="dark"] {
      --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
      --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
      --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
      --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.45rem);
      --text-xl: clamp(1.45rem, 1.2rem + 1.2vw, 2.15rem);
      --text-2xl: clamp(2rem, 1.3rem + 2vw, 3.4rem);
      --text-3xl: clamp(2.9rem, 1.5rem + 4vw, 5.9rem);
      --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
      --radius-sm: .5rem; --radius-md: .85rem; --radius-lg: 1.25rem; --radius-xl: 1.8rem; --radius-full: 999px;
      --font-body: 'General Sans', 'Inter', sans-serif;
      --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
      --color-bg: #071018;
      --color-surface: rgba(11, 20, 29, 0.84);
      --color-surface-2: rgba(15, 29, 41, 0.9);
      --color-surface-3: #122333;
      --color-border: rgba(214, 180, 111, 0.16);
      --color-divider: rgba(214, 180, 111, 0.08);
      --color-text: #f6efdf;
      --color-text-muted: #c5c0b2;
      --color-text-faint: #8f948f;
      --color-text-inverse: #09131b;
      --color-primary: #d6b46f;
      --color-primary-strong: #e6c98c;
      --color-accent: #8ca3ab;
      --shadow-sm: 0 10px 30px rgba(0,0,0,.18);
      --shadow-md: 0 20px 50px rgba(0,0,0,.32);
      --shadow-lg: 0 32px 80px rgba(0,0,0,.45);
      --content: 1180px;
      --transition: 220ms cubic-bezier(.16,1,.3,1);
    }
   
    *{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;min-height:100vh;font-family:var(--font-body);font-size:var(--text-base);line-height:1.65;color:var(--color-text);background:var(--color-bg)} img,svg{display:block;max-width:100%;height:auto} a{text-decoration:none;color:inherit} button{font:inherit;cursor:pointer} 
    .skip-link{position:absolute;left:1rem;top:-3rem;background:var(--color-primary);color:var(--color-text-inverse);padding:.8rem 1rem;border-radius:var(--radius-md);z-index:99}.skip-link:focus{top:1rem}
  .header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    background: linear-gradient(180deg, rgba(7,16,24,.92), rgba(7,16,24,.72));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-divider);
  }
  .header-inner {
    width: 100%;
  }
  .nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    padding-inline: 1.5rem;
  }
  .shell {
    width: min(calc(100% - 1.5rem), var(--content));
    margin-inline: auto;
    padding-inline: 1rem;
  }
  .shell {padding-left: 1rem;}
  .brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .brand-mark { width: 46px; height: 46px; border-radius: 14px; color: var(--color-primary); background: linear-gradient(150deg, rgba(214,180,111,.18), rgba(18,35,51,.72)); background: rgba(214, 180, 111, 0.05); /* Optional: subtle background */ padding: 4px; }

  .brand-copy strong,
  .brand-copy span {
    display: block;
    text-transform: uppercase;
  }
  .brand-copy strong {
    font-family: var(--font-display);
    font-size: var(--text-md);
    letter-spacing: .12em;
  } 
  .brand-copy span {
    font-size: var(--text-xs);
    letter-spacing: .22em;
    color: var(--color-text-muted);
  }   
  .nav-links {
    display: flex;
    gap: var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color 0.2s ease, opacity 0.2s ease;
    right: 1.5rem !important;  /* Locks the right edge cleanly aligned with the layout margin */
    left: auto !important;
  }
  .nav-links a:hover {
    color: var(--color-primary);
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .nav-actions {
      margin-left: auto;
    }

      .theme-toggle,
  .nav-shortcuts {
    display: none;
    align-items: center !important;
  }

  @media (min-width: 992px) {
      .nav-shortcuts { 
        display: flex; 
        flex-direction: row; 
        gap: var(--space-6); 
        margin-left: auto; /* Pushes the entire link group to the right */
        padding-right: var(--space-4); /* Adds a nice breathing room before the moon icon */
      }

      .nav-actions {
        margin-left: 0; /* Resets the action container so it clusters neatly with the links */
      }

      .nav-shortcuts a { 
        position: relative; 
        color: var(--color-text-muted); 
        text-decoration: none; 
        font-size: var(--text-sm); 
        transition: color 0.2s ease; 
        padding-bottom: 6px; 
      }

      /* The glowing gradient line (hidden by default) */
      .nav-shortcuts a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%; 
        transform: translateX(-50%); 
        width: 0; 
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
        border-radius: 2px;
        opacity: 0;
        box-shadow: 0 1px 6px rgba(214, 180, 111, 0.4); 
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
      }

      .nav-shortcuts a:hover { 
        color: var(--color-primary); 
      }

      /* Animate the line spreading outwards on hover */
      .nav-shortcuts a:hover::after {
        width: 100%;
        opacity: 1;
      }
    }
    
    @media (min-width: 992px) {
    .nav-shortcuts {
      display: flex;
      flex-direction: row;
      gap: var(--space-6);
    }
    
    .nav-shortcuts a { 
      position: relative; /* Required to anchor the underline */
      color: var(--color-text-muted); 
      text-decoration: none; 
      font-size: var(--text-sm); 
      transition: color 0.2s ease; 
      padding-bottom: 6px; /* Creates spacing between text and the line */
    }

    /* The glowing gradient line (hidden by default) */
    .nav-shortcuts a::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%; /* Start exactly in the middle */
      transform: translateX(-50%); /* Centers the element perfectly */
      width: 0; /* Starts at 0 width for the animation */
      height: 2px;
      /* The gradient: Transparent on edges, gold in the middle */
      background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
      border-radius: 2px;
      opacity: 0;
      box-shadow: 0 1px 6px rgba(214, 180, 111, 0.4); /* Adds the soft ambient glow */
      transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }

    .nav-shortcuts a:hover { 
      color: var(--color-primary); 
    }

    /* Animate the line spreading outwards on hover */
    .nav-shortcuts a:hover::after {
      width: 100%;
      opacity: 1;
    }
  }

  /* 2. Base Menu Toggle Button Configuration */
  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .menu-toggle:hover {
    background: rgba(214, 180, 111, 0.08);
    border-color: var(--color-primary);
  }

  .shell.nav {
    position: relative; /* Keeps absolute elements tracked to the header boundaries */
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute !important;
    top: 78px; 
    right: 1.5rem !important;       
    width: auto;
    background: rgba(18, 35, 51, 0.96); 
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: var(--space-4);
    gap: var(--space-2);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s;
  }

  /* Active State (Controlled by your JavaScript scroll/click toggle) */
  .nav-links.is-open {
    opacity: 1;                       /* Fade completely into view */
    visibility: visible;              /* Make links clickable */
    transform: translateY(0);
    box-shadow: 
    0 12px 40px rgba(4, 10, 16, 0.65),       /* Layer 1: Strong, deep dark-blue shadow */
    0 0 20px rgba(214, 180, 111, 0.04);
  }

  /* Active State (Controlled by JavaScript Toggle) */
  .nav-links.is-open {
    display: flex;
  }

  /* Sub-styling for link items inside the vertical dropdown container */
  .nav-links a {
    color: var(--color-text);
    text-decoration: none;
    padding: 0.35rem 1.25rem;
    border-radius: 10px;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links a:hover {
    background: rgba(214, 180, 111, 0.08);
    color: var(--color-primary);
  }

  /* 1. Desktop Position Modifier */
  @media (min-width: 992px) {
    .nav-links {
      right: 7.5rem !important; /* Positions under the toggle on desktop */
      left: auto !important;
    }
  }

  /* 2. Mobile Clean Alignment Overrides */
  @media (max-width: 980px) {
    .nav-links {
      position: absolute !important;
      top: 78px; /* Perfectly gaps below your header bar */
      
      /* --- THE FIX: Anchor right, cancel left, lock the width --- */
      right: 1.5rem !important;
      left: auto !important;
      width: 200px !important; 
      
      gap: var(--space-2);
      padding: var(--space-4);
      border-radius: 14px;
      background: rgba(18, 35, 51, 0.96);
      border: 1px solid var(--color-border);
      box-shadow: var(--shadow-md);
    }
  }

  /* --- DESKTOP HOVER DROPDOWN --- */
      .dropdown-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
      }

      /* The invisible bridge: prevents the menu from vanishing 
         when moving the mouse from the text to the box */
      .dropdown-wrapper::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        z-index: 10;
      }

      /* The Dropdown Box */
      .dropdown-menu {
        position: absolute;
        top: calc(100% + 14px); /* Pushes it just below the header */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(18, 35, 51, 0.96);
        backdrop-filter: blur(16px);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: var(--space-2);
        min-width: 160px;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        
        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 12px 40px rgba(4, 10, 16, 0.65);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 90;
      }

      /* The Reveal Animation */
      .dropdown-wrapper:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
      }

      /* Sub-link specific styling */
      .dropdown-menu a {
        padding: 0.6rem 1rem;
        border-radius: 8px;
        color: var(--color-text);
        padding-bottom: 0.6rem; /* Overrides the 6px padding from the main nav */
      }
      
      /* Disable the glowing underline for the internal sub-links */
      .dropdown-menu a::after {
        display: none; 
      }

      .dropdown-menu a:hover {
        background: rgba(214, 180, 111, 0.08);
        color: var(--color-primary);
      }

      /* Forces the main "Routes" link to stay glowing and gold 
         while the user is hovered inside the dropdown box */
      .dropdown-wrapper:hover > a {
        color: var(--color-primary);
      }
      .dropdown-wrapper:hover > a::after {
        width: 100%;
        opacity: 1;
      }

      /* --- MOBILE MENU ACCORDION --- */
    .mobile-dropdown {
      width: 100%;
    }

    /* The clickable summary button (Mimics .nav-links a) */
    .mobile-dropdown summary {
      color: var(--color-text);
      padding: 0.35rem 1.25rem; /* FIXED: Now matches the standard <a> links perfectly */
      border-radius: 10px;
      width: 100%;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
      display: flex;
      justify-content: space-between;
      align-items: center;
      list-style: none;
      margin: 0; /* Ensures no hidden browser margins push it around */
    }
    
    /* Hides the default browser triangle in Chrome/Safari/Edge */
    .mobile-dropdown summary::-webkit-details-marker { 
      display: none; 
    }
    
    /* Hover effect matching the regular buttons */
    .mobile-dropdown summary:hover {
      background: rgba(214, 180, 111, 0.08);
      color: var(--color-primary);
    }
    
    /* The container for the sub-links */
    .mobile-dropdown-menu {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      padding-top: 0.2rem;
      padding-left: 1.25rem; /* FIXED: Aligns the sub-links with the parent text */
    }

    /* Smoothly rotates the chevron icon when tapped open */
    .mobile-dropdown summary svg {
      transition: transform 0.3s ease;
      color: inherit;
    }
    
    .mobile-dropdown[open] summary svg {
      transform: rotate(180deg);
    }

    .ceo-message {
      margin-top: var(--space-8); 
      border-top: 1px solid var(--color-border); 
      padding-top: var(--space-6);
      border-left: 2px solid rgba(214, 180, 111, 0.25);
      padding-left: var(--space-8);
      padding-bottom: var(--space-6);
    }

    .ceo-message p:nth-of-type(2) {
      color: var(--color-text-muted);
      font-style: italic;
      max-width: 65ch;
      line-height: 1.7; /* Slightly increased from 1.6 for enhanced long-form breathing room */
      
      /* --- TYPOGRAPHY POLISH --- */
      hanging-punctuation: first; 
      font-size: var(--text-base); /* Ensures it feels distinct from smaller caption text */
    }
    .btn{display: inline-flex;align-items: center;justify-content: center;gap: .65rem;min-height: 48px;padding: .92rem 1.2rem;border-radius: var(--radius-full);transition: transform var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition)}    
    .btn:hover{transform:translateY(-3px);color:rgb(197, 192, 178);background-color:rgb(56, 56, 47);box-shadow:0 16px 40px rgba(214, 180, 111, 0.496)}
    .btn-primary{background:var(--color-primary);color:var(--color-text-inverse);box-shadow:0 16px 40px rgba(214,180,111,.22)}
    .btn-secondary{background:var(--color-surface);border:1px solid var(--color-border)}
    .hero{position:relative;display:block;padding: clamp(0.5rem, 2vw, 1.5rem) 0 var(--space-12);;overflow:hidden}.hero-media{position:relative;width:100%;aspect-ratio:16/9;max-height:none}.hero-media img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:#071018}.hero-copy,.hero-side{position:relative;z-index:2}
    .hero-media,.hero-overlay{position:absolute;inset:0}.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center;aspect-ratio:16/9}.hero-overlay{background:linear-gradient(270deg,rgba(7,16,24, 0.18),rgba(7,16,24,.46) 32%,rgba(7,16,24,.88) 76%,var(--color-bg))}
    .hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1fr;gap:var(--space-8);align-items:end}
    .hero-copy{max-width:760px}
    .eyebrow{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border-radius:var(--radius-full);background:rgba(214,180,111,.12);border:1px solid var(--color-border);color:var(--color-primary);font-size:var(--text-xs);letter-spacing:.18em;text-transform:uppercase;margin-bottom: 1.25rem;}
    .eyebrow-head{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border-radius:var(--radius-full);background:rgba(7, 16, 24, 0.5);border:1px solid var(--color-border);color:var(--color-primary);font-size:var(--text-xs);letter-spacing:.18em;text-transform:uppercase;margin-bottom: 1.25rem;}
    h1{margin: var(--space-5) 0 var(--space-4);font-family:var(--font-display);font-size:var(--text-3xl);line-height:.96;letter-spacing:-.045em;max-width:10ch}
    .hero-copy p{max-width:60ch;color:var(--color-text-muted)}
    .hero-actions,.hero-stats{display:flex;gap:var(--space-4);flex-wrap:wrap}.hero-actions{margin-top:var(--space-6)}.hero-stats{margin-top:var(--space-8)}
    .stat-card{min-width:170px;padding:var(--space-4) var(--space-5);border-radius:var(--radius-lg);background:var(--color-surface);border:1px solid var(--color-border);backdrop-filter:blur(14px)}
    .stat-card strong{display:block;font-family:var(--font-display);font-size:var(--text-xl);color:var(--color-primary)}.stat-card span{font-size:var(--text-sm);color:var(--color-text-muted)}
    .hero-side{display:grid;gap:var(--space-4);max-width:100%;margin-top:var(--space-6)}
    .glass{background:var(--color-surface);border:1px solid var(--color-border);backdrop-filter:blur(18px);border-radius:var(--radius-xl);box-shadow:var(--shadow-md)}
    .info-panel{padding:var(--space-6)}
    .info-panel h2{font-family:var(--font-display);font-size:var(--text-xl);margin:.7rem 0 0.4rem}
    .info-link{display: flex;flex-direction: column;color: inherit;text-decoration: none;}
    .mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);margin-top:var(--space-5)}
    .mini-grid div{padding:var(--space-4);border-radius:var(--radius-lg);background:rgba(255,255,255,.03);border:1px solid var(--color-border)}
    .mini-btn{display:block;padding:var(--space-4);border-radius:var(--radius-lg);background:rgba(255, 255, 255, 0.03);border: 1px solid var(--color-border);color:inherit;text-decoration:none;transition:transform var(--transition),background var(--transition),border-color var(--transition);}
    .mini-grid strong{display:block;font-size:var(--text-lg);font-family:var(--font-display);color:var(--color-primary)}
    .mini-btn:hover{transform: translateY(-3px);border-color: rgba(214, 180, 111, 0.28);background: rgba(255, 255, 255, 0.05);}
    .mini-btn strong,.mini-btn span {display: block;}
    .section{padding:clamp(var(--space-12),8vw,var(--space-20)) 0}
    .section-head{display:flex;justify-content:space-between;gap:var(--space-8);align-items:end;margin-bottom:var(--space-8)}
    .section-head h2{margin:0;font-family:var(--font-display);font-size:var(--text-2xl);letter-spacing:-.03em;max-width:12ch}
    .section-head p{margin:0;max-width:52ch;color:var(--color-text-muted)}
    .section-head{padding-left: 1rem;}
    .info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-5)}
    .card{padding:var(--space-6);background:var(--color-surface);border:1px solid var(--color-border);border-radius:1.5rem;box-shadow:var(--shadow-sm)}
    .card-icon{width:3rem;height:3rem;border-radius:1rem;display:grid;place-items:center;margin-bottom:var(--space-5);background:rgba(214,180,111,.12);color:var(--color-primary)}
    .card h3{margin:0 0 .7rem;font-size:var(--text-lg)} .card p{margin:0;color:var(--color-text-muted)}
    .media-split{display:grid;grid-template-columns:1.05fr .95fr;gap:var(--space-5);align-items:stretch}
    .photo-card{overflow: hidden;border-radius: 1.8rem;border: 1px solid var(--color-border);background: var(--color-surface);box-shadow: var(--shadow-md)}
    .photo-card img {width: 100%;height: auto;display: block}
    .copy-stack{display:grid;gap:var(--space-5)}
    .feature-list{display:grid;gap:var(--space-4);margin-top:var(--space-5)}
    .fleet-list {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 1rem;}
    .group-head {grid-column: 1 / -1;display: flex;justify-content: space-between;align-items: center;padding-bottom: 1rem;border-bottom: 1px solid var(--color-divider);margin-bottom: 0.5rem;}
    .feature-item{display:flex;gap:var(--space-4);align-items:flex-start;padding-bottom:var(--space-4);border-bottom:1px solid var(--color-divider)}
    .feature-item:last-child{padding-bottom:0;border-bottom:none}
    .dot{width:12px;height:12px;border-radius:50%;margin-top:.55rem;background:var(--color-primary);box-shadow:0 0 0 8px rgba(214,180,111,.08);flex-shrink: 0;}
    .fleet-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5)}
    .fleet-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);margin-top:var(--space-5)}
    .fleet-item{padding:var(--space-4);border-radius:var(--radius-lg);background:rgba(255,255,255,.03);border:1px solid var(--color-border)}
    .fleet-item strong{display:block}.fleet-item span{color:var(--color-text-muted);font-size:var(--text-sm)}
    .fleet-card-link{display: block;color: inherit;text-decoration: none;}
    .fleet-card-link .fleet-item{transition: transform var(--transition), border-color var(--transition), background var(--transition);}
    .fleet-card-link:hover .fleet-item{transform: translateY(-4px);border-color: rgba(214, 180, 111, 0.28);background: linear-gradient(145deg, rgba(214, 180, 111, 0.12), rgba(255, 255, 255, 0.03));box-shadow:0 16px 40px rgba(214, 180, 111, 0.3)}
    .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */ gap: var(--space-5, 1.5rem);           /* Spacing between all items */ margin-top: 2rem; }

/* Make every image responsive inside its card */
.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px; /* Optional: matches the smooth look in your screenshot */
}

/* The Magic: Targets the 3rd, 6th, 9th, etc., item to span full width */
.gallery-grid .photo-card:nth-child(3n-2) {
  grid-column: span 2;
}
    .cta-panel{display:flex;justify-content:space-between;align-items:center;gap:var(--space-6);flex-wrap:wrap;padding:clamp(var(--space-8),5vw,var(--space-12));background:linear-gradient(140deg,rgba(214,180,111,.12),rgba(16,29,41,.7));border:1px solid var(--color-border);border-radius:2rem;box-shadow:var(--shadow-lg)}
    .cta-panel h2{margin:.7rem 0 0;font-family:var(--font-display);font-size:var(--text-2xl)}
    .disclaimer{margin-top:var(--space-6);padding:var(--space-5);border-radius:var(--radius-lg);background:rgba(214,180,111,.08);border:1px solid var(--color-border);color:var(--color-text-muted);font-size:var(--text-sm)}
    .reveal{opacity:0;transform:translateY(18px);transition:opacity .8s ease,transform .8s ease}.reveal.is-visible{opacity:1;transform:none}
    @media (max-width:980px){.hero{min-height:auto;padding-top:7rem}.hero-grid,.media-split,.fleet-grid,.gallery,.info-grid{grid-template-columns:1fr}.nav-links{position:absolute;top:calc(100% + .7rem);left:1rem;right:1rem;display:none;flex-direction:column;gap:1rem;padding:1rem;border-radius:1rem;background:var(--color-surface-2);border:1px solid var(--color-border);box-shadow:var(--shadow-md)}.nav-links.is-open{display:flex}.menu-toggle{display:inline-grid;place-items:center}.mini-grid,.fleet-list{grid-template-columns:1fr 1fr}}
    @media (max-width:640px){.shell{width:min(calc(100% - 1rem),var(--content))}.hero-actions{flex-direction:column;align-items:stretch}.btn{width:100%}.nav{align-items:flex-start;padding-block:.8rem}.nav-actions{margin-left:auto}.mini-grid,.fleet-list{grid-template-columns:1fr}.section-head{flex-direction:column;align-items:flex-start}.body { padding: 24px 0 60px !important; }}
    @media (max-width:640px){.nav{padding-inline: 1rem;}}
    
  .fleet-item {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.03);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .fleet-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .fleet-item strong {
    display: block;
  }

  .fleet-item span {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
  }

  .fleet-data {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: all 0.5s ease;
}

.fleet-data hr {
  border: 0;
  border-top: 1px solid var(--color-divider);
  margin: 0.5rem 0;
}

.fleet-data p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Desktop: Hover-Verhalten NUR bei echten Mäusen */
@media (hover: hover) and (pointer: fine) {
  .fleet-card-link:hover .fleet-data {
    max-height: 200px; /* Groß genug für den Text */
    opacity: 1;
    margin-top: 0.5rem;
  }
}

/* Mobile: Klasse, die per JavaScript getriggert wird */
.fleet-card-link.is-expanded .fleet-data {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.fleet-item {
  position: relative;
}

/* 2. Der Pfeil: Standardmäßig sichtbar, unten rechts, zeigt nach unten */
.fleet-item::after {
  content: "";
  position: absolute;
  bottom: 1.2rem; /* Sitzt elegant in der unteren rechten Ecke */
  top: auto;      /* Explicitly set so we can override it cleanly */
  right: 1.2rem;
  width: 20px;
  height: 20px;
  /* Neuer SVG-Code für einen Pfeil nach unten (Chevron Down) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b46f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  
  /* Ist nun von Anfang an sichtbar */
  opacity: 1;
  
  /* Transition on 'all' so rotation and position updates are handled */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Desktop Hover: Karte klappt auf -> Pfeil springt nach oben rechts und zeigt diagonal (↗) */
@media (hover: hover) and (pointer: fine) {
  .fleet-card-link:hover .fleet-item::after {
    bottom: auto;              /* Löst den Pfeil von unten */
    top: 1.2rem;               /* Pinnt den Pfeil oben fest */
    transform: rotate(-135deg); /* Dreht den Chevron nach oben-rechts */
  }
}

/* 4. Mobile Tap: Karte klappt auf -> Pfeil springt nach oben rechts und zeigt diagonal (↗) */
.fleet-card-link.is-expanded .fleet-item::after {
  bottom: auto;
  top: 1.2rem;
  transform: rotate(-135deg);
}

.fleet-grid-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 2rem;
}

.fleet-grid-content p {
  margin: 0;
  min-width: 0;
}

.fleet-meta-row {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
  display: block;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.45rem !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (hover: hover) and (pointer: fine) {
  .fleet-card-link:hover .fleet-data {
    max-height: 600px !important; /* Increased from 200px */
  }
}
.fleet-card-link.is-expanded .fleet-data {
  max-height: 600px !important; /* Increased from 200px */
}

/* 2. Style the new Geek Data container (Hidden by default) */
.fleet-geek-data {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state for Geek Data */
.fleet-card-link.show-geek .fleet-geek-data {
  max-height: 250px; 
  opacity: 1;
  margin-top: 0.5rem;
}

/* 3. Style the clickable toggle arrow */
.geek-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 0; /* Creates a slightly larger tap target */
  transition: color 0.5s ease;
}

.geek-toggle:hover {
  color: var(--color-text); /* Brightens on hover */
}

.geek-toggle svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotate the arrow 180 degrees when expanded */
.fleet-card-link.show-geek .geek-toggle svg {
  transform: rotate(180deg);
}

.tooltip .tseasonal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.op-tag, .status-tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      border-radius: 6px; /* Squarer, more modern pill shape */
      font-family: var(--font-body);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      line-height: 1.2;
      border: 1px solid transparent;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .op-etihad {
      color: #09131b;
      background: linear-gradient(135deg, #d6b46f, #bda063);
      border-color: rgba(214, 180, 111, 0.8);
    }

    .op-airarabia {
      color: #fff;
      background: linear-gradient(135deg, #E1002A, #b30022);
      border-color: rgba(225, 0, 42, 0.8);
    }

    .op-cargo {
      color: #09131b;
      background: linear-gradient(135deg, #7dcfff, #5cbbe8);
      border-color: rgba(125, 207, 255, 0.8);
    }

    .op-historic {
      color: #09131b;
      background: linear-gradient(135deg, #b8865a, #9e734c);
      border-color: rgba(184, 134, 90, 0.8);
    }

    .op-special {
      color: #09131b;
      background: linear-gradient(135deg, #5fd6a7, #4ec295);
      border-color: rgba(95, 214, 167, 0.8);
    }

    .status-seasonal {
      color: #dff6ff;
      background: rgba(140, 163, 171, 0.2);
      border-color: rgba(140, 163, 171, 0.5);
    }

.status-yearround {
  color: #f6efdf;
  background: #2A3640;
  border-color: #50606B;
}

  .rank-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-top: var(--space-6);
    border-radius: 1.8rem;
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(11, 20, 29, 0.9), rgba(18, 35, 51, 0.82));
    box-shadow: var(--shadow-md);
    overflow-x: auto; /* Forces a horizontal scrolling canvas on small mobile viewports */
    overflow-y: hidden; /* Prevents accidental vertical drifting while shifting lanes */
    -webkit-overflow-scrolling: touch;
  }

  @media (max-width: 980px) {
  .rank-table-wrap {
    overflow-x: auto !important; 
  }
  
  .rank-table {
    min-width: 980px !important; 
  }
}

  .rank-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    border-radius: 12px;
    overflow: hidden;
  }

  .rank-table thead th {
    color: #09131b;
    text-shadow: none;
  }

  .rank-table th,
  .rank-table td {
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0.9rem 1rem;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .rank-table thead th {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-text-inverse);
    letter-spacing: -.02em;
  }

  .rank-table thead th.col-rank { background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);color: #F4EFE6;border-bottom: 2px solid rgba(227, 193, 132, 0.15);font-weight: 600;letter-spacing: 0.02em; width: 14%;-webkit-font-smoothing: antialiased;}
  .rank-table thead th.col-hours{ background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);color: #F4EFE6;border-bottom: 2px solid rgba(227, 193, 132, 0.15);font-weight: 600;letter-spacing: 0.02em; width: 10%;-webkit-font-smoothing: antialiased; }
  .rank-table thead th.col-benefits { background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);color: #F4EFE6;border-bottom: 2px solid rgba(227, 193, 132, 0.15);font-weight: 600;letter-spacing: 0.02em; width: 30%;-webkit-font-smoothing: antialiased; }
  .rank-table thead th.col-codeshares { background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);color: #F4EFE6;border-bottom: 2px solid rgba(227, 193, 132, 0.15);font-weight: 600;letter-spacing: 0.02em; width: 12%;-webkit-font-smoothing: antialiased;}
  .rank-table thead th.col-meva { background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);color: #F4EFE6;border-bottom: 2px solid rgba(227, 193, 132, 0.15);font-weight: 600;letter-spacing: 0.02em; width: 17%;-webkit-font-smoothing: antialiased;}
  .rank-table thead th.col-charters { background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);color: #F4EFE6;border-bottom: 2px solid rgba(227, 193, 132, 0.15);font-weight: 600;letter-spacing: 0.02em; width: 17%;-webkit-font-smoothing: antialiased;}

  .rank-table tbody th {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 800;
    text-align: center;
    color: var(--color-text);
    background: rgba(255,255,255,0.04);
  }

  .rank-table tbody td {
    background: rgba(255,255,255,0.02);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
  }

  .rank-table th,
  .rank-table td {
    border: 1px solid rgba(214,180,111,0.14);
  }

  .rank-table tbody tr.premium th {
    color: var(--color-primary-strong);
    background-color:rgb(35, 40, 39);
  }

  .rank-table tbody tr.premium td {
    background-color: rgba(35, 40, 39, 0.75); 
    color: #F4EFE6; 
  }

  .rank-badge-gold {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(214, 180, 111, 0.15), rgba(214, 180, 111, 0.03));
    border: 1px solid rgba(214, 180, 111, 0.3);
    box-shadow: 0 0 12px rgba(214, 180, 111, 0.08);
    white-space: nowrap; 
  }

  .center-cell {
    text-align: center;
  }

  .check-big {
    display: inline-block;
    color: #c9a24a;
    font-size: 3.25rem;
    line-height: 1;
    font-weight: 900;
  }

  .check-small {
    display: inline-block;
    color: #d2b35a;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
  }

  .stamp {
    display: inline-block;
    padding: .38rem .78rem;
    border: 3px solid #7b2f2a;
    color: #7b2f2a;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-14deg);
    letter-spacing: .08em;
    border-radius: .45rem;
    background: rgba(123, 47, 42, 0.10);
    white-space: nowrap;
  }

  @media (max-width: 980px) {
    .rank-table {
      min-width: 980px;
    }

    .rank-table-wrap {
      overflow-x: auto;
      overflow-y: hidden;
    }
  }

  .rank-table-wrap {
  border-bottom: none;
  overflow: hidden;
  }

  .rank-table {
    border-bottom: none;
  }

  .rank-table tbody tr:last-child th,
  .rank-table tbody tr:last-child td {
    border-bottom: none;
  }

  td.charters-locked-cell {
  padding: 0 !important; /* Removes cell padding so the inner div can fill 100% of the height */
  vertical-align: middle;
  background-color: rgba(16, 20, 28, 0.4); /* The sleek dark lockout tint */
}

/* The magic wrapper that perfectly centers everything over all 6 rows */
td.charters-locked-cell .stamp-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px; /* Forces browser rendering to respect the vertical span */
  height: 100%;
  width: 100%;
}

/* Style the text stamp exactly like a physical stamp */
td.charters-locked-cell .stamp {
  display: inline-block;
  color: #ba4343; /* Clean luxury red/crimson */
  border: 2px solid #ba4343;
  padding: 6px 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transform: rotate(-20deg); /* The slick dynamic stamp angle */
  white-space: nowrap;
}

  .leadership-stack {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-6);
  }

  .leadership-group {
    padding: var(--space-6);
    border-radius: 1.8rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
  }

  .group-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
  }

  .group-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    letter-spacing: -.03em;
  }

  .group-head span {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
  }

  .leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .leadership-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .leader-card {
    padding: var(--space-6);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    position: relative !important;
  }

  .leader-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214,180,111,.26);
    background: rgba(255,255,255,.05);
    box-shadow:0 16px 40px rgba(214, 180, 111, 0.3);

  }

  .leader-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .leader-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .75rem;
    border-radius: var(--radius-full);
    background: rgba(214,180,111,.12);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: var(--text-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .leader-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: right;
  }

  .leader-card h4 {
    margin: 0 0 .3rem;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    letter-spacing: -.02em;
  }

  .leader-meta {
    margin: 0 0 .8rem;
    color: var(--color-primary-strong);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: .12em;
  }

  .leader-desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  .leader-president {
    border-color: rgba(214,180,111,.28);
    background: linear-gradient(145deg, rgba(214,180,111,.10), rgba(255,255,255,.03));
  }

  .leader-vacant {
    opacity: .9;
    border-style: dashed;
  }

  .leader-advisor {
    background: linear-gradient(145deg, rgba(140,163,171,.10), rgba(255,255,255,.03));
  }

  @media (max-width: 980px) {
    .leadership-grid,
    .leadership-grid.compact {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 640px) {
    .group-head { flex-direction: column; align-items: flex-start; }
    .body { padding: 24px 16px 60px; }
    .detail-header { padding: 24px 16px 0; }

    .leadership-grid,
    .leadership-grid.compact {
      grid-template-columns: 1fr;
    }

    .leader-top {
      flex-direction: column;
      align-items: flex-start;
    }

    .leader-role {
      text-align: left;
    }
  }

  .leader-coo {
    background: linear-gradient(145deg, rgba(214, 180, 111, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(214, 180, 111, 0.24);
  }

  .leader-trustee {
    background: linear-gradient(145deg, rgba(140, 163, 171, 0.14), rgba(255, 255, 255, 0.03));
    border-color: rgba(140, 163, 171, 0.22);
  }

  .leader-coo:hover,
  .leader-trustee:hover {
    background: linear-gradient(145deg, rgba(214, 180, 111, 0.16), rgba(255, 255, 255, 0.05));
  }

  body {
  margin: 0;
  min-height: 100vh;
  background: #071018;
  color: var(--color-text);
}

main {
  width: 100%;
}

.section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--space-6) 0 clamp(var(--space-12), 8vw, var(--space-20)) !important;
  overflow: hidden;
  border-top: 1px solid rgba(214, 180, 111, 0.06);
}

.section > .shell {
  position: relative;
  z-index: 2;
}

#about {
  background: linear-gradient(180deg, #071018 0%, #0b141d 100%);
}

#routes {
  background: linear-gradient(180deg, #0b1620 0%, #102434 100%);
}

#fleet {
  background: linear-gradient(180deg, #122333 0%, #0b141d 100%);
}

#ranks {
  background: linear-gradient(180deg, #0e1a26 0%, #151f2b 100%);
}

#leadership {
  background: linear-gradient(180deg, #0b1620 0%, #101a24 100%);
}

#gallery {
  background: linear-gradient(180deg, #071018 0%, #0a1320 100%);
}

#join {
  background: linear-gradient(180deg, #101f2e 0%, #071018 100%);
}

  .section {
    padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
    border-top: 1px solid rgba(214, 180, 111, 0.06);
  }

  .footer {
  padding: var(--space-8) 0 var(--space-10);
  border-top: 1px solid var(--color-divider);
  
  /* Use a slightly darker, softer text-muted variable if available, or stick to this */
  color: var(--color-text-muted); 
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  
  /* Gives the top fan-site label an elegant, premium tint */
  color: #a0aab5; 
  }

  .footer-top p {
    margin: 0 auto;
  }

  .footer-legal {
    display: flex;
    justify-content: center;
  }

  .footer-legal p {
    max-width: 1000px;
    margin: 0;
    text-align: center;
    font-size: var(--text-xs);
    line-height: 1.6;
    color: #7c8894; 
  }

  .footer-legal strong {
    color: #d6b46f; 
    font-weight: 600;
  }

  @media (max-width: 640px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .footer-legal p {
      max-width: 100%;
      padding-inline: 0.5rem;
    }
  }

  .real-airline-notice {
    color: #a0aab5; /* Soft, desaturated off-white */
    font-size: var(--text-sm);
    margin-top: var(--space-4);
  }

  /* Style the specific link container */
  .real-airline-notice a {
    color: #d6b46f; /* Your signature premium brand accent gold */
    text-decoration: underline;
    
    /* Modern styling control: overrides old-school messy underlines 
      and gives a crisp separation distance between the letters and the line */
    text-underline-offset: 4px; 
    text-decoration-thickness: 1px;
    
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
  }

  /* Add an active interaction glow when a pilot hovers over it */
  .real-airline-notice a:hover {
    color: #f4efe6; /* Brightens to your crisp cream text color */
    text-decoration-color: #f4efe6;
  }

  .leader-card {
    position: relative;
  }


  .leader-card-link {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important; 
    pointer-events: auto !important;
    inset: 0;
    border-radius: inherit;
  }

  .leader-top, 
  .leader-card h4, 
  .leader-meta, 
  .leader-desc {
    position: relative;
    z-index: 1;
    pointer-events: none !important; 
  }

  .leader-card > *:not(.leader-card-link) {
    position: relative;
    z-index: 2;
  }

  .status-badge.check {
  color: #d6b46f; /* Use your exact brand gold/bronze color hex code */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 180, 111, 0.1); /* Subtle glowing background ring */
  padding: 6px;
  border-radius: 50%;
}

.status-badge.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  width: 40px;  /* Enforces a solid, highly visible premium footprint */
  height: 40px; /* Keeps the container perfectly circular */
  border-radius: 50%;
  
  /* Your established design colors */
  background: rgba(214, 180, 111, 0.08); /* Muted sand-gold tint */
  color: #d6b46f; 
}
/* --- IMAGE LIGHTBOX --- */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 99999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(7, 16, 24, 0.92);
      backdrop-filter: blur(12px);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .lightbox.show {
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 1;
    }

    .lightbox-content {
      max-width: 90%;
      max-height: 90vh;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
      transform: scale(0.95);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      
      /* This ensures the entire uncropped picture is visible */
      object-fit: contain; 
    }

    .lightbox.show .lightbox-content {
      transform: scale(1);
    }

    .lightbox-close {
      position: absolute;
      top: 30px;
      right: 40px;
      color: var(--color-text-muted);
      font-size: 45px;
      font-weight: 300;
      cursor: pointer;
      transition: color 0.2s ease;
      z-index: 10000;
      line-height: 1;
    }

    .lightbox-close:hover {
      color: var(--color-primary);
    }

    /* --- GALLERY HOVER ANIMATION --- */
    .photo-card img {
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .photo-card:hover img {
      transform: scale(1.04); /* Creates the subtle zoom */
    }

    @keyframes fadeDown { from {opacity:0; transform:translateY(-18px)} to {opacity:1; transform:translateY(0)} }
    @keyframes fadeUp { from {opacity:0; transform:translateY(28px)} to {opacity:1; transform:translateY(0)} }
    
    .detail-header { display: flex; align-items: center; justify-content: space-between; padding: 36px 48px 0; animation: fadeDown .6s cubic-bezier(.22,1,.36,1) both; }
    
    .back-btn {
      display: inline-flex; align-items: center; gap: 8px; 
      background: var(--color-surface); border: 1px solid var(--color-border); 
      color: var(--color-text); font-family: var(--font-body); font-size: var(--text-xs); 
      font-weight: 700; letter-spacing: 2px; text-transform: uppercase; 
      padding: 10px 20px; border-radius: 6px; text-decoration: none; transition: all .2s;
    }
    .back-btn:hover { background: rgba(214, 180, 111, 0.1); border-color: var(--color-primary); }
    .back-btn svg { width: 14px; height: 14px; fill: var(--color-primary); }
    
    .body { padding: 32px 0 80px; animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .1s both; }
    .map-controls { position: relative; margin-bottom: 20px; z-index: 50; }
    
    .filter-toggle-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px; border-radius: 8px;
      background: var(--color-surface); border: 1px solid var(--color-border);
      color: var(--color-text); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
      cursor: pointer; transition: all 0.2s ease;
    }
    .filter-toggle-btn:hover { background: rgba(214, 180, 111, 0.08); border-color: var(--color-primary); }
    .filter-toggle-btn .chevron { transition: transform 0.3s ease; margin-left: 4px; }
    .filter-toggle-btn.is-open .chevron { transform: rotate(180deg); }

    .filter-dropdown-menu {
      position: absolute; 
      top: calc(100% + 10px); 
      left: 0;
      background: rgba(15, 29, 41, 0.92); 
      backdrop-filter: blur(24px);
      border: 1px solid var(--color-border); 
      border-radius: 16px;
      width: 420px; /* Fixed width for a solid app feel */
      max-width: calc(100vw - 32px);
      padding: 0; /* Removed padding to let the header touch the edges */
      box-shadow: 0 20px 50px rgba(0,0,0,0.6);
      opacity: 0; visibility: hidden; transform: translateY(-10px);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden; /* Keeps the rounded corners clean */
      z-index: 100;
    }

    .filter-dropdown-menu.is-open { 
      opacity: 1; 
      visibility: visible; 
      transform: translateY(0); 
    }

    /* The new structured header */
    .filter-menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 24px;
      background: rgba(0, 0, 0, 0.2);
      border-bottom: 1px solid rgba(214, 180, 111, 0.08);
    }

    .filter-title {
      color: var(--color-text);
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .filter-reset-btn {
      background: transparent;
      border: none;
      color: var(--color-text-muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.2s;
    }

    .filter-reset-btn:hover {
      color: var(--color-primary);
    }

    /* The scrollable body */
    .filter-menu-body {
      padding: 24px;
      max-height: 55vh; /* Prevents it from going off-screen */
      overflow-y: auto;
      display: flex; 
      flex-direction: column; 
      gap: 28px;
    }

    /* Custom minimal scrollbar for the menu */
    .filter-menu-body::-webkit-scrollbar {
      width: 6px;
    }
    .filter-menu-body::-webkit-scrollbar-track {
      background: transparent;
    }
    .filter-menu-body::-webkit-scrollbar-thumb {
      background: rgba(214, 180, 111, 0.2);
      border-radius: 10px;
    }

    .filter-group { 
      display: flex; 
      flex-direction: column; 
      gap: 12px; 
    }

    .filter-label { 
      font-size: 11px; 
      font-weight: 700; 
      letter-spacing: 1.5px; 
      text-transform: uppercase; 
      color: var(--color-text-muted); 
    }

    /* The new structural layout for buttons */
    .filter-options { 
      display: flex; 
      flex-direction: column; 
      gap: 8px; 
    }

    /* Forces the sub-options into a perfectly aligned grid */
    .filter-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 8px;
    }    
    .detail-title { font-size: var(--text-xs); letter-spacing: 5px; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; color: var(--color-text-muted); }
    .detail-rank-name { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 6px; color: var(--color-text); }
    .detail-divider { width: 48px; height: 3px; background: var(--color-primary); border-radius: 2px; margin-bottom: 24px; }
    
    .stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
    .stat-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 12px 20px; text-align: center; min-width: 90px; }
    .stat-box .n { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -1px; color: var(--color-primary); }
    .stat-box .l { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-text-muted); margin-top: 3px; }
    
    .legend { display: flex; gap: 16px; align-items: center; font-size: 11px; color: var(--color-text-muted); font-weight: 600; margin-bottom: 16px; flex-wrap: wrap; }
    .legend-item { display: flex; align-items: center; gap: 6px; }
    .dot-ey { width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); border: 1.5px solid rgba(214, 180, 111, 0.5); }
    .dot-aa { width: 10px; height: 10px; border-radius: 50%; background: #E1002A; border: 1.5px solid #E1002A; }
    
    #globe-wrap { position: relative; background: transparent; display: flex; justify-content: center; }
    canvas { display: block; cursor: grab; border-radius: 50%; }
    canvas:active { cursor: grabbing; }
    
    .tooltip { position: fixed; background: rgba(15, 29, 41, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(214, 180, 111, 0.15); border-radius: 12px; padding: 14px 18px; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(4px); /* Adds a subtle upward float animation */ transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; white-space: nowrap; z-index: 1000; box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); display: flex; flex-direction: column; }
    .tooltip[style*="opacity: 1"] { visibility: visible; transform: translateY(0); }
    #tt-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-text); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 2px; }
    .tooltip .tcountry { font-family: var(--font-body); font-size: 10px; color: var(--color-primary); /* Gold to match the brand */ font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
    .tooltip .tseasonal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

    .filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
    .filter-btn { width: 100%; /* Fill the grid cells perfectly */ padding: 8px 12px; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.02); color: var(--color-text-muted); transition: all 0.2s ease; }
    .filter-btn:hover { background: rgba(214, 180, 111, 0.08); color: var(--color-text); border-color: rgba(214, 180, 111, 0.3); }
    .filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #09131b; }    
    .source-note { margin-top: 12px; font-size: 10px; color: rgba(214, 180, 111, 0.4); letter-spacing: 1px; text-align: center; }
    .mega-footer {
  padding: var(--space-12) 0 var(--space-8);
  background: linear-gradient(180deg, var(--color-bg) 0%, #050a0f 100%);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
}

/* Brand Column Adjustments */
.brand-mark-small {
  width: 40px; 
  height: 40px; 
  border-radius: 10px; 
  background: rgba(214, 180, 111, 0.05); 
  padding: 4px;
}

.mf-top-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr; /* This gives the text column more breathing room */
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.mf-brand-col p {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 42ch;
}

/* Link Columns */
.mf-link-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary); /* Uses your gold */
  margin: 0 0 var(--space-5) 0;
}

.mf-link-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.mf-link-col a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.mf-link-col a:hover {
  color: #C5A768;
  transform: translateY(-2px); /* A subtle physical shift on hover */
}

.mf-link-col a.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mf-link-col a.icon-link svg {
  display: block; /* Flexbox handles the alignment, so we just let it be a block */
  margin: 0;
  flex-shrink: 0; /* Prevents the icon from squishing if the text gets long */
}

/* Divider & Bottom Section */
.mf-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(214,180,111,0.15) 0%, rgba(214,180,111,0.02) 100%);
  margin-bottom: var(--space-6);
}

.mf-bottom-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mf-copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.mf-copyright strong {
  color: var(--color-text);
  font-weight: 600;
}

.mf-legal {
  font-size: 11px;
  color: var(--color-text-faint);
  line-height: 1.6;
  max-width: 140ch;
}

.mf-legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.mf-legal a:hover {
  color: var(--color-text);
}

/* Mobile Responsiveness */
@media (max-width: 980px) {
  .mf-top-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    gap: var(--space-8) var(--space-4);
  }
  .mf-brand-col {
    grid-column: 1 / -1; /* Brand takes full width */
  }
  .mf-brand-col p {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .mf-top-grid {
    grid-template-columns: 1fr; /* Stack everything on phones */
  }
}

.mf-bottom-classic {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.mf-copyright-centered {
  font-size: var(--text-xs);
  color: #7c8894;
  letter-spacing: 0.02em;
}

.mf-short-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto;
  width: 100%;
  max-width: 200px;
}

.mf-legal-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mf-legal-centered p {
  max-width: 1000px;
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: #7c8894; 
}

.mf-legal-centered .real-airline-notice {
  color: #a0aab5;
  font-size: var(--text-sm);
}

.mf-legal-centered .real-airline-notice a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px; 
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mf-legal-centered .real-airline-notice a:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

/* Mobile specific padding for the legal text so it doesn't touch the screen edges */
@media (max-width: 640px) {
  .mf-legal-centered p {
    padding-inline: 1rem;
  }
}
/* --- CODESHARES PAGE STYLES --- */
.page-header { padding: clamp(var(--space-8), 6vw, var(--space-12)) 0 var(--space-8); border-bottom: 1px solid var(--color-border); background: linear-gradient(180deg, #071018 0%, #0b1620 100%); }
.page-header h1 { margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; letter-spacing: -.03em; }
.page-header p { max-width: 65ch; color: var(--color-text-muted); font-size: var(--text-lg); margin: 0; }
.tables-container { display: flex; flex-direction: column; gap: 40px; width: 100%; }
.table-column { display: flex; flex-direction: column; }
.partner-stack { display: grid; gap: var(--space-8); }
.partner-group { padding: var(--space-6); border-radius: 1.8rem; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.partner-card { padding: 1rem 1.25rem; border-radius: 1rem; background: rgba(255,255,255,.02); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: transform var(--transition), border-color var(--transition), background var(--transition); display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.partner-card:hover { transform: translateY(-3px); border-color: rgba(214,180,111,.26); background: rgba(255,255,255,.05); box-shadow: 0 10px 30px rgba(214, 180, 111, 0.15); }
.partner-card h4 { margin: 0; font-family: var(--font-display); font-size: var(--text-base); letter-spacing: -.01em; color: var(--color-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-card .dot { margin-top: 0; /* Re-applying the slightly smaller 8px size from your original codeshare design */ width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(214, 180, 111, 0.08); }
.main-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 20px; margin-bottom: 30px; width: 100%; }
.main-header h2 { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -.03em; color: var(--color-primary-strong);}
.main-header span {color: var(--color-text-muted); font-size: var(--text-sm);}
.sub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; width: 100%; }
.sub-header h3 { color: var(--color-text-muted); margin: 0; font-weight: 400; font-size: 1.4rem; }
.sub-header span {color: var(--color-text-muted); font-size: 0.9rem;}
.tail-logo { height: 40px; width: auto; max-width: 150px; object-fit: contain; margin-left: auto; border-radius: 4px; flex-shrink: 0; }
.tail-logo-white { height: 40px; width: auto; max-width: 150px; object-fit: contain; margin-left: auto; border-radius: 4px; flex-shrink: 0; background-color: #EBE6D6; }

/* Note: Your media queries at the bottom of styles.css will already handle mobile nicely! */