/* Dealer Page Styles */

/* Hero Section */
.hero-section {
  position: relative;
  height: 418px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  padding: 0px 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: 36px;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 6px;
  color: white;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 14px;
  width: 100%;
  margin: 0 auto;
  font-weight: 300;
  color: white;
}

/* Search Section */
.search-section {
  background-color: #F4F4F4;
  padding: 30px;
}

.dealer-search-container {
  max-width: 1440px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 26px;
  font-weight: bold;
  color: #1C1C1C;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.7);
}

.search-form {
  max-width: 600px;
  margin: 0 auto 50px;
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 14px;
  border-radius: 2px;
  font-size: 16px;
  color: #1C1C1C;
  outline: none;
  background-color: white;
  border: 1px solid #E5E7EB;
}

.search-input:focus {
  border-color: #BE930B;
}

.search-button {
  background-color: #BE930B;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 2px;
  border: none;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #d4a612;
}

.search-message {
  margin-top: 10px;
  font-size: 14px;
}

/* Dealer List */
.dealer-grid {
  display: grid;
  gap: 30px;
}

.dealer-card {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.dealer-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dealer-image {
  height: 200px;
  background-color: #E5E7EB;
  overflow: hidden;
}

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

.dealer-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.dealer-name {
  font-size: 20px;
  font-weight: bold;
  color: #1C1C1C;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dealer-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 20px;
}

.address-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.address-text {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.dealer-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 20px;
}

.phone-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.phone-text {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.7);
}

.dealer-action {
  margin-top: auto;
}

.view-details-button {
  display: block;
  width: 100%;
  background-color: #BE930B;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.view-details-button:hover {
  background-color: #d4a612;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 50px 0;
}

.no-results-title {
  font-size: 18px;
  color: rgba(28, 28, 28, 0.7);
  margin-bottom: 20px;
}

.no-results-subtitle {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.5);
}

/* Pagination */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.page-info {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.7);
}

.page-navigation {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid #BE930B;
  color: #BE930B;
  border-radius: 4px;
  background-color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 60px;
  text-align: center;
}

.page-button:hover:not(:disabled) {
  background-color: #BE930B;
  color: white;
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-number {
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-number.active {
  background-color: #BE930B;
  color: white;
}

.page-number:not(.active) {
  border: 1px solid #BE930B;
  color: #BE930B;
}

.page-number:not(.active):hover {
  background-color: #BE930B;
  color: white;
}

.page-ellipsis {
  padding: 8px 12px;
  color: #BE930B;
}

/* Become a Dealer Section */
.become-dealer-section {
  background-color: white;
  padding: 30px;
}

.become-dealer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.become-dealer-card {
  background-color: #1C1C1C;
  border-radius: 6px;
  overflow: hidden;
}

.become-dealer-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.become-dealer-title {
  font-size: 26px;
  font-weight: bold;
  color: white;
  margin-bottom: 16px;
}

.become-dealer-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.become-dealer-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.benefit-icon {
  width: 20px;
  height: 20px;
}

.learn-more-button {
  display: inline-block;
  background-color: #BE930B;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
}

.learn-more-button:hover {
  background-color: #d4a612;
}

.become-dealer-image {
  display: block;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .hero-section {
    height: 450px;
  }
  
  .hero-title {
    font-size: 50px;
  }
  
  .hero-description {
    font-size: 16px;
    width: 100%;
  }
  
  .search-section {
    padding: 50px;
  }
  
  .search-container {
    padding: 0;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .dealer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .become-dealer-section {
    padding: 80px;
  }
  
  .become-dealer-container {
    padding: 0;
  }
  
  .become-dealer-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .become-dealer-title {
    font-size: 36px;
  }
  
  .become-dealer-image {
    display: block;
  }
  
  .become-dealer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .dealer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    width: 100%;
  }
  
  .search-section {
    padding: 30px 20px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .become-dealer-section {
    padding: 30px 20px;
  }
  
  .become-dealer-content {
    padding: 40px 20px;
  }
  
  .become-dealer-title {
    font-size: 26px;
  }
}

/* Store Info Window Styles */
.store-info {
  font-size: 14px;
  font-weight: bold;
}

.store-name {
  font-weight: bold;
  color: #3081EC;
  margin-bottom: 4px;
}

.store-address {
  color: #6b7280;
  margin-bottom: 8px;
}

.store-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
}

.store-feature {
  color: #111827;
  font-weight: bold;
}

.store-contact-phone {
  color: #6b7280;
}

.store-distance {
  color: #111827;
}