/* Fonts */
@font-face {
    font-family: minion-3-display, serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: quasimoda, sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* import otf */
@font-face {
    font-family: Gill Sans;
    font-weight: 400;
    src: url('./../fonts/Gill_Sans.otf') format('opentype');
}

:root {
    --primary-color: #022658;
    --secondary-color: #FFFFFF;
    --third-color: #FF7F32;
    --fourth-color: #606060;

    --background-color: #022658;
    --line-separator-color: #CCCCCC;

    --solution-background-color: #FBF9F8;

    --fourboxes-background-color-1: #EBE7E2;
    --fourboxes-background-color-2: #333333;
    --fourboxes-background-color-3: #FF7F32;

    --fourboxes-background-color-4: #686F79;
    --learnMore: #FF7F32;
}

.marker-tooltip.focus {
    outline: .125rem solid #0d6efd !important;
}

body{
    background-color: #FBF9F8;
}

#map canvas{
    background: rgb(186, 208, 247) !important;
}

#vimeoVideo iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}


:focus,
:focus-visible{
    -webkit-box-shadow : #0d6efd !important; 
    outline: .125rem solid #0d6efd !important;
}


.skip-link{
    background-color: #022658;
    color: #FFF;
    display: none;
    padding: 10px;
}

.skip-link.active{
    display: inline !important;
    position: absolute !important;
}

#skipfiltersContainer{
    top: 10px;
    left: 10px;
    position: relative;
    z-index: 1;
    color: #FFF !important;
}

#overlayVideo{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
}

#overlayVideo .internalContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    aspect-ratio: 16 / 9;
        max-width: 70%;
}

#overlayVideo video,
#overlayVideo iframe{
    width: 100%;
    height: 100%;
}

#closeOverlay {
    position: absolute;
    top: 80px;
    right: 40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 13;
}

#closeOverlay #closeIcon{
    width: 30px;
    height: 30px;
    float: left;
    font-size: 20px;
    border: 1px solid white;
    padding: 0;
    text-align: center;
    border-radius: 50px;
    background-color: var(--primary-color);
    cursor: pointer;
    color: #FFF;
}

#mainContainer{
    position: relative;
}

#map{
    width: 100%;
    height: 80vh;
    min-height: 600px;
}

#nextAdventure {
    width: 100%;
    float: left;
        /* background: linear-gradient(180deg, rgba(2, 38, 88, 0) 0%, rgba(2, 38, 88, 0.477) 24.5%, rgba(1, 23, 53, 0.9) 59%); */
        background-color: #FBF9F8;
    height: auto;
    padding: 40px;
}

#nextAdventure h1 {
    font-family: "minion-3-display";
    font-size: 38px;
    font-weight: 500;
    line-height: 46px;
    letter-spacing: -0.01em;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #000000;
}

#nextAdventure p {
    font-family: "quasimoda";
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #000000;
    margin-bottom: 0px;
}


#infoSidebar{
    max-width: 1094px;
    margin: 0 auto;
    padding: 49px 41px 49px 41px;
    gap: 10px;
    border-radius: 20px 0px 0px 0px;
}

.itemsContainer{
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.itemsContainer .one_box {
    width: 100%;
    padding: 49px 41px 49px 41px;
    gap: 30px;
    border-radius: 20px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 14px 0px #3333331F;
    flex-direction: row-reverse;
    margin: 0;
}

#types{
    display: none;
}

.dropdown-item{
    cursor: pointer;
    text-wrap: auto;
}

li.dropdown-item{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#filtersContainer{
    display: flex;
    width: 100%;
    height: 42px;
    box-shadow: -2px 0px 15px 0px #00000026;
    margin-bottom: 70px;
    justify-content: space-evenly;
    align-items: center;
    background-color: #FFFFFF;
}

.itemsContainer  h2{
    font-family: "minion-3-display";
    font-size: 32px;
    font-weight: 500;
    line-height: 36.4px;
    letter-spacing: -0.01em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #000000;
    margin-bottom: 5px !important;
    word-spacing: 5px;
}

