/* Charter mega menu. Reuses the About menu's left-column system. */

.bekaa-charter-map-megamenu {
  display: none;
}

@media only screen and (min-width: 1141px) {
  :is(#menu-item-8839, #menu-item-20369).has-mega-menu > ul.sub-menu {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    overflow: hidden;
    padding-bottom: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(17, 23, 31, 0.12);
  }

  :is(#menu-item-8839, #menu-item-20369).has-mega-menu > ul.sub-menu > li {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 20% minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  .bekaa-charter-map-megamenu {
    --charter-ink: #17191d;
    --charter-muted: #55595f;
    --charter-line: rgba(23, 25, 29, 0.1);
    --charter-red: var(--bekaa-red, #ec1d25);
    --charter-copy-gutter: clamp(34px, 3vw, 52px);
    --charter-editorial-width: 512px;
    height: 447px;
    min-height: 447px;
  }

  .bekaa-charter-map-megamenu > .bekaa-charter-map__content {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .bekaa-charter-map__content,
  .bekaa-charter-map__content * {
    box-sizing: border-box;
  }

  .bekaa-charter-map__content {
    position: relative;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 56px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-left: 1px solid var(--charter-line);
    background: #fff;
    color: var(--charter-ink);
  }

  .bekaa-charter-map__hero {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: var(--charter-ink) !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  .bekaa-charter-map__picture {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    width: auto;
    height: 100%;
    aspect-ratio: 1823 / 863;
  }

  .bekaa-charter-map__picture img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    object-fit: contain;
    object-position: right center;
  }

  .bekaa-charter-map__wash {
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.99) 64%, rgba(255, 255, 255, 0.72) 84%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
  }

  .bekaa-charter-map__copy {
    position: absolute;
    z-index: 3;
    top: 42px;
    left: var(--charter-copy-gutter);
    display: flex !important;
    width: min(var(--charter-editorial-width), 47%);
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
    pointer-events: none;
  }

  .bekaa-charter-map__title {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--charter-ink);
    font-family: var(--bekaa-display, "Gilda Display", gilda-display, Georgia, "Times New Roman", serif) !important;
    font-size: clamp(45px, 3.4vw, 58px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 0.98;
    text-align: left !important;
  }

  .bekaa-charter-map__title-stop {
    display: inline !important;
    color: var(--charter-red) !important;
  }

  .bekaa-charter-map__dek {
    display: block;
    margin-top: 14px;
    color: var(--charter-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 450;
    letter-spacing: 0.005em;
    line-height: 1.35;
    text-align: left !important;
  }

  .bekaa-charter-map__markers {
    position: absolute;
    z-index: 2;
    inset: 0 0 0 auto;
    width: auto;
    height: 100%;
    aspect-ratio: 1823 / 863;
    pointer-events: none;
  }

  .bekaa-charter-map__marker {
    position: absolute;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: var(--charter-ink);
    white-space: nowrap;
  }

  .bekaa-charter-map__marker i {
    position: relative;
    display: block !important;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    transform: rotate(-45deg);
    border-radius: 50% 50% 50% 0;
    background: var(--charter-red);
    box-shadow: 0 1px 3px rgba(23, 25, 29, 0.12);
  }

  .bekaa-charter-map__marker i::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    content: "";
  }

  .bekaa-charter-map__marker b {
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
  }

  .bekaa-charter-map__marker--noosa { top: 11%; left: 72%; }
  .bekaa-charter-map__marker--sunshine { top: 27%; left: 74%; }
  .bekaa-charter-map__marker--brisbane { top: 52%; left: 70%; }
  .bekaa-charter-map__marker--gold-coast { top: 70%; left: 77%; }
  .bekaa-charter-map__marker--byron { top: 87%; left: 80%; }
  .bekaa-charter-map__marker--toowoomba { top: 62%; left: 48%; }

  .bekaa-charter-map__benefits {
    position: absolute;
    z-index: 3;
    top: 245px;
    bottom: auto;
    left: var(--charter-copy-gutter);
    display: grid !important;
    width: min(var(--charter-editorial-width), 47%);
    height: 58px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    color: var(--charter-ink);
    pointer-events: none;
  }

  .bekaa-charter-map__benefit {
    position: relative;
    display: flex !important;
    min-width: 0;
    height: 58px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    padding: 0 12px;
    text-align: left;
  }

  .bekaa-charter-map__benefit:first-child {
    padding-left: 0;
  }

  .bekaa-charter-map__benefit:last-child {
    padding-right: 0;
  }

  .bekaa-charter-map__benefit:not(:last-child)::after {
    position: absolute;
    top: 5px;
    right: 0;
    width: 1px;
    height: 48px;
    background: var(--charter-line);
    content: "";
  }

  .bekaa-charter-map__benefit svg {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
  }

  .bekaa-charter-map__benefit > span {
    display: block !important;
    min-height: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
  }

  .bekaa-charter-map__footer {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 var(--charter-copy-gutter);
    border-top: 1px solid var(--charter-line);
    background: #fff;
  }

  .bekaa-charter-map__footer p {
    display: flex !important;
    min-width: 0;
    height: 18px;
    align-items: center;
    margin: 0 !important;
    color: var(--charter-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: clamp(11px, 0.83vw, 14px);
    font-weight: 450;
    letter-spacing: 0.005em;
    line-height: 18px;
    text-align: left !important;
  }

  .bekaa-charter-map__footer > a {
    display: inline-flex !important;
    flex: 0 0 auto;
    height: 18px;
    align-items: center;
    gap: 13px;
    color: var(--charter-red) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 650;
    letter-spacing: 0.09em;
    line-height: 18px;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: uppercase;
  }

  .bekaa-charter-map__footer > a span {
    display: inline-flex !important;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 300;
    line-height: 18px;
    transition: transform 0.28s var(--bekaa-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
  }

  .bekaa-charter-map__footer > a:hover span,
  .bekaa-charter-map__footer > a:focus-visible span {
    transform: translateX(4px);
  }

  .bekaa-charter-map__hero:focus-visible,
  .bekaa-charter-map__footer > a:focus-visible {
    outline: 2px solid var(--charter-red);
    outline-offset: -2px;
  }
}

@media only screen and (min-width: 1141px) and (max-width: 1399px) {
  .bekaa-charter-map-megamenu {
    --charter-editorial-width: 455px;
  }

  .bekaa-charter-map__copy {
    top: 37px;
  }

  .bekaa-charter-map__title {
    font-size: clamp(42px, 3.9vw, 50px);
  }

  .bekaa-charter-map__benefits {
    top: 238px;
    width: min(var(--charter-editorial-width), 50%);
  }

  .bekaa-charter-map__benefit {
    padding: 0 7px;
  }

  .bekaa-charter-map__footer {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bekaa-charter-map__footer > a span {
    transition: none;
  }
}
