/* Google Maps Component Styles - Baltic Council */

#map_canvas {
    max-width: none !important;
    width: 100%;
    height: 875px;
}
@media (max-width: 768px) {
    #map_canvas {
        height: 450px !important;
    }
}

.google-maps {
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.google-maps > .partners-header {
    font-family: Geologica;
    font-weight: 800;
    font-size: 70px;
    line-height: 61px;
    letter-spacing: -0.92px;
    text-align: center;
    color: #073248;
    padding: 0 0 80px 0;
    margin: 0;
}

.google-maps .map-wrap {
    position: relative;
}

.google-maps #tabHolder {
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    bottom: 60px;
    margin: 0 auto;
    max-width: 1121px;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.google-maps #mapTabs,
.google-maps #mapTabContent,
.google-maps #mapTabContent .row,
.google-maps #mapTabContent .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.google-maps #mapTabContent {
    padding: 0;
    background: transparent;
    border: none;
}

.google-maps #mapTabs {
    background: #FAFCFD;
    border-radius: 18px;
    box-shadow: 10px 10px 30px 0px #A4B3BFB1;
    height: 68px;
    box-sizing: border-box;
    padding: 12px;
    justify-content: space-between;
    align-items: center;
}

.google-maps #mapTabContent {
    margin-top: 0;
}

.google-maps #mapTabContent .container {
    background: #ffffff;
    border-radius: 27px;
    box-shadow: 10px 10px 30px 0px #A4B3BFB1;
    padding: 40px 50px;
    height: 374px;
    box-sizing: border-box;
}

.google-maps .google-map-desc-desc {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.google-maps .google-map-title {
    padding-bottom: 45px;
}

.map-city-select-wrap {
    display: none;
    position: relative;
    margin-bottom: 12px;
}

.map-city-select {
    width: 100%;
    background: #0083da;
    color: #fafcfd;
    border: none;
    border-radius: 13px;
    padding: 14px 48px 14px 20px;
    font-family: Geologica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.78px;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 7px 7px 10.5px rgba(164, 179, 191, 0.69);
    cursor: pointer;
    outline: none;
}

.map-city-select-wrap::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

#mapTabs.nav-tabs .nav-link {
    font-family: Geologica;
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.71px;
    text-align: center;
    color: #107AE4;
    background: transparent;
    border: none;
}

#mapTabs.nav-tabs .nav-link.active {
    background: #107AE4;
    color: #FAFCFD;
    border-radius: 13px;
}

#mapTabContent {
    margin-top: 237px;
}

#mapTabs {
    border-radius: 18px;
    overflow: hidden;
    padding: 12px;
    background: rgba(250, 252, 253, 1);
}

.google-map-title {
    font-family: Geologica;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -1.2px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #073248;
    display: flex;
    align-items: center;
    padding-bottom: 45px;
}

.google-map-title-council {
    font-family: Geologica;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -1.2px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #0083DA;
    display: block;
    margin-top: 7px;
}

.google-map-desc-title {
    font-family: Geologica;
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.14px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #313131;
    margin-bottom: 20px;
    margin-left: 30px;
}

.google-map-desc-desc {
    font-family: Geologica;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.13px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #484848;
}

.google-map-desc-icons {
    width: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}

.google-map-contact-icons {
    width: 46px;
    margin-right: 0;
}

.google-map-contact-type {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: Geologica;
    font-size: 16px;
    font-weight: 700 !important;
    line-height: 100%;
    letter-spacing: -0.13px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    text-decoration: none;
    color: #484848 !important;
    margin-right: 0;
    padding: 0;
}

/* Override legacy responsive.css padding-left/background-image icon approach */
.google-maps #mapTabContent .address,
.google-maps #mapTabContent .phone,
.google-maps #mapTabContent .clock {
    background: none !important;
    padding-left: 0 !important;
    display: flex;
    align-items: flex-start;
}

.google-maps #mapTabContent .big-mail,
.google-maps #mapTabContent .whatsapp,
.google-maps #mapTabContent .chat {
    background: none !important;
    padding-left: 0 !important;
}

/* Override display:block for contact type links from responsive.css */
.google-maps #mapTabContent .google-map-contact-type {
    display: flex !important;
}

/* Phone row: blue bold */
.google-maps #mapTabContent .google-map-desc-desc.phone {
    font-weight: 700 !important;
    color: #0083da !important;
}

/* Email link inside contact card */
.google-maps .google-map-email-link {
    font-family: Geologica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 100%;
    color: #0083da;
    text-decoration: none;
    letter-spacing: -0.13px;
}

.google-maps .google-map-email-link:hover {
    text-decoration: underline;
    color: #0083da;
}

