/* ===============================
   Dealer Locator Wrapper
================================ */
#custom-armstrong-dealer-locator {
  background: #ed2027;
  padding-bottom: 80px;
  font-family: Gilroy, "Helvetica Neue", Arial, sans-serif;
}

/* ===============================
   Hero Section
================================ */
.custom-armstrong-dealer-hero {
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}

.custom-armstrong-dealer-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.custom-armstrong-dealer-hero p {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* ===============================
   Filter Bar
================================ */
.custom-armstrong-dealer-filter-wrap {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.custom-armstrong-dealer-filter-bar {
  max-width: 1200px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.custom-armstrong-dealer-filter-bar select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  font-size: 13px;
  outline: none;
}

/* Button Styles */
#custom-armstrong-dealer-locator .custom-armstrong-dealer-filter-bar .custom-armstrong-dealer-filter-btn button {
  margin-top: 0px;
  height: 38px;
  padding: 0 22px;
  border: none;
  background: #f6c648;
  color: #0f3d3e;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}

#custom-armstrong-dealer-locator .custom-armstrong-dealer-filter-bar .custom-armstrong-dealer-filter-btn button:hover {
  background: #ed2027;
  color: #fff;
}

.custom-armstrong-dealer-direction {
  font-size: 13px;
  font-weight: 600;
  color: #ffd400;
  text-decoration: none;
  border-bottom: 1px solid #ffd400;
}

/* ===============================
   Main Layout
================================ */
.custom-armstrong-dealer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 380px 1fr;
}

/* ===============================
   Dealer List
================================ */
.custom-armstrong-dealer-results {
  background: #0f3d3e;
  max-height: 620px;
  overflow-y: auto;
}

.custom-armstrong-dealer-card {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-armstrong-dealer-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.custom-armstrong-dealer-card.active {
  background: rgba(255, 255, 255, 0.12);
  border-left: 4px solid #ffd400;
  padding-left: 16px;
}

.custom-armstrong-dealer-card small {
  background: #ffd400; 
  color: #0f3d3e;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

.custom-armstrong-dealer-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffd400;
  margin: 0 0 6px;
}

.custom-armstrong-dealer-card p {
  font-size: 15px;
  color: #f1f1f1;
  margin: 0 0 4px;
}

/* ===============================
   Map
================================ */
#custom-armstrong-dealer-map {
  min-height: 620px;
  background: #eee;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===============================
   Leaflet Popup Styling
================================ */
.custom-armstrong-dealer-map-popup {
  padding: 18px;
}

.custom-armstrong-dealer-map-popup[dir="rtl"],
.custom-armstrong-dealer-map-popup:has([lang="ar"]),
.custom-armstrong-dealer-map-popup:has([lang="ur"]) {
  direction: rtl;
  text-align: right;
}

.custom-armstrong-popup-header {
  margin-bottom: 14px;
}

.custom-armstrong-popup-title {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.custom-armstrong-popup-tag {
  display: inline-block;
  background: #fef3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.custom-armstrong-popup-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  color: #666;
  direction: inherit;
}

[dir="rtl"] .custom-armstrong-popup-row {
  flex-direction: row-reverse;
}

.custom-armstrong-popup-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.custom-armstrong-popup-phone a,
.custom-armstrong-popup-email a {
  color: #666;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}

.custom-armstrong-popup-phone a:hover,
.custom-armstrong-popup-email a:hover {
  color: #e31e24;
}

.custom-armstrong-popup-actions {
  margin-top: 14px;
}

.custom-armstrong-popup-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #e31e24;
  text-decoration: none;
  transition: gap 0.2s ease;
}

[dir="rtl"] .custom-armstrong-popup-direction {
  flex-direction: row-reverse;
}

[dir="rtl"] .custom-armstrong-popup-direction .arrow {
  transform: scaleX(-1);
}

.custom-armstrong-popup-direction:hover {
  gap: 10px;
}

.custom-armstrong-popup-direction .arrow {
  transition: transform 0.2s ease;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 992px) {
  .custom-armstrong-dealer-inner {
    grid-template-columns: 1fr;
  }

  #custom-armstrong-dealer-map {
    min-height: 400px;
  }
}