.branch-single{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;        
    background-image: linear-gradient(rgba(93, 93, 93, 0.03) 1px, transparent 1px), linear-gradient(to right, rgba(93, 93, 93, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-color: #ffffff;
    padding: 24px;
}

.branch-single-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin-top: 64px;
    margin-bottom: 64px;
    padding: 24px;
    box-shadow: 0px 4px 16px 0px rgba(149,155,189,0.25);
    background-color: #ffffff;
    border-radius: 24px;
    overflow: clip;
}
.column-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    margin-top: 24px;
}
.branch-gallery-map {
    display: flex;  
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    gap: 12px;
}
.branch-photo {
    flex: 1.5;
    border-radius: 16px;
    overflow: hidden;
    object-fit: cover;
}
.branch-photo img {
    width: 100%;
    height: 100%;    
    display: block;
}
.branch-map {
    display: flex;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
}
.branch-title-buttons-container{
    display: flex;
    flex-direction: row;
    margin-top: 16px;
    margin-bottom: 16px;
}
.mobile-buttons-container{
    display: none;
}
.branch-hours-accordion-container{
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.branch-hours-accordion-item{
    display: flex;
    align-items: stretch;
    height: fit-content;
    width: 100%;    
}
.alert-banner{
    background-color: #FEEBEB;
    color: #D10003;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    margin: 12px 0;
    border-radius: 6px;
    text-align: center;
}
.branch-hours-accordion-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 8px 8px;
    gap: 3px;
    border-radius: 6px;
    border: 1px solid #E4E9ED;
    transition: all 0.3s ease;
    &:hover{
        border: 1px solid #D5EAFF;
        cursor: pointer;
    }
    h4{
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 16px;
        color: #133156;
        &::before{
            content: '';
            display: inline-block;
            height: 10px;
            width: 10px;
            border-radius: 50%;
            background: #238B00;
            border: 2px solid #EBFEED;
            margin-right: 6px;       
        }
        &::after{
            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23CECECE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            margin-left: auto;
        }
    }
}

.branch-hours-accordion-item.closed {
    h4 {
        &::before {
            background: #D10003;
            border: 2px solid #FEEBEB;
        }
    }
}

.branch-hours-accordion-item .hours {
    width: 100%;
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #425466;
    padding-left: 18px;
    p {
        padding: 0;
    }
}
.branch-hours-accordion-content.active { 
    padding-bottom: 16px;
    h4::after{
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 15L12 9L6 15' stroke='%23CECECE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        margin-left: auto;
    }
    .hours{
        display: flex;   
    }
}
.branch-title{
    flex: 1;
    padding-top: 12px;
    h4{
        font-size: 32px;
        font-family: 'Glober', sans-serif;
        font-weight: 800;
        color: #133156;
        padding-bottom: 4px;
    }
    h6{
        font-size: 16px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        color: #425466;
    }
}
.branch-hours{
    flex: 1;
}
.buttons-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;   
    gap: 12px; 
}
.primary-button{
    padding: 8px 16px;
    background-color: #133156;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.7;
    border-radius: 6px;
}
.secondary-button{
    padding: 8px 16px;
    background-color: #DCF3FF;
    color: #005A8B;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.7;
    border-radius: 6px;
}

/* Branch Map Marker Styles */
.branch-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #008BD1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.marker-inner-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.marker-pointer {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #008BD1;
    transition: all 0.3s ease;
}

