/* OAB ATM Locators Styles */
.oab-atm-locators-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #0a1929;
}

.oab-atm-locators-wrapper {
    display: flex;
    gap: 0;
    min-height: 600px;
    width: 100%;
}

/* Left Sidebar */
.oab-atm-locators-sidebar {
    flex: 1;
    width: 50%;
    background-color: #ffffff;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.oab-atm-locators-search-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
}

.oab-atm-locators-search {
    flex: 1;
    position: relative;
}

.oab-atm-locators-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

.oab-atm-locators-search-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.oab-atm-locators-search-input::placeholder {
    color: #666666;
}

.oab-atm-locators-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    color: #000000;
}

/* RTL: keep search icon on the right of the input (next to where text starts) */
[dir="rtl"] .oab-atm-locators-search-input {
    padding: 12px 40px 12px 15px;
    text-align: right;
}
[dir="rtl"] .oab-atm-locators-search-icon {
    right: 12px;
    left: auto;
}

.oab-atm-locators-filter {
    position: relative;
}

.oab-atm-locators-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.oab-atm-locators-filter-btn:hover {
    background-color: #f5f5f5;
    border-color: #000000;
    color: #000000;
}

.oab-atm-locators-filter-btn svg {
    width: 16px;
    height: 16px;
    color: #000000;
    stroke: currentColor;
}

.oab-atm-locators-filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 10px 0;
}

.oab-atm-locators-filter-dropdown.active {
    display: block;
}

.oab-atm-locators-filter-dropdown label {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.oab-atm-locators-filter-dropdown label:hover {
    background-color: #f5f5f5;
}

.oab-atm-locators-filter-dropdown input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.oab-atm-locators-filter-dropdown span {
    font-size: 14px;
    color: #333333;
}

/* Locations List */
.oab-atm-locators-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: transparent;
    padding: 0;
}

.oab-atm-locators-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

.oab-atm-locators-item:last-child {
    border-bottom: none;
}

.oab-atm-locators-item:hover {
    background-color: transparent;
}

.oab-atm-locators-item.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.oab-atm-locators-item-content {
    flex: 1;
}

.oab-atm-locators-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.oab-atm-locators-item-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oab-atm-locators-item-arrow {
    flex-shrink: 0;
    margin-left: 15px;
    color: #999999;
    transition: all 0.3s ease;
}

.oab-atm-locators-item:hover .oab-atm-locators-item-arrow {
    color: #666666;
    transform: translateX(3px);
}

.oab-atm-locators-item.active .oab-atm-locators-item-arrow {
    color: #000000;
}

.oab-atm-locators-item-arrow svg {
    width: 24px;
    height: 24px;
}

.oab-atm-locators-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666666;
}

/* Right Side: Map */
.oab-atm-locators-map {
    flex: 1;
    width: 50%;
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    min-height: 600px;
    height: 100vh;
}

.oab-atm-locators-iframe-container {
    width: 100%;
    height: 100%;
    min-height: 600px;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Scale iframe so embedded map info (coordinates, address, links) appears more compact */
.oab-atm-locators-iframe-container iframe {
    width: 114%;
    height: 114%;
    min-width: 114%;
    min-height: 114%;
    transform: scale(0.88);
    transform-origin: top left;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.oab-atm-locators-no-iframe {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 600px;
    color: #999999;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .oab-atm-locators-wrapper {
        flex-direction: column;
    }
    
    .oab-atm-locators-sidebar {
        flex: 1;
        max-width: 100%;
        max-height: 400px;
    }
    
    .oab-atm-locators-map {
        min-height: 500px;
    }
    
    .oab-atm-locators-iframe-container {
        min-height: 500px;
    }
    .oab-atm-locators-iframe-container iframe {
        min-height: 570px; /* 114% of 500px for scale(0.88) fill */
    }
}

@media (max-width: 768px) {
    .oab-atm-locators-container {
        padding: 20px 15px;
    }
    
    .oab-atm-locators-sidebar {
        padding: 15px;
        max-height: 350px;
    }
    
    .oab-atm-locators-search-filter {
        flex-direction: column;
        gap: 10px;
    }
    
    .oab-atm-locators-filter-dropdown {
        right: auto;
        left: 0;
    }
    
    .oab-atm-locators-item {
        padding: 15px;
    }
    
    .oab-atm-locators-item-title {
        font-size: 16px;
    }
    
    .oab-atm-locators-item-excerpt {
        font-size: 13px;
    }
    
    .oab-atm-locators-map {
        min-height: 400px;
    }
    
    .oab-atm-locators-iframe-container {
        min-height: 400px;
    }
    .oab-atm-locators-iframe-container iframe {
        min-height: 456px; /* 114% of 400px for scale(0.88) fill */
    }
}

/* Filter dropdown: show above map (prevent clipping by sidebar overflow) */
.oab-atm-locators-sidebar {
    overflow: visible;
}

.oab-atm-locators-search-filter {
    position: relative;
    z-index: 1001;
}

.oab-atm-locators-filter-dropdown {
    z-index: 1002;
}

/*  Shahid */

.oab-atm-locators-container {
    border-radius: 16px !important;
    overflow: hidden !important;
    max-height: 600px !important;
}

.oab-atm-locators-sidebar {
    border-radius: 16px !important;
    z-index: 1 !important;
    box-shadow: 5px 0 15px #0000002b !important;
}

.oab-atm-locators-map {
    margin-left: -14px !important;
}

h3.oab-atm-locators-item-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
    color: #000C24 !important;
}

.oab-atm-locators-item-excerpt {
    font-size: 16px !important;
    color: #000C24 !important;
}

.oab-atm-locators-item {
    padding-top: 24px !important;
    padding-bottom: 20px !important;
    border-color: #CCCED3 !important;
}

.oab-atm-locators-item-arrow {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.oab-atm-locators-item.active {
    background: none !important;
}

.oab-atm-locators-search-filter {
    gap: 24px !important;
}

input#oab-atm-locators-search {
    border: 1px solid #000C2433 !important;
    border-radius: 8px !important;
    height: 44px !important;
}

button#oab-atm-locators-filter-btn {
    min-height: 44px !important;
    border-radius: 999px !important;
    border-color: #000C24 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    color: #000C24 !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
}
