:root{
  --dealer-brown:#402a1c;
  --dealer-brown-soft:#6f523b;
  --dealer-gold:#b68a42;
  --dealer-gold-light:#d8bc7b;
  --dealer-cream:#fbf6ec;
  --dealer-ivory:#fffdf8;
  --dealer-border:#e4d6c0;
  --dealer-error:#934832;
}

*{box-sizing:border-box}

body.dealer-page{
  margin:0;
  background:
    radial-gradient(circle at 8% 5%,rgba(218,190,129,.22),transparent 25%),
    linear-gradient(180deg,#fffdf8,#f7efe3);
  color:var(--dealer-brown);
  font-family:Arial,sans-serif;
}

body.dealer-modal-open{overflow:hidden}

.dealer-header{
  min-height:78px;
  padding:14px clamp(20px,5vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid rgba(182,138,66,.25);
  background:rgba(255,253,248,.92);
  backdrop-filter:blur(16px);
}

.dealer-logo-link img{
  width:152px;
  max-height:50px;
  object-fit:contain;
}

.dealer-header nav{
  display:flex;
  gap:24px;
}

.dealer-header nav a{
  color:var(--dealer-brown);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.dealer-hero{
  min-height:390px;
  padding:60px clamp(24px,7vw,110px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,390px);
  align-items:center;
  gap:50px;
  overflow:hidden;
  background:
    linear-gradient(120deg,rgba(59,34,20,.98),rgba(91,58,31,.94)),
    #402a1c;
  color:#fff8eb;
}

.dealer-hero-copy{max-width:720px}

.dealer-eyebrow{
  margin:0 0 10px;
  color:var(--dealer-gold-light);
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
}

.dealer-hero h1{
  max-width:690px;
  margin:0;
  font:400 clamp(38px,6vw,72px)/1.04 Georgia,serif;
}

.dealer-hero p:not(.dealer-eyebrow){
  max-width:670px;
  margin:22px 0 0;
  color:#eadfce;
  font-size:15px;
  line-height:1.75;
}

.dealer-hero img{
  width:100%;
  max-height:320px;
  object-fit:contain;
  filter:drop-shadow(0 24px 28px rgba(0,0,0,.28));
}

.dealer-search-section{
  width:min(1180px,calc(100% - 40px));
  margin:-42px auto 80px;
  padding:clamp(24px,4vw,48px);
  position:relative;
  z-index:2;
  border:1px solid var(--dealer-border);
  border-radius:24px;
  background:rgba(255,253,248,.98);
  box-shadow:0 30px 65px rgba(73,45,24,.12);
}

.dealer-search-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:24px;
}

.dealer-search-heading h2{
  margin:0;
  font:400 clamp(28px,4vw,43px)/1.1 Georgia,serif;
}

.dealer-search-heading>p{
  max-width:330px;
  margin:0;
  color:#806f5f;
  font-size:13px;
  line-height:1.6;
}

.dealer-search-form label{
  display:block;
  margin-bottom:7px;
  color:#604731;
  font-size:12px;
  font-weight:700;
}

.dealer-search-control{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}

.dealer-search-control input,
#dealer-callback-form input,
#dealer-callback-form select,
#dealer-callback-form textarea{
  width:100%;
  border:1px solid #ddcfbd;
  border-radius:11px;
  background:#fff;
  padding:14px;
  color:#3e2b1e;
  font:inherit;
  font-size:14px;
  outline:none;
  transition:.2s ease;
}

.dealer-search-control input:focus,
#dealer-callback-form input:focus,
#dealer-callback-form select:focus,
#dealer-callback-form textarea:focus{
  border-color:#b9914c;
  box-shadow:0 0 0 3px rgba(185,145,76,.13);
}

.dealer-search-control button,
.dealer-callback-submit{
  min-height:50px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,#92652a,#c39a50);
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  color:white;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(126,86,34,.18);
}

.dealer-search-control button:disabled,
.dealer-callback-submit:disabled{
  opacity:.62;
  cursor:wait;
}

