/* ============================================================
   DYMOND TRAVEL SERVICES
   Public MyTrip Promotion Styles
   ============================================================ */

:root {
    --navy: #172033;
    --blue: #164f86;
    --blue-dark: #103e6a;
    --light-blue: #f5f9ff;
    --text: #1d2939;
    --muted: #667085;
    --line: #e4e7ec;
    --white: #ffffff;
}


/* ============================================================
   RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: #ffffff;
}

img {
    max-width: 100%;
}

a {
    color: var(--blue);
}


/* ============================================================
   GLOBAL CONTAINER
   ============================================================ */

.container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    position: relative;

    width: 100%;

    background: #ffffff;

    border-bottom:
        1px solid var(--line);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .05);

    z-index: 1000;
}


.site-header .nav {
    min-height: 118px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* ============================================================
   BRAND
   ============================================================ */

.brand {
    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--navy);

    text-decoration: none;

    flex-shrink: 0;
}


.brand:hover {
    text-decoration: none;
}


.site-logo {
    display: block;

    width: auto;
    height: 100px;

    max-height: 100px;

    object-fit: contain;
}


.brand-text {
    max-width: 240px;

    color: var(--navy);

    font-size: 17px;
    font-weight: 700;

    line-height: 1.25;
}


.brand-fallback {
    display: flex;
    flex-direction: column;

    color: var(--navy);
}


.brand-fallback strong {
    font-size: 20px;
}


.brand-fallback span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}


/* ============================================================
   MAIN NAVIGATION
   ============================================================ */

.nav-links {
    display: flex;
    align-items: center;

    gap: 24px;
}


.nav-links > a,
.dropdown > a {
    color: var(--navy);

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color .15s ease,
        background .15s ease;
}


.nav-links > a:hover,
.dropdown > a:hover {
    color: var(--blue);

    text-decoration: none;
}


/* ============================================================
   CLIENT PORTAL CTA
   ============================================================ */

.nav-links .cta {
    padding: 11px 17px;

    border-radius: 8px;

    color: #ffffff;

    background: var(--blue);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, .08);
}


.nav-links .cta:hover {
    color: #ffffff;

    background: var(--blue-dark);
}


/* ============================================================
   DROPDOWN
   ============================================================ */

.dropdown {
    position: relative;

    display: inline-block;
}


.dropdown > a::after {
    content: " ▼";

    margin-left: 3px;

    font-size: 9px;
}


.dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    display: none;

    min-width: 260px;

    padding: 8px 0;

    border:
        1px solid var(--line);

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .14);

    z-index: 9999;
}


/*
 * Invisible bridge so the menu does not disappear
 * while moving the mouse from About to the dropdown.
 */

.dropdown-menu::before {
    content: "";

    position: absolute;

    top: -12px;
    left: 0;

    width: 100%;
    height: 12px;
}


.dropdown-menu a {
    display: block;

    padding: 11px 16px;

    color: #333333;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;

    text-decoration: none;

    white-space: nowrap;
}


.dropdown-menu a:hover {
    color: var(--blue);

    background: #f5f7fa;

    text-decoration: none;
}


.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}


/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    width: 100%;

    margin-top: 0;

    padding: 28px 0;

    color: #ffffff;

    background: var(--navy);
}


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.footer-nav {
    display: flex;
    align-items: center;

    gap: 20px;
}


.footer-nav a {
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}


.footer-nav a:hover {
    text-decoration: underline;
}


/* ============================================================
   MYTRIP PROMOTION PAGE
   ============================================================ */

.mytrip-promotion {
    width: 100%;

    color: var(--text);
}


.promotion-wrap {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* ============================================================
   PROMOTION HERO
   ============================================================ */

.promotion-hero {
    padding: 64px 0;

    background:
        linear-gradient(
            135deg,
            #f5f9ff 0%,
            #ffffff 100%
        );

    border-bottom:
        1px solid #edf1f5;
}


.promotion-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--blue);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


.promotion-hero h1 {
    max-width: 900px;

    margin: 8px 0 16px;

    color: var(--navy);

    font-size:
        clamp(
            2.2rem,
            5vw,
            3.5rem
        );

    line-height: 1.08;
}


