
.reference {
    background: url(../images/bg-historie.jpg) no-repeat 0 0;
    position: relative;
}

.inner-banner.reference .opacity h2 {
    text-transform: uppercase;
    color: rgb(9, 66, 143);
    position: relative;
    padding-left: 15px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
}

.inner-banner.reference .opacity .default-item {
    border-left: 3px solid rgb(9, 66, 143);;
    height: 51px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inner-banner.reference .opacity #breadcrumbs {
    text-align: left;
    color: rgb(126, 126, 126);
}

.inner-banner.reference .opacity #breadcrumbs a {
    color: rgb(126, 126, 126);
}

.reference-page {
    padding: 70px 0 70px 0;
}

.reference-page .item {
    position: relative;
}

.reference-page .image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    backface-visibility: hidden;
}

.reference-page .overlay {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
}

.reference-page .overlay img.ico-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.reference-page .item:hover .image {
/ / opacity: 0.3;
}

.reference-page .item:hover .overlay {
    opacity: 1;
    opacity: 0.7;
    visibility: visible;
}

.reference-page .text {
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    padding: 16px 32px;
}

.reference-page .reference-title a {
    font-size: 16px;
    color: #000;
    margin-top: 15px;
    min-height: 50px;
}

.reference-page .reference-title a:hover {
    color: #09428f;
}

.reference-page .ref-item {
    margin-bottom: 40px;
    min-height: 270px;
}

.reference-page .theme-title {
    margin-bottom: 40px;
}

.videoreference-page {
    padding: 70px 0 70px 0;
    background: #f2f2f2;
}

.category-reference {
    margin-top: 20px;
    padding-bottom: 0;
}

.category-reference .img-service {
    margin: 0 auto;
    text-align: center;
    display: block;
}

.category-reference .category-item {
    text-align: center;
}

.category-reference .category-item a {
    display: block;
    padding-top: 30px;
    padding-bottom: 50px;
    border-top: 3px solid #fff;
}

.category-reference .category-item a:hover {
    background: #f2f2f2;
}

.category-reference .category-item.revitalizace-category a:hover, .category-reference .category-item.revitalizace-category.active a {
    background: #f2f2f2;
    border-top: 3px solid #3c669e;
}

.category-reference .category-item.cerpadla-category a:hover, .category-reference .category-item.cerpadla-category.active a {
    background: #f2f2f2;
    border-top: 3px solid #e65e21;
}

.category-reference .category-item.vystavba-category a:hover, .category-reference .category-item.vystavba-category.active a {
    background: #f2f2f2;
    border-top: 3px solid #8cc011;
}

.category-reference .category-item.lodzie-category a:hover, .category-reference .category-item.lodzie-category.active a {
    background: #f2f2f2;
    border-top: 3px solid #e6b121;
}

.category-reference .category-item.fotovoltaika-category a:hover, .category-reference .category-item.fotovoltaika-category.active a {
    background: #f2f2f2;
    border-top: 3px solid #ffda14;
}

.category-reference .category-item.balkony-category a:hover, .category-reference .category-item.balkony-category.active a {
    background: #f2f2f2;
    border-top: 3px solid #00a986;
}

.img-map {
    width: 150px;
    height: 100px;
    margin-top: 3px;
}

.map-name {
    font-weight: 600;
    margin-top: 5px;
    text-align: left;
    width: 150px;
}

.category-reference h2 {
    font-size: 22px;
    color: #4d4d4d;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 10px;
}

.category-reference a:hover h2, .category-reference a:hover .service-text, .category-reference .category-item.active a h2 {
    color: #09428f;
}

.reference-adresa {
    color: #4d4d4d;
    font-size: 22px;
    text-transform: uppercase;
}

.reference-adresa img {
    float: left;
    padding-top: 4px;
    padding-right: 10px;
}

.service-content.detail-reference .container {
    border-bottom: none;
    padding-bottom: 0px;
}

.reference-gallery {
    margin-top: 25px;
}

.reference-gallery .reference-item:first-child {
    padding-left: 0px;
}

.reference-gallery .reference-item:last-child {
    padding-right: 0px;
}

img.img-video {
    width: 100%;
}

/* Always set the map height explicitly to define the size of the div
 * element that contains the map. */
.map-block {
    height: 420px;
}

#map {
    height: 100%;
}

#infowindow-content .title {
    font-weight: bold;
}

#infowindow-content {
    display: none;
}

#map #infowindow-content {
    display: inline;
}

.pac-card {
    margin: 10px 10px 0 0;
    border-radius: 2px 0 0 2px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

#pac-container {
    padding-bottom: 12px;
    margin-right: 12px;
}

.pac-controls {
    display: inline-block;
    padding: 5px 11px;
}

.pac-controls label {
    font-size: 13px;
    font-weight: 300;
}

#pac-input {
    background-color: #fff;
    font-size: 15px;
    font-weight: 300;
    padding: 0 11px 0 23px;
    text-overflow: ellipsis;
    width: 350px;
    line-height: 48px;
    margin-top: 20px;
    border: 1px solid #ced9e9;
}

#pac-input:focus {
    border-color: #4d90fe;
}

.search-map {
    background-color: #fff;
    font-size: 15px;
    font-weight: 300;
    margin-left: 12px;
    padding: 0 11px 0 23px;
    text-overflow: ellipsis;
    width: 400px;
    height: 135px;
    margin-top: 60px;
    position: absolute;
    z-index: 600 !important;
    right: 300px;
}

.search-map h3 {
    color: #09428f;
    font-size: 18px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .reference-page {
        padding-bottom: 0px;
    }

    .map-block {
        display: none;
    }
}
