/* Map styles*/

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.hidden {
    display: none;
}

#allCategories {
    display: none;
}

.list-icon {
    margin: 7px 0 7px 7px;
}

.ui-icon-custom {
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    height: 22px;
    width: 22px;
}

.category-map-select {
    width: 40px;
    height: 40px;
}
.category-map-select-buttons {
    margin: 5px;
}

/* Back button image */
.ui-icon-arrow-l:after {
    background-image: url("../images/back.png");
}

/* Adjust the width of the left reveal menu. */
#route-panel.ui-panel {
    width: 18em;
}
#route-panel.ui-panel-closed {
    width: 0;
}
#route-panel.ui-panel-page-content-position-right,
#route-panel.ui-panel-dismiss-open.ui-panel-dismiss-position-right {
    left: -18em;
    right: 18em;
}
#route-panel.ui-panel-animate.ui-panel-page-content-position-right.ui-panel-page-content-display-reveal {
    left: 0;
    right: 0;
    -webkit-transform: translate3d(18em,0,0);
    -moz-transform: translate3d(18em,0,0);
    transform: translate3d(18em,0,0);
}

.route-panel-list li {
    clear: left;
}

.route-panel-list div, .route-panel-list img, .route-panel-list h1, .route-panel-list a {
    float: left;
    position: relative;
}

.route-panel-list .order-arrows {
    left: 5px;
    top: -5px;
}

.order-arrows a {
    clear: both;
}

.order-arrows .up {
    top: 3px;
}

.order-arrows .down {
    bottom: 5px;
}

.route-panel-list img {
    margin: 5px;
    width: 70px;
}

.route-panel-list h1 {
    left: 0.5em; top: 1.5em;
}

.route-panel-list .remove {
    float: right;
    right: 5px;
    top: 1em;
}

.sub-panel {
    position: relative;
    top: 2em;
}

/* Open and Close buttons for the panel */

.open-route-panel {
    position: fixed;
    right: 0;
    top: 10em;
    z-index: 10;
}

.open-route-panel a {
    margin: 0;
}

@media all and (max-width: 40em) {
    .open-route-panel, .close-route-panel, #route-panel {
        display: none;
    }
}

.close-route-panel {
    position: absolute;
    top: 10em;
    right: 18em;
}
.close-route-panel a {
    margin: 0;
}

.route-turn-by-turn {
    width: 16em;
}

/** Panel end **/

/* map info box */

.infowindow-template {
    display: none;
}

.infowindow {
    margin-bottom: 1em;
    width: 25em;
}

/*.infowindow h3 {*/
    /*text-overflow: ellipsis;*/
    /*overflow: hidden;*/
/*}*/

.infowindow .content-image-full {
    max-height: 8em;
    overflow: hidden;
}

.infowindow #item-page {
    float: left;
    width: 42px;
}
.infowindow #add-to-route {
    float: left;
    width: 42px;
    margin-left: 8px;
}

/* Embedded map */

#gmapcontainer {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: rgb(229, 227, 223);
    overflow: hidden;
}

#gmap {
    /*position: absolute;*/
    /*left: 0px;*/
    /*top: 0px;*/
    /*overflow: hidden;*/
    width: 100%;
    height: 100%;
    /*z-index: 0;*/
}

#list-page #gmapcontainer, #itemlist #gmapcontainer, #content-page #gmapcontainer {
    display: none;
}

@media all and (max-width: 40em) {
    .show-in-wide {
        display: none;
    }
}

@media all and (min-width: 40em) {
    #content-page .ui-content, #list-page .ui-content, #itemlist .ui-content {
        float: left;
        width: 45%;
    }

    #content-page #gmapcontainer, #list-page #gmapcontainer, #itemlist #gmapcontainer {
        display: block;
        left: 45%;
        width: 60%;
        top: 42px;
        position: fixed;
    }

    .hide-in-wide, #content-page #webapp-footer, #list-page #webapp-footer, #itemlist #webapp-footer {
        display: none;
    }

    .ui-page-footer-fixed {
        padding-bottom: 0;
    }
}

@media all and (min-width: 50em) {
    #content-page .ui-content, #list-page .ui-content, #itemlist .ui-content {
        width: 40%;
    }

    #content-page #gmapcontainer, #list-page #gmapcontainer, #itemlist #gmapcontainer {
        left: 40%;
        width: 60%;
    }
}

@media all and (min-width: 60em) {
    #content-page .ui-content, #list-page .ui-content, #itemlist .ui-content {
        width: 35%;
    }

    #content-page #gmapcontainer, #list-page #gmapcontainer, #itemlist #gmapcontainer {
        left: 35%;
        width: 65%;
    }
}