.itemsContainer  p{
    font-family: "quasimoda";
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.leftSideContainer p{
    display: none;
}

.imageContainer{
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.itemsContainer img{
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    padding: 0;
}

.itemsContainer .view_on_map{
    width: 225px;
    height: 40px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #022658;
    background-color: #022658;
    color: #FFFFFF;
    font-family: "quasimoda";
    /* font-family: NeutraText-book, sans-serif; */
    font-size: 19px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
}

.itemsContainer .one_box:has(img) .allContentContainer {
    width: calc(100% - 270px);
    float: left;
    padding-left: 0px;
    padding-right: 0px;
}

.itemsContainer .one_box .allContentContainer {
    width: 100%;
    float: left;
}

.text_white {
    color: var(--secondary-color);
}

.toggle:focus {
    border: 1px solid var(--third-color);
}

.mapboxgl-popup{
    max-width: unset !important;
}

.mapboxgl-popup-content{
    background-color: #022658;
    width: 449px;
    padding: 36px 24px 36px 24px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}

.mapboxgl-popup-content h3{
    /* font-family: "quasimoda"; */
    font-family: "Minion-3-display";
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.mapboxgl-popup-content p{
    font-family: "quasimoda";
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #FFFFFF;
    /* margin-bottom: 0px; */
}

.learnMore_marker{
    width: 214px;
    min-width: 108px;
    padding: 10px 24px;
    border-radius: 24px;
    color: #02132c;
    background-color: #FF7F32;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    float: left;
    font-family: NeutraText-book, sans-serif;
    text-decoration: none;
    line-height: 17px;
    text-transform: uppercase;
}

.mapboxgl-popup-close-button {
    color: white;
    font-size: 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    top: 5px;
    right: 5px;
}

.mapboxgl-popup-content img{
    width: 125px;
    min-width: 125px;
    height: 125px;
    border-radius: 10px;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{
    border-bottom-color: #022658;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{
    border-top-color: #022658;
}

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{
    border-right-color: #022658;
}

.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{
    border-left-color: #022658;
}

.mapboxgl-popup-anchor-bottom{
    margin-top: -25px;
}

.mapboxgl-popup-anchor-top{
    margin-top: 25px;
    z-index: 9999;
}

.tooltip-arrow::before{
    border-bottom-color: var(--primary-color);
}

.tooltip-inner{
    background-color: var(--primary-color);
}

.mapboxgl-ctrl-group{
    margin-right: 30px !important;
}

.mapboxgl-canvas-container {
    height: 100vh;
}

/* Footer start */
footer {
    background: linear-gradient(rgb(1, 23, 53), rgb(11, 55, 158));
}

footer .row {
    width: 100%;
}

.appIcon{
    width: 50px;
    height: auto;
}

#footer_intro h3 {
    font-family: minion-3-display, serif;
    font-size: 32px;
    line-height: 32px;
}

#footer_intro span {
    font-family: minion-3-display, serif;
    font-size: 16px;
    line-height: 16px;
}

#footer_intro .border-start {
    border-color: var(--secondary-color) !important;
}

.dropdown-menu.show{
    max-height: 60vh;
    overflow: auto;
    max-width: 95vw;
    width: 300px;
    z-index: 9999;
}

footer .dropdown-menu {
    background-color: transparent !important;
    border: none !important;
}

footer .nav-link,
footer .dropdown-menu .dropdown-item {
    text-align: left !important;
    color: var(--secondary-color) !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
}

footer .dropdown-item:focus,
footer .dropdown-item:hover {
    background-color: transparent !important;
    text-decoration: underline !important;
}

footer .sidebar p {
    font-family: quasimoda, sans-serif;
    font-size: 16px;
    line-height: 24px;
}

footer .social_icons img {
    width: 25px;
    height: 25px;
}

footer .copyright_menu a {
    color: var(--secondary-color);
    font-family: quasimoda, sans-serif;
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
    text-align: left;
}

footer .copyright_menu a:hover {
    text-decoration: underline;
    text-decoration-thickness: auto;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

footer .line_separator {
    margin-bottom: 35px;
    background-color: #a3b3bb;
}

footer .dropdown-menu {
    position: relative !important;
    display: block;
    top: 0 !important;
}

.store_icons img {
    height: 35px;
    width: fit-content;
}

/* Footer end */

.marker-tooltip .mapboxgl-popup-content{
    color: #FFFFFF;
    max-width: max-content;
    padding: 10px;
}

.marker-arrows{
    position: absolute;
    bottom: 8px;
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.marker-arrows .marker-arrow-left,
.marker-arrows .marker-arrow-right{
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}

.marker-arrow-left.invisible,
.marker-arrow-right.invisible{
    visibility: hidden;
}

.zoom_changed #map{
    min-height: 100vh;
}

.zoom_changed.zoom_300 #map{
    min-height: 200vh;
}

.zoom_changed.zoom_400 #map{
    min-height: 200vh;
}

.zoom_changed .mapboxgl-canvas{
    height: 47% !important;
}


.mapboxgl-ctrl-bottom-right {
    display: none !important;
}

