/* Tanglewood Dealer Locator: everything scoped under .twdl so the theme isn't affected. */
.twdl{
  --twdl-red:#8e2323; --twdl-tint:rgba(142,35,35,.07); --twdl-ink:#2b2b2b; --twdl-muted:#6b6b6b;
  --twdl-line:#e4e0dc; --twdl-panel:#f3f3f3; --twdl-green:#2e7d4f;
  color:var(--twdl-ink); line-height:1.45; margin:0 0 40px;
}
.twdl *{box-sizing:border-box}
.twdl a{color:var(--twdl-red)}

.twdl-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.twdl-tabs[hidden]{display:none}
.twdl .twdl-tab{border:1px solid var(--twdl-line);background:#fff;border-radius:999px;padding:6px 16px;font:inherit;font-size:16px;line-height:1.3;cursor:pointer;color:var(--twdl-ink);margin:0;box-shadow:none;text-transform:none;letter-spacing:normal}
.twdl .twdl-tab[aria-selected="true"]{background:var(--twdl-red);border-color:var(--twdl-red);color:#fff}
.twdl-country{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.twdl-country label{font-size:15px;color:var(--twdl-muted);margin:0}
.twdl .twdl-country select{font:inherit;font-size:16px;padding:8px 12px;min-height:44px;min-width:220px;border:1px solid #cfcac5;border-radius:3px;background:#fff;color:var(--twdl-ink);margin:0}
.twdl-n{opacity:.7;font-size:14px;margin-left:5px}

.twdl-search{background:var(--twdl-panel);padding:16px;display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:end;border-radius:4px;margin:0}
.twdl-field label{display:block;font-size:14px;color:var(--twdl-muted);margin:0 0 3px;font-weight:normal}
.twdl .twdl-field input,.twdl .twdl-field select{width:100%;font:inherit;font-size:16px;padding:9px 12px;border:1px solid #cfcac5;border-radius:3px;background:#fff;min-height:44px;margin:0;color:var(--twdl-ink);box-shadow:none}
.twdl .twdl-btn{font:inherit;font-size:16px;font-weight:600;padding:9px 18px;min-height:44px;border-radius:3px;border:1px solid var(--twdl-red);background:var(--twdl-red);color:#fff;cursor:pointer;white-space:nowrap;margin:0;text-transform:none;letter-spacing:normal;line-height:1.2}
.twdl .twdl-btn:hover{filter:brightness(.88)}
.twdl .twdl-btn.twdl-ghost{background:#fff;color:var(--twdl-red)}
.twdl .twdl-btn.twdl-ghost:hover{filter:none;background:var(--twdl-tint)}
.twdl-status{min-height:24px;margin:10px 2px 6px;color:var(--twdl-muted);font-size:15px}
.twdl-status.twdl-err{color:var(--twdl-red)}

.twdl-layout{display:grid;grid-template-columns:minmax(300px,440px) 1fr;gap:18px;height:680px}
.twdl-list{overflow:auto;border-top:1px solid var(--twdl-line);padding-right:6px}
.twdl-map{height:100%;min-height:300px;border-radius:4px;border:1px solid var(--twdl-line);z-index:0;background:#e9e6e1}

.twdl-card{padding:16px 6px 16px 4px;border-bottom:1px dotted #cfcac5;cursor:pointer;outline:none}
.twdl-card:hover,.twdl-card.twdl-active{background:var(--twdl-tint)}
.twdl-card:focus-visible{box-shadow:inset 3px 0 0 var(--twdl-red)}
.twdl-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.twdl .twdl-card h3{margin:0;font-size:20px;line-height:1.3;font-weight:700;color:var(--twdl-red);padding:0}
.twdl-dist{font-size:15px;color:var(--twdl-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.twdl .twdl-addr{margin:4px 0 6px;color:#444;font-size:16px;padding:0}
.twdl-today{font-size:15px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.twdl-badge{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:2px 8px;border-radius:999px}
.twdl-badge.twdl-open{background:#e3f2e8;color:var(--twdl-green)}
.twdl-badge.twdl-closed{background:#eee;color:#666}
.twdl-hours{margin-top:4px;font-size:15px}
.twdl-hours summary{cursor:pointer;color:var(--twdl-red);width:max-content}
.twdl-week{display:grid;grid-template-columns:auto 1fr;gap:1px 16px;margin:6px 0 0;padding:8px 10px;background:#fafafa;border-radius:3px}
.twdl-week .twdl-is-today{font-weight:700}
.twdl-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.twdl .twdl-chip{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;text-decoration:none;color:var(--twdl-red);border:1px solid #d9c3c3;border-radius:999px;padding:5px 11px;background:#fff;min-height:34px;line-height:1.2}
.twdl .twdl-chip:hover{background:var(--twdl-tint)}
.twdl-chip svg{width:15px;height:15px;flex:none}
.twdl .twdl-chip.twdl-social{color:#444;border-color:var(--twdl-line)}
.twdl-empty{padding:30px 6px;color:var(--twdl-muted)}

.twdl-pin svg{width:26px;height:36px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}
.twdl-pin.twdl-pin-active svg path{fill:#2b2b2b}
.twdl .leaflet-popup-content{font-family:inherit;font-size:15px;margin:12px 14px;line-height:1.4}
.twdl .leaflet-popup-content h4{margin:0 0 4px;color:var(--twdl-red);font-size:18px}
.twdl .leaflet-popup-content .twdl-actions{margin-top:8px}
.twdl .leaflet-container img{max-width:none}

@media (max-width:860px){
  .twdl-search{grid-template-columns:1fr 1fr}
  .twdl-search .twdl-loc{grid-column:1 / -1}
  .twdl .twdl-btn{width:100%}
  .twdl-layout{grid-template-columns:1fr;height:auto}
  .twdl-map{height:300px;order:-1}
  .twdl-list{overflow:visible;padding-right:0}
}

/* v1.0.3: stop theme styles squashing inputs/selects (notably iOS Safari) */
.twdl .twdl-field input,
.twdl .twdl-field select,
.twdl .twdl-country select{
  height:48px !important; min-height:48px !important; line-height:normal !important;
  padding-top:0 !important; padding-bottom:0 !important; font-size:16px !important;
}
.twdl .twdl-field select,
.twdl .twdl-country select{
  -webkit-appearance:none !important; -moz-appearance:none !important; appearance:none !important;
  padding-right:38px !important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center !important;
}
.twdl .twdl-btn{height:48px;min-height:48px}
@media (max-width:860px){
  .twdl .twdl-search button[type="submit"]{grid-column:1 / -1}
}

/* Social media icons (match the site's red header icons) */
.twdl-socials{display:inline-flex;gap:6px;align-items:center}
.twdl a.twdl-soc{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;background:var(--twdl-red);color:#fff;text-decoration:none;transition:filter .15s}
.twdl a.twdl-soc:hover{filter:brightness(.85);color:#fff}
.twdl a.twdl-soc svg{width:18px;height:18px;display:block}

/* v1.1.5: social buttons styled exactly like the other buttons */
.twdl .twdl-chip.twdl-social{color:var(--twdl-red);border-color:#d9c3c3}
