.dthsl-locator {
  --dthsl-map-height: 600px;
  display: grid;
  gap: 0px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "map"
    "panel";
}

.dthsl-locator--fullbleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.dthsl-locator--fullbleed .dthsl-map,
.dthsl-locator--fullbleed .dthsl-results,
.dthsl-locator--fullbleed .dthsl-search,
.dthsl-locator--fullbleed .dthsl-province,
.dthsl-locator--fullbleed .dthsl-store-type,
.dthsl-locator--fullbleed .dthsl-nearby {
  border-radius: 0;
}

.dthsl-panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dthsl-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 2px solid #ddd;
  background: #fff;
}

.dthsl-input-wrap {
  position: relative;
  border-right: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

.dthsl-select-wrap {
  position: relative;
  border-bottom: 2px solid #ddd;
}

.dthsl-select-wrap.dthsl-store-type-wrap {
  border-right: 2px solid #ddd;
  border-bottom: none;
}

.dthsl-btn-wrap {
  position: relative;
  display: flex;
}

.dthsl-search,
.dthsl-province,
.dthsl-store-type {
  width: 100%;
  padding: 0 40px 0 20px;
  border: none !important;
  outline: none !important;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: transparent;
  height: 60px;
  line-height: normal;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.dthsl-input-wrap .dthsl-search {
  padding-left: 30px;
}

.dthsl-search:focus,
.dthsl-province:focus,
.dthsl-store-type:focus {
  background-color: #fafafa;
  box-shadow: none;
  border-color: transparent;
}

.dthsl-input-wrap::after {
  content: '\f002';
  font-family: 'FontAwesome';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #333;
  pointer-events: none;
}

.dthsl-province,
.dthsl-store-type {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  cursor: pointer;
}

.dthsl-select-wrap::after {
  content: '\f0d7';
  font-family: 'FontAwesome';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #333;
  pointer-events: none;
}

.dthsl-nearby {
  width: 100%;
  height: 60px;
  background: transparent;
  border: none;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  line-height: normal;
  cursor: pointer;
  padding: 0 20px;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  transition: all 0.2s ease-in-out;
}

.dthsl-nearby:hover {
  background: #fafafa;
}

.dthsl-nearby.is-active {
  background: #ffff001a;
  color: #ed1c24;
}

.dthsl-map {
  grid-area: map;
  width: 100%;
  height: var(--dthsl-map-height);
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  overflow: hidden;
}

.dthsl-map--dev {
  background: linear-gradient(140deg, #f8fbff 0%, #eef4ff 100%);
  border-style: dashed;
}

.dthsl-dev-map-head {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px dashed #c9d9ff;
  color: #1e3a72;
}

.dthsl-dev-map-head strong {
  font-size: 14px;
}

.dthsl-dev-map-head span {
  font-size: 12px;
  opacity: 0.9;
}

.dthsl-dev-map-body {
  padding: 14px;
}

.dthsl-dev-map-empty {
  color: #5f6d86;
  font-size: 13px;
}

.dthsl-dev-preview h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.dthsl-dev-preview p {
  margin: 0 0 6px;
  font-size: 13px;
}

.dthsl-results {
  background: #ffffff;
  max-height: 380px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.dthsl-results::-webkit-scrollbar {
  width: 6px;
}

.dthsl-results::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dthsl-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.dthsl-results::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.dthsl-empty {
  padding: 14px;
  color: #6d6d6d;
}

.dthsl-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dthsl-result-item {
  padding: 7px;
  background: #fff;
  transition: background 0.2s ease-in-out;
  cursor: pointer;
}

.dthsl-result-item:nth-child(even) {
  background: #cccccc40;
}

.dthsl-result-item:last-child {
  border-bottom: 0;
}

.dthsl-result-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  background: transparent;
  padding: 10px;
  border-radius: 5px;
}

.dthsl-result-item.active .dthsl-result-row,
.dthsl-result-item.is-active .dthsl-result-row {
  border: 2px solid #ed1c24;
  background: #ffff001a;
}

.dthsl-result-thumb-wrap {
  width: 140px;
  height: 95px;
  flex: 0 0 140px;
}

.dthsl-result-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4f4f4;
}

.dthsl-result-main {
  flex: 1 1 auto;
  min-width: 0;
}

.dthsl-result-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dthsl-province-tag {
  color: #1f6fff;
  font-size: 12px;
}

.dthsl-store-type-tag {
  color: #4a6b2f;
  font-size: 12px;
  background: #eef8e6;
  border-radius: 999px;
  padding: 2px 8px;
}

.dthsl-result-address {
  font-size: 13px;
  color: #5b5b5b;
  margin-top: 4px;
}

.dthsl-result-meta {
  margin-top: 6px;
  display: grid;
  gap: 3px;
}

.dthsl-result-meta-item {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

.dthsl-result-meta-label {
  color: #111827;
  font-weight: 600;
}

.dthsl-result-bottom {
  margin-top: 6px;
  font-size: 12px;
  color: #3d3d3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dthsl-line-friend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #00b900;
  color: #00b900;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dthsl-line-friend-btn:hover {
  background: #00b900;
  color: #fff;
}

.dthsl-direction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2563eb;
  color: #2563eb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dthsl-direction-btn:hover {
  background: #2563eb;
  color: #fff;
}

.dthsl-nearby.is-active {
  background: #ffff001a;
  color: #ed1c24;
}

body.dthsl-hide-footer footer,
body.dthsl-hide-footer #colophon,
body.dthsl-hide-footer .site-footer,
body.dthsl-hide-footer .footer-area,
body.dthsl-hide-footer .footer {
  display: none !important;
}

body:has(.dthsl-locator[data-hide-footer="1"]) footer,
body:has(.dthsl-locator[data-hide-footer="1"]) #colophon,
body:has(.dthsl-locator[data-hide-footer="1"]) .site-footer,
body:has(.dthsl-locator[data-hide-footer="1"]) .footer-area,
body:has(.dthsl-locator[data-hide-footer="1"]) .footer {
  display: none !important;
}

body.dthsl-hide-h1-title .site-main>h1,
body.dthsl-hide-h1-title .site-main .page-title,
body.dthsl-hide-h1-title .site-main .entry-title,
body:has(.dthsl-locator[data-hide-h1-title="1"]) .site-main>h1,
body:has(.dthsl-locator[data-hide-h1-title="1"]) .site-main .page-title,
body:has(.dthsl-locator[data-hide-h1-title="1"]) .site-main .entry-title {
  display: none !important;
}

.dthsl-info-window {
  max-width: 270px;
}

.dthsl-info-window h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dthsl-info-window p {
  margin: 0 0 6px;
  font-size: 13px;
}

.dthsl-info-window .dthsl-line-friend-btn,
.dthsl-dev-preview .dthsl-line-friend-btn,
.dthsl-info-window .dthsl-direction-btn,
.dthsl-dev-preview .dthsl-direction-btn {
  font-size: 12px;
}

.dthsl-info-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .dthsl-locator {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .dthsl-map {
    height: 42vh !important;
    flex: none;
  }

  .dthsl-panel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .dthsl-results {
    max-height: none;
    flex: 1 1 0;
    overflow-y: auto;
  }

  .dthsl-search,
  .dthsl-province,
  .dthsl-store-type,
  .dthsl-nearby {
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .dthsl-input-wrap .dthsl-search {
    padding-left: 20px;
  }

  .dthsl-input-wrap::after,
  .dthsl-select-wrap::after {
    right: 10px;
  }

  .dthsl-result-thumb-wrap {
    width: 90px;
    height: 65px;
    flex-basis: 90px;
  }

  .dthsl-info-image {
    display: none;
  }
}

@media (min-width: 1024px) {
  .dthsl-locator {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "panel map";
    align-items: stretch;
  }

  .dthsl-panel {
    height: var(--dthsl-map-height);
    overflow: hidden;
  }

  .dthsl-results {
    max-height: none;
  }
}