/* ============================================================
   Group Travel Hub — site overrides on top of Odyssey CSS
   ============================================================ */

/* ---- Container width (override Odyssey override.css that sets 1200px) ---- */
.container { max-width: 960px !important; }

/* ---- Tile grids (themes, hiking, programs) ---- */
.thumbs_listing,
.programms_listing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 20px auto;
    max-width: 1000px;
    padding: 0 10px;
}

.thumbs_listing figure,
.programms_listing > a,
.programms_listing > figure {
    margin: 0;
    width: 100%;
    display: block;
}

.thumbs_listing .js-item,
.programms_listing .js-item {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: #BDB76B;
    border: 1px solid #7285c4;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thumbs_listing .js-item:hover,
.programms_listing .js-item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.thumbs_listing .aspect,
.programms_listing .aspect {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f3f3;
}

.thumbs_listing .aspect__inner,
.programms_listing .aspect__inner {
    position: absolute;
    inset: 0;
}

.thumbs_listing .aspect__inner img,
.programms_listing .aspect__inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.thumbs_listing figcaption,
.programms_listing figcaption {
    padding: 14px 16px 18px;
    text-align: left;
}

.thumbs_listing figcaption h4,
.programms_listing figcaption h4 {
    margin: 0 0 6px;
    text-align: left;
    font-size: 18px !important;
    font-weight: 700;
}

@media (max-width: 980px) {
    .thumbs_listing,
    .programms_listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .thumbs_listing,
    .programms_listing { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Hide dropdown arrow on Destinations ---- */
#theNav .dir,
#theNav .dir > a,
#theNav.dropdown *.dir,
#theNav.dropdown-horizontal *.dir { background-image: none !important; }
#theNav .dir > a { padding-right: 14px !important; }

/* ---- Burger menu (mobile) ---- */
#responsive_theNav {
    display: none;
    border: none;
    padding: 10px;
    width: 36px;
    height: 36px;
    float: right;
    text-align: center;
    background: transparent url(/assets/templates/rainbow/modules/odyssey_css_menu/images/show_menu.png) center center no-repeat;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-indent: -9999px;
    outline: 0 !important;
    margin: 8px 8px 0 0;
}

@media only screen and (max-width: 768px) {
    #responsive_theNav { display: block !important; }
    #theNav.dropdown { display: none !important; }
    #theNav.dropdown.open {
        display: block !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 9999;
        background: #ffffff !important;
        border-top: 2px solid #003e89;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        padding: 4px 0;
        margin: 0;
        width: 100%;
        float: none !important;
    }
    #theNav.dropdown.open li {
        display: block !important;
        float: none;
        width: 100%;
        padding: 0;
        border: 0;
        border-bottom: 1px solid #e8ecf0;
        background: #ffffff !important;
    }
    #theNav.dropdown.open li:last-child { border-bottom: 0; }
    #theNav.dropdown.open li a { display: block; padding: 12px 20px; color: #214b61 !important; text-align: left; font-weight: 600; }
    #theNav.dropdown.open li a:hover,
    #theNav.dropdown.open li.current > a { background: #f0f4f8 !important; color: #003e89 !important; }
    #theNav.dropdown.open ul {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        width: 100%;
        box-shadow: none;
        border: 0;
        background: #f8f9fb !important;
    }
    #theNav.dropdown.open ul li { background: #f8f9fb !important; border-bottom: 1px solid #e8ecf0; }
    #theNav.dropdown.open ul li a { padding-left: 36px !important; color: #214b61 !important; font-weight: normal; }
    #theNav.dropdown.open ul li a:hover { background: #edf1f6 !important; color: #003e89 !important; }
    #header { position: relative; }
}

/* ---- Footer GDPR strip ---- */
#gdpr_container { text-align: center; border-top: 1px solid #333; padding: 12px 10px !important; }
#gdpr_container a.gdpr_link { color: #ddd !important; font-size: 13px; }
#gdpr_container a.gdpr_link:hover { color: #ffffff !important; text-decoration: underline; }
#gdpr_container span { color: #777; margin: 0 4px; }

/* ---- Page-banner sizing ---- */
.page_header {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    margin-top: -10px;
}
@media (max-width: 980px) { .page_header { height: 280px; } }
@media (max-width: 600px) { .page_header { height: 200px; } }

