:root {
    --brand-gray: #858585;
    --brand-primary-light: #E8F6FD;
    --brand-primary: #004DD7;
    --brand-primary-dark: #080534;
}

body.hide-header-footer main {padding:0;}

body#gallery.hide-header-footer .mt-2.mb-4,body#gallery.hide-header-footer .bg {display:none !important;}

body.hide-header-footer main aside form button {display:none !important;}

body.hide-header-footer #search{display:none !important;}

body.hide-header-footer .gm-style-iw-d a.btn{display:none !important;}


#home section#intro {display:none;}
#home section.text-center{display:flex};

/*------------------------------------*\
01. MAIN
\*------------------------------------*/
body {
    overflow-x: hidden;
    font-family: 'Krub', sans-serif;
    color: var(--brand-gray);
}

iframe#ifreg, iframe#ifrmodal {
    position: absolute;
    height: 0;
}
#onesignal-bell-launcher {
    right: 10px !important;
    bottom: 10px !important; 
}
#onesignal-bell-launcher .background {
    fill: var(--brand-primary) !important;
}

.container-xl {
    width: 80%;
    padding: 0;
}

article h1 {
    font-size: calc(1rem + 1.5vw);
    font-weight: 700;
    color: white;
}
figure {
    margin-bottom: 0;
}
figure.bg {
    overflow: hidden;
    position: absolute;
    width: 100vw;
    height: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}
figure.bg::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}
figure.bg img {
    width: 100%;
}
video.bg {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

a {
    transition: all 0.5s ease-in-out;
}

.btn-lg {
    font-weight: 700;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-border-radius: 0.25rem;
}
.btn-primary {
    background-color: var(--brand-primary);
    border: none;
}
.btn-primary:hover, .btn-primary.active {
    background-color: var(--brand-primary-dark);
}

.custom-popover {
    max-width: 18rem;
    border-color: var(--brand-primary-light);
    box-shadow: 0 0 7px rgba(0, 0, 0, .1);
}
.custom-popover[data-popper-placement^=top] .popover-arrow::before {
    border-top-color: var(--brand-primary-light) !important;
}
.custom-popover[data-popper-placement^=right] .popover-arrow::before {
    border-right-color: var(--brand-primary-light) !important;
}
.custom-popover[data-popper-placement^=left] .popover-arrow::before {
    border-left-color: var(--brand-primary-light) !important;
}
.custom-popover .popover-header {
    color: var(--brand-primary);
    background-color: transparent;
    border-bottom: none;
    padding-top: 1rem;
}
.custom-popover .popover-body {
    padding-top: 0;
}
/*------------------------------------*\
02. STRUCTURE
\*------------------------------------*/
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
header.fixed {
    background-color: white;
    box-shadow: 0 0 7px rgba(0, 0, 0, .1) !important;
}
header .navbar {
    padding: 0.6rem 0;
}
header .navbar .navbar-brand {
    padding: 0;
}
header .navbar .navbar-brand img {
    max-height: 3.75rem;
    margin-bottom: 0;
}
header .navbar .util-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
header .navbar .util-nav a, header .navbar .util-nav button {
    color: var(--brand-primary-dark);
}
header .navbar .util-nav .lng a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: none;
}
header .navbar .util-nav .dropdown-menu {
    min-width: 3rem;
    font-size: 0.8rem;
}
header .navbar .util-nav .navbar-toggler {
    border: none;
    padding: 0;
}
header .navbar .navbar-collapse {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    background-color: white;
    border-top: 3px solid var(--brand-primary-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    padding: 5%;
}
header .navbar .navbar-nav .nav-item a {
    border-bottom: 1px solid rgba(0, 0, 0, .03);
}
header .navbar .navbar-nav .nav-item a.active {
    border-bottom: 1px solid rgba(0, 0, 0, .03);
}

main {
    position: relative;
    min-height: calc(100vh - 8.95rem);
    padding: 4.95rem 0 4rem 0;
    z-index: 0;
}
main section iframe {
    width: 100%;
    height: 100%;
}
main form h2 {
    font-size: calc(1rem + 0.9vw);
    color: var(--brand-primary-dark);
}
main form .lead {
    font-size: 0.8rem;
    font-weight: 400;
}
main form fieldset ul {
    list-style: none;
    gap: 1rem 0;
    padding-left: 0;
    margin-bottom: 0;
}
main form fieldset ul li {
    position: relative;
    width: 25%;
    text-align: center;
}
main form fieldset ul li .btn-check {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
main form fieldset ul li label.btn {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-primary) !important;
    line-height: 1.25;
    /*white-space: nowrap;*/
    border: none;
    padding: 0;
    opacity: 0.5;
    filter: grayscale(100%);
    white-space: pre-line;
    word-wrap: break-word;

}
main form fieldset ul li .btn-check:checked + label.btn {
    opacity: 1;
    filter: grayscale(0);
}
main form fieldset ul li label.btn img {
    display: block;
    width: 100%;
    height: 2.5rem;
    object-fit: none;
}
main form fieldset .btn-group a {
    white-space: nowrap;
}
main form button {
    position: sticky;
    width: 100%;
    bottom: 4rem;
    z-index: 10;
}

footer {
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    background-color: white;
    padding: 1rem 0;
    z-index: 1;
}
footer ul {
    width: 100%;
    font-size: 0.8rem;
    line-height: 2rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
footer ul li {
    color: var(--brand-primary-dark);
}
footer ul li:not(:first-child)::before {
    content: "|";
    margin: 0 0.5rem;
}
footer ul li a {
    color: var(--brand-primary-dark);
    text-decoration: none; 
}

/*------------------------------------*\
03. PAGES
\*------------------------------------*/
#home header:not(.fixed) .navbar .navbar-brand {
    background: url("mapalma-logo-w.svg") no-repeat center;
}
#home header:not(.fixed) .navbar .navbar-brand img {
    opacity: 0;
}
#home header:not(.fixed) .navbar .util-nav > li > a, #home header:not(.fixed) .navbar .util-nav button {
    color: white;
}
#home header:not(.fixed) .navbar .util-nav .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='3' stroke-linecap='butt' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
#home main {
    min-height: 100vh;
    padding: 0;
}
#home section {
    display: none;
}
#home #intro {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 100vh;
}
#home #intro::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}
#home #intro .container-xl {
    position: relative;
    z-index: 1;
}
#home #intro .container-xl > img {
    max-width: 14rem;
}
#home #intro .container-xl > .btn-outline-light {
    border-width: 2px;
}
#home #intro + section article {
    height: 18.75vh;
    display: inline-grid;
    align-items: end;
}
#home form {
    position: relative;
    padding-bottom: 4rem;
}
#home form::before {
    content: "";
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    z-index: -1;
}

