@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.store-locator-section {
    width: 100%;
    padding: 80px; 
    background-color: #E7F4FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.locator-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.locator-header-top .header-logo {
    width: 19px !important;
    height: 29px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 19 / 29 !important;
    object-fit: contain !important;
    animation: fadeInUp 1s ease-out;
}

.locator-header-top .header-text {
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #131927;
    animation: fadeInUp 1s ease-out;
}

.locator-title {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 44px;
    margin-bottom: 32px;
    color: #000;
    animation: fadeInUp 1s ease-out;
}

.locator-wrapper {
    display: flex;
    width: 100%;
    max-width: none;
    height: 639px; 
    background: #FFF;
    border: 1px solid #E9ECF0;
    border-radius: 0;
    overflow: hidden;
    animation: fadeIn 4s ease-out;
}

.locator-sidebar {
    flex: 0 0 400px;
    border-right: 1px solid #E9ECF0;
    display: flex;
    flex-direction: column;
    background-color: #F8FAFC;
}

.sidebar-header {
    padding: 32px 24px 24px 24px;
    border-bottom: 1px solid #E9ECF0;
    background-color: #FFF;
}

.search-controls {
    display: flex;
    gap: 12px;
    width: 100%;
}

.search-box {
    flex: 1;
}

#region-select {
    width: 100%;
    height: 48px;
    padding: 12px 40px 12px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 0;
    font-size: 16px;
    color: #2F2F2F;
    background-color: #fff;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232F2F2F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.btn-my-location {
    width: 160px;
    height: 48px;
    padding: 12px 24px;

    background: #184382;
    border: none;
    border-radius: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;

    color: #FFF;
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;

    white-space: nowrap;
}

.btn-my-location svg{
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.store-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.store-item {
    background: #FFFFFF;
    padding: 24px;
    border: 1px solid #E5E7EA;
    border-radius: 0;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.store-item:hover, .store-item.active {
    background-color: #FFFFFF;
    border-color: #184382;
    box-shadow: 0px 4px 12px rgba(24, 67, 130, 0.1);
}

.store-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 48px;
}

.store-logo-wrapper {
    width: 109px;
    height: 56px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-logo-placeholder {
    width: 100%;
    height: 100%;
    background: #D9D9D9;
}

.store-details h4 {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
}

.region-label-text {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #64748B;
    margin: 0 0 12px 0;
}

.store-links {
    display: flex;
    gap: 16px;
}

.store-links a {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #184382;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-links svg{
    width: 12px;
    height: 12px;
}

.map-icon-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #184382;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.map-container {
    flex: 1;
    position: relative;
}

#leaflet-map {
    width: 100%;
    height: 100%;
}

.custom-store-popup .leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.custom-store-popup .leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.map-popup-content {
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    padding: 16px;
}

.popup-info {
    display: flex;
    flex-direction: column;
}

.popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #131927;
    line-height: 1.4;
}

.popup-region {
    margin: 4px 0 8px 0;
    font-size: 14px;
    color: #64748B;
    margin-top: 8px;
    margin-bottom: 8px;
}

.popup-links {
    display: flex;
    gap: 16px;
}

.popup-links a {
    font-size: 12px;
    color: #184382 !important;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-links i {
    width: 12px;
    height: 12px;
}

.custom-store-popup .leaflet-popup-close-button {
    padding: 8px !important;
    color: #64748B !important;
}

.search-text-box {
    margin-top: 8px;
}

.search-text-box input {
    width: 100%;
    height: 48px;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.search-text-box input:focus {
    outline: none;
    border-color: #184382;
}

.service-label{
    color:#131927;
    font-family:"IBM Plex Sans Thai", sans-serif;
    font-size:18px;
    font-style:normal;
    font-weight:700;
    line-height:28px;
    margin-bottom:10px;
}

.popup-logo {
    width: 109px;
    height: 56px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden
}

.popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}