/* =========================================================
   Murphy Dealer Manager — Map Styles
   ========================================================= */

   #mapMessage { position: absolute; top: 0px; left: 0; width: 100%; z-index: 10; text-align: center; background: oklch(from var(--red) l c h / 0.95); color: var(--white); padding: 15px 20px; font-size: 16px; display: none; pointer-events: none; }
   #mapMessage.visible { display: block; }
   
   /* ---------- Rep Coverage line + Read More / Read Less toggle ---------- */
.rep-coverage {
  margin: 8px 0 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #cbcbcb;
}
.rep-coverage .rep-coverage-extra {
  display: none;
}
.rep-coverage.is-expanded .rep-coverage-extra {
  display: inline;
}
.rep-coverage .rep-more-toggle {
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #f2a900;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}
.rep-coverage .rep-more-toggle:hover,
.rep-coverage .rep-more-toggle:focus-visible {
  color: #ffcc40;
  text-decoration: none;
}

/* ---------- Map Loading Overlay ---------- */
   #mapLoading {
     position: absolute;
     inset: 0;
     background: rgba(255, 255, 255, 0.65);
     display: none;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap: 14px;
     z-index: 15;
     pointer-events: none;
   }
   #mapLoading.visible { display: flex; }
   #mapLoading .spinner {
     width: 44px;
     height: 44px;
     border: 4px solid rgba(0, 0, 0, 0.12);
     border-top-color: #f2a900;
     border-radius: 50%;
     animation: murphyMapLoaderSpin 0.8s linear infinite;
   }
   #mapLoading .loading-text {
     background: #fff;
     padding: 10px 18px;
     border-radius: 4px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
     font-weight: 500;
     font-size: 15px;
     color: #222;
     max-width: 80%;
     text-align: center;
   }
   @keyframes murphyMapLoaderSpin {
     to { transform: rotate(360deg); }
   }
   
   /* ---------- County Dropdowns ---------- */
   .county-select-wrap {
     display: flex;
     align-items: center;
     gap: 6px;
     flex-shrink: 0;
   }
   
   .countySelect { height: 44px; cursor: pointer; font-weight: 500; font-family: var(--fontBody); border: 0;font-size: var(--f18); color:var(--text);}
   
   
   .countySelect:disabled {
     opacity: 0.45;
     cursor: not-allowed;
   }
   
   /* ---------- Reset Button ---------- */
   .map-reset-btn {
       display: flex;
       align-items: center;
       gap: 6px;
       cursor: pointer;
   }

/* ============================================================ */
/* [murphy_dealer_grid] — Card grid + modal popup               */
/* ============================================================ */

.murphy-dealer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
    box-sizing: border-box;
}

.murphy-dealer-card {
    background-color: var(--primary, #f2a900);
    padding: 20px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}
.murphy-dealer-card .card-bg{position: absolute; inset: 0; pointer-events: none;}
.murphy-dealer-card:hover {
    transform: translateY(-2px);
}

.murphy-dealer-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.murphy-dealer-card .card-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text, #252022);;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 15px;
    flex-shrink: 0;
    padding: 1px 8px;
    gap: 5px;
}
.murphy-dealer-card .card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
.murphy-dealer-card .card-address,
.murphy-dealer-card .card-phone,
.murphy-dealer-card .card-hours {
    margin: 0 0 12px 0;
    color: var(--text, #252022);
    line-height: 1.5;
    font-size: 14px;
        font-weight: 500;
}
.murphy-dealer-card .card-address { color:var(--text, #252022);}
.murphy-dealer-card a { color: inherit; text-decoration: underline; }
.murphy-dealer-card a:hover { color: #d99800; }

.murphy-dealer-card .card-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 10px;
}
.murphy-dealer-card .card-btn {
    flex: 1;
    padding: 10px 14px;
    text-align: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.murphy-dealer-card .card-btn:hover { background: var(--white, #ffffff) !important; color: var(--text, #252022) !important; }

/* ---------- Modal ---------- */
.murphy-dealer-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.murphy-dealer-modal[hidden] { display: none; }

.murphy-dealer-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

.murphy-dealer-modal .modal-dialog {
    position: relative;
    background:var(--lightGray, #f5f5f5);
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--sp40, 20px);
}

.murphy-dealer-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
    color: #555;
    font-weight: 300;
}
.murphy-dealer-modal .modal-close:hover { color: #000; }

.murphy-dealer-modal .modal-content h2 {
    margin: 0 0 18px 0;
    font-size: 26px;
    color: #222;
}
.murphy-dealer-modal .modal-description {
    margin-bottom: 22px;
    line-height: 1.6;
    color: #252022;
    font-size: 15px;
}
.murphy-dealer-modal .modal-description p { margin: 0 0 12px 0; }
.murphy-dealer-modal .modal-details p {
    margin: 0 0 14px 0;
    line-height: 1.5;
    font-size: 14px;
    color: #252022;
}
.murphy-dealer-modal .modal-details strong { color: #222; }
.murphy-dealer-modal .modal-details a:not(.btn) { color: #f2a900; }
.murphy-dealer-modal .modal-details a:not(.btn):hover { text-decoration: underline; }

.murphy-dealer-modal .modal-action-row {
    margin: 18px 0 8px;
    text-align: center;
}
.murphy-dealer-modal .modal-action-row .card-btn-directions {
    display: inline-block;
    padding: 10px 22px;
    text-decoration: none;
}

.modal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.modal-details .modal-details-col {
    flex: 0 0 auto;
    min-width: 180px;
}

@media (max-width: 767px) {
.modal-details {flex-direction: column; gap: 0px;}
}

@media (max-width: 600px) {
    .murphy-dealer-modal .modal-dialog { padding: 24px 18px; }
    .murphy-dealer-card .card-actions { flex-direction: column; }
    .murphy-dealer-card .card-btn { font-size: 14px; padding: 10px; }
}


