.hmf-where-to-buy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  font-family: "Montserrat", Sans-serif;
}

.where-to-buy-header {
  text-align: center;
  margin-bottom: 30px;
}

.where-to-buy-title {
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.title-main {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 5px;
}

.title-brand {
  display: block;
  font-size: 24px;
  color: #000;
  font-weight: 400;
}

.where-to-buy-description {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.search-form {
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: 200px;
}

.form-select,
.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.search-button {
  width: 100%;
  padding: 12px 24px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background: #b91c1c;
}

.search-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.results-section {
  margin-top: 90px;
}

.results-header {
  text-align: center;
  margin-bottom: 20px;
}

.results-count {
  font-size: 18px;
  color: #dc2626;
  font-weight: 700;
  margin: 0;
}

.results-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  min-height: 500px;
}

.store-list-column {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.store-list {
  margin-bottom: 20px;
}

.store-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #6e6e6e;
}

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

.store-number {
  font-size: 24px;
  font-weight: 700;
  color: #dc2626;
  margin-right: 15px;
  min-width: 30px;
}

.store-details {
  flex: 1;
}

.store-name {
  font-weight: 700;
  font-size: 16px;
  color: #000;
  margin-bottom: 0;
}

.store-address,
.store-phone {
  font-size: 14px;
  color: #fff;
  margin-bottom: 0;
}

.store-distance {
  font-size: 14px;
  color: #dc2626;
  font-weight: 700;
}

.store-list-column .pagination {
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-button,
.next-button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: rgba(0, 0, 0, 0) !important;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.page-button.active,
.page-button:hover,
.next-button.active,
.next-button:hover {
  background: #c81f36 !important;
  color: #fff;
  border-color: #c81f36 !important;
}

.next-button:hover {
  background: #f3f4f6;
}

.ellipsis {
  padding: 8px 4px;
  color: #666;
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}

.map-column {
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0);
  overflow: hidden;
}

.google-map {
  width: 100%;
  height: 500px;
  min-height: 500px;
  border-radius: 8px;
}

.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-field {
    min-width: auto;
  }

  .results-container {
    grid-template-columns: 1fr;
  }

  .title-main {
    font-size: 36px;
  }

  .title-brand {
    font-size: 20px;
  }
}

.where-to-buy-header {
  display: none !important;
}

.hmf-where-to-buy .search-form {
  max-width: 800px;
  margin: 0 auto;
}

.hmf-where-to-buy.search-form .form-row {
  display: flex;
  gap: 32px;
}

.hmf-where-to-buy .search-form .form-field {
  flex: 1;
}

.hmf-where-to-buy .search-form .form-input,
.hmf-where-to-buy .search-form .form-select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  font-weight: 600;
  box-sizing: border-box;
}

.hmf-where-to-buy .search-form .form-input::placeholder {
  color: #767676 !important;
}

.hmf-where-to-buy .search-form .search-button {
  width: 100%;
  height: 50px;
  background-color: var(--e-global-color-primary);
  font-family: "Barlow Condensed", Sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  font-size: 23px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  line-height: 1em;
}

.hmf-where-to-buy .search-form .search-button:hover {
  background-color: #b01b30;
}

.hmf-where-to-buy .search-form .form-select {
  color: #767676 !important;
  font-weight: 600;
}

.hmf-where-to-buy .search-form .form-select:has(option:not(:first-child):checked) {
  color: #333 !important;
}

.store-list-column {
  border: 0;
  border-radius: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0);
}

.store-number,
.store-name,
.store-distance {
  color: #ffe02b;
}

.results-count {
  font-family: "Barlow Condensed", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2em;
  color: #dc2626;
  margin-bottom: 50px;
}

.store-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
}

.store-number {
  font-size: 24px;
  font-weight: 700;
  min-width: 30px;
}

.store-details {
  flex: 1;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.store-name {
  font-weight: 700;
  display: inline-block;
  margin-right: auto;
}

.store-distance {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 14px;
  padding-top: 6px;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .store-name {
    font-size: 16px;
  }

  .store-distance {
    font-size: 12px;
  }

  .store-address,
  .store-phone {
    font-size: 12px;
  }

  .results-container {
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .search-form .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .search-form .form-field {
    flex: none;
    width: 100%;
  }

  .search-form .form-input,
  .search-form .form-select,
  .search-form .search-button {
    width: 100%;
  }

  .results-count {
    margin-bottom: 0;
  }
}
