/*
Theme Name: CB Map Theme
Theme URI: http://www.tus.ie
Description: A theme for Construction Blueprint 2 Map
Version: 1
Author: Mark O'Leary
Author URI: http://www.tus.ie
*/

body{
    margin:30px;
}

/* Interactive map page */
.l-main--map {
    padding: 40px 0 50px;
}

.l-section--map {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.iwhq_map {
    width: 100%;
    max-width: none;
    margin: 0 0 40px;
}

.iwhq_map .map-toolbar {
    overflow: hidden;
    margin-bottom: 12px;
    padding: 0 20px;
}

.iwhq_map .map-stage {
    width: 100%;
}

.iwhq_map .map-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.iwhq_map .map-col {
    flex: 1 1 auto;
    min-width: 0;
}

.iwhq_map .map-sidebar {
    flex: 0 0 300px;
    width: 300px;
    border-left: 1px solid #ddd;
}

#map {
    height: 650px;
    width: 100%;
}

.cb-map-infowindow {
    max-width: 320px;
}

.gm-style .gm-style-iw-c {
    max-width: 340px !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
}

.cb-map-infowindow .cb-map-initiative-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* margin-top: 8px; */
    padding: 6px 16px;
    background-color: #fff;
    border: none;
    border-radius: 8px;
    color: #0d5ab6;
    text-decoration: none;
    line-height: 1.4;
}

.cb-map-infowindow .cb-map-external-icon {
    display: inline-flex;
    line-height: 0;
}

.cb-map-infowindow .cb-map-external-icon svg {
    width: 14px;
    height: 14px;
}

.cb-map-infowindow .cb-map-initiative-link:hover,
.cb-map-infowindow .cb-map-initiative-link:focus {
    background-color: #f0f6fc;
    color: #0d5ab6;
}

.iwhq_map select.iwhq-input {
    width: 320px;
    float: left;
    margin: 0 4px 4px 0;
    height: 44px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.iwhq_map button#search {
    padding: 6px 12px;
    height: 44px;
    border-radius: 3px;
    background-color: #004298;
    color: #fff;
    border: none;
    cursor: pointer;
    float: left;
    margin: 0 4px 4px 0;
}

.iwhq_map button#return {
    padding: 6px 12px;
    height: 44px;
    border-radius: 3px;
    display: none;
    background-color: #b4df00;
    color: #000;
    border: none;
    cursor: pointer;
    float: left;
    margin: 0 4px 4px 0;
}

#map-return {
    display: none;
    margin-top: 10px;
    padding: 6px 16px;
    height: 44px;
    border-radius: 3px;
    background-color: #b4df00;
    color: #000;
    border: none;
    cursor: pointer;
}

.iwhq_map #foi-box,
.iwhq_map #eu-map {
    position: static;
    width: 100%;
    height: 650px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    overflow-y: auto;
    border: none;
}

.iwhq_map #foi-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 30%, rgba(215, 240, 255, 1) 96%);
}

#foi-box h3 {
    color: #004494;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", serif;
    text-align: left;
}

#foi-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#foi-box li {
    min-height: 70px;
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 15px;
    line-height: 1.25;
    border-top: 1px solid #eee;
    cursor: pointer;
    box-sizing: border-box;
}

#foi-box .foi-box__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
}

#foi-box .foi-box__label {
    flex: 1;
}

.cb-map-infowindow .foi-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0 4px 4px 0;
    vertical-align: middle;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
}

#foi-box li:first-child {
    border-top: none;
}

.iwhq_map #eu-map {
    display: none;
    text-align: center;
}

#eu-map .cb-europe-map {
    max-width: 100%;
}

@media (max-width: 991px) {
    .iwhq_map .map-row {
        flex-direction: column;
    }

    .iwhq_map .map-sidebar {
        flex: none;
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .iwhq_map select.iwhq-input {
        width: 100%;
        float: none;
        margin-bottom: 8px;
    }

    .iwhq_map button#search,
    .iwhq_map button#return {
        float: none;
        width: 100%;
        margin-bottom: 8px;
    }

    .iwhq_map #foi-box,
    .iwhq_map #eu-map {
        height: auto;
    }

    #map {
        height: 450px;
    }
}
