.devvn_localstore_wrap,
.devvn_localstore_wrap * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
div#localstore_maps {
  width: 100%;
  height: 700px;
}
.devvn_localstore_wrap {
  position: relative;
  overflow: hidden;
  color: #000;
  min-height: 700px;
}
.localstore_maps {
  z-index: 2;
  position: relative;
  padding-left: 40%;
  transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -webkit-transition: all 0.5s linear;
  min-height: 700px;
}
.localstore_search_wrap {
  width: 40%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-height: 700px;
  background: #ffffff;
  z-index: 10;
  transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -webkit-transition: all 0.5s linear;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.localstore_search_results {
  overflow: auto;
  position: relative;
  flex: 1;
  padding: 16px;
  background: #f5f7fa;
  min-height: 0;
}

.localstore_search_results::-webkit-scrollbar {
  width: 6px;
  background: #f5f5f5;
}

.localstore_search_results::-webkit-scrollbar-track {
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  background-color: #f5f5f5;
}

.localstore_search_results::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  background-color: #d0d0d0;
  transition: background-color 0.2s ease;
}

.localstore_search_results::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color, #ED1C24);
}

/* Result Item Container */
.localstore_result_item {
  transition: all 0.2s ease;
}

.localstore_result_item:hover .localstore_box {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.localstore_searchbox {
  background: var(--primary-color, #ED1C24);
  padding: 10px 10px 0 10px;
  flex-shrink: 0;
}
.dvls_flex {
  -js-display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  margin: 0 -5px;
}
.dvls_flex_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 50%;
  -ms-flex-preferred-size: 50%;
  flex-basis: 50%;
  position: relative;
  padding: 0 5px;
  margin-bottom: 10px;
}
.dvls_col_2 {
  max-width: 66.6666666666%;
  -ms-flex-preferred-size: 66.6666666666%;
  flex-basis: 66.6666666666%;
}
.dvls_col_full {
  max-width: 100%;
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
}
form#localstore_search_form {
  margin: 0;
}
.devvn_localstore_wrap input[type="text"] {
  width: 100%;
  outline: none;
  padding: 0 15px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #ffffff66;
  font-size: 14px;
  outline: none;
  margin: 0;
  box-shadow: none;
}
.devvn_localstore_wrap button.btton_submit {
  position: absolute;
  right: 0;
  height: 100%;
  border: 0;
  background: transparent;
  overflow: hidden;
  width: 50px;
  cursor: pointer;
  min-height: auto;
  outline: none;
  margin: 0;
  box-shadow: none;
  padding: 0;
}
.devvn_localstore_wrap select {
  width: 100%;
  border: 1px solid #fff;
  border-radius: 0;
  background-color: #ffffff66;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  margin: 0;
  box-shadow: none;
}
.devvn_localstore_wrap select:focus {
  box-shadow: none;
  background-color: #ffffff66;
}
/* Modern Store Card Design */
.localstore_box {
  overflow: hidden;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e8eaed;
  overflow: hidden;
}

.localstore_box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: var(--primary-color, #ED1C24);
}

.localstore_box.active {
  background-color: #fff5f5;
  border-color: var(--primary-color, #ED1C24);
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.25);
  border-width: 2px;
}

.localstore_img {
  width: 100%;
  float: none;
  margin: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  height: 180px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.localstore_box.no_thumb .localstore_info {
  padding-top: 20px;
}

.localstore_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.localstore_box:hover .localstore_img img {
  transform: scale(1.05);
}

.localstore_info {
  overflow: hidden;
  padding: 20px;
}

.localstore_info_header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f2f5;
}

.localstore_info_name {
  margin-bottom: 12px;
}