.promotion-lead {
    max-width: 800px;

    margin: 0 0 26px;

    color: #475467;

    font-size: 1.15rem;

    line-height: 1.7;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.promotion-btn {
    display: inline-block;

    padding: 12px 18px;

    border-radius: 8px;

    color: #ffffff !important;

    background: var(--navy);

    font-weight: 800;

    text-decoration: none !important;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


.promotion-btn:hover {
    background: var(--blue);

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .12);
}


/* ============================================================
   PROMOTION CONTENT
   ============================================================ */

.promotion-section {
    padding: 48px 0 64px;

    background: #ffffff;
}


.promotion-content {
    color: var(--text);

    font-size: 16px;

    line-height: 1.7;
}


.promotion-content h2 {
    margin:
        36px
        0
        14px;

    color: var(--navy);

    font-size: 1.8rem;

    line-height: 1.25;
}


.promotion-content h3 {
    margin:
        28px
        0
        10px;

    color: var(--navy);

    font-size: 1.25rem;
}


.promotion-content p {
    margin:
        0
        0
        16px;

    line-height: 1.7;
}


.promotion-content ul,
.promotion-content ol {
    margin:
        0
        0
        20px;

    padding-left: 24px;

    line-height: 1.7;
}


.promotion-content li {
    margin-bottom: 7px;
}


/* ============================================================
   OFFER CALLOUT
   ============================================================ */

.offer-callout {
    margin: 26px 0;

    padding: 25px;

    border-left:
        5px solid var(--blue);

    border-radius: 10px;

    background: #f4f8fc;
}


.offer-highlight {
    color: var(--blue);

    font-size: 1.1rem;

    font-weight: 800;
}


/* ============================================================
   SAILING SEARCH
   ============================================================ */

.sailing-search {
    margin-top: 48px;
}


.sailing-search-header {
    margin-bottom: 20px;
}


.sailing-search-header h2 {
    margin-bottom: 7px;
}


.sailing-search-header p {
    margin: 0;

    color: var(--muted);
}


/* ============================================================
   FILTERS
   ============================================================ */

.sailing-filters {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin: 25px 0;

    padding: 20px;

    border:
        1px solid #edf0f3;

    border-radius: 12px;

    background: #f8fafc;
}


.sailing-filter-group {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.sailing-filter-group label {
    color: #344054;

    font-size: 13px;
    font-weight: 800;
}


.sailing-filter-group select {
    width: 100%;

    padding: 11px 12px;

    border:
        1px solid var(--line);

    border-radius: 8px;

    color: var(--text);

    background: #ffffff;

    font: inherit;
}


/* ============================================================
   SAILING CARDS
   ============================================================ */

.promotion-sailing {
    display: grid;

    grid-template-columns:
        130px
        minmax(0, 1fr)
        200px;

    gap: 20px;

    align-items: start;

    margin: 12px 0;

    padding: 22px;

    border:
        1px solid var(--line);

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, .03);
}


.sailing-date {
    color: var(--muted);
}


.sailing-date strong {
    display: block;

    color: var(--blue);

    font-size: 1.5rem;

    line-height: 1.2;
}


.sailing-details h3 {
    margin:
        0
        0
        8px;

    color: var(--navy);
}


.sailing-details p {
    margin: 0;
}


.sailing-badge {
    display: inline-block;

    margin-top: 10px;

    padding: 5px 9px;

    border-radius: 999px;

    color: var(--blue);

    background: #eef4ff;

    font-size: 12px;

    font-weight: 700;
}


.sailing-save {
    text-align: right;
}


.sailing-save strong {
    display: block;

    color: var(--blue);

    font-size: 1.3rem;
}


.sailing-save span {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 13px;
}


/* ============================================================
   NO RESULTS
   ============================================================ */

.no-sailing-results {
    display: none;

    margin: 25px 0;

    padding: 25px;

    border-radius: 12px;

    background: #f8fafc;

    text-align: center;
}


/* ============================================================
   TERMS
   ============================================================ */

.promotion-terms {
    margin-top: 48px;

    padding-top: 30px;

    border-top:
        1px solid var(--line);

    color: #475467;

    line-height: 1.65;
}


.promotion-terms h2 {
    margin-top: 0;

    color: var(--navy);
}


/* ============================================================
   BOTTOM CTA
   ============================================================ */

.promotion-bottom-cta {
    margin-top: 48px;

    padding: 34px;

    border:
        1px solid #e6edf5;

    border-radius: 14px;

    background: #f5f9ff;

    text-align: center;
}


.promotion-bottom-cta h2 {
    margin:
        0
        0
        10px;

    color: var(--navy);
}


.promotion-bottom-cta p {
    max-width: 720px;

    margin:
        0 auto
        22px;

    color: #475467;
}


.promotion-back {
    margin-top: 32px;

    text-align: center;
}


.promotion-back a {
    color: var(--blue);

    font-weight: 700;

    text-decoration: none;
}


.promotion-back a:hover {
    text-decoration: underline;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 950px) {

    .site-header .nav {
        flex-direction: column;

        justify-content: center;

        padding-top: 15px;
        padding-bottom: 18px;
    }


    .brand {
        justify-content: center;
    }


    .nav-links {
        justify-content: center;

        flex-wrap: wrap;
    }


    .promotion-sailing {
        grid-template-columns:
            110px
            minmax(0, 1fr)
            180px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .container,
    .promotion-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }


    .site-header .nav {
        min-height: auto;

        gap: 14px;
    }


    .brand {
        flex-direction: column;

        gap: 5px;

        text-align: center;
    }


    .site-logo {
        height: 80px;

        max-height: 80px;
    }


    .brand-text {
        max-width: none;

        font-size: 15px;
    }


    .nav-links {
        width: 100%;

        gap: 8px 15px;
    }


    .nav-links > a,
    .dropdown > a {
        font-size: 14px;
    }


    .nav-links .cta {
        padding: 8px 12px;
    }


    .dropdown-menu {
        left: 50%;

        min-width: 250px;

        transform:
            translateX(-50%);
    }


    .promotion-hero {
        padding: 42px 0;
    }


    .promotion-hero h1 {
        font-size: 2.15rem;
    }


    .promotion-lead {
        font-size: 1.05rem;
    }


    .sailing-filters {
        grid-template-columns: 1fr;
    }


    .promotion-sailing {
        display: block;

        padding: 18px;
    }


    .sailing-details {
        margin-top: 15px;
    }


    .sailing-save {
        margin-top: 18px;

        text-align: left;
    }


    .promotion-bottom-cta {
        padding: 25px 18px;
    }


    .footer-inner {
        flex-direction: column;

        text-align: center;
    }


    .footer-nav {
        justify-content: center;

        flex-wrap: wrap;
    }

}