@media all and (min-width: 70em) {
    #content-page .ui-content, #list-page .ui-content, #itemlist .ui-content {
        width: 30%;
    }

    #content-page #gmapcontainer, #list-page #gmapcontainer, #itemlist #gmapcontainer {
        left: 30%;
        width: 70%;
    }
}

@media all and (min-width: 80em) {
    #content-page .ui-content, #list-page .ui-content, #itemlist .ui-content {
        width: 25%;
    }

    #content-page #gmapcontainer, #list-page #gmapcontainer, #itemlist #gmapcontainer {
        left: 25%;
        width: 75%;
    }
}

@media all and (min-width: 90em) {
    #content-page .ui-content, #list-page .ui-content, #itemlist .ui-content {
        width: 20%;
    }

    #content-page #gmapcontainer, #list-page #gmapcontainer, #itemlist #gmapcontainer {
        left: 20%;
        width: 80%;
    }
}

/* Mainly stuff for the content screen */

hr {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.add-padding {
    padding: 15px;
}

.add-padding-top-bottom {
    padding: 15px 0;
}

.full-width {
    width: 100%;
}

.black-bg {
    background-color: black;
}

.white-fg {
    color: white;
}

#content-header {
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 60px;
}

#content-ui {
    position: absolute;
    width: 100%;
    height: 100%;
}

.content-ui-shadow {
    background: url("../images/trasparenza_item_CON_img.png") no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#content-image {
    z-index: 0;
}

#content-ui {
    z-index: 1;
}