.localstore_info_name > strong {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Meta Badges */
.localstore_meta_badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.localstore_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.localstore_badge_state {
  background: rgba(237, 28, 36, 0.1);
  color: var(--primary-color, #ED1C24);
  border: 1px solid rgba(237, 28, 36, 0.2);
}

.localstore_badge_state i {
  font-size: 11px;
  color: var(--primary-color, #ED1C24);
}

.localstore_badge_category {
  background: rgba(0, 120, 168, 0.1);
  color: var(--second-color, #0078A8);
  border: 1px solid rgba(0, 120, 168, 0.2);
}

.localstore_badge_category i {
  font-size: 11px;
  color: var(--second-color, #0078A8);
}

.localstore_info_list {
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}

.localstore_info_list li {
  margin: 0 0 14px 0 !important;
  position: relative;
  padding: 0 0 0 32px;
  color: #4a5568;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  line-height: 1.7;
  word-break: break-word;
}

.localstore_info_list li a {
  color: var(--second-color, #0078a8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.localstore_info_list li a:hover {
  color: var(--primary-color, #ED1C24);
  text-decoration: underline;
}

.localstore_info_list li:last-child {
  margin-bottom: 0 !important;
}

.localstore_info_list li i {
  position: absolute;
  top: 4px;
  left: 0;
  color: var(--primary-color, #ED1C24);
  font-size: 15px;
  width: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.localstore_info_list li span,
.localstore_info_list li a {
  flex: 1;
}

/* Modern Action Buttons */
.localstore_action {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid #f0f2f5;
}

.localstore_action a {
  text-decoration: none;
  margin: 0;
  color: #ffffff;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--primary-color, #ED1C24);
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.2);
}

.localstore_action a:hover {
  color: #ffffff;
  background: #C91A20;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
}

.localstore_action a.localstore_btn {
  background: var(--primary-color, #ED1C24);
  color: #ffffff !important;
}

.localstore_action a.localstore_btn:hover {
  background: #C91A20;
  color: #ffffff !important;
}

.localstore_action a i {
  font-size: 14px;
}

#localstore_maps .leaflet-popup-content {
  margin: 10px 19px 10px 10px;
}
#localstore_maps .leaflet-popup-content .localstore_box {
  padding: 0;
  font-size: 14px;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
}

#localstore_maps .leaflet-popup-content .localstore_box:hover {
  transform: none;
  box-shadow: none;
}

#localstore_maps .leaflet-popup-content .localstore_img {
  height: 120px;
  border-radius: 8px 8px 0 0;
}

#localstore_maps .leaflet-popup-content .localstore_info {
  padding: 12px;
}

#localstore_maps .leaflet-popup-content .localstore_info_header {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
}

#localstore_maps .leaflet-popup-content .localstore_info_name {
  margin-bottom: 8px;
}

#localstore_maps .leaflet-popup-content .localstore_info_name > strong {
  font-size: 15px;
}

#localstore_maps .leaflet-popup-content .localstore_meta_badges {
  margin-top: 8px;
  gap: 6px;
}

#localstore_maps .leaflet-popup-content .localstore_badge {
  font-size: 10px;
  padding: 4px 8px;
}

#localstore_maps .leaflet-popup-content .localstore_info_list {
  margin-bottom: 10px;
}

#localstore_maps .leaflet-popup-content .localstore_info_list li {
  margin-bottom: 6px !important;
  font-size: 12px;
  padding-left: 24px;
}

#localstore_maps .leaflet-popup-content .localstore_info_list li i {
  font-size: 12px;
  width: 18px;
}

#localstore_maps .leaflet-popup-content .localstore_action {
  margin-top: 10px;
  padding-top: 10px;
  flex-wrap: wrap;
}

#localstore_maps .leaflet-popup-content .localstore_action a {
  padding: 8px 14px;
  font-size: 12px;
}
#localstore_maps .leaflet-popup-content .localstore_img {
  width: 100%;
  height: 120px;
  margin: 0;
  float: none;
}
span.localstore_rating {
  text-align: left;
  display: inline-block;
  overflow: hidden;
  margin: 0 0 3px 0;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  line-height: 1em;
  color: var(--primary-color, #ED1C24);
}
span.localstore_rating span.localstore_rating_first {
  overflow: hidden;
  float: left;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}
span.localstore_rating span:not(.localstore_rating_first) {
  overflow: hidden;
  float: left;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}
span.localstore_rating span {
  font-size: 0;
}
span.localstore_rating span i {
  font-size: 16px;
}
/* Active state already defined above */
#localstore_maps .leaflet-popup-content li {
  margin-bottom: 5px;
}
.localstore_search_results > p {
  padding: 20px;
  margin: 0;
  text-align: center;
  color: #666;
}
span.close_search {
  position: absolute;
  top: 82px;
  right: -42px;
  width: 30px;
  height: 30px;
  background: var(--primary-color, #ED1C24);
  text-align: center;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  cursor: pointer;

  transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -webkit-transition: all 0.3s linear;
  line-height: 30px;
  z-index: 1000;
}

/* Modern Loading Container */
.localstore_loading {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  pointer-events: none;
}

/* Loading Spinner - Modern Design */
.localstore_loading_spinner {
  width: 60px;
  height: 60px;
  position: relative;
  margin-bottom: 20px;
}

.localstore_loading_spinner::before,
.localstore_loading_spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary-color, #ED1C24);
  animation: devvn_spin 1s linear infinite;
}

.localstore_loading_spinner::before {
  width: 60px;
  height: 60px;
  border-top-color: var(--primary-color, #ED1C24);
  border-right-color: var(--primary-color, #ED1C24);
  opacity: 0.3;
}

.localstore_loading_spinner::after {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  border-top-color: var(--primary-color, #ED1C24);
  border-right-color: transparent;
  animation: devvn_spin 0.8s linear infinite reverse;
}

/* Loading Text with Animation */
.localstore_loading_text {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  position: relative;
  padding-left: 20px;
}

.localstore_loading_text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color, #ED1C24);
  animation: devvn_pulse 1.5s ease-in-out infinite;
}

/* Skeleton Loading for Results */
.localstore_skeleton {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: devvn_skeleton_pulse 1.5s ease-in-out infinite;
}

.localstore_skeleton_item {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: devvn_skeleton_loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.localstore_skeleton_item:last-child {
  margin-bottom: 0;
}

.localstore_skeleton_header {
  height: 20px;
  width: 60%;
  margin-bottom: 12px;
}

.localstore_skeleton_line {
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.localstore_skeleton_line.short {
  width: 70%;
}

.localstore_skeleton_line.medium {
  width: 85%;
}

/* Animations */
@keyframes devvn_spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes devvn_pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.8);
  }
}

@keyframes devvn_skeleton_pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes devvn_skeleton_loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Loading Overlay for Map */
.localstore_loading_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Responsive */
@media (max-width: 767px) {
  .localstore_loading {
    min-height: 150px;
    padding: 30px 15px;
  }
  
  .localstore_loading_spinner {
    width: 50px;
    height: 50px;
  }
  
  .localstore_loading_spinner::before {
    width: 50px;
    height: 50px;
  }
  
  .localstore_loading_spinner::after {
    width: 30px;
    height: 30px;
    top: 10px;
    left: 10px;
  }
}

#localstore_maps .leaflet-popup-content {
  width: 320px !important;
  margin: 10px 19px 10px 10px;
}
#localstore_maps img {
  box-shadow: none !important;
}