/* ---- Home block 1 hero (replaces slider) ---- */
.home-hero {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    margin-bottom: 20px;
}
.home-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.home-hero .home-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4% 6%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.45));
    color: #ffffff;
    box-sizing: border-box;
}
.home-hero h1 {
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 54px;
    line-height: 1.1;
    margin: 0 0 26px;
    text-shadow: 2px 2px 6px rgba(0,0,0,.5);
    max-width: 900px;
    text-align: center;
}
.home-hero .link_btn { display: inline-block; }
@media (max-width: 980px) { .home-hero { height: 440px; } .home-hero h1 { font-size: 40px; } }
@media (max-width: 768px) { .home-hero { height: 360px; } .home-hero h1 { font-size: 30px; } }
@media (max-width: 480px) { .home-hero { height: 300px; } .home-hero h1 { font-size: 22px; } }

/* ---- Contact details rows (no form) ---- */
.contact_address {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 !important;
    max-width: 600px;
}
.contact_address .address_icon {
    /*background-color: #003e8a;*/
    background-color: #7285c4;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2em;
    border-radius: 50%;
    padding-top: 0px;
    box-sizing: border-box;
    flex-shrink: 0;
display: flex;
    align-items: center;
    justify-content: center;
}
.contact_address .address_icon i { color: white; }
.contact_address p { margin: 0; padding: 0 !important; }

@media only screen and (max-width: 767px) {
    .contact_address {
        display: flex !important;
        align-items: center !important;
        position: static !important;
    }
    .contact_address .address_icon {
        position: static !important;
        float: none !important;
    }
    .contact_address div:nth-child(2) p,
    .contact_address p {
        padding-left: 0 !important;
    }
}

/* ---- Privacy/terms typography ---- */
.legal-page h2 { margin-top: 30px; font-size: 1.6em; }
.legal-page h3 { padding-left: 0; padding-top: 16px; font-size: 1.25em; color: #003e8a; }
.legal-page ul { padding-left: 24px; margin: 10px 0 20px; }
.legal-page ul li { margin-bottom: 8px; }
.legal-page p { padding: 0 !important; margin-bottom: 14px; }
.legal-page { max-width: 920px; margin: 0 auto; padding: 0 20px 60px; }

/* ---- Sitemap ---- */
.sitemap-list { max-width: 720px; margin: 0 auto 40px; padding: 0 20px; }
.sitemap-list li { padding: 12px 0; border-bottom: 1px solid #e4e4e4; list-style: none; }
.sitemap-list a { font-family: 'Roboto Condensed', sans-serif; font-size: 18px; }
.sitemap-list .desc { color: #666; font-size: 14px; margin-top: 4px; display: block; }

/* ---- Header: vertically align logo and nav ---- */
#header > section > .group {
    display: flex;
    align-items: center;
    min-height: 110px;
}
#header .grid-3,
#header .grid-9 {
    float: none !important;
    display: flex;
    align-items: center;
}
#header .grid-3 { justify-content: flex-start; }
#header .grid-9 { justify-content: flex-end; }
#header nav {
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}
#logo { margin: 0 !important; }
#logo img { max-width: 220px; height: auto; display: block; }

@media (max-width: 768px) {
    #header > section > .group { min-height: auto; padding: 8px 0; }
    #header .grid-3 { justify-content: center; flex: 0 0 auto; width: auto; max-width: 55%; }
    #header .grid-9 { flex: 1 1 auto; min-width: 0; }
    #logo a img { max-width: 160px !important; }
}

/* ---- Programs filter chips ---- */
.program_filters {
    text-align: center;
    margin: 18px auto 24px;
    max-width: 1000px;
    padding: 0 10px;
}
.program_filters .category_filter {
    display: inline-block;
    padding: 6px 16px;
    background-color: #7285c4;
    color: white;
    text-decoration: none;
    margin: 4px;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.program_filters .category_filter:hover { background-color: #214b61; color: #fff; }
.program_filters .category_filter.category_filter_on { background-color: #b07200; }

.programms_listing figure.is-hidden { display: none !important; }

/* ---- Misc cleanups ---- */
aside, #onTop { display: none !important; }