@media screen and (max-width: 991px) {
    #region .dropdown-menu{
        margin-left: -57% !important;
    }

    #ports .dropdown-menu{
        margin-left: -67% !important;
    }

    #closeOverlay {
        top: 80px;
        right: 40px;
    }

    #skipfiltersContainer{
        top: 110px;
        display: inline;
    }

    #map .mapboxgl-popup:not(.marker-tooltip){
            margin-top: -50px;
    }

    #map{
        min-height: auto;
        max-height: 450px;
        margin-top: 65px;
    }

    .mapboxgl-ctrl-group {
        margin-top: 80px !important;
    }

    .imageContainer{
        width: 100%;
    }
    
    .itemsContainer img{
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-height: 300px;
    }

   .itemsContainer .one_box{
        flex-direction: column-reverse;
    }

    .itemsContainer .one_box:has(img) .allContentContainer{
        width: 100%;
    }

    #nextAdventure{
        padding: 20px;
    }

    #nextAdventure h1{
        font-size: 30px;
        line-height: 36px;
    }

    #nextAdventure p{
        font-size: 16px;
        line-height: 24px;
    }

    #map .mapboxgl-popup:not(.marker-tooltip){
        max-width: 80% !important;
        left: 50% !important;
        transform: translate(-50%, 75px) !important;
        width: 100%;
    }

    .mapboxgl-popup-content{
        width: 100% !important;
        padding: 20px;
    }

    .mapboxgl-popup-content p{
        max-height: 100px;
        overflow-y: scroll;
        text-overflow: ellipsis;
    }

    /* :has(.mapboxgl-popup) .mapboxgl-ctrl-group,
    :has(.mapboxgl-popup) #nextAdventure{
        opacity: 0;
        display: none;
        transition: opacity 0.5s, display 0.7s;
    } */

    .itemsContainer .one_box{
        padding: 20px;
    }

    .itemsContainer h2{
        font-size: 24px;
        line-height: 30px;
    }

    .mapboxgl-popup-content h3{
        font-size: 18px;
        line-height: 20px;
    }

    .itemsContainer p,
    .mapboxgl-popup-content p{
        font-size: 14px;
        line-height: 18px;
    }

    .learnMore_marker{
            margin-bottom: 18px;
    }

}

@media screen and (max-width: 768px) {
    #map{
        margin-top: 0px;
    }

     #skipfiltersContainer{
        top: 0px;
        position: absolute;
    }

    #closeOverlay {
        top: 18px;
        right: 51px;
    }

    #infoSidebar{
        top: 25px;
        position: relative;
    }

    #nextAdventure {
        padding: 20px;
        position: relative;
        z-index: 9;
    }
}

@media screen and (max-width: 600px) {
    .mapboxgl-popup-content img{
        width: 100%;
        object-fit: cover;
    }

    .itemsContainer img{
        max-height: 200px;
    }

    .learnMore_marker,
     .itemsContainer .view_on_map{
        width: 100%;
    }

    .mapboxgl-popup-content {
        width: 100% !important;
        display: flex;
        flex-direction: column;
    }

    #footer > .row{
        margin: 0 !important;
    }

    .copyright_menu{
        display: grid !important;
        gap: 5px !important;
    }

    #overlayVideo .internalContainer{
        max-width: 90%;
    }
}

/* =====================================
   ACCESSIBILITY STYLES
   ===================================== */

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mapbox popup accessibility enhancements */
.mapboxgl-popup-close-button:focus {
    background-color: #fff !important;
    color: #022658;
    outline: 2px solid #022658 !important;
    outline-offset: 2px !important;
    padding: 0
}

.mapboxgl-canvas:focus {
    outline: 3px solid #022658 !important;
    outline-offset: 2px !important;
}

/* Enhanced marker tooltip for keyboard navigation */
.marker-tooltip.focus {
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 38, 88, 0.3) !important;
}

.marker-tooltip.focus .mapboxgl-popup-content {
    background-color: rgb(2, 38, 88) !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    min-width: 200px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
}

.marker-tooltip.focus .mapboxgl-popup-tip {
    border-top-color: #022658 !important;
}

.marker-position {
    font-size: 0.85em !important;
    opacity: 0.9 !important;
    display: block !important;
    margin-top: 4px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mapboxgl-canvas:focus {
        outline: 4px solid currentColor !important;
    }
    
    .marker-tooltip.focus .mapboxgl-popup-content {
        border: 3px solid currentColor !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mapboxgl-map .mapboxgl-popup {
        animation: none !important;
    }
}