.dealer-message{
  margin-top:12px;
  padding:11px 13px;
  font-size:12px;
  line-height:1.5;
}

.dealer-message-error{
  border-left:3px solid var(--dealer-error);
  background:#fff1ec;
  color:#87452f;
}

.dealer-loading{
  margin:34px 0 0;
  display:flex;
  align-items:center;
  gap:12px;
  color:#765e47;
  font-size:13px;
}

.dealer-loading span{
  width:18px;
  height:18px;
  border:2px solid #e5d5ba;
  border-top-color:var(--dealer-gold);
  border-radius:50%;
  animation:dealerSpin .75s linear infinite;
}

@keyframes dealerSpin{to{transform:rotate(360deg)}}

.dealer-results-summary{
  margin:28px 0 15px;
  color:#7d6b59;
  font-size:12px;
}

.dealer-results{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.dealer-card{
  min-width:0;
  border:1px solid var(--dealer-border);
  border-radius:18px;
  background:#fff;
  padding:21px;
  box-shadow:0 12px 30px rgba(65,39,19,.06);
}

.dealer-card-top{
  display:grid;
  grid-template-columns:66px minmax(0,1fr);
  align-items:center;
  gap:15px;
}

.dealer-card-logo{
  width:66px;
  height:66px;
  border:1px solid #ebdfcd;
  border-radius:14px;
  background:#fffaf1;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.dealer-card-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
}

.dealer-card-logo span{
  color:#a37a39;
  font:700 23px Georgia,serif;
}

.dealer-card h3{
  margin:0;
  font:400 22px/1.2 Georgia,serif;
}

.dealer-card-business{
  margin:5px 0 0;
  color:#997e60;
  font-size:11px;
}

.dealer-card-description{
  margin:16px 0 0;
  color:#745f4d;
  font-size:12px;
  line-height:1.6;
}

.dealer-card-address{
  margin:15px 0 0;
  padding-top:15px;
  border-top:1px solid #eee3d2;
  color:#5e4937;
  font-size:12px;
  line-height:1.6;
}

.dealer-card-distance{
  margin:8px 0 0;
  color:#9b7338;
  font-size:11px;
  font-weight:700;
}

.dealer-card-actions{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.dealer-card-actions a,
.dealer-card-actions button{
  min-height:44px;
  border-radius:9px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#694d32;
  font-size:11px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}

.dealer-directions{
  border:1px solid #dcc9a8;
  background:#fffaf1;
}

.dealer-callback-open{
  border:0;
  background:#4b3322;
  color:#fff!important;
}

.dealer-empty{
  margin-top:32px;
  border:1px dashed #d9c29b;
  border-radius:18px;
  background:#fffaf1;
  padding:24px;
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  align-items:center;
  gap:24px;
}

.dealer-empty img{
  width:110px;
  height:110px;
  object-fit:contain;
}

.dealer-empty h3{
  margin:0;
  font:400 23px Georgia,serif;
}

.dealer-empty p{
  color:#786451;
  font-size:12px;
  line-height:1.6;
}

.dealer-empty a{
  color:#8e652b;
  font-weight:800;
}

.dealer-callback-modal[hidden],
.dealer-empty[hidden],
.dealer-loading[hidden]{
  display:none!important;
}

.dealer-callback-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:18px;
}

.dealer-callback-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(32,21,14,.72);
  backdrop-filter:blur(5px);
}

.dealer-callback-panel{
  width:min(570px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  position:relative;
  z-index:1;
  border:1px solid #dfca9f;
  border-radius:20px;
  background:var(--dealer-ivory);
  padding:25px;
  box-shadow:0 34px 90px rgba(0,0,0,.34);
}

.dealer-callback-header{
  margin-bottom:20px;
  padding-right:42px;
  position:relative;
}

.dealer-callback-header h2{
  margin:0;
  font:400 31px Georgia,serif;
}

.dealer-callback-header>div>p:last-child{
  margin:8px 0 0;
  color:#7b6855;
  font-size:12px;
}

.dealer-callback-close{
  width:36px;
  height:36px;
  position:absolute;
  top:0;
  right:0;
  border:1px solid #decfb9;
  border-radius:50%;
  background:#fff;
  color:#5b402d;
  font-size:23px;
  cursor:pointer;
}

#dealer-callback-form{
  display:flex;
  flex-direction:column;
  gap:13px;
}

