/* dealers.css */
:root {
  --primary-color: #e63946;
  --dark-color: #0f2027;
  --light-color: #f1faee;
  --accent-color: #a8dadc;
  --text-color: #ffffff;
  --secondary-text: #b5c6d6;
  --dark-color-secondary: #1a2432;
  --border: rgba(168, 218, 220, 0.2);
  --shadow: 0 20px 60px rgba(15, 32, 39, 0.3);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  width: 100%;
  overflow: hidden;
}

.img-hero {
  width: 100%;
  height: 100%;
}

.img-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(35%);
  transform: scale(1.05);
  transition: transform 10s ease;
}

.hero:hover .img-hero img {
  transform: scale(1);
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(15,32,39,0.2) 0%, rgba(15,32,39,0.8) 100%);
}

.teks-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1s ease;
}

.teks-hero p {
  font-size: 1.2rem;
  color: var(--secondary-text);
  animation: fadeInUp 1s ease 0.2s both;
}

.teks-hero a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.teks-hero a:hover {
  color: var(--accent-color);
}

.teks-about {
  color: #ffffff;
  font-weight: 700;
  /* border-bottom: 2px solid #ffffff;x */
}

/* Dealers Section */
.dealers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.section-header p {
  color: var(--secondary-text);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.6;
}

.section-header:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #ffffff;
  margin: 20px auto 0;
  border-radius: 4px;
}

/* Filter Section */
.filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  background: rgba(15, 32, 39, 0.5);
  padding: 20px 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.filter label {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.filter select {
  padding: 12px 25px;
  padding-right: 45px;
  border: 2px solid rgba(168, 218, 220, 0.2);
  border-radius: 30px;
  background-color: rgba(26, 36, 50, 0.8);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 250px;
  outline: none;
  appearance: none;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-wrapper i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.select-wrapper:hover i {
  color: var(--accent-color);
}

.filter select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}

.filter select:hover {
  border-color: var(--accent-color);
}

.filter select option {
  background: var(--dark-color-secondary);
  color: white;
  padding: 10px;
}

/* Dealer List */
.dealer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.dealer-card {
  background: rgba(15, 32, 39, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.dealer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 20px 20px 0 0;
}

.dealer-card:hover::before {
  transform: scaleX(1);
}

.dealer-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(230, 57, 70, 0.4);
}

.dealer-card h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  background: linear-gradient(135deg, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dealer-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.dealer-card:hover h3::after {
  width: 100px;
}

.dealer-card p {
  color: var(--secondary-text);
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 1rem;
  flex-grow: 1;
}

/* Map Styles */
.dealer-card iframe {
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05) !important;
}

.dealer-card:hover iframe {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

/* WhatsApp Button matching contact floating hover */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 14px 25px;
  border-radius: 30px;
  font-weight: 700;
  transition: var(--transition);
  width: 100%;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  font-size: 1.05rem;
  animation: pulse-wa 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.05); /* Same as the floating button scale */
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
  background: #20b858;
}

.whatsapp-button i {
  font-size: 1.4rem;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.dealer-card {
  animation: fadeInUp 0.8s ease forwards;
}

.dealer-card:nth-child(1) { animation-delay: 0.1s; }
.dealer-card:nth-child(2) { animation-delay: 0.2s; }
.dealer-card:nth-child(3) { animation-delay: 0.3s; }
.dealer-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
  .dealer-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }
  
  .dealers-section {
    padding: 60px 15px;
  }

  .dealer-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .filter {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .filter select {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .dealer-card {
    padding: 25px;
  }
}

/* Map Loading Skeleton State */
@keyframes skeleton-loading {
  0% { background-color: rgba(26, 36, 50, 0.5); }
  50% { background-color: rgba(42, 59, 76, 0.5); }
  100% { background-color: rgba(26, 36, 50, 0.5); }
}

.dealer-card iframe {
  background: linear-gradient(90deg, var(--dark-color-secondary) 25%, #2a3b4c 50%, var(--dark-color-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  min-height: 300px;
}

/* No Results State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  background: rgba(15, 32, 39, 0.4);
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--secondary-text);
  font-size: 1.2rem;
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  opacity: 0.8;
}

/* Premium Card Styles */
.premium-grid {
  gap: 30px;
  margin-top: 30px;
}

.premium-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(15, 32, 39, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 20px;
}

.card-badge {
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  padding: 8px 20px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-header {
  padding: 25px 25px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
  margin-bottom: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.score {
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
}

.stars {
  color: #f39c12; /* gold/yellow color */
}

.reviews {
  color: var(--secondary-text);
  font-size: 0.95rem;
}

.card-body {
  padding: 25px;
  flex-grow: 1;
}

.address, .contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.address i, .contact i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.review-highlights {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.review-highlights h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-highlights li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--secondary-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-style: italic;
}

.review-highlights li i {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  margin-top: 2px;
}

.review-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-user {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 5px;
}

.review-user strong {
  color: #fff;
  font-size: 1.05rem;
}

.review-stars {
  font-size: 0.85rem;
  color: #f39c12;
  display: flex;
  align-items: center;
  gap: 3px;
}

.review-stars span {
  color: var(--secondary-text);
  margin-left: 8px;
  font-size: 0.8rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.5;
  font-style: italic;
  margin: 0 !important;
}

.card-map {
  padding: 0 25px;
}

.card-map iframe {
  margin-bottom: 0;
  border-radius: 12px;
}

.card-footer {
  padding: 25px;
}

.dealer-card:hover .card-image img {
  transform: scale(1.08);
}