/************************** Services styling **************************/
.branch-services-container{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    width: 100%;
    h4{
        font-size: 24px;
        font-family: 'Glober', sans-serif;
        font-weight: 800;
        color: #133156;
        padding: 0;
    }
}
.branch-services-list{
    display: flex;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
    gap: 32px 24px;
    flex-wrap: wrap;
}
.branch-service{
    display: flex;
    width: 100px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    svg{
        width: 24px;
        height: 24px;
    }
    p{
        color: var(--Sapphire, #133156);
        font-family: Inter;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
}
/************************** Nearby locations styling **************************/
.nearby-locations-container{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    width: 100%;
    h4{
        font-size: 24px;
        font-family: 'Glober', sans-serif;
        font-weight: 800;
        color: #133156;
        padding: 0;
    }
}
.nearby-locations-list{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 12px;
    overflow-x: scroll;    
    scrollbar-width: thin;
    scrollbar-color: #d4d4d48f #efefef00;
}
.nearby-location{
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #133156;
    border: 1px solid #E4E9ED;
    border-radius: 6px;
    padding: 16px 16px;
    width: 360px;
    min-width: 360px;
}
.nearby-location-distance{
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1;
    background-color: #f2f4f6;
    color: #6a6b6b;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.nearby-location-name{
    font-size: 20px;
    font-family: 'Glober', sans-serif;
    font-weight: 800;
    color: #133156;
    padding: 0;
}
.nearby-location-address{
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #425466;
    padding: 0;
}
.nearby-location-hours{
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #425466;
}
.nearby-primary-button{
    padding: 8px 16px;
    background-color: #DCF3FF;
    color: #005A8B;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    border: none;
}
.nearby-secondary-button{
    padding: 8px 16px;
    background-color: #fff;
    color: #005A8B;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    border: none;
}
.locations-page-cta{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #008BD1;
    background-color: #f2f4f6;    
    border-radius: 6px;
    padding: 8px 16px;
    width: 360px;
    min-width: 360px;
}

.no-nearby-branches {
    text-align: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #425466;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

/* Status indicators for nearby branches (reusing archive page styles) */
.nearby-location .branch-status-compact {
    display: flex;
    flex-direction: column;
    margin: 8px 0 12px 0;
}

.nearby-location .alert-indicator {    
    color: #D10003;
    background-color: #FEEBEB;
    border-radius: 6px;
    margin-top: 4px;
    text-align: center;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    padding: 4px;    
}

.nearby-location .status-indicators {
    display: flex;
    flex-direction: column;
}

.nearby-location .lobby-status,
.nearby-location .drive-thru-status,
.nearby-location .atm-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2px;
}

.nearby-location .lobby-status.open::before,
.nearby-location .drive-thru-status.open::before,
.nearby-location .atm-status.open::before {
    display: block;
    content: '';
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #238B00;
    border: 2px solid #EBFEED;
    margin-right: 4px;
}

.nearby-location .lobby-status.closed::before,
.nearby-location .drive-thru-status.closed::before,
.nearby-location .atm-status.closed::before {
    display: block;
    content: '';
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #D10003;
    border: 2px solid #FCE4E4;
    margin-right: 4px;
}

/************************** Responsive styling **************************/
@media (max-width: 1080px) {
    .branch-single-container{
        margin-top: 0;
    }
  .branch-hours-accordion-container {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
    .branch-single{
        padding: 0;
    }
    .branch-single-container{
        border-radius: 0;
        margin-bottom: 0;
    }
    .branch-gallery-map{
        flex-direction: column;
    }
    .nearby-locations-container{
        margin-bottom: 24px;
    }
    .buttons-container{
        display: none;
    }
    .mobile-buttons-container{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        position: sticky;
        bottom: 16px;
        z-index: 99999999;
        width: 100%;
        background-color: white;
        box-shadow: 0px 4px 16px 0px rgba(149, 155, 189, 0.25);
        border-radius: 40px;
        padding: 6px;
        gap: 8px;
        .primary-button{
            border-radius: 40px;
            flex: 1;
            text-align: center;
            padding: 8px;
            font-size: 18px;            
        }
        .secondary-button{
            border-radius: 40px;
            flex: 1;
            text-align: center;
            padding: 8px;
            font-size: 18px;            
        }
    }
}
@media (max-width: 500px){
    .branch-single-container{
        padding: 12px;
    }
}