/* Dealer shop page (/dealer/{slug}). The dealer's accent colour comes in as --ds-accent / --ds-accent-text on .ds-page. */
.ds-page { --ds-accent: #b0883a; --ds-accent-text: #fff; }

.ds-hero {
  position: relative;
  background: radial-gradient(1200px 380px at 50% -10%, rgba(160, 116, 53, .35), transparent 70%), #0b0a08;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 64px 0 56px;
}
.ds-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, .82) 100%);
}
.ds-hero__inner { position: relative; display: flex; align-items: center; gap: 32px; }
.ds-logo {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 18px;
  background: #fff;
  border: 3px solid var(--ds-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
}
.ds-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ds-logo--initial { background: var(--ds-accent); color: var(--ds-accent-text); font-size: 56px; font-weight: 700; }
.ds-hero__text { min-width: 0; }
.ds-hero h1 { color: #fff; font-size: 44px; line-height: 1.12; margin: 0 0 8px; overflow-wrap: anywhere; }
.ds-tagline { color: #e6e2db; font-size: 19px; margin: 0 0 16px; max-width: 760px; }
.ds-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 20px; padding: 0; color: #d3d0cb; font-size: 15px; }
.ds-facts i { color: var(--ds-accent); margin-right: 6px; }
.ds-facts .ds-stars i { margin-right: 2px; }
.ds-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

.ds-share { position: relative; }
.ds-share > summary { list-style: none; cursor: pointer; user-select: none; }
.ds-share > summary::-webkit-details-marker { display: none; }
.ds-share[open] > summary { background: rgba(255, 255, 255, .1); }
.ds-share__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e3dccf;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.ds-share__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1a1712;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ds-share__item i { font-size: 18px; color: var(--ds-accent); width: 20px; text-align: center; }
.ds-share__item:hover, .ds-share__item:focus-visible { background: #f4efe6; color: #1a1712; }
.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--ds-accent);
  transition: filter .2s ease, background .2s ease;
}
.ds-btn--solid { background: var(--ds-accent); color: var(--ds-accent-text); }
.ds-btn--solid:hover { filter: brightness(.9); color: var(--ds-accent-text); }
.ds-btn--ghost { background: transparent; color: #fff; }
.ds-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.ds-body { background: #faf8f5; padding: 40px 0 80px; }

.ds-about {
  background: #fff;
  border: 1px solid #e3dccf;
  border-left: 5px solid var(--ds-accent);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 36px;
}
.ds-about h2 { font-size: 24px; margin: 0 0 12px; color: #1a1712; }
.ds-about p { color: #3b362e; font-size: 17px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.ds-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.ds-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3dccf;
  color: #1a1712;
  font-size: 20px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ds-social a:hover { background: var(--ds-accent); color: var(--ds-accent-text); border-color: var(--ds-accent); }

.ds-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #e3dccf;
  border-radius: 999px;
  background: #fff;
  color: #1a1712;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.ds-tab span { font-weight: 500; color: #9a9288; }
.ds-tab:hover { border-color: var(--ds-accent); }
.ds-tab.is-active { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-accent-text); }
.ds-tab.is-active span { color: inherit; opacity: .85; }

.ds-empty {
  background: #fff;
  border: 1px dashed #d9d0be;
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  color: #6b655b;
}
.ds-empty h3 { color: #1a1712; font-size: 22px; margin: 0 0 8px; }

.ds-note { margin-top: 36px; color: #6b655b; font-size: 14px; text-align: center; }

@media (max-width: 767px) {
  .ds-hero { padding: 40px 0 36px; }
  .ds-hero__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ds-logo { width: 104px; height: 104px; }
  .ds-hero h1 { font-size: 32px; }
  .ds-tagline { font-size: 17px; }
  .ds-about { padding: 22px 20px; }
  /* On a narrow screen the panel spans the whole button row instead of hanging off the button, so it can't run off the screen. */
  .ds-share { position: static; }
  .ds-share__panel { left: 0; right: 0; min-width: 0; }
}
