:root {
  --outpost-primary: #333333;
  --outpost-geo-icon: #ba5a5a;
  --outpost-text: inherit;
  --outpost-sidebar-bg: transparent;
  --outpost-font-family: inherit;
  
  --outpost-slate-50: #f8fafc;
  --outpost-slate-100: #f1f5f9;
  --outpost-slate-200: #e2e8f0;
  --outpost-slate-300: #cbd5e1;
  --outpost-slate-400: #94a3b8;
  --outpost-slate-500: #64748b;
  --outpost-slate-600: #475569;
  --outpost-slate-700: #334155;
  --outpost-slate-800: #1e293b;
  --outpost-slate-900: #0f172a;
  --outpost-slate-950: #020617;
}

/* Shopify App Block & Parent Flex Container Support */
.shopify-block.shopify-app-block:has(#outpost-store-locator),
.shopify-app-block:has(#outpost-store-locator),
.shopify-block:has(#outpost-store-locator),
div[data-block-handle="embed_widget"],
div[id*="outpost_store_locator"] {
  width: 100% !important;
  flex: 1 1 100% !important;
  max-width: 100% !important;
}

#outpost-store-locator,
outpost-store-locator {
  display: block;
  width: 100%;
  flex: 1 1 100%;
  font-family: inherit;
  color: inherit;
  line-height: inherit;
}

#outpost-store-locator.outpost-initialized,
outpost-store-locator.outpost-initialized {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 100%;
  height: var(--outpost-locator-height, 600px);
  border-radius: var(--outpost-border-radius, 8px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
  font-family: inherit;
  color: inherit;
  line-height: 1.5;
  letter-spacing: normal;
  box-shadow: none;
  box-sizing: border-box;
}

/* Top Bar Container for BAR_TOP_LEFT & BAR_TOP_RIGHT */
.outpost-top-bar-header {
  width: 100%;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  box-sizing: border-box;
  z-index: 25;
}

.outpost-layout-bar-top-left .outpost-sidebar-header,
.outpost-layout-bar-top-right .outpost-sidebar-header {
  display: none !important;
}

/* No Header Mode (when search bar is hidden, geolocation is disabled, and no filters to display) */
.outpost-no-header .outpost-top-bar-header,
.outpost-no-header .outpost-sidebar-header {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  height: 0 !important;
  min-height: 0 !important;
}

.outpost-no-header .outpost-store-list {
  padding-top: 0 !important;
}

.outpost-locator-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.outpost-layout-search-left .outpost-locator-body,
.outpost-layout-bar-top-left .outpost-locator-body {
  flex-direction: row;
}

.outpost-layout-search-right .outpost-locator-body,
.outpost-layout-bar-top-right .outpost-locator-body {
  flex-direction: row-reverse;
}

.outpost-layout-search-right .outpost-sidebar,
.outpost-layout-bar-top-right .outpost-sidebar {
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

#outpost-store-locator.outpost-is-mobile,
outpost-store-locator.outpost-is-mobile {
  height: auto !important;
  min-height: 500px;
}

.outpost-is-mobile .outpost-top-bar-header {
  display: block !important;
}

.outpost-is-mobile .outpost-sidebar-header {
  display: none !important;
}

.outpost-is-mobile .outpost-locator-body {
  display: flex !important;
  flex-direction: column-reverse !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
}

.outpost-is-mobile.outpost-mobile-map-below .outpost-locator-body,
.outpost-is-mobile.outpost-mobile-no-map .outpost-locator-body {
  flex-direction: column !important;
}

.outpost-is-mobile.outpost-mobile-no-map .outpost-map-pane {
  display: none !important;
}

/* General Element Visibility & Custom Layouts */
.outpost-no-search-bar .outpost-search-box {
  display: none !important;
}

.outpost-no-results .outpost-store-list {
  display: none !important;
}

.outpost-no-results .outpost-sidebar {
  display: none !important;
}

.outpost-no-results .outpost-map-pane {
  width: 100% !important;
  flex: 1 1 100% !important;
}

.outpost-no-map .outpost-map-pane {
  display: none !important;
}

.outpost-no-map .outpost-sidebar {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  border-left: none !important;
  border-right: none !important;
}

/* Results only responsive grid layout on desktop (border grid matching mobile list style) */
.outpost-is-desktop.outpost-no-map .outpost-store-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  align-content: start !important;
}

.outpost-is-desktop.outpost-no-map .outpost-store-item {
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  transition: background-color 0.15s ease;
}

.outpost-is-desktop.outpost-no-map .outpost-store-item:hover,
.outpost-is-desktop.outpost-no-map .outpost-store-item.active {
  background-color: rgba(0, 0, 0, 0.03) !important;
  box-shadow: none !important;
  transform: none !important;
}

.outpost-rtl.outpost-is-desktop.outpost-no-map .outpost-store-item,
[dir="rtl"] .outpost-is-desktop.outpost-no-map .outpost-store-item {
  border-right: none !important;
  border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Mobile Search Below Map */
.outpost-is-mobile.outpost-mobile-search-below .outpost-top-bar-header {
  order: 2 !important;
  border-bottom: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.outpost-is-mobile.outpost-mobile-search-below .outpost-locator-body {
  order: 1 !important;
}

/* Sidebar Styling */
.outpost-sidebar {
  width: var(--outpost-sidebar-width, 330px);
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  line-height: 1.5;
  letter-spacing: normal;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.outpost-is-mobile .outpost-sidebar {
  width: 100% !important;
  height: var(--outpost-mobile-result-height, 450px) !important;
  flex: none !important;
  flex-shrink: 0 !important;
  border-right: none !important;
  border-left: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.outpost-is-mobile.outpost-mobile-map-below .outpost-sidebar {
  border-top: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.outpost-is-mobile.outpost-mobile-no-map .outpost-sidebar {
  border-top: none !important;
  border-bottom: none !important;
}

.outpost-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 20;
}

.outpost-search-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outpost-search-box {
  display: flex;
  gap: 8px;
  position: relative;
  align-items: stretch;
}

.outpost-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.outpost-search-input-wrapper:focus-within {
  border-color: var(--outpost-primary, transparent);
  box-shadow: 0 0 0 1px var(--outpost-primary, transparent);
}

.outpost-geo-inside-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 6px;
  margin: 4px 0 4px 4px;
  cursor: pointer;
  color: var(--outpost-geo-icon, #ba5a5a);
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 8px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.outpost-geo-inside-btn:hover {
  color: var(--outpost-geo-icon, #ba5a5a);
  opacity: 0.8;
}

.outpost-geo-inside-btn svg {
  display: block;
}

.outpost-geo-inside-btn.outpost-geo-loading {
  color: var(--outpost-geo-icon, #ba5a5a);
}

.outpost-geo-inside-btn.outpost-geo-loading svg,
.outpost-gps-btn.outpost-geo-loading svg {
  animation: outpost-icon-glow 1.4s ease-in-out infinite;
}

.outpost-gps-btn.outpost-geo-loading {
  pointer-events: none;
  opacity: 0.85;
}

@keyframes outpost-icon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0px transparent);
  }
  50% {
    filter: drop-shadow(0 0 2px color-mix(in srgb, var(--outpost-primary, #3b82f6) 60%, transparent));
  }
}

.outpost-search-input {
  flex: 1;
  min-width: 0;
  background-color: transparent !important;
  border: none !important;
  color: inherit;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: normal;
  padding: 8px 10px;
  border-radius: 0;
  outline: none !important;
  box-shadow: none !important;
}

/* Prevent iOS Safari auto-zoom on focus by enforcing >=16px font-size on mobile/touch screens */
@media screen and (max-width: 768px) {
  .outpost-search-input,
  .outpost-radius-select {
    font-size: 16px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .outpost-search-input,
  .outpost-radius-select {
    font-size: 16px !important;
  }
}

.outpost-is-mobile .outpost-search-input,
.outpost-is-mobile .outpost-radius-select {
  font-size: 16px !important;
}

.outpost-clear-btn {
  background: transparent;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: color 0.15s;
}

.outpost-clear-btn:hover {
  color: #475569;
}

.outpost-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  z-index: 99999;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  margin: 0;
  box-sizing: border-box;
}

.outpost-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.1s;
  text-align: left;
}

.outpost-suggestion-item:last-child {
  border-bottom: none;
}

.outpost-suggestion-item:hover {
  background-color: #f8fafc;
}

.outpost-suggestion-icon {
  flex-shrink: 0;
  color: #64748b;
  display: flex;
  align-items: center;
}

.outpost-suggestion-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outpost-suggestion-text strong {
  font-weight: 700;
  color: #0f172a;
}

.outpost-suggestion-sub {
  color: #64748b;
  font-size: 12px;
  margin-left: 4px;
}

.outpost-btn {
  background-color: var(--outpost-primary, transparent);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: 1.5;
  letter-spacing: normal;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.15s ease;
  box-shadow: none;
}

.outpost-search-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  padding: 0 16px !important;
  min-width: 46px !important;
  height: 36.25px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border-radius: 4px !important;
}

.outpost-search-btn svg {
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.outpost-radius-select {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  height: auto;
  align-self: stretch;
  line-height: 1;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.outpost-radius-select:focus {
  border-color: var(--outpost-primary, transparent);
  box-shadow: 0 0 0 1px var(--outpost-primary, transparent);
}

.outpost-btn:hover {
  opacity: 0.9;
}

.outpost-btn-secondary {
  background-color: rgba(0, 0, 0, 0.04);
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: normal;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.outpost-btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Shared row: GPS button + filters side by side, all items wrap as siblings */
.outpost-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* GPS button is a regular flex item */
.outpost-actions-row .outpost-search-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Flatten .outpost-filters so its children participate directly in the row */
.outpost-actions-row .outpost-filters {
  display: contents;
}

/* Flatten .outpost-tags-container (checkbox mode) so tag items wrap in the row */
.outpost-actions-row .outpost-tags-container {
  display: contents;
}

/* Dropdown mode: restore as a real flex item that fills remaining row space */
.outpost-actions-row .outpost-tags-container.outpost-dropdown-mode {
  display: flex;
  flex: 1;
  min-width: 120px;
}

.outpost-gps-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 5px 10px 5px 8px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  color: var(--outpost-primary, #3b82f6);
  cursor: pointer;
  line-height: 1.3;
  letter-spacing: normal;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.outpost-gps-btn:hover {
  background-color: color-mix(in srgb, var(--outpost-primary, #3b82f6) 8%, transparent);
  border-color: var(--outpost-primary, #3b82f6);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--outpost-primary, #3b82f6) 20%, transparent);
}

.outpost-gps-btn:active {
  background-color: color-mix(in srgb, var(--outpost-primary, #3b82f6) 14%, transparent);
}

.outpost-gps-icon {
  flex-shrink: 0;
  color: var(--outpost-primary, #3b82f6);
  opacity: 0.9;
}

.outpost-gps-label {
  display: inline;
}

/* Filter Tags dropdown container */
.outpost-filters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 30;
}

.outpost-filters-label {
  display: none;
}

.outpost-tags-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
}

/* When in dropdown mode inside actions-row, it's a real flex item (see above) */
.outpost-tags-container.outpost-dropdown-mode {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 100%;
}

.outpost-filter-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
  line-height: 1;
}

.outpost-filter-checkbox-item span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.outpost-filter-checkbox {
  appearance: auto;
  accent-color: var(--outpost-primary, transparent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* Dropdown Filter Mode Styles */
.outpost-filter-dropdown-wrapper {
  position: relative;
  width: 100%;
  min-width: 120px;
}

.outpost-filter-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  white-space: nowrap;
}

.outpost-filter-dropdown-btn:hover {
  border-color: rgba(0, 0, 0, 0.35);
  background-color: #fafafa;
}

.outpost-filter-dropdown-btn:focus-visible {
  outline: none;
  border-color: var(--outpost-primary, transparent);
  box-shadow: 0 0 0 1px var(--outpost-primary, transparent);
}

.outpost-filter-dropdown-btn .outpost-filter-dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.outpost-filter-dropdown-btn.outpost-open .outpost-filter-dropdown-arrow {
  transform: rotate(180deg);
}

.outpost-filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.outpost-filter-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.outpost-filter-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.outpost-filter-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.outpost-filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.outpost-filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  border-radius: 3px;
  transition: background-color 0.1s;
}

.outpost-filter-dropdown-item span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.outpost-filter-dropdown-item:hover {
  background-color: #f8fafc;
}

/* Sidebar List */
.outpost-store-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.outpost-store-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.outpost-store-item:hover, .outpost-store-item.active {
  background-color: rgba(0, 0, 0, 0.03);
}

.outpost-store-item.active {
  border-left: 3px solid var(--outpost-primary, #2563eb) !important;
}

.outpost-store-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.outpost-store-card-body.outpost-no-pin {
  gap: 0;
}

.outpost-store-pin {
  flex-shrink: 0;
  margin-top: 2px;
  color: inherit;
  fill: currentColor;
}

.outpost-store-pin svg {
  display: block;
}

.outpost-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex-shrink: 0;
  vertical-align: middle;
  color: var(--outpost-primary, currentColor);
  line-height: 1;
}

.outpost-field-icon svg {
  display: inline-block;
  vertical-align: middle;
}

.outpost-field-icon-tags {
  margin-top: 2px;
}

.outpost-store-info {
  flex: 1;
  min-width: 0;
}

.outpost-store-name {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--outpost-primary, inherit);
  font-family: inherit;
  transition: color 0.2s ease;
}

.outpost-store-address {
  font-size: 0.9em;
  color: inherit;
  opacity: 0.8;
  margin-top: 4px;
  line-height: 1.45;
  font-family: inherit;
}

.outpost-store-distance {
  font-size: 0.85em;
  color: var(--outpost-primary, inherit);
  font-weight: 600;
  margin-top: 4px;
}

.outpost-store-details {
  font-size: 0.85em;
  color: inherit;
  opacity: 0.75;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.outpost-store-link,
.outpost-phone-link,
.outpost-email-link,
.outpost-website-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.15s ease, color 0.2s ease;
}

.outpost-store-link:hover,
.outpost-phone-link:hover,
.outpost-email-link:hover,
.outpost-website-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.outpost-store-image-wrap {
  overflow: hidden;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.04);
}

.outpost-store-image {
  width: 100%;
  object-fit: cover;
  display: block;
}

.outpost-store-tags-block {
  font-weight: 700;
  font-size: 13px;
  color: inherit;
  line-height: 1.4;
}

.outpost-custom-field-row {
  font-size: 13px;
  color: inherit;
  line-height: 1.4;
}

.outpost-store-notes {
  margin-top: 6px;
  font-size: 13px;
  color: inherit;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.outpost-store-notes a,
.outpost-custom-field-value a {
  color: var(--outpost-primary, #2563eb);
  text-decoration: underline;
  font-weight: 500;
}

.outpost-store-notes ul,
.outpost-custom-field-value ul {
  list-style-type: disc;
  margin: 4px 0 4px 18px;
  padding: 0;
}

.outpost-store-notes ol,
.outpost-custom-field-value ol {
  list-style-type: decimal;
  margin: 4px 0 4px 18px;
  padding: 0;
}

.outpost-store-notes li,
.outpost-custom-field-value li {
  margin-bottom: 2px;
}

.outpost-rtl .outpost-store-notes ul,
.outpost-rtl .outpost-custom-field-value ul,
[dir="rtl"] .outpost-store-notes ul,
[dir="rtl"] .outpost-custom-field-value ul {
  margin: 4px 18px 4px 0;
}

.outpost-rtl .outpost-store-notes ol,
.outpost-rtl .outpost-custom-field-value ol,
[dir="rtl"] .outpost-store-notes ol,
[dir="rtl"] .outpost-custom-field-value ol {
  margin: 4px 18px 4px 0;
}

/* Watermark logo */
.outpost-watermark {
  padding: 12px;
  text-align: center;
  border-top: none;
  background-color: transparent;
  font-size: 10px;
}

.outpost-watermark-link {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  font-weight: 600;
}

.outpost-watermark-link span {
  color: var(--outpost-primary, #b94141);
}

/* Map Pane */
.outpost-map-pane {
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
  background-color: transparent;
}

.outpost-is-mobile .outpost-map-pane {
  width: 100% !important;
  height: 380px !important;
  min-height: 340px !important;
  flex: none !important;
  flex-shrink: 0 !important;
  scroll-margin-top: 10px;
}

/* Map Popups (scrollable with max height & custom scrollbars) */
.gm-style-iw.gm-style-iw-c {
  width: 290px !important;
  max-width: 290px !important;
  max-height: 270px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.gm-style-iw-d {
  width: 100% !important;
  max-width: 290px !important;
  max-height: 235px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px 14px 14px 14px !important;
  box-sizing: border-box !important;
}

.gm-style-iw-d::-webkit-scrollbar,
.mapboxgl-popup-content::-webkit-scrollbar {
  width: 4px;
}

.gm-style-iw-d::-webkit-scrollbar-track,
.mapboxgl-popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.gm-style-iw-d::-webkit-scrollbar-thumb,
.mapboxgl-popup-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
}

.gm-style-iw-d::-webkit-scrollbar-thumb:hover,
.mapboxgl-popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

button.gm-ui-hover-effect {
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.65 !important;
  border-radius: 4px !important;
  z-index: 10 !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, background-color 0.15s ease !important;
  padding: 0 !important;
}

button.gm-ui-hover-effect:hover {
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.06) !important;
}

button.gm-ui-hover-effect > span {
  margin: 0 !important;
}

/* Invisible hit area expansion to make the clickable zone larger without altering visual size or position */
button.gm-ui-hover-effect::before {
  content: "" !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  bottom: -8px !important;
  left: -8px !important;
  cursor: pointer !important;
}

.mapboxgl-popup {
  max-width: 290px !important;
}

.mapboxgl-popup-content {
  width: 290px !important;
  max-width: 290px !important;
  max-height: 270px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px 14px 14px 14px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.outpost-popup-content {
  padding: 0 !important;
  box-sizing: border-box !important;
}

.outpost-popup-content.outpost-popup-rtl,
.outpost-rtl .outpost-popup-content,
[dir="rtl"] .outpost-popup-content {
  padding: 0 !important;
}

/* In map popups, hide notes, custom fields, tags, and field icons by default while keeping them in the DOM */
.outpost-popup-content .outpost-store-notes,
.outpost-popup-content .outpost-custom-field-row,
.outpost-popup-content .outpost-store-tags-block,
.outpost-popup-content .outpost-field-icon {
  display: none;
}

/* In map popups, constrain store image height and match border-radius */
.outpost-popup-content .outpost-store-image {
  max-height: 105px !important;
  width: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
}

.outpost-is-mobile .gm-style-iw.gm-style-iw-c,
.outpost-is-mobile .mapboxgl-popup-content {
  max-height: 220px !important;
  border-radius: 8px !important;
}

.outpost-is-mobile .gm-style-iw-d,
.outpost-is-mobile .mapboxgl-popup-content {
  padding: 10px 12px 12px 12px !important;
}

.outpost-is-mobile .gm-style-iw-d {
  max-height: 185px !important;
}

/* In map popups on mobile, limit image height further so text details remain prominent */
.outpost-is-mobile .outpost-popup-content .outpost-store-image {
  max-height: 80px !important;
}

@media screen and (max-width: 768px) {
  .outpost-map-pane {
    height: 380px !important;
    min-height: 340px !important;
    scroll-margin-top: 10px;
  }
  .gm-style-iw.gm-style-iw-c,
  .mapboxgl-popup-content {
    max-height: 220px !important;
  }
  .gm-style-iw-d,
  .mapboxgl-popup-content {
    padding: 10px 12px 12px 12px !important;
  }
  .gm-style-iw-d {
    max-height: 185px !important;
  }
  .outpost-popup-content .outpost-store-image {
    max-height: 80px !important;
  }
}

.mapboxgl-popup-content a,
.outpost-popup a {
  outline: none !important;
}

.mapboxgl-popup-content a:focus,
.mapboxgl-popup-content a:focus-visible,
.outpost-popup a:focus,
.outpost-popup a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.mapboxgl-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: #64748b !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  opacity: 0.65 !important;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease !important;
  padding: 0 !important;
  z-index: 10 !important;
}

.mapboxgl-popup-close-button:hover {
  opacity: 1 !important;
  color: #0f172a !important;
  background-color: rgba(0, 0, 0, 0.06) !important;
}

.mapboxgl-popup-close-button::before {
  content: "" !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  bottom: -8px !important;
  left: -8px !important;
  cursor: pointer !important;
}

.outpost-cluster-marker {
  cursor: pointer !important;
  user-select: none !important;
}

.outpost-cluster-radar-halo {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease !important;
  will-change: transform !important;
}

.outpost-cluster-radar-core {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
  will-change: transform, box-shadow !important;
}

.outpost-cluster-marker:hover .outpost-cluster-radar-halo {
  transform: scale(1.16) !important;
}

.outpost-cluster-marker:hover .outpost-cluster-radar-core {
  transform: scale(1.06) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

#outpost-store-locator.outpost-error-state,
outpost-store-locator.outpost-error-state {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Errors */
.outpost-error-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 240px;
  height: 100%;
  padding: 40px 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
  font-family: var(--outpost-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.outpost-error-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.outpost-error-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Map Error Overlay */
.outpost-map-error-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.outpost-map-error-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

.outpost-map-error-header {
  font-size: 22px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.outpost-map-error-body {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 20px 0;
}

.outpost-map-error-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.outpost-map-error-link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.outpost-map-error-dismiss {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.outpost-map-error-dismiss:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   Right-to-Left (RTL) Writing System & Layout Support
   ───────────────────────────────────────────────────────────── */
#outpost-store-locator[dir="rtl"],
outpost-store-locator[dir="rtl"],
#outpost-store-locator.outpost-rtl,
outpost-store-locator.outpost-rtl {
  direction: rtl;
  text-align: right;
}

/* RTL Desktop Layouts */
.outpost-rtl.outpost-layout-search-right .outpost-locator-body,
.outpost-rtl.outpost-layout-bar-top-right .outpost-locator-body,
[dir="rtl"].outpost-layout-search-right .outpost-locator-body,
[dir="rtl"].outpost-layout-bar-top-right .outpost-locator-body {
  flex-direction: row;
}

.outpost-rtl.outpost-layout-search-left .outpost-locator-body,
.outpost-rtl.outpost-layout-bar-top-left .outpost-locator-body,
[dir="rtl"].outpost-layout-search-left .outpost-locator-body,
[dir="rtl"].outpost-layout-bar-top-left .outpost-locator-body {
  flex-direction: row-reverse;
}

/* RTL Sidebar Layout & Border separation */
.outpost-rtl .outpost-sidebar,
[dir="rtl"] .outpost-sidebar,
.outpost-rtl.outpost-layout-search-right .outpost-sidebar,
.outpost-rtl.outpost-layout-bar-top-right .outpost-sidebar,
[dir="rtl"].outpost-layout-search-right .outpost-sidebar,
[dir="rtl"].outpost-layout-bar-top-right .outpost-sidebar {
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.outpost-rtl.outpost-layout-search-left .outpost-sidebar,
.outpost-rtl.outpost-layout-bar-top-left .outpost-sidebar,
[dir="rtl"].outpost-layout-search-left .outpost-sidebar,
[dir="rtl"].outpost-layout-bar-top-left .outpost-sidebar {
  border-left: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* RTL Active store item border */
.outpost-rtl .outpost-store-item.active,
[dir="rtl"] .outpost-store-item.active {
  border-left: none !important;
  border-right: 3px solid var(--outpost-primary, #2563eb) !important;
}

/* RTL Search input and controls */
.outpost-rtl .outpost-geo-inside-btn,
[dir="rtl"] .outpost-geo-inside-btn {
  margin: 4px 4px 4px 0;
}

.outpost-rtl .outpost-search-input,
[dir="rtl"] .outpost-search-input {
  text-align: right;
}

.outpost-rtl .outpost-suggestion-item,
[dir="rtl"] .outpost-suggestion-item {
  text-align: right;
}

.outpost-rtl .outpost-suggestion-sub,
[dir="rtl"] .outpost-suggestion-sub {
  margin-right: 4px;
  margin-left: 0;
}

.outpost-rtl .outpost-filter-dropdown-btn,
[dir="rtl"] .outpost-filter-dropdown-btn {
  text-align: right;
}

.outpost-rtl .outpost-filter-dropdown-btn .outpost-filter-dropdown-arrow,
[dir="rtl"] .outpost-filter-dropdown-btn .outpost-filter-dropdown-arrow {
  margin-right: 8px;
  margin-left: 0;
}

.outpost-rtl .outpost-store-info,
[dir="rtl"] .outpost-store-info {
  text-align: right;
}

.outpost-rtl .outpost-store-details,
[dir="rtl"] .outpost-store-details {
  text-align: right;
}

/* RTL Map Popups */
.outpost-rtl .gm-style-iw,
[dir="rtl"] .gm-style-iw,
.outpost-rtl .mapboxgl-popup-content,
[dir="rtl"] .mapboxgl-popup-content,
.outpost-popup-rtl {
  direction: rtl !important;
  text-align: right !important;
}

.outpost-rtl button.gm-ui-hover-effect,
[dir="rtl"] button.gm-ui-hover-effect,
.outpost-rtl .mapboxgl-popup-close-button,
[dir="rtl"] .mapboxgl-popup-close-button {
  top: 8px !important;
  right: auto !important;
  left: 8px !important;
}