#map main {
    background-color: white;
}
#map .search {
    padding-bottom: 1.2rem;
}
#map .search input {
    min-width: 65%;
}
#map section {
    position: relative;
    height: calc(100vh - 8.95rem);
}
#map section .gm-style .gm-style-iw-c {
    max-width: 18rem !important;
}
#map section .gm-style .gm-style-iw-c .gm-style-iw-d {
    font-size: 0.825rem;
    font-weight: normal;
    line-height: 1.5;
    color: var(--brand-primary-dark);
}
#map section .gm-style .gm-style-iw-c .gm-style-iw-d h5 {
    font-size: 1rem;
    color: var(--brand-primary-dark);
}
#map section .gm-style .gm-style-iw-c .gm-style-iw-d a {
    color: var(--brand-primary);
    font-weight: bold;
    text-decoration: none;
}
#map section .gm-style .gm-style-iw-c .gm-style-iw-d .btn {
    float: none !important;
}
#map section > .btn-group {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 10;
}
#map section > .btn-group.view {
    position: fixed;
    top: auto;
    bottom: 4.475rem;
}
#map section #list {
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    height: calc(100% - 4.475rem);
}
#map section #list .accordion-item {
    font-size: 0.875rem;
}
#map section #list .accordion-item .accordion-header .accordion-button {
    font-size: 1rem;
    color: var(--brand-primary-dark);
    font-weight: bold;
}
#map section #list .accordion-item .accordion-header .accordion-button .icon {
    margin-right: 0.5rem;
}
#map section #list .accordion-item .accordion-header .accordion-button .icon img {
    display: block;
    width: 100%;
    height: 2rem;
}
#map section #list .accordion-item h5 {
    display: none;
}
#map section #list .accordion-item .accordion-body {
    margin-bottom: 0;
}
#map section #list .accordion-item .accordion-body a {
    color: var(--brand-primary);
    font-weight: bold;
    text-decoration: none;
}
#map section #list .accordion-item .btn {
    float: none !important;
    align-self: center;
    white-space: nowrap;
    margin: 0 0 1rem 1rem;
}
#map aside {
    overflow-y: auto;
    width: 92.5%;
    max-width: 26rem;
    padding: 4.95rem 0 4rem 0;
}
#map aside::before {
    content: "";
    position: fixed;
    width: 92.5%;
    max-width: 26rem;
    height: 4.95rem;
    top: 0;
    right: -0.1rem;
    background-color: white;
    z-index: 100;
}
#map aside::after {
    content: "";
    position: fixed;
    width: 92.5%;
    max-width: 26rem;
    height: 4rem;
    bottom: 0;
    right: -0.1rem;
    background-color: white;
    z-index: 100;
}
#map aside form {
    padding: 0 1.25rem;
}
#map aside form .offcanvas-header {
    padding: 0;
}
#map aside form .offcanvas-body {
    overflow-y: inherit;
    padding: 0;
}
#map aside form fieldset ul {
    gap: 1rem 0;
}
#map aside form fieldset ul li {
    width: 25%;
    text-align: center;
}
#map aside form .btn-group a {
    font-size: 0.775rem;
}
#map aside form button {
    bottom: 0;
}

