/* ==========================================================================
   The Vegas Vacation — navigation
   thevegasvacation.com

   Pure CSS. Restyles the existing header markup; menu.js, the Bootstrap
   classes and every link are untouched.

   Upload to: /css/tvv_nav.css   and link it from _Layout.cshtml
   ========================================================================== */

/* -------------------------------------------------------------------------
   Navigation refresh — thevegasvacation.com
   Pure CSS. No markup change is required; the existing header, menu.js
   slide-toggle and Bootstrap classes keep working exactly as they are.
   ------------------------------------------------------------------------- */

:root {
    --nav-night: #12123a;
    --nav-night-2: #1b1b52;
    --nav-ink: #d7d8f4;
    --nav-gold: #ff9a27;
    --nav-red: #e90000;
}

/* --------------------------------------------------------------- 1. sticky
   The header used to be position:fixed with a hard-coded 95px margin on the
   banner underneath it. That offset only matched at one breakpoint, so the
   banner slid under the menu whenever the nav wrapped to a second row.
   Sticky positioning keeps the bar pinned while it still occupies its own
   space in the flow, so no offset maths is needed at any width.            */
.header_part.navbar-fixed-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 1040;
}

.banner_part,
.inner_banner_part {
    margin-top: 0 !important;
}

/* ------------------------------------------------------------- 2. top bar */
.top_part {
    padding: 7px 0;
    border-bottom: 0;
    background: linear-gradient(180deg, #e90000 0%, #a60000 100%);
}

.topbar_contact_info { height: auto; }

.topbar_contact_info a {
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    line-height: 1.4;
    transition: opacity .18s ease;
}
.topbar_contact_info a:hover { color: #fff; opacity: .82; text-decoration: none; }

/* ------------------------------------------------------------ 3. the bar */
.navigation_part {
    background: var(--nav-night);
    background-image: none;
    filter: none;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .34);
}

.navigation_container {
    border-top: 0;
    border-bottom: 0;
}

/* the bar gets a little more room than the 1140px content grid so the whole
   menu sits on one line on a desktop screen */
.navigation_part .container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
}

/* the "powered by" badge in the footer is a fixed-width image that pushed the
   page ~7px wider than the viewport on tablets */
.powered_by_block img { max-width: 100%; height: auto; }

.mainWrap {
    width: auto;          /* was a hard 768px at tablet, which overflowed */
    max-width: 100%;
    text-align: center;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 2px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.menu li {
    display: block;
    margin: 0;
    position: relative;
}

.menu li a {
    position: relative;
    display: block;
    font-family: Montserrat, "Oswald", sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--nav-ink);
    background: none;     /* the theme painted an arrow_up_img.jpg here */
    padding: 15px 10px;
    border-radius: 8px;
    transition: color .18s ease, background-color .18s ease;
}

/* the amber underline */
.menu li a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--nav-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s cubic-bezier(.2, .7, .3, 1);
}

.menu li a:hover,
.menu li:hover > a,
.menu li a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}
.menu li a:hover::after,
.menu li:hover > a::after { transform: scaleX(1); }

/* current page — set by the one-line script in the README (optional) */
.menu li a.is-current {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.menu li a.is-current::after { transform: scaleX(1); }

/* BUY NOW is the last item — promote it to a button */
.menu > li:last-child { margin-left: 10px; }

.menu > li:last-child > a {
    background: var(--nav-red);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(233, 0, 0, .34);
}
.menu > li:last-child > a::after { display: none; }
.menu > li:last-child > a:hover,
.menu > li:last-child:hover > a {
    background: #ff1a1a;
    color: #fff;
    box-shadow: 0 10px 26px rgba(233, 0, 0, .46);
}

/* the little arrow image under each item pointed at dropdowns that no longer
   exist; the underline does that job now */
.menu img.menu_down_arrow { display: none; }

/* dropdowns, if any are ever added back */
.menu ul {
    background: var(--nav-night-2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    overflow: hidden;
    padding: 6px;
}
.menu ul li a { color: var(--nav-ink); border: 0; }
.menu ul li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ------------------------------------------------------- 4. tighter fits */
@media (min-width: 992px) and (max-width: 1399px) {
    .menu li { margin: 0; }
    .menu li a { padding: 15px 6px; font-size: 10.2px; letter-spacing: .02em; }
    .menu li a::after { left: 6px; right: 6px; }
    .menu > li:last-child { margin-left: 6px; }
    .menu > li:last-child > a { padding: 11px 14px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .menu li { margin: 0; }
    .menu li a { padding: 11px 8px; font-size: 10.5px; letter-spacing: .04em; }
    .menu li a::after { bottom: 5px; left: 8px; right: 8px; }
    .menu > li:last-child { margin-left: 6px; }
    .menu > li:last-child > a { padding: 9px 15px; }
}

/* ---------------------------------------------------------- 5. the phone */
@media (max-width: 767px) {
    .header_part.navbar-fixed-top {
        position: -webkit-sticky;
        position: sticky;
    }

    .top_part .container .row { display: flex; align-items: center; }
    .topbar_contact_info { text-align: center; }
    .topbar_contact_info a { font-size: 15px; }

    /* the toggle */
    .mobile-menu {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 15px 18px;
        margin: 0;
        background: var(--nav-night);
        color: #fff !important;
        font-family: Montserrat, sans-serif;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .16em;
        text-transform: uppercase;
        text-decoration: none;
    }
    .mobile-menu:hover,
    .mobile-menu:focus { color: #fff !important; text-decoration: none; background: var(--nav-night-2); }

    /* icon-reorder is a Font Awesome 4 glyph; draw our own bars so the
       toggle looks the same even if that icon font ever goes away */
    .mobile-menu i {
        position: relative;
        display: inline-block;
        width: 20px;
        height: 2px;
        background: var(--nav-gold);
        font-size: 0;
        line-height: 0;
        vertical-align: middle;
        flex: 0 0 auto;
    }
    .mobile-menu i::before,
    .mobile-menu i::after {
        content: "";
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        background: var(--nav-gold);
    }
    .mobile-menu i::before { top: -6px; }
    .mobile-menu i::after { top: 6px; }

    /* the drawer — menu.js slide-toggles inline display, so it stays hidden
       until the toggle is tapped and we must not force it visible */
    .menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: var(--nav-night-2);
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .menu li { display: block; margin: 0; width: 100%; }
    .menu li a {
        display: block;
        background: transparent;
        color: var(--nav-ink);
        font-size: 12px;
        letter-spacing: .1em;
        text-align: left;
        padding: 14px 18px;
        border-radius: 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .07);
        border-left: 3px solid transparent;
    }
    .menu li:first-child a { border-top: 0; }
    .menu li a::after { display: none; }
    .menu li a:hover,
    .menu li:hover > a,
    .menu li a.is-current {
        background: rgba(255, 255, 255, .07);
        color: #fff;
        border-left: 3px solid var(--nav-gold);
    }

    .menu > li:last-child { margin: 0; }
    .menu > li:last-child > a {
        margin: 14px 18px 18px;
        padding: 15px 20px;
        text-align: center;
        border: 0;
        border-radius: 999px;
        letter-spacing: .14em;
    }
    .menu > li:last-child > a:hover { border: 0; }
}
