/* =====================================================================
   Great Dubai - shared mobile header (phones / small tablets)

   One layout for the four portal headers (classifieds .new-*, property
   .property-*, jobs .jobs-*, cars #header):

     [ logo / section title ] ............ [ language pill ] [ menu button ]

   Both right-hand controls are 40px tall with the same glass style, so the
   row reads as one bar instead of a logo, a loose dropdown and an icon.
   Inside the menu: login/register first, links, then a full-width "post"
   button.

   Loaded after each header's own <style>, and written with !important where
   it has to beat those inline rules.
   ===================================================================== */

:root {
  --gdm-grad: linear-gradient(100deg, #68299a 0%, #2441b3 58%, #0050a2 100%);
  --gdm-glass: rgba(255, 255, 255, .13);
  --gdm-glass-hover: rgba(255, 255, 255, .22);
  --gdm-line: rgba(255, 255, 255, .28);
  --gdm-h: 40px;
  --gdm-r: 11px;
  /* globe (left) + chevron (right) for the language select */
  --gdm-lang-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
                 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Mobile-only helpers used by the markup added to the headers. */
.gdm-only { display: none !important; }
.jobs-mobile-title { display: none !important; }

@media (max-width: 991px) {

  /* ---- top row: classifieds / property / jobs ------------------------ */
  .new-navbar,
  .property-navbar,
  .jobs-navbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 64px !important;
    padding: 12px 0 !important;
  }

  .new-navbar.menu-open,
  .property-navbar.menu-open,
  .jobs-navbar.menu-open {
    align-items: center !important;
  }

  .new-container,
  .property-container,
  .jobs-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Logo pushes the two controls to the right edge. */
  .new-brand,
  .property-brand {
    order: 0;
    margin: 0 auto 0 0 !important;
    display: inline-flex !important;
    align-items: center;
  }

  .new-brand img,
  .property-brand img {
    height: var(--gdm-h) !important;
    width: auto !important;
    padding: 4px 7px !important;
    background: #fff !important;
    border-radius: var(--gdm-r) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  }

  /* Jobs: the white job bar above already carries the logo, so this row
     gets a section title on the left instead of an empty gap. */
  .jobs-brand { display: none !important; }

  .jobs-mobile-title {
    order: 0;
    margin-right: auto;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
  }

  .jobs-mobile-title .gdm-title-icon {
    width: var(--gdm-h);
    height: var(--gdm-h);
    display: inline-grid;
    place-items: center;
    border-radius: var(--gdm-r);
    background: #fff;
    color: #5b21b6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  }

  .jobs-mobile-title small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    opacity: .8;
    letter-spacing: 0;
    margin-top: 2px;
  }

  /* Language pill */
  .new-lang-wrapper,
  .property-lang-wrapper,
  .jobs-lang-wrapper {
    order: 1;
    display: block !important;
    position: static !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }

  .new-lang-select,
  .property-lang-select,
  .jobs-lang-select,
  .gdm-lang-select {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: var(--gdm-h) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 132px;
    margin: 0 !important;
    padding: 0 28px 0 34px !important;
    border: 1px solid var(--gdm-line) !important;
    border-radius: var(--gdm-r) !important;
    background-color: var(--gdm-glass) !important;
    background-image: var(--gdm-lang-bg) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 11px center, right 9px center !important;
    background-size: 16px 16px, 13px 13px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: calc(var(--gdm-h) - 2px) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .15s ease;
  }

  .new-lang-select:hover,
  .property-lang-select:hover,
  .jobs-lang-select:hover,
  .gdm-lang-select:hover {
    background-color: var(--gdm-glass-hover) !important;
  }

  .new-lang-select:focus-visible,
  .property-lang-select:focus-visible,
  .jobs-lang-select:focus-visible,
  .gdm-lang-select:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px;
  }

  .new-lang-select option,
  .property-lang-select option,
  .jobs-lang-select option,
  .gdm-lang-select option {
    color: #111827;
    background: #fff;
  }

  /* Menu button - same size and style as the language pill */
  .new-toggler,
  .property-toggler,
  .jobs-toggler {
    order: 2;
    position: static !important;
    flex: 0 0 auto;
    width: var(--gdm-h) !important;
    height: var(--gdm-h) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--gdm-line) !important;
    border-radius: var(--gdm-r) !important;
    background: var(--gdm-glass) !important;
    color: #fff !important;
    font-size: 17px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .new-toggler:hover,
  .property-toggler:hover,
  .jobs-toggler:hover {
    background: var(--gdm-glass-hover) !important;
  }

  .new-toggler i,
  .property-toggler i,
  .jobs-toggler i {
    font-size: 17px !important;
    margin: 0 !important;
  }

  /* The opened menu always starts on its own line under the top row. */
  .new-primary-nav.mobile-show,
  .property-primary-nav.mobile-show,
  .jobs-primary-nav.mobile-show {
    order: 3 !important;
    flex-basis: 100% !important;
    margin-top: 6px !important;
  }

  /* "Post" call to action at the bottom of the menu: full width, centred. */
  .new-primary-nav.mobile-show .new-actions,
  .property-primary-nav.mobile-show .property-actions,
  .jobs-primary-nav.mobile-show .jobs-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 6px 0 4px !important;
    padding: 0 !important;
  }

  .new-primary-nav.mobile-show .new-actions .new-btn,
  .property-primary-nav.mobile-show .property-actions .property-btn,
  .jobs-primary-nav.mobile-show .jobs-actions .jobs-btn {
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #4c1d95 !important;
    border: none !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35) !important;
  }

  .new-primary-nav.mobile-show .new-actions .new-btn i,
  .property-primary-nav.mobile-show .property-actions .property-btn i,
  .jobs-primary-nav.mobile-show .jobs-actions .jobs-btn i {
    color: #6d28d9 !important;
  }

  /* Login / register: two equal buttons */
  .new-mobile-auth-buttons,
  .property-mobile-auth-buttons,
  .jobs-mobile-auth-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .new-mobile-auth-btn,
  .property-mobile-auth-btn,
  .jobs-mobile-auth-btn {
    height: 46px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }
}

