/* ===============================
   Root / Base
================================ */
#custom-zeetex-dealer-locator,
#custom-zeetex-dealer-locator * {
  font-family: inherit;
  box-sizing: border-box;
}

#custom-zeetex-dealer-locator {
  width: 100%;
  background: #f6f7f9;
  color: #0f172a;
}

/* ===============================
   Filter Bar
================================ */
.custom-zeetex-dealer-filter-wrap {
  background: #ffffff;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.custom-zeetex-dealer-filter-bar {
  display: flex;
  gap: 14px;
  max-width: 1100px;
  margin: auto;
}

.custom-zeetex-dealer-filter-bar select {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}

.custom-zeetex-dealer-filter-btn button {
  background:#1b4298;
  color: #fff;
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 50px;
}

.custom-zeetex-dealer-filter-btn button:hover {
  background:rgb(247, 143, 30);
}

/* ===============================
   Layout
================================ */
.custom-zeetex-dealer-inner {
  display: flex;
  height: 620px;
  background: #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
}

/* ===============================
   Dealer List Panel
================================ */
.custom-zeetex-dealer-results {
  width: 40%;
  background: #ffffff;
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
}

/* Dealer Card */
.custom-zeetex-dealer-card {
  padding: 20px 22px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-zeetex-dealer-card:hover {
  background: #f9fafb;
}

.custom-zeetex-dealer-card.active {
  background: #f5f8ff;
  border-left: 4px solid #1b4298;
}

/* Category Tag */
.custom-zeetex-dealer-card small {
  display: inline-block;
  background: #e0e7ff;
  color: #1b4298;
  font-weight: 600;
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Dealer Name */
.custom-zeetex-dealer-name {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 6px 0 6px;
}

/* Location */
.custom-zeetex-dealer-location {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

/* Meta */
.custom-zeetex-dealer-address,
.custom-zeetex-dealer-zip,
.custom-zeetex-dealer-phone,
.custom-zeetex-dealer-email {
  font-size: 14px;
  color: #1b4298;
  line-height: 1.6;
}

/* Highlight phone & email */
.custom-zeetex-dealer-phone,
.custom-zeetex-dealer-email a {
  color: #1b4298;
  font-weight: 500;
}

/* Get Directions (List) */
.custom-zeetex-dealer-direction {
  border-radius: 50px;
  color: #fff;
  background-color:#1b4298;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px;
  text-decoration: none;
  gap: 6px;
  transition: all .3s;
}

.custom-zeetex-dealer-direction:hover {
  color: #fff;
  background:rgb(247, 143, 30);
}

/* ===============================
   Map
================================ */
#custom-zeetex-dealer-map {
  width: 60%;
  height: 100%;
  background: #f1f5f9;
}

/* ===============================
   Leaflet Popup
================================ */

.leaflet-popup-content{
  color: #0f172a;
}

.custom-zeetex-dealer-map-popup {
  min-width: 280px;
  font-family: inherit;
}

.custom-zeetex-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.custom-zeetex-popup-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

/* ===============================
   Fix popup category pill
================================ */

.custom-zeetex-popup-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b4298;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;     
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

/* Better alignment with title */
.custom-zeetex-popup-header {
  align-items: center;
  gap: 10px;
}

/* Popup Rows */
.custom-zeetex-popup-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #1b4298;
  margin-bottom: 8px;
  line-height: 1.5;
}

.custom-zeetex-popup-row a {
  color: #1b4298;
  text-decoration: none;
}

.custom-zeetex-popup-row a:hover {
  text-decoration: underline;
}

/* Popup Button */
.custom-zeetex-popup-actions {
  margin-top: 14px;
  text-align: right;
}

.custom-zeetex-popup-direction {
  background: #1b4298;
  color:#fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .3s;
}
.leaflet-popup-content .custom-zeetex-popup-direction {
  color:#fff;
}

.custom-zeetex-popup-direction:hover {
  background: rgb(247, 143, 30);
  color: #fff;
}

/* ===============================
   Scrollbar
================================ */
.custom-zeetex-dealer-results::-webkit-scrollbar {
  width: 6px;
}

.custom-zeetex-dealer-results::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

/* ===============================
   Mobile
================================ */
@media (max-width: 900px) {
  .custom-zeetex-dealer-inner {
    flex-direction: column;
    height: auto;
  }

  .custom-zeetex-dealer-results,
  #custom-zeetex-dealer-map {
    width: 100%;
    height: 420px;
  }
}
/* ===============================
   FORCE RTL ONLY FOR DEALER LOCATOR
   (Overrides global LTR hack)
================================ */

html[lang="ar"] #custom-zeetex-dealer-locator {
  direction: rtl !important;
  text-align: right !important;
}

/* Reverse layout */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-inner {
  flex-direction: row-reverse !important;
}

/* List panel border */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-results {
  border-right: none !important;
  border-left: 1px solid #e5e7eb !important;
}

/* Active card border */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-card.active {
  border-left: none !important;
  border-right: 4px solid #1b4298 !important;
}

/* Card text */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-card {
  text-align: right !important;
}

/* Popup layout */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-popup-header,
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-popup-row {
  flex-direction: row-reverse !important;
  text-align: right !important;
}

/* Icon spacing */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-popup-icon {
  margin-left: 6px !important;
  margin-right: 0 !important;
}

/* Popup actions */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-popup-actions {
  text-align: left !important;
}

/* Keep phone/email LTR */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-phone,
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-email,
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-popup-row a {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: embed;
}

/* ===============================
   Fix phone & email rows in RTL
================================ */

html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-phone,
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-email {
  display: flex;
  flex-direction: row-reverse; /* icon on right */
  align-items: center;
  gap: 8px;
  direction: ltr;              /* number readable */
  unicode-bidi: embed;
  text-align: left;
}

/* Keep link text clean */
html[lang="ar"] #custom-zeetex-dealer-locator .custom-zeetex-dealer-email a {
  direction: ltr;
  unicode-bidi: embed;
}

