/* =========================================================
   Dealer Directory Grid and Cards --- Brashear 2026-02-23
   ========================================================= */

.ddg { 
  font-family: inherit; 
}

.ddg-notice { 
  padding: 12px 14px; 
  border: 1px solid #ddd; 
  border-radius: 10px; 
  background: #fafafa; 
}

/* ---------------------------
   Controls
---------------------------- */

.ddg-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.ddg-reset-btn {
  color: #374151; /* dark slate gray */
}
@media (max-width: 900px) {
  .ddg-controls { 
    grid-template-columns: 1fr; 
  }
}

.ddg-control { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.ddg-label { 
  font-size: 13px; 
  font-weight: 600; 
}

.ddg-input, 
.ddg-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ddg-input:focus, 
.ddg-select:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

/* ---------------------------
   Meta Inf0 + Grid
---------------------------- */

.ddg-meta { 
  margin: 8px 0 16px; 
  font-size: 14px; 
  opacity: 0.85; 
}

.ddg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1000px) { 
  .ddg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}

@media (max-width: 640px)  { 
  .ddg-grid { grid-template-columns: 1fr; } 
}

/* ---------------------------
   Card and Hover
---------------------------- */

.ddg-card {
  border-radius: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #9ca3af; /* border on card
 */
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: 
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.ddg-card:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}
/* Section Heading */

.ddg-heading {
    text-align: center;
  margin: 0 0 25px 0;
  font-size: 36px;
  font-weight: 700;
}

/* Space above filters */
.ddg-controls {
  margin-top: 25px;
}

/* Space between results count and cards */
.ddg-meta {
  margin: 8px 0 25px;
}
/* ---------------------------
   Top Area
---------------------------- */

.ddg-card-top { 
  display: flex; 
  gap: 14px; 
  align-items: flex-start; 
  justify-content: center;
  text-align: center;
}

.ddg-photo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

/* ---------------------------
   Territory + Agent
---------------------------- */

.ddg-territory-title {
  margin: 0;
  font-size: 16px;
    text-align: center;
  line-height: 1.25;
}

.ddg-territory-covered {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

  opacity: 0.8;
  
}

.ddg-agent {
  margin-top: 16px;
  font-size: 14px;
}

.ddg-agent strong {
  font-weight: 700;
}

.ddg-muted {
  opacity: 0.75;
}

.ddg-company {
  font-weight: 600;
  font-size: 14px;
  margin: 6px 0 0;
  opacity: 0.9;
}

/* ---------------------------
   Content Blocks
---------------------------- */

.ddg-block { 
  margin-top: 10px; 
  font-size: 14px; 
  line-height: 1.45; 
}

.ddg-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 18px 0;
}

/* ---------------------------
   Pagination
---------------------------- */

.ddg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.ddg-page-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.ddg-page-btn:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.50);
}

.ddg-page-btn[disabled] { 
  opacity: 0.45; 
  cursor: not-allowed; 
}

.ddg-page-info { 
  font-size: 14px; 
  opacity: 0.85; 
}

/* Wrapper bg */
.ddg-controls {
  background: #1f2937; /* dark gray */
  color: #ffffff;
  border-radius: 14px;
  padding: 20px;
   display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 14px;
  align-items: end; /* THIS aligns bottoms */
  margin-bottom: 18px;
  
}


/* Add spacing between filters and count inside dark area */
.ddg-meta {
  margin-top: 25;
  margin-bottom: 25px;
  padding-top: 0;
    text-align: center;
}

/* Remove double spacing */
.ddg-controls {
  margin-top: 0;
  margin-bottom: 0;
}

/* Make labels readable on dark */
.ddg-label {
  color: #ffffff;
}

/* Inputs inside dark area */
.ddg-input,
.ddg-select {
  background: #ffffff;
  border: none;
}

/* Results count text */
.ddg-meta {
  font-weight: 500;
}

/* picture padding */
.ddg-agent-photo-wrap {
    display: flex;
  justify-content: center;
  margin: 22px 0 14px;
}

.ddg-photo {
   width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}