/* =====================================================================
   Cars header (#header): Bootstrap navbar with its own phone breakpoint.
   Re-skinned to match the other three on phones.
   ===================================================================== */
@media (max-width: 767px) {
  .gdm-only { display: revert !important; }

  /* The social/login strip above the header is replaced by the controls
     in the bar and the login row inside the menu. */
  .gdm-cars-topbar { display: none !important; }

  #header-container,
  #header.navbars {
    background: var(--gdm-grad) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  }

  #header.navbars {
    position: relative;
    padding: 12px 0 !important;
  }

  #header.navbars > .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #header.navbars .rows > .col-md-1 {
    padding: 0 !important;
  }

  #header.navbars .rows > .col-md-1 > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
  }

  #header.navbars .rows > .col-md-1 > .row > .col-8,
  #header.navbars .rows > .col-md-1 > .row > .col-4 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  #header.navbars .rows > .col-md-1 > .row > .col-8 { margin-right: auto !important; }

  #header.navbars .rows > .col-md-1 > .row > .col-4 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #header .navbar-brands img {
    height: var(--gdm-h) !important;
    width: auto !important;
    padding: 4px 7px !important;
    background: #fff !important;
    border-radius: var(--gdm-r) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  }

  #header .navbar-toggler {
    width: var(--gdm-h) !important;
    height: var(--gdm-h) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--gdm-line) !important;
    border-radius: var(--gdm-r) !important;
    background: var(--gdm-glass) !important;
    box-shadow: none !important;
  }

  #header .navbar-toggler .navbar-toggler-icon,
  #header .navbar-toggler .navbar-toggler-icon::before,
  #header .navbar-toggler .navbar-toggler-icon::after {
    background-color: #fff !important;
  }

  #header .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-color: transparent !important;
  }

  /* Opened menu: full-width gradient drawer under the bar, as on the other
     portals (it was positioned inside the padded column, so it sat inset
     and overlapped the bar). */
  #header.navbars > .container-fluid,
  #header.navbars .rows,
  #header.navbars .rows > .col-md-9 {
    position: static !important;
  }

  #header .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--gdm-grad) !important;
    border-top: 1px solid rgba(255, 255, 255, .18) !important;
    box-shadow: 0 14px 28px -10px rgba(15, 10, 50, .5) !important;
    padding: 14px 16px 18px !important;
  }

  #header .navbar-collapse .navbar-nav {
    gap: 2px;
  }

  #header .navbar-collapse .nav-item { margin: 0 !important; }

  #header .navbar-collapse .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 13px 14px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  #header .navbar-collapse .nav-link i {
    width: 22px;
    text-align: center;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 17px;
  }

  #header .navbar-collapse .nav-link:hover,
  #header .navbar-collapse .nav-link:focus {
    background: rgba(255, 255, 255, .12) !important;
  }

  /* Caret pushed to the right edge, like the other portals' chevrons */
  #header .navbar-collapse .dropdown-toggle::after {
    margin-left: auto !important;
    border-top-color: #fff !important;
    opacity: .85;
  }

  #header .navbar-collapse .dropdown-menu {
    margin: 4px 0 8px 36px !important;
    width: calc(100% - 36px) !important;
    padding: 6px !important;
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-left: 3px solid rgba(255, 255, 255, .55) !important;
    border-radius: 10px !important;
  }

  #header .navbar-collapse .dropdown-item,
  #header .navbar-collapse .brand-item {
    color: #fff !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-size: 13.5px;
  }

  #header .navbar-collapse .dropdown-item:hover,
  #header .navbar-collapse .brand-item:hover {
    background: rgba(255, 255, 255, .14) !important;
  }

  #header .navbar-collapse .brand-name { color: #fff !important; }

  /* Login / register row (added to the top of the cars menu) */
  .gdm-auth {
    list-style: none;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 0 14px !important;
    margin: 0 0 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }

  .gdm-auth a,
  .gdm-auth button {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
  }

  .gdm-auth .gdm-ghost {
    color: #fff !important;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
  }

  .gdm-auth a,
  .gdm-auth button,
  .gdm-cta a {
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  /* Same pair as the classifieds/property/jobs menus: glass + gradient */
  .gdm-auth .gdm-solid {
    color: #fff !important;
    background: linear-gradient(135deg, #7c3dae 0%, #2e4bbd 60%, #0164b6 100%);
    border: 1px solid rgba(255, 255, 255, .2);
  }

  /* "Post my car" at the bottom of the menu */
  .gdm-cta {
    list-style: none;
    margin-top: 10px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, .22);
  }

  .gdm-cta a {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: #fff;
    color: #4c1d95 !important;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
  }

  .gdm-cta a i { color: #6d28d9; }
}

/* Very narrow phones: keep the row on one line. */
@media (max-width: 360px) {
  .new-lang-select,
  .property-lang-select,
  .jobs-lang-select,
  .gdm-lang-select {
    max-width: 104px;
    padding-left: 30px !important;
    font-size: 12px !important;
  }

  .jobs-mobile-title small { display: none; }
}

/* =====================================================================
   Drawer polish ("premium" pass) - classifieds / property / jobs.
   Hairlines instead of solid white rules, icons in glass tiles, each
   sub-menu as one frosted panel with hairline rows (instead of a stack
   of bordered boxes), quiet section labels, text-link "view more".
   ===================================================================== */
@media (max-width: 991px) {

  .new-primary-nav.mobile-show,
  .property-primary-nav.mobile-show,
  .jobs-primary-nav.mobile-show {
    border-top: 1px solid rgba(255, 255, 255, .16) !important;
    padding: 14px 0 6px !important;
    gap: 2px !important;
  }

  /* account row */
  .new-mobile-auth,
  .property-mobile-auth,
  .jobs-mobile-auth {
    border-bottom: 1px solid rgba(255, 255, 255, .14) !important;
    padding: 0 0 14px !important;
    margin: 0 0 8px !important;
  }

  .new-mobile-auth-btn,
  .property-mobile-auth-btn,
  .jobs-mobile-auth-btn {
    height: 44px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .new-mobile-auth-btn.login,
  .property-mobile-auth-btn.login,
  .jobs-mobile-auth-btn.login {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    color: #fff !important;
  }

  .new-mobile-auth-btn.register,
  .property-mobile-auth-btn.register,
  .jobs-mobile-auth-btn.register {
    background: #fff !important;
    border: 1px solid #fff !important;
    color: #4c1d95 !important;
  }

  .new-mobile-auth-btn.register i,
  .property-mobile-auth-btn.register i,
  .jobs-mobile-auth-btn.register i { color: #6d28d9 !important; }

  /* top-level rows */
  .new-primary-nav.mobile-show .new-nav-item,
  .property-primary-nav.mobile-show .property-nav-item,
  .jobs-primary-nav.mobile-show .jobs-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .new-primary-nav.mobile-show .new-nav-link,
  .property-primary-nav.mobile-show .property-nav-link,
  .jobs-primary-nav.mobile-show .jobs-nav-link {
    min-height: 56px !important;
    padding: 8px 6px !important;
    gap: 14px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    transform: none !important;
  }

  .new-primary-nav.mobile-show .new-nav-link:active,
  .property-primary-nav.mobile-show .property-nav-link:active,
  .jobs-primary-nav.mobile-show .jobs-nav-link:active {
    background: rgba(255, 255, 255, .08) !important;
  }

  /* icon in a glass tile */
  .new-primary-nav.mobile-show .new-nav-icon,
  .property-primary-nav.mobile-show .property-nav-icon,
  .jobs-primary-nav.mobile-show .jobs-nav-icon {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    color: #fff !important;
    font-size: 15px !important;
    opacity: 1 !important;
  }

  /* chevron: small, muted, right edge */
  .new-primary-nav.mobile-show .new-dropdown-arrow,
  .property-primary-nav.mobile-show .property-dropdown-arrow,
  .jobs-primary-nav.mobile-show .jobs-dropdown-arrow {
    margin-left: auto !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, .7) !important;
  }

  /* current page: soft glass + thin accent, not a loud gradient block */
  .new-primary-nav.mobile-show .new-nav-link.active,
  .property-primary-nav.mobile-show .property-nav-link.active,
  .jobs-primary-nav.mobile-show .jobs-nav-link.active {
    background: rgba(255, 255, 255, .12) !important;
    box-shadow: inset 3px 0 0 #fff !important;
  }

  .new-primary-nav.mobile-show .new-nav-link.active .new-nav-icon,
  .property-primary-nav.mobile-show .property-nav-link.active .property-nav-icon,
  .jobs-primary-nav.mobile-show .jobs-nav-link.active .jobs-nav-icon {
    background: #fff !important;
    color: #5b21b6 !important;
  }

  /* sub-menu: one frosted panel */
  .new-primary-nav.mobile-show .new-dropdown.active > .new-dropdown-menu,
  .property-primary-nav.mobile-show .property-dropdown.active > .property-dropdown-menu,
  .jobs-primary-nav.mobile-show .jobs-dropdown.active > .jobs-dropdown-menu {
    margin: 2px 0 12px 50px !important;
    width: auto !important;
    padding: 4px 0 !important;
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  }

  .new-primary-nav.mobile-show .new-dropdown-menu::after,
  .property-primary-nav.mobile-show .property-dropdown-menu::after,
  .jobs-primary-nav.mobile-show .jobs-dropdown-menu::after {
    display: none !important;
  }

  /* sub-menu rows: plain text with hairlines between them */
  .new-primary-nav.mobile-show .new-dropdown-menu .new-dropdown-item,
  .new-primary-nav.mobile-show .new-dropdown-menu .new-category-item,
  .property-primary-nav.mobile-show .property-dropdown-item,
  .jobs-primary-nav.mobile-show .jobs-dropdown-item,
  .jobs-primary-nav.mobile-show .jobs-column li a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
  }

  .new-primary-nav.mobile-show .new-dropdown-menu > :last-child,
  .property-primary-nav.mobile-show .property-dropdown-menu > :last-child,
  .jobs-primary-nav.mobile-show .jobs-column li:last-child a {
    border-bottom: none !important;
  }

  .new-primary-nav.mobile-show .new-dropdown-menu .new-dropdown-item:active,
  .new-primary-nav.mobile-show .new-dropdown-menu .new-category-item:active,
  .property-primary-nav.mobile-show .property-dropdown-item:active,
  .jobs-primary-nav.mobile-show .jobs-column li a:active {
    background: rgba(255, 255, 255, .1) !important;
  }

  /* classifieds categories: icon + name + count on one line */
  .new-primary-nav.mobile-show .gd-mega .gd-mega-item {
    gap: 12px !important;
    padding: 8px 14px !important;
  }

  .new-primary-nav.mobile-show .gd-mega-grid .gd-mega-item:last-child { border-bottom: none !important; }

  .new-primary-nav.mobile-show .gd-mega-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid !important;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    opacity: 1;
  }

  .new-primary-nav.mobile-show .gd-mega-count {
    margin-left: auto;
    background: rgba(255, 255, 255, .14);
    color: #fff;
  }

  /* jobs mega menu: section labels + "view more" */
  .jobs-primary-nav.mobile-show .jobs-column {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .jobs-primary-nav.mobile-show .jobs-column + .jobs-column {
    border-top: 1px solid rgba(255, 255, 255, .14) !important;
  }

  .jobs-primary-nav.mobile-show .jobs-column ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .jobs-primary-nav.mobile-show .jobs-column-title {
    margin: 0 !important;
    padding: 14px 16px 6px !important;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  .jobs-primary-nav.mobile-show .jobs-view-more,
  .jobs-primary-nav.mobile-show .jobs-column li a.jobs-view-more {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 16px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #e9d5ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  .jobs-primary-nav.mobile-show .jobs-view-more::after {
    content: "\2192";
    margin-left: 6px;
  }

  /* bottom CTA block */
  .new-primary-nav.mobile-show .new-actions,
  .property-primary-nav.mobile-show .property-actions,
  .jobs-primary-nav.mobile-show .jobs-actions {
    border-top: none !important;
    margin-top: 14px !important;
  }
}

/* Cars drawer: same hairline rhythm, glass icon tiles, frosted sub-menu */
@media (max-width: 767px) {
  #header .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  #header .navbar-collapse .gdm-auth,
  #header .navbar-collapse .gdm-cta { border-bottom: none; }

  #header .navbar-collapse .nav-link {
    min-height: 56px;
    padding: 8px 6px !important;
    font-size: 13.5px !important;
    letter-spacing: .07em;
  }

  #header .navbar-collapse .nav-link > i {
    flex: 0 0 36px;
    width: 36px !important;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff !important;
    font-size: 15px !important;
  }

  #header .navbar-collapse .dropdown-menu {
    margin: 2px 0 12px 50px !important;
    width: auto !important;
    padding: 4px 0 !important;
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 14px !important;
  }

  #header .navbar-collapse .dropdown-item {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    font-size: 14px !important;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
  }

  #header .navbar-collapse .dropdown-menu > .dropdown-item:last-child { border-bottom: none !important; }

  .gdm-auth .gdm-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .42);
  }

  .gdm-auth .gdm-solid {
    background: #fff;
    border: 1px solid #fff;
    color: #4c1d95 !important;
  }

  .gdm-auth .gdm-solid i { color: #6d28d9; }

  .gdm-auth a,
  .gdm-auth button {
    height: 44px;
    font-size: 13px;
    letter-spacing: .06em;
  }
}