/* Contact buttons row (E-mail / WhatsApp / Chat) */
.google-map-contacts-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Remove Bootstrap col gutters so content aligns flush with the card title above */
.google-maps #mapTabContent .container > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 576px) {
    .google-maps #mapTabContent .container > .row > [class*="col-"]:first-child {
        padding-right: 40px;
    }
}

/* Mobile: vertical gap between the two stacked sections */
@media (max-width: 575px) {
    .google-maps #mapTabContent .container > .row > [class*="col-"]:last-child {
        margin-top: 24px;
    }
}

/* Responsive Styles for Mobile and Tablet */
@media (max-width: 767px) {
    .google-maps {
        padding-bottom: 71px !important;
    }
    .google-maps > .partners-header {
        font-family: Geologica;
        font-weight: 800;
        font-size: 42px !important;
        leading-trim: none;
        line-height: 38px !important;
        letter-spacing: -0.55px !important;
        text-align: center;
        color: #073248;
        padding-top: 0 !important;
        padding-bottom: 44px !important;
        margin: 0;
    }
    #map_canvas {
        height: 200px !important;
    }
    .google-maps #tabHolder {
        position: static;
        top: auto;
        bottom: auto;
        margin: 16px auto 0 !important;
        z-index: auto;
        display: block;
        padding-left: 15px;
        padding-right: 15px;
    }
    .google-maps #mapTabContent {
        margin-top: 24px !important;
    }
    .google-maps #mapTabContent .container {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100%;
        height: auto;
    }
    .map-city-select-wrap {
        display: block;
    }
    .google-maps #mapTabs {
        display: none;
    }
    .google-map-title {
        font-family: Geologica;
        font-weight: 700;
        font-size: 22px !important;
        leading-trim: none;
        line-height: 26px !important;
        letter-spacing: -1.01px !important;
        color: #073248 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    .google-map-title img {
        width: 34px !important;
        height: 45px !important;
        margin-right: 14px !important;
        margin-top: 2px !important;
    }
    .google-map-title-council {
        font-family: Geologica;
        font-weight: 700;
        font-size: 22px !important;
        leading-trim: none;
        line-height: 26px !important;
        letter-spacing: -1.01px !important;
        color: #0083DA !important;
        display: block;
        margin-top: 6px !important;
    }
    .google-map-desc-title {
        font-family: Geologica;
        font-weight: 700;
        font-size: 18px !important;
        leading-trim: none;
        line-height: 100% !important;
        letter-spacing: -0.14px !important;
        color: #313131 !important;
        margin-top: 32px !important;
        margin-bottom: 0 !important;
        padding-bottom: 21px !important;
    }
    .google-map-desc-desc {
        font-family: Geologica;
        font-weight: 500;
        font-size: 16px !important;
        leading-trim: none;
        line-height: 100% !important;
        letter-spacing: -0.13px !important;
        color: #484848 !important;
        margin-bottom: 14px !important;
        display: flex !important;
        align-items: center !important;
    }
    .google-maps #mapTabContent .phone {
        font-family: Geologica;
        font-weight: 700 !important;
        font-size: 16px !important;
        leading-trim: none;
        line-height: 100% !important;
        letter-spacing: -0.13px !important;
        color: #0083DA !important;
    }
    .google-maps .google-map-email-link {
        font-family: Geologica;
        font-weight: 700 !important;
        font-size: 16px !important;
        leading-trim: none;
        line-height: 100% !important;
        letter-spacing: -0.13px !important;
        color: #0083DA !important;
    }
    .google-map-contacts-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 40px !important;
        margin-top: 30px !important;
    }
    .google-map-contact-type {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        font-family: Geologica;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 100% !important;
        letter-spacing: -0.13px !important;
        color: #484848 !important;
    }
    .google-map-contact-icons {
        width: 46px !important;
        height: 46px !important;
    }
}

/* Decrease map height and inner spacing on viewports with height < 1000px */
@media (min-width: 768px) and (max-height: 1000px) {
    #map_canvas {
        height: 580px !important;
    }
    
    .google-maps #tabHolder {
        top: 15px;
        bottom: 15px;
    }
    
    .google-maps #mapTabs {
        height: 54px;
        padding: 8px;
    }
    
    #mapTabs.nav-tabs .nav-link {
        font-size: 18px;
        line-height: 24px;
    }
    
    .google-maps #mapTabContent {
        margin-top: 30px;
    }
    
    .google-maps #mapTabContent .container {
        padding: 20px 35px;
        height: 270px;
    }
    
    .google-maps .google-map-title {
        padding-bottom: 16px;
        font-size: 22px;
    }
    
    .google-map-title-council {
        font-size: 22px;
        margin-top: 4px;
    }
    
    .google-map-desc-title {
        margin-bottom: 8px;
        font-size: 16px;
    }
    
    .google-maps .google-map-desc-desc {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .google-map-contacts-row {
        margin-top: 8px;
        gap: 20px;
    }
}

