/**
 * Frontend styles for PBD Stockist Locator
 */

/* Main container */
.pbd-stockist-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Layout - Updated for 400px sidebar */
.pbd-stockist-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 15px;
  margin-bottom: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .pbd-stockist-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #brxe-afc017 {
    padding-bottom: 60px !important;
  }
}

/* Sidebar - Updated to match Figma design */
.pbd-stockist-sidebar {
  background: white;
  border: 1px solid #d9dbdc;
  border-radius: 16px;
  padding: 0;
  box-shadow: none;
  width: 400px;
  height: 650px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}

/* Blue header section */
.sidebar-header-blue {
  background: #004974;
  padding: 10px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-header-blue h3 {
  color: white;
  font-size: 24px;
  font-family: "Mikado", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  line-height: 36px;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Sidebar content area */
.sidebar-content {
  padding: 0;
  background: white;
  height: calc(100% - 70px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
#stockist-list-stage {
  height: 100%;
}
#stockist-list-stage .sidebar-content,
#stockist-detail-stage .sidebar-content {
  padding: 0;
  gap: 0;
}

/* Fix scrolling for stockist detail content */
#stockist-detail-stage .sidebar-content {
  overflow-y: auto;
  height: calc(100% - 70px);
}

.stockist-detail-content {
  height: 100%;
  overflow-y: auto;
}

.sidebar-subtitle {
  color: #434a4f;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  padding: 24px 20px 0;
}

/* Search box */
.pbd-stockist-search {
  margin-bottom: 25px;
}

.pbd-stockist-search input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.pbd-stockist-search input:focus {
  outline: none;
  border-color: #2c5aa0;
}

.pbd-stockist-search button {
  width: 100%;
  background: #2c5aa0;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.pbd-stockist-search button:hover {
  background: #1e3f73;
}

/* Country list styling */
.pbd-country-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.pbd-country-item {
  border-top: 1px solid #d9dbdc;
  margin: 0;
}

.pbd-country-item:last-child {
  border-bottom: 1px solid #d9dbdc;
}

.pbd-country-item .country-btn {
  width: 100%;
  padding: 20px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 0;
  text-align: left;
}

.pbd-country-item .country-btn:hover {
  background: #f5f6f7;
}

.pbd-country-item .country-btn:focus {
  outline: none;
  background: #f5f6f7;
}

.country-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.country-flag {
  width: 32px;
  height: 21.33px;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.country-name {
  color: #434a4f;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  line-height: 20.8px;
}

.arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Type filters */
.pbd-stockist-types {
  margin-bottom: 25px;
}

.pbd-stockist-types h4 {
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
}

.pbd-type-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pbd-type-filter button {
  padding: 8px 16px;
  border: 2px solid #e1e8ed;
  background: white;
  color: #666;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pbd-type-filter button:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
}

.pbd-type-filter button.active {
  background: #2c5aa0;
  border-color: #2c5aa0;
  color: white;
}

/* Map container */
.pbd-stockist-main {
  position: relative;
}

.pbd-stockist-map-container {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Floating Search Bar */
.pbd-floating-search-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: white;
  border-radius: 16px;
  border: 1px solid #d9dbdc;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 897px;
  width: calc(100% - 40px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
    .pbd-floating-search-bar {
        padding: 10px 10px 30px 10px;
    }
    .use-location-btn {
        margin-top: 0;
    }
}
/* Collapsed state for search bar */
.pbd-floating-search-bar.collapsed {
  padding: 0;
  width: 120px;
  max-width: none;
  cursor: pointer;
}

.pbd-floating-search-bar.collapsed .search-bar-form {
  display: none;
}

.pbd-floating-search-bar.collapsed .search-bar-collapsed-pill {
  display: flex;
}

.search-bar-collapsed-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar-collapsed-pill:hover {
  background: #f5f6f7;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.search-bar-collapsed-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-bar-collapsed-pill span {
  color: #0168a5;
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.search-bar-form {
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-input {
  height: 40px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #d9dbdc;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  line-height: 24px;
  color: #18203d;
}

.location-input-wrapper {
  position: relative;
  flex: 1;
}

.location-input {
  width: 100%;
  padding-right: 40px; /* Make room for clear button */
}

.location-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
@media screen and (max-width: 768px) {
    .location-clear-btn {
         top: calc(50% - 15px);
    }
}
.location-clear-btn:hover {
  color: #004974;
  background-color: #f5f5f5;
}

.location-clear-btn:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

/* Use My Location Button */
.use-location-btn {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: none;
  border: none;
  color: #0168a5;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 500;
  transition: color 0.2s ease;
}

.use-location-btn:hover {
  color: #004974;
  text-decoration: underline;
}

.use-location-btn:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
  border-radius: 4px;
}

.use-location-btn svg {
  flex-shrink: 0;
}

.use-location-btn span {
  white-space: nowrap;
}

.search-input::placeholder {
  color: #555666;
  opacity: 0.5;
}

.country-dropdown-wrapper {
  position: relative;
  min-width: 200px;
}

.country-select {
  width: 100%;
  padding-right: 30px;
  appearance: none;
  background: white;
  cursor: pointer;
}

.dropdown-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-submit-btn {
  height: 40px;
  padding: 12px 24px;
  background: #8bc251;
  border: none;
  border-radius: 100px;
  color: white;
  font-size: 16px;
  font-family: "Mikado", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-submit-btn:hover {
  background: #7ab041;
}

.pbd-stockist-map {
  width: 100%;
  height: 650px;
  min-height: 400px;
}

#stockist-map {
  width: 100%;
}

/* Map height already set in main mobile styles */

/* Map controls */
.pbd-stockist-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.pbd-map-control-btn {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.pbd-map-control-btn:hover {
  background: #f5f5f5;
}

.pbd-map-control-btn.active {
  background: #2c5aa0;
  color: white;
  border-color: #2c5aa0;
}

/* Loading states */
.pbd-stockist-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #666;
}

.pbd-stockist-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #e1e8ed;
  border-top-color: #2c5aa0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error states */
.pbd-stockist-error {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  padding: 15px;
  color: #c33;
  text-align: center;
  margin: 20px 0;
}

/* No results */
.pbd-stockist-no-results {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Custom info window styles */
.pbd-info-window {
  max-width: 300px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pbd-info-window h3 {
  color: #2c5aa0;
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

.pbd-info-window .address {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pbd-info-window .contact-info {
  margin-bottom: 15px;
}

.pbd-info-window .contact-info a {
  color: #2c5aa0;
  text-decoration: none;
}

.pbd-info-window .contact-info a:hover {
  text-decoration: underline;
}

.pbd-info-window .business-hours {
  margin-bottom: 15px;
  font-size: 14px;
}

.pbd-info-window .business-hours .hours-status {
  font-weight: 600;
  margin-bottom: 5px;
}

.pbd-info-window .business-hours .open {
  color: #28a745;
}

.pbd-info-window .business-hours .closed {
  color: #dc3545;
}

.pbd-info-window .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pbd-info-window .btn {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.pbd-info-window .btn-primary {
  background: #2c5aa0;
  color: white;
}

.pbd-info-window .btn-primary:hover {
  background: #1e3f73;
}

.pbd-info-window .btn-secondary {
  background: #6c757d;
  color: white;
}

.pbd-info-window .btn-secondary:hover {
  background: #545b62;
}

/* CTA Section */
.pbd-stockist-cta {
  background: linear-gradient(135deg, #4a90e2 0%, #2c5aa0 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.pbd-stockist-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.pbd-stockist-cta-content {
  position: relative;
  z-index: 2;
}

.pbd-stockist-cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.pbd-stockist-cta p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.pbd-stockist-cta-btn {
  display: inline-block;
  background: white;
  color: #2c5aa0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pbd-stockist-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #1e3f73;
}

/* Responsive design */
@media (max-width: 1024px) {
  .pbd-stockist-container {
    padding: 15px;
  }
}
@media (min-width: 768px) {
  .sidebar-header-blue.mobile-header {
    display: none;
  }
}
@media (max-width: 768px) {
  /* Main container adjustments */
  .pbd-stockist-container {
    padding: 0;
  }
  .pbd-stockist-map-controls {
    display: none;
  }

  /* Layout - Stack map and sidebar vertically */
  .pbd-stockist-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }

  /* Map container should come first and be visible */
  .pbd-stockist-main {
    order: 1;
    position: relative;
    width: 100%;
    height: 80vh;
    margin-bottom: 0;
  }

  .pbd-stockist-map-container {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .pbd-stockist-map {
    height: 100%;
  }

  /* Floating search bar adjustments */
  .pbd-floating-search-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    width: calc(100% - 20px);
    max-width: none;
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
  }

  .search-bar-form {
    flex-direction: column;
    gap: 8px;
  }

  .search-input {
    width: 100%;
    height: 36px;
    font-size: 14px;
  }

  .location-input-wrapper {
    width: 100%;
    order: 1;
  }

  .location-input {
    width: 100%;
    padding-right: 36px; /* Adjust for mobile */
  }

  .location-clear-btn {
    right: 10px;
    padding: 2px;
  }

  .use-location-btn {
    position: static;
    margin-top: 0;
    order: 2;
    padding: 8px 0;
    justify-content: flex-start;
    width: 100%;
  }

  .country-dropdown-wrapper {
    display: none;
    order: 3;
    width: 100%;
    min-width: unset;
  }

  .radius-dropdown-wrapper {
    display: none;
    order: 4;
    width: 100%;
    min-width: unset;
  }

  .radius-dropdown-wrapper.show-radius {
    display: block;
  }

  .country-select,
  .radius-select {
    width: 100%;
    height: 36px;
    font-size: 14px;
  }

  .search-submit-btn {
    order: 5;
    width: 100%;
    height: 36px;
    font-size: 14px;
    padding: 8px 16px;
    text-align: center;
  }

  /* Sidebar - comes second below the map */
  .pbd-stockist-sidebar {
    order: 2;
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid #d9dbdc;
    margin: 0;
    padding: 0;
    box-shadow: none;
    top: unset;
    margin-top: -25px;
  }

  /* Blue header adjustments */
  .sidebar-header-blue.desktop-header {
    display: none;
    height: 56px;
    padding: 10px 16px;
    border-radius: 0;
  }

  .sidebar-header-blue h3 {
    font-size: 18px;
    line-height: 28px;
  }

  /* Sidebar content */
  .sidebar-content {
    height: auto;
    max-height: 600px;
    overflow-y: auto;
    padding: 0;
  }

  .sidebar-subtitle {
    padding: 16px;
    line-height: 20px;
  }

  /* Country list */
  .pbd-country-list {
    max-height: 300px;
    overflow-y: auto;
  }

  .pbd-country-item .country-btn {
    padding: 16px;
  }

  .country-name {
    font-size: 14px;
  }

  .country-flag {
    font-size: 20px;
    width: 28px;
    height: 20px;
  }

  /* Country selection bar */
  .country-selection-bar {
    padding: 12px 16px;
  }

  /* Stockist list */
  .stockist-list-wrapper {
    height: auto;
    max-height: 450px;
  }

  .stockist-list-container {
    max-height: 450px;
  }

  /* Hide mobile controls since we don't need them */
  .pbd-mobile-controls {
    display: none !important;
  }

  /* Remove any slide-in behavior */
  .pbd-stockist-sidebar.mobile-open {
    left: 0;
    position: static;
  }

  /* CTA Section */
  .pbd-stockist-cta {
    padding: 40px 20px;
    margin: 20px 16px;
  }

  .pbd-stockist-cta h2 {
    font-size: 24px;
  }

  .pbd-stockist-cta p {
    font-size: 16px;
  }

  .pbd-info-window .actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

/* Responsive design for CTA section */
@media (max-width: 1440px) {
  .pbd-stockist-cta {
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width: 1024px) {
  .pbd-stockist-cta-container {
    gap: 40px;
  }

  .pbd-stockist-cta-map {
    width: 450px;
    height: auto;
  }

  .pbd-stockist-cta h2 {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 768px) {
  .pbd-stockist-cta {
    padding: 40px 20px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border-radius: 24px;
  }

  .pbd-stockist-cta-container {
    flex-direction: column;
    gap: 24px !important;
    align-items: center !important;
  }

  .pbd-stockist-cta-map {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  }

  .pbd-stockist-cta-content {
    width: 100%;
    align-items: center !important;
    gap: 24px;
  }

  .pbd-stockist-cta-text {
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .pbd-stockist-cta h2 {
    line-height: 120% !important;
    text-align: left !important;
    font-size: 26px !important;
  }

  .pbd-stockist-cta p {
    text-align: left !important;
    font-size: 16px;
    line-height: 24px;
  }

  .pbd-stockist-cta-btn {
    width: 100%;
    max-width: 270px;
  }
}

/* Accessibility */
.pbd-stockist-container button:focus,
.pbd-stockist-container input:focus,
.pbd-stockist-container a:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Country selection bar (Stage 2) */
.country-selection-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: #f5f6f7;
  border-bottom: 1px solid #d9dbdc;
}

.back-to-countries {
  background: inherit;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.back-to-countries:hover {
  background: #0168a5;
}

.back-to-countries:hover svg path {
  stroke: white;
}

.selected-country-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.selected-country-info .selected-country-flag {
  font-size: 24px;
}

.selected-country-info .selected-country-name {
  color: #434a4f;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  line-height: 20.8px;
}

/* Stockist list wrapper */
.stockist-list-wrapper {
  flex: 1;
  overflow: hidden;
  background: white;
  position: relative;
}

.stockist-list-container {
  height: 100%;
  overflow-y: auto;
  background: white;
}

.stockist-list-item {
  border-bottom: 1px solid #d9dbdc;
  background: white;
}

.stockist-list-item:last-child {
  border-bottom: none;
}

.stockist-item-btn {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.stockist-item-btn:hover {
  background: #f8f9fa;
}

/* Location pin icon */
.location-pin-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-pin-icon svg {
  width: 18px;
  height: 22px;
}

.stockist-item-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.stockist-item-content h4 {
  margin: 0;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  line-height: 20.8px;
  color: #434a4f;
}

/* Chevron arrow */
.stockist-chevron {
  width: 6px;
  height: 12px;
  flex-shrink: 0;
}

/* Stage 3 Header - Stores Stocking Safar Publications */

#stockist-detail-stage
/* Back button styling for Stage 3 */
#stockist-detail-stage .back-btn {
  background: none;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  line-height: 20.8px;
  padding: 0;
}

#stockist-detail-stage .back-btn:hover {
  opacity: 0.8;
}

/* Accordion section for back button */
.stockist-detail-accordion {
  width: 100%;
  padding: 20px;
  background: #f5f6f7;
  border-bottom: 1px solid #d9dbdc;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stockist-detail-accordion .back-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stockist-detail-accordion .back-arrow:hover svg path {
  stroke: #0168a5;
}

.stockist-detail-accordion .country-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.stockist-detail-accordion .country-name {
  color: #434a4f;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  line-height: 20.8px;
}

/* Stockist detail content */
.stockist-detail {
  padding: 24px 20px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stockist-detail .city-name {
  color: #434a4f;
  font-size: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  line-height: 26px;
  margin: 0;
}

/* Contact info sections */
.stockist-detail-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stockist-detail-info .info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stockist-detail-info .info-content {
  flex: 1;
  color: #434a4f;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  line-height: 20.8px;
}

.stockist-detail-info .info-content a {
  color: #0168a5;
  text-decoration: none;
}

.stockist-detail-info .info-content a:hover {
  text-decoration: underline;
}

/* Store image */
.store-image-placeholder {
  width: 100%;
  height: 240px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* View in Google Maps button */
.view-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 16px 24px;
  background: #8bc251;
  color: white;
  text-align: center;
  border-radius: 100px;
  text-decoration: none;
  font-size: 16px;
  font-family: "Mikado", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 24px;
  letter-spacing: 0.32px;
  transition: background 0.2s;
  gap: 10px;
}

.view-maps-btn:hover {
  background: #7ab041;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #667085;
  font-size: 14px;
}

/* Header styling enhancements */
.pbd-stockist-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 50px 20px;
  background: linear-gradient(
    135deg,
    rgba(44, 90, 160, 0.08) 0%,
    rgba(74, 144, 226, 0.05) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(44, 90, 160, 0.1);
}

.pbd-stockist-title {
  color: #1a365d;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pbd-stockist-subtitle {
  color: #64748b;
  font-size: 20px;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

/* Enhanced search styling */
.search-input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
  transform: translateY(-1px);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #1e3f73;
  transform: translateY(-50%) scale(1.05);
}

/* Enhanced country styling */
/* Scrollbar styling for country list */
.pbd-country-list::-webkit-scrollbar {
  width: 6px;
}

.pbd-country-list::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 3px;
}

.pbd-country-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.pbd-country-list {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Enhanced mobile controls */
.pbd-mobile-controls {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.pbd-mobile-toggle {
  background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.pbd-mobile-toggle:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 35px rgba(44, 90, 160, 0.5);
}

.pbd-mobile-toggle .toggle-icon {
  font-size: 18px;
}

/* Enhanced info window styling */
.pbd-info-window {
  max-width: 320px;
  margin-top: -10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 8px;
}

.pbd-info-window h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.pbd-info-window .address {
  color: #4a5568;
  margin-bottom: 12px;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.pbd-info-window .contact-info {
  margin-bottom: 16px;
}

.pbd-info-window .contact-info > div {
  margin-bottom: 6px;
  font-size: 14px;
}

.pbd-info-window .contact-info a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
}

.pbd-info-window .contact-info a:hover {
  text-decoration: underline;
}

.pbd-info-window .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.pbd-info-window .btn {
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  flex: 1;
}

.pbd-info-window .btn-primary {
  background: #8bc251;
  color: white;
  box-shadow: 0 2px 6px rgba(139, 194, 81, 0.3);
}

.pbd-info-window .btn-primary:hover {
  background: #7aa643;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(139, 194, 81, 0.4);
}

.pbd-info-window .btn-secondary {
  background: white;
  color: #004974;
  border: 1px solid #004974;
  outline: 1px solid #004974;
  outline-offset: -1px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pbd-info-window .btn-secondary:hover {
  background: #f0f7ff;
  color: #004974;
  transform: translateY(-1px);
  border-color: #004974;
}

/* Enhanced mobile responsiveness */
@media (max-width: 1024px) {
  .pbd-stockist-layout {
    grid-template-columns: 350px 1fr;
    gap: 25px;
  }

  .pbd-stockist-sidebar {
    border: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pbd-stockist-title {
    font-size: 32px;
  }

  .pbd-stockist-subtitle {
    font-size: 18px;
  }
}

/* Focus and accessibility enhancements */
.pbd-stockist-container button:focus-visible,
.pbd-stockist-container input:focus-visible,
.pbd-stockist-container a:focus-visible {
  outline: 3px solid #2c5aa0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading and error state improvements */
.pbd-stockist-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  background: #f8fafc;
  border-radius: 12px;
  margin: 20px 0;
}

.pbd-stockist-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  color: #dc2626;
  text-align: center;
  margin: 20px 0;
  font-weight: 500;
}

/* CTA section enhancements */
.pbd-stockist-cta {
  background: #2faedb;
  color: white;
  padding: 62px 64px;
  border-radius: 32px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.pbd-stockist-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 77px;
}

.pbd-stockist-cta-map {
  max-width: 615px;
  max-height: 383px;
  width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.pbd-stockist-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 538px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.pbd-stockist-cta-text {
  display: flex;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pbd-stockist-cta h2 {
  font-size: 48px;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 57.6px;
  margin: 0;
  color: white;
}

.pbd-stockist-cta p {
  font-size: 18px;
  line-height: 27px;
  margin: 0;
  color: white;
  max-width: 546px;
}

.pbd-stockist-cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #8bc251;
  color: white;
  padding: 16px 20px;
  min-width: 270px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  line-height: 24px;
  transition: all 0.3s ease;
}

.pbd-stockist-cta-btn:hover {
  background: #7aa643;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* =============================================
   NEW: Radius selector and location search styles
   ============================================= */

/* Radius selector styling */
.radius-dropdown-wrapper {
  position: relative;
  min-width: 120px;
}

.radius-select {
  width: 100%;
  padding-right: 30px;
  appearance: none;
  background: white;
  cursor: pointer;
  height: 40px;
  padding: 10px 35px 10px 16px;
  border: 1px solid #d9dbdc;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.radius-dropdown-wrapper .dropdown-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Enhanced location input for autocomplete */
.location-input {
  flex: 2;
  min-width: 150px;
}

/* Distance display in stockist list */
.stockist-distance {
  display: block;
  color: #7b8288;
  font-size: 13px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  margin-top: 4px;
}

/* Google Places Autocomplete dropdown */
.pac-container {
  z-index: 9999;
  border: 1px solid #d9dbdc;
  border-radius: 8px;
  margin-top: 2px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pac-item {
  padding: 10px 15px;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.pac-item:hover {
  background-color: #f5f6f7;
}

.pac-icon {
  background-image: none;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.pac-icon::before {
  content: "📍";
  font-size: 16px;
}

.pac-item-query {
  font-size: 14px;
  color: #434a4f;
}

/* Responsive updates for new elements */
@media (max-width: 768px) {
  .radius-dropdown-wrapper {
    flex: 1;
    min-width: unset;
  }

  .location-input {
    width: 100%;
    min-width: unset;
  }

  .search-bar-form {
    flex-wrap: wrap;
    gap: 10px;
  }

  .radius-select,
  .country-select {
    font-size: 14px;
  }
}