/* Sub-menu panels: fit inside the drawer (they kept a 100% width on top of
   the 50px indent and ran past the right edge). */
@media (max-width: 991px) {
  .new-primary-nav.mobile-show .new-dropdown.active > .new-dropdown-menu,
  .property-primary-nav.mobile-show .property-dropdown.active > .property-dropdown-menu,
  .jobs-primary-nav.mobile-show .jobs-dropdown.active > .jobs-dropdown-menu {
    box-sizing: border-box !important;
    width: calc(100% - 50px) !important;
    max-width: calc(100% - 50px) !important;
    min-width: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  .new-primary-nav.mobile-show .gd-mega-grid { max-height: 340px !important; padding: 0 !important; }
}
@media (max-width: 767px) {
  #header .navbar-collapse .dropdown-menu {
    box-sizing: border-box !important;
    width: calc(100% - 50px) !important;
    max-width: calc(100% - 50px) !important;
  }
}

@media (max-width: 767px) {
  /* last nav row already draws a hairline; no second rule above the CTA */
  .gdm-cta { border-top: none !important; padding-top: 6px !important; }
}

/* =====================================================================
   Colour: deep midnight-indigo base with the brand gradient as accent.
   The full-strength purple->blue gradient on the bar AND the whole open
   menu was loud, and on /classified it ran straight into the hero, which
   uses the same gradient. Brand colours now live in the accents: a thin
   gradient line under the bar, a soft purple glow, and the "Post" button.
   Change the palette here only.
   ===================================================================== */