a.leaflet-buttons-control-button.satellite {
  background: url(../images/ic_default-1x.png) no-repeat center center;
  background-size: cover;
  -moz-background-size: cover;
  -webkit-background-size: contain;
}
a.leaflet-buttons-control-button.satellite.satellite_default {
  background: url(../images/ic_satellite-1x.png) no-repeat center center;
  background-size: cover;
  -moz-background-size: cover;
  -webkit-background-size: contain;
}

.localstore_search_count {
  font-size: 14px;
  text-align: center;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  background: #ffffff;
  flex-shrink: 0;
}

#localstore_search_form button.find_store_near {
  padding: 0;
  min-height: auto;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  margin: 0;
  border: 0;
  height: auto;
  line-height: 20px;
  text-align: left;
  display: inline-block;
}
#localstore_search_form button.find_store_near:hover {
  text-decoration: underline;
}
.island-vn {
  white-space: nowrap;
  font-size: 20px;
  color: #4074b5;
  text-shadow: 2px 2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff,
    -2px -2px 0 #ffffff, 2px 0px 0 #ffffff, 0px 2px 0 #ffffff,
    -2px 0px 0 #ffffff, 0px -2px 0 #ffffff;
}

.show_mobile {
  display: none;
}

.devvn_localstore_wrap [role="button"] {
  background: transparent !important;
  color: inherit !important;
  padding: inherit;
  margin: unset;
}

@media (min-width: 1001px) {
  .hidden_search .close_search .fas.fa-angle-left:before {
    content: "\f105";
  }
  .hidden_search .localstore_maps {
    padding-left: 0;
  }
  .hidden_search .localstore_search_wrap {
    transform: translate3d(-100%, 0, 0);
    -moz-transform: translate3d(-100%, 0, 0);
    -webkit-transform: translate3d(-100%, 0, 0);
  }
}
@media (max-width: 1000px) {
  .localstore_search_wrap {
    position: relative;
    width: 100%;
    height: auto;
  }
  span.close_search {
    display: none !important;
  }
  .localstore_search_results {
    border: 1px solid #ddd;
    border-top: 0;
    border-bottom: 0;
    max-height: 400px;
  }
  .localstore_maps {
    padding-left: 0;
  }
  div#localstore_maps {
    height: 400px;
  }
  .localstore_searchbox {
    padding: 10px 10px 0 10px;
  }
  .devvn_localstore_wrap input[type="text"],
  .devvn_localstore_wrap select {
    padding: 0 5px;
  }
  .localstore_box {
    margin-bottom: 12px;
  }
  .localstore_box:last-child {
    margin-bottom: 0;
  }
  .localstore_info {
    padding: 16px;
  }
  .localstore_info_name > strong {
    font-size: 16px;
  }
  .localstore_search_results.hide_mobile {
    display: none;
  }
  .localstore_search_results.show_mobile {
    display: block !important;
    border: 1px solid #ddd;
    border-top: 0;
  }
}
@media (max-width: 600px) {
  .localstore_box {
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .localstore_img {
    height: 160px;
  }
  .localstore_info {
    padding: 16px;
  }
  .localstore_info_name {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .localstore_info_name > strong {
    font-size: 16px;
  }
  span.localstore_rating span i {
    font-size: 12px;
  }
  .localstore_info_list {
    margin-bottom: 12px;
  }
  .localstore_info_list li {
    font-size: 13px;
    padding-left: 28px;
    margin-bottom: 10px !important;
  }
  .localstore_info_list li i {
    font-size: 14px;
    width: 20px;
  }
  .localstore_meta_badges {
    margin-top: 10px;
    gap: 6px;
  }
  .localstore_badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  .localstore_action {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }
  .localstore_action a {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
  #localstore_maps .leaflet-popup-content {
    width: 240px !important;
  }
  #localstore_maps
    .leaflet-popup-content
    .localstore_box
    .localstore_info_name
    > strong {
    font-size: 14px;
  }
  /*.localstore_search_results {
        display: none;
    }*/
  .dvls_col_2 {
    max-width: 50%;
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
  }
  .dvls_col_full {
    max-width: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .dvls_col_2 + .dvls_flex_box {
    max-width: 50%;
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
  }
  .localstore_search_results {
    max-height: 320px;
  }
}
