/* =========================
   CORE Dealers Catalog
   File: /assets/css/dealers.css
   ========================= */

.core-dealer-page-content{ margin-bottom: 10px; }

/* Tabs (heavy-duty / landscape) */
.core-dealer-tabs{
  display:flex;
  gap:34px;
  align-items:flex-end;
  border-bottom: 2px solid rgba(0,0,0,.25);
  margin: 16px 0 18px;
}
.core-dealer-tabs a{
  display:inline-block;
  padding: 10px 6px 12px;
  font-weight:800;
  text-decoration:none;
  letter-spacing:.03em;
  text-transform:uppercase;
  color: rgba(0,0,0,.45);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.core-dealer-tabs a.is-active{
  color:#00478C;
  border-bottom-color:#00478C;
}

/* Layout */
.core-dealers-wrap{ padding:40px 0; }
.core-dealers-container{ max-width:1320px; margin:0 auto; padding:0 30px; }
@media (max-width:767px){ .core-dealers-container{ padding:0 18px; } }

.core-dealers-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
@media (max-width:980px){ .core-dealers-top{ flex-direction:column; } }

.core-dealer-filters{ width:720px; max-width:100%; }
.core-dealer-count{ font-weight:800; font-size:18px; margin-top:72px; white-space:nowrap; }
@media (max-width:980px){ .core-dealer-count{ margin-top:0; } }

.core-filter-row{ display:grid; grid-template-columns: 1.2fr 1fr; gap:16px; }
@media (max-width:980px){ .core-filter-row{ grid-template-columns:1fr; } }

.core-select, .core-input{
  width:100%;
  border:2px solid rgba(0,71,140,.55);
  border-radius:12px;
  padding:16px 16px;
  font-size:18px;
  font-weight:700;
  background:#fff;
  outline:none;
}

.core-clear-btn{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 22px;
  border-radius:10px;
  border: 2px solid #6c2bd9;
  color:#6c2bd9;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  background:#fff;
}

.core-dealers-grid{
  display:grid;
  grid-template-columns: 1fr 520px;
  gap: 28px;
  margin-top: 28px;
  align-items:start;
}
@media (max-width:1024px){ .core-dealers-grid{ grid-template-columns:1fr; } }

.core-dealer-list{ background:#fff; border-top:1px solid rgba(0,0,0,.08); }
.core-map-box{ border:2px solid #CCAD12; border-radius:18px; min-height:520px; background:#fff; overflow:hidden; }

/* Adds space below the dealer map so it does not crash into the footer */
.core-map-box {
  margin-bottom: 90px;
}

/* CORE dealer map popup typography */
.gm-style .coreDealerMapInfo,
.gm-style .coreDealerMapInfo *{
  font-family: Montserrat !important;
}

.gm-style .coreDealerMapInfo__name{
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  color:#111;
  margin:0 0 10px;
}

.gm-style .coreDealerMapInfo__address{
  font-size:18px;
  line-height:1.35;
  font-weight:400;
  color:rgba(0,0,0,.6);
  margin:0 0 18px;
}

.gm-style .coreDealerMapInfo__link{
  font-size:18px;
  line-height:1.35;
  font-weight:900;
  color:#00478C;
  text-decoration:underline;
}

/* Dealer row (matches your HTML classes in partial) */
.core-dealer-row{
  display:grid;
  grid-template-columns: 50px 1fr;
  column-gap: 18px;
  padding:22px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.core-dealer-num{ font-weight:900; font-size:20px; padding-top:6px; }
.core-dealer-name{ font-size:28px; font-weight:900; margin:0 0 6px; }
.core-dealer-oems{ font-weight:800; color:#00478C; margin:0 0 8px; }
.core-dealer-address{ margin:0 0 10px; color:rgba(0,0,0,.6); font-size:18px; line-height:1.35; }
.core-dealer-cta{ display:inline-flex; align-items:center; gap:10px; font-weight:900; font-size:18px; color:#00478C; text-decoration:underline; }

#coreDealerModal .coreDealerModal__wpforms-note {
  margin: 0 0 18px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  color: #111;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}
/* Hide default WPForms confirmation inside CORE dealer modal */
#coreDealerModal .wpforms-confirmation-container-full {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
/* CORE dealer modal WPForms submit button */
#coreDealerModal .wpforms-submit,
#coreDealerModal button[type="submit"],
#coreDealerModal .coreDealerModal__submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 34px !important;
  line-height: 1 !important;
  background: #ccad12 !important;
  color: #000 !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

#coreDealerModal .wpforms-submit:hover,
#coreDealerModal button[type="submit"]:hover,
#coreDealerModal .coreDealerModal__submit:hover {
  background: #b99c0f !important;
  color: #000 !important;
}