:root {
  --gdm-ink-1: #1a1442;               /* deep indigo (top-left)       */
  --gdm-ink-2: #121033;               /* midnight (middle)            */
  --gdm-ink-3: #0d1838;               /* navy (bottom-right)          */
  --gdm-accent: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 55%, #06b6d4 100%);
  --gdm-cta: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  --gdm-surface:
    radial-gradient(120% 70% at 100% 0%, rgba(139, 92, 246, .28) 0%, rgba(139, 92, 246, 0) 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(37, 99, 235, .22) 0%, rgba(37, 99, 235, 0) 60%),
    linear-gradient(160deg, var(--gdm-ink-1) 0%, var(--gdm-ink-2) 55%, var(--gdm-ink-3) 100%);
}

@media (max-width: 991px) {
  .new-header-sticky,
  .property-header-sticky,
  .jobs-header-sticky {
    background: var(--gdm-surface) !important;
    position: sticky;
    box-shadow: 0 8px 24px -12px rgba(8, 6, 30, .55) !important;
    border-bottom: none !important;
  }

  /* thin brand line under the bar (stays at the bottom when the menu opens) */
  .new-header-sticky::after,
  .property-header-sticky::after,
  .jobs-header-sticky::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gdm-accent);
    pointer-events: none;
  }

  /* glass controls tuned for the darker base */
  .new-lang-select,
  .property-lang-select,
  .jobs-lang-select,
  .new-toggler,
  .property-toggler,
  .jobs-toggler {
    background-color: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .18) !important;
  }

  .new-primary-nav.mobile-show .new-nav-icon,
  .property-primary-nav.mobile-show .property-nav-icon,
  .jobs-primary-nav.mobile-show .jobs-nav-icon {
    background: rgba(139, 92, 246, .16) !important;
    border-color: rgba(167, 139, 250, .22) !important;
    color: #ddd6fe !important;
  }

  .new-primary-nav.mobile-show .new-dropdown.active > .new-dropdown-menu,
  .property-primary-nav.mobile-show .property-dropdown.active > .property-dropdown-menu,
  .jobs-primary-nav.mobile-show .jobs-dropdown.active > .jobs-dropdown-menu {
    background: rgba(255, 255, 255, .05) !important;
    border-color: rgba(255, 255, 255, .1) !important;
  }

  .new-primary-nav.mobile-show .new-nav-link.active,
  .property-primary-nav.mobile-show .property-nav-link.active,
  .jobs-primary-nav.mobile-show .jobs-nav-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(139, 92, 246, 0)) !important;
    box-shadow: inset 3px 0 0 #a78bfa !important;
  }

  .jobs-primary-nav.mobile-show .jobs-column-title { color: rgba(196, 181, 253, .75) !important; }
  .jobs-primary-nav.mobile-show .jobs-view-more,
  .jobs-primary-nav.mobile-show .jobs-column li a.jobs-view-more { color: #c4b5fd !important; }

  /* "Post" button: brand gradient, now the brightest thing in the menu */
  .new-primary-nav.mobile-show .new-actions .new-btn,
  .property-primary-nav.mobile-show .property-actions .property-btn,
  .jobs-primary-nav.mobile-show .jobs-actions .jobs-btn {
    background: var(--gdm-cta) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  }

  .new-primary-nav.mobile-show .new-actions .new-btn i,
  .property-primary-nav.mobile-show .property-actions .property-btn i,
  .jobs-primary-nav.mobile-show .jobs-actions .jobs-btn i { color: #fff !important; }
}

@media (max-width: 767px) {
  #header-container,
  #header.navbars {
    background: var(--gdm-surface) !important;
    box-shadow: 0 8px 24px -12px rgba(8, 6, 30, .55) !important;
  }

  #header.navbars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gdm-accent);
    pointer-events: none;
  }

  #header .navbar-collapse {
    background: var(--gdm-surface) !important;
    border-top: none !important;
  }

  #header .navbar-toggler,
  .gdm-lang-select {
    background-color: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .18) !important;
  }

  #header .navbar-collapse .nav-link > i {
    background: rgba(139, 92, 246, .16);
    border-color: rgba(167, 139, 250, .22);
    color: #ddd6fe !important;
  }

  #header .navbar-collapse .dropdown-menu {
    background: rgba(255, 255, 255, .05) !important;
    border-color: rgba(255, 255, 255, .1) !important;
  }

  .gdm-cta a {
    background: var(--gdm-cta);
    color: #fff !important;
    box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
  }

  .gdm-cta a i { color: #fff; }
}