#dealer-callback-form label:not(.dealer-consent){
  display:flex;
  flex-direction:column;
  gap:6px;
}

#dealer-callback-form label>span{
  color:#604731;
  font-size:11px;
  font-weight:700;
}

#dealer-callback-form em{
  color:#a65339;
  font-style:normal;
}

#dealer-callback-form small{
  color:#9b8c7d;
  font-weight:400;
}

#dealer-callback-form textarea{
  min-height:95px;
  resize:vertical;
  line-height:1.5;
}

.dealer-phone-field{
  display:grid;
  grid-template-columns:50px 1fr;
  align-items:center;
  border:1px solid #ddcfbd;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}

.dealer-phone-field:focus-within{
  border-color:#b9914c;
  box-shadow:0 0 0 3px rgba(185,145,76,.13);
}

.dealer-phone-field>span{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid #ddcfbd;
  background:#f7efe2;
  color:#6d523a;
  font-size:12px;
}

.dealer-phone-field input{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

.dealer-consent{
  display:grid;
  grid-template-columns:18px 1fr;
  align-items:start;
  gap:9px;
  color:#776756;
}

.dealer-consent input{
  width:16px!important;
  height:16px;
  margin:1px 0 0;
  accent-color:#9d7435;
}

.dealer-consent span{
  font-size:10px!important;
  font-weight:400!important;
  line-height:1.5;
}

.dealer-consent a{
  color:#8c652b;
  text-decoration:underline;
}

.dealer-callback-success{
  padding:18px 6px 4px;
  text-align:center;
}

.dealer-success-mark{
  width:58px;
  height:58px;
  margin:0 auto 18px;
  border:1px solid #d5b979;
  border-radius:50%;
  background:#fff8e9;
  display:grid;
  place-items:center;
  color:#9c702d;
  font-size:25px;
}

.dealer-callback-success h3{
  margin:0;
  font:400 27px/1.25 Georgia,serif;
}

.dealer-callback-success>p:not(.dealer-eyebrow){
  color:#776553;
  font-size:12px;
  line-height:1.6;
}

.dealer-callback-reference{
  border:1px dashed #d4b672;
  border-radius:8px;
  background:#fff9ed;
  padding:10px;
  color:#795b30!important;
  font-weight:800;
}

.dealer-callback-success button{
  min-height:43px;
  margin-top:8px;
  border:0;
  border-radius:9px;
  background:#4b3322;
  padding:0 24px;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:760px){
  .dealer-header{
    min-height:68px;
    padding:11px 18px;
  }

  .dealer-logo-link img{width:128px}
  .dealer-header nav{gap:13px}
  .dealer-header nav a{font-size:11px}

  .dealer-hero{
    min-height:auto;
    padding:44px 22px 74px;
    grid-template-columns:1fr;
    gap:12px;
  }

  .dealer-hero img{
    max-height:210px;
    margin-top:10px;
  }

  .dealer-search-section{
    width:calc(100% - 24px);
    margin:-38px auto 45px;
    padding:20px 16px;
    border-radius:18px;
  }

  .dealer-search-heading{
    align-items:start;
    flex-direction:column;
    gap:10px;
  }

  .dealer-search-control{
    grid-template-columns:1fr;
  }

  .dealer-search-control button{
    justify-content:center;
  }

  .dealer-results{
    grid-template-columns:1fr;
  }

  .dealer-card-actions{
    grid-template-columns:1fr;
  }

  .dealer-empty{
    grid-template-columns:1fr;
    text-align:center;
  }

  .dealer-empty img{margin:auto}

  .dealer-callback-panel{
    padding:20px 16px;
    border-radius:16px;
  }
}