.m2a-brand {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.video-play {
    position: absolute;
    height: 100px;
    width: 100px;
    margin: -50px 0 0 -50px;
    top: 50%;
    left: 50%;
}

.content-image-square {
    height: 100%;
    width: 50%;
}

.content-image-square img {
    height: 91%;
    position: relative;
    left: 4.5%;
    top: 4.5%;
    /*box-shadow: 0px 0px 10px 1px rgba(119, 119, 119, 0.75);*/
    /*-moz-box-shadow: 0px 0px 10px 1px rgba(119, 119, 119, 0.75);*/
    /*-webkit-box-shadow: 0px 0px 10px 1px rgba(119, 119, 119, 0.75);*/
}

.content-image-full, .content-image-full img {
    width: 100%;
    height: auto;
}

.content-ui-text-large, .content-ui-text {
    float: right;
    clear: both;
    text-shadow: none;
}

.content-ui-address {
    width: 45%;
    text-align: right;
}

.content-buttons-bottom {
    bottom: 0;
}

.content-buttons-left, .content-buttons-right {
    position: absolute;
    float: left;
}

.content-buttons-left {
    left: 0;
}

.content-buttons-left .content-button {
    margin-right: 0.5em;
}

.content-buttons-right {
    right: 0;
}

.content-buttons-right .content-button {
    margin-left: 0.5em;
}

.content-button, .content-icon {
    width: 2em;
    height: 2em;
}

.content-button {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;

    border: 1px solid #415e7a;
    background: #5e87b0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#6facd5), to(#497bae));
    background-image: -webkit-linear-gradient(#6facd5, #497bae);
    background-image: -moz-linear-gradient(#6facd5, #497bae);
    background-image: -ms-linear-gradient(#6facd5, #497bae);
    background-image: -o-linear-gradient(#6facd5, #497bae);
    background-image: linear-gradient(#6facd5, #497bae);
}

.content-button-transparent {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.content-link-iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.info-block {
    display: table;
}

.info-block img, .info-block div, .info-block a {
    display: table-cell;
    vertical-align: middle;
}

.info-block img {
    margin-right: 0.5em;
}

.info-block audio {
    margin: 0 auto;
    display: block;
}

#photoSwipeTarget {
    width: 100%;
    height: 500px;
}

#indicators {
    text-align: center;
}

#indicators span {
    display: inline-block;
    height: 6px;
    width: 6px;
    margin: 6px;
    padding: 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
    background: #4e4e4e;
    overflow: hidden;
}

#indicators span.current {
    background: #fdfdfd;
}

#galleryImages {
    display: none;
}

/* Credits page */
.credits-image {
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/****************************************************************************
* jQuery mobile theme modifications*/



.ui-page-theme-a .ui-btn, .ui-bar-a, html .ui-bar-a .ui-btn, html .ui-body-a .ui-btn, html body .ui-group-theme-a .ui-btn, html head+body .ui-btn.ui-btn-a, .ui-page-theme-a .ui-btn:visited, html .ui-bar-a .ui-btn:visited, html .ui-body-a .ui-btn:visited, html body .ui-group-theme-a .ui-btn:visited, html head+body .ui-btn.ui-btn-a:visited,
.ui-page-theme-a .ui-btn:hover, html .ui-bar-a .ui-btn:hover, html .ui-body-a .ui-btn:hover, html body .ui-group-theme-a .ui-btn:hover, html head+body .ui-btn.ui-btn-a:hover,
html .ui-body-b .ui-slider-track .ui-btn-active, html .ui-body-b .ui-bar-inherit, .ui-page-theme-b .ui-btn, .ui-bar-b, html .ui-bar-b .ui-btn, html .ui-body-b .ui-btn, html body .ui-group-theme-b .ui-btn, html head+body .ui-btn.ui-btn-b, .ui-page-theme-b .ui-btn:visited, html .ui-bar-b .ui-btn:visited, html .ui-body-b .ui-btn:visited, html body .ui-group-theme-b .ui-btn:visited, html head+body .ui-btn.ui-btn-b:visited,
.ui-page-theme-b .ui-btn:hover, html .ui-bar-b .ui-btn:hover, html .ui-body-b .ui-btn:hover, html body .ui-group-theme-b .ui-btn:hover, html head+body .ui-btn.ui-btn-b:hover,
.ui-page-theme-c .ui-btn, .ui-bar-c, html .ui-bar-c .ui-btn, html .ui-body-c .ui-btn, html body .ui-group-theme-c .ui-btn, html head+body .ui-btn.ui-btn-c, .ui-page-theme-c .ui-btn:visited, html .ui-bar-c .ui-btn:visited, html .ui-body-c .ui-btn:visited, html body .ui-group-theme-c .ui-btn:visited, html head+body .ui-btn.ui-btn-c:visited,
.ui-page-theme-c .ui-btn:hover, html .ui-bar-c .ui-btn:hover, html .ui-body-c .ui-btn:hover, html body .ui-group-theme-c .ui-btn:hover, html head+body .ui-btn.ui-btn-c:hover,
.ui-page-theme-d .ui-btn, .ui-bar-d, html .ui-bar-d .ui-btn, html .ui-body-d .ui-btn, html body .ui-group-theme-d .ui-btn, html head+body .ui-btn.ui-btn-d, .ui-page-theme-d .ui-btn:visited, html .ui-bar-d .ui-btn:visited, html .ui-body-d .ui-btn:visited, html body .ui-group-theme-d .ui-btn:visited, html head+body .ui-btn.ui-btn-d:visited,
.ui-page-theme-d .ui-btn:hover, html .ui-bar-d .ui-btn:hover, html .ui-body-d .ui-btn:hover, html body .ui-group-theme-d .ui-btn:hover, html head+body .ui-btn.ui-btn-d:hover
{
    text-shadow: none;
}

/*.ui-btn-corner-tl {*/
    /*-moz-border-radius-topleft: 0.5em;*/
    /*-webkit-border-top-left-radius: 0.5em;*/
    /*border-top-left-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-tr {*/
    /*-moz-border-radius-topright: 0.5em;*/
    /*-webkit-border-top-right-radius: 0.5em;*/
    /*border-top-right-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-bl {*/
    /*-moz-border-radius-bottomleft: 0.5em;*/
    /*-webkit-border-bottom-left-radius: 0.5em;*/
    /*border-bottom-left-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-br {*/
    /*-moz-border-radius-bottomright: 0.5em;*/
    /*-webkit-border-bottom-right-radius: 0.5em;*/
    /*border-bottom-right-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-top {*/
    /*-moz-border-radius-topleft: 0.5em;*/
    /*-webkit-border-top-left-radius: 0.5em;*/
    /*border-top-left-radius: 0.5em;*/
    /*-moz-border-radius-topright: 0.5em;*/
    /*-webkit-border-top-right-radius: 0.5em;*/
    /*border-top-right-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-bottom {*/
    /*-moz-border-radius-bottomleft: 0.5em;*/
    /*-webkit-border-bottom-left-radius: 0.5em;*/
    /*border-bottom-left-radius: 0.5em;*/
    /*-moz-border-radius-bottomright: 0.5em;*/
    /*-webkit-border-bottom-right-radius: 0.5em;*/
    /*border-bottom-right-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-right {*/
    /*-moz-border-radius-topright: 0.5em;*/
    /*-webkit-border-top-right-radius: 0.5em;*/
    /*border-top-right-radius: 0.5em;*/
    /*-moz-border-radius-bottomright: 0.5em;*/
    /*-webkit-border-bottom-right-radius: 0.5em;*/
    /*border-bottom-right-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-left {*/
    /*-moz-border-radius-topleft: 0.5em;*/
    /*-webkit-border-top-left-radius: 0.5em;*/
    /*border-top-left-radius: 0.5em;*/
    /*-moz-border-radius-bottomleft: 0.5em;*/
    /*-webkit-border-bottom-left-radius: 0.5em;*/
    /*border-bottom-left-radius: 0.5em;*/
/*}*/

/*.ui-btn-corner-all {*/
    /*-moz-border-radius: 0.5em;*/
    /*-webkit-border-radius: 0.5em;*/
    /*border-radius: 0.5em;*/
/*}*/