/* =====================================================================
   Language picker (scripts/gd-lang-menu.js): replaces the operating
   system's plain <select> list with a menu that matches the header.
   The native select stays in the DOM, invisible, for the switch logic.
   ===================================================================== */
.gdm-lang {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.gdm-lang > select {
  position: absolute !important;
  inset: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.gdm-lang-btn {
  height: var(--gdm-h);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--gdm-r);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}

.gdm-lang-btn:hover,
.gdm-lang.is-open .gdm-lang-btn {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
}

.gdm-lang-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gdm-lang-globe { flex: 0 0 auto; opacity: .95; }
.gdm-lang-caret { flex: 0 0 auto; opacity: .85; transition: transform .2s ease; }
.gdm-lang.is-open .gdm-lang-caret { transform: rotate(180deg); }

.gdm-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  min-width: 212px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 16px;
  box-shadow: 0 24px 48px -14px rgba(12, 8, 40, .45), 0 4px 12px rgba(12, 8, 40, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.gdm-lang.is-open .gdm-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

/* little pointer towards the button */
.gdm-lang-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, .06);
  border-top: 1px solid rgba(15, 23, 42, .06);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.gdm-lang-head {
  padding: 8px 10px 6px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gdm-lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease;
}

.gdm-lang-opt:hover,
.gdm-lang-opt:focus-visible {
  background: #f5f3ff;
  outline: none;
}

.gdm-lang-code {
  flex: 0 0 auto;
  width: 34px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.gdm-lang-name { flex: 1; min-width: 0; }

.gdm-lang-check {
  flex: 0 0 auto;
  color: #7c3aed;
  opacity: 0;
}

.gdm-lang-opt.is-selected { background: #f5f3ff; color: #4c1d95; }
.gdm-lang-opt.is-selected .gdm-lang-code {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
}
.gdm-lang-opt.is-selected .gdm-lang-check { opacity: 1; }

/* RTL pages: open towards the other side */
[dir="rtl"] .gdm-lang-menu { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .gdm-lang-menu::before { right: auto; left: 22px; }
[dir="rtl"] .gdm-lang-opt { text-align: right; }

@media (max-width: 360px) {
  .gdm-lang-btn { padding: 0 9px; gap: 6px; font-size: 12px; }
}

/* picker inherits text-align from the cars bar (col-4 text-right) */
.gdm-lang-menu, .gdm-lang-head { text-align: left; }
[dir="rtl"] .gdm-lang-menu, [dir="rtl"] .gdm-lang-head { text-align: right; }

/* Homepage menu has two actions: keep "Post ad" as the one bright button,
   show "Upload CV" as a quieter outline button underneath. */
@media (max-width: 991px) {
  .new-primary-nav.mobile-show .new-actions .new-btn.new-btn-upload {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    box-shadow: none !important;
    color: #fff !important;
  }
}