#gallery main {
    min-height: 100vh;
    padding-top: 0;
}
#gallery header:not(.fixed) .navbar .navbar-brand {
    background: url("mapalma-logo-w.svg") no-repeat center;
}
#gallery header:not(.fixed) .navbar .navbar-brand img {
    opacity: 0;
}
#gallery header:not(.fixed) .navbar .util-nav > li > a, #gallery header:not(.fixed) .navbar .util-nav button {
    color: white;
}
#gallery header:not(.fixed) .navbar .util-nav .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='3' stroke-linecap='butt' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
#gallery section article {
    height: 18.75vh;
    display: inline-grid;
    align-items: end;
}
#gallery section ul.row {
    position: relative;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
#gallery section ul.row::before {
    content: "";
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    z-index: -1;
}
#gallery section ul.row > li {
    text-align: left;
}
#gallery section ul.row > li figure {
    width: 100%;
    height: 30vh;
    margin: 0;
}
#gallery section ul.row > li figure a {
    display: block;
    position: relative;
    height: 100%;
}
#gallery section ul.row > li figure a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--brand-primary-dark);
    transition: all 0.5s ease-in-out;
    opacity: 0.5;
}
#gallery section ul.row > li figure a:hover::before {
    opacity: 0.75;
}
#gallery section ul.row > li figure a i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    color: white;
    transform: translate(-50%, -50%);
}
#gallery section ul.row > li figure a img {
    height: 100%;
    object-fit: cover;
}
#gallery section ul.row > li span.video-title {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    margin-top: 0.5rem;
}

#web section {
    position: relative;
    height: calc(100vh - 8.95rem);
}

/*------------------------------------*\
RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:361px) {
    #map aside form {
        padding: 0 2.75rem 0 3rem;
    }
}
@media only screen and (min-width:481px) {
    #map aside form .btn-group a {
        font-size: 0.875rem;
    }
}
@media only screen and (min-width:768px) {
    figure:not(.bg) {
        width: 60%;
        margin: 0 auto;
    }
    #home #intro + section article {
        height: 37.5vh;
    }
    #map section .gm-style .gm-style-iw-c {
        max-width: 24rem !important;
    }
    #gallery section article {
        height: 37.5vh;
    }
    main form fieldset ul {
        gap: 1rem 2rem; 
    }
    main form fieldset ul li {
        width: auto;
    }
}
@media only screen and (min-width:993px) {
    header .navbar .navbar-brand img {
        min-height: 4.25rem;
    }
    article {
        width: 60%;
        margin: 0 auto;
    }
    figure:not(.bg) {
        width: 40%;
    }
    #map main {
        overflow: hidden;
    }
    #map .search {
        width: 35%;
        padding: 0 2.75rem 0 3rem;
    }
    #map .search .container-xl {
        width: 100%;
    }
    #map section {
        float: left;
        width: 65%;
    }
    #map section > .btn-group.view {
        right: 35%;
    }
    #map section #list {
        padding: 0 1.5rem 0 2.75rem;
    }
    #map section #list > h2 {
        padding-left: 0 !important;
    }
    #map section #list .accordion-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #map section #list .accordion-item .accordion-header {
        display: inline-flex;
    }
    #map section #list .accordion-item .accordion-header .accordion-button {
        pointer-events: none;
        padding-left: 0;
    }
    #map section #list .accordion-item .accordion-header .accordion-button::after {
        display: none;
    }
    #map section #list .accordion-item .accordion-collapse {
        display: inline-flex;
    }
    #map section #list .accordion-item .accordion-body {
        display: flex;
        flex-wrap: wrap;
        justify-content: end;
        text-align: right;
        gap: 0.5rem 2rem;
    }
    #map section #list .accordion-item .btn {
        margin: 0;
    }
    #map aside {
        float: right;
        width: 35%;
        max-width: inherit;
        padding: 0;
    }
    #map aside::before, #map aside::after {
        display: none;
    }
    #map aside form .offcanvas-body {
        display: block;
    }
}
@media only screen and (min-width:1201px) {
    #map .search {
        width: 30%;
    }
    #map section {
        width: 70%;
    }
    #map section > .btn-group.view {
        right: 30%;
    }
    #map aside {
        width: 30%;
    }
}
@media only screen and (min-width:1601px) {
    #map .search {
        width: 25%;
    }
    #map section {
        width: 75%;
    }
    #map section > .btn-group.view {
        right: 25%;
    }
    #map aside {
        width: 25%;
    }
}
@media only screen and (min-width:1920px) {
    #map .search {
        width: 20%;
    }
    #map section {
        width: 80%;
    }
    #map section > .btn-group.view {
        right: 20%;
    }
    #map aside {
        width: 20%;
    }
}