:root {
  --ink: #101114;
  --muted: #626977;
  --paper: #f7f8fa;
  --line: #dfe3ea;
  --brand: #b81319;
  --brand-dark: #7f0d11;
  --accent: #f3b61f;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(16, 17, 20, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(18deg, whitesmoke 0%, rgba(16, 17, 20, .96) 66%, rgba(16, 17, 20, .96) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.topbar,
.nav,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.topbar span:first-child {
  color: #252932;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.dealer-logo {
  width: 246px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--brand);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.nav-item {
  position: relative;
}

.nav-links a {
  color: rgba(255, 255, 255, .86);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 50;
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(16, 17, 20, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(16, 17, 20, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #24262c;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: #f3f4f6;
  color: var(--brand);
}

.hero {
  position: relative;
  min-height: 710px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .94), rgba(10, 10, 12, .72) 44%, rgba(10, 10, 12, .24)),
    url("https://www.norristownchryslerdodge.com/static/dealer-23677/24_Jeep_Grand_Cherokee.jpg") center / cover;
}

.hero .container {
  display: grid;
  align-items: center;
  min-height: 710px;
  padding: 72px 0 112px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 18px 0 16px;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p,
.section-heading p {
  max-width: 680px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions,
.vehicle-actions,
.quick-actions,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -72px;
}

.video-search-section {
  isolation: isolate;
  min-height: 540px;
  margin-top: 48px;
  padding: 88px 0;
  overflow: hidden;
  background: #111318;
}

.search-video-bg,
.search-video-overlay {
  position: absolute;
  inset: 0;
}

.search-video-bg {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-video-overlay {
  z-index: -1;
  background: rgba(0, 0, 0, .3);
}

.video-search-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  justify-items: center;
  color: #fff;
}

.search-kicker {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.search-widget {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 2em;
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.search-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-bottom: 1px dotted #fff;
  background: transparent;
  color: #fff !important;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.search-tabs button.active {
  border-bottom-color: transparent;
}

.search-pane {
  display: none;
}

.search-pane.active {
  display: grid;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vehicle-search-pane {
  grid-template-columns: 1fr;
}

.search-widget .search-panel {
  border-radius: 0;
}

.search-widget .search-panel:not(.active) {
  display: none;
}

.keyword-field {
  grid-column: span 3;
}

.search-button-group {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.search-tab-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #fff;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.search-tab-icon.vehicle {
  mask-image: url("https://cdn.dealeron.com/static/industry-automotive/icons/filter-icon.svg");
  -webkit-mask-image: url("https://cdn.dealeron.com/static/industry-automotive/icons/filter-icon.svg");
}

.search-tab-icon.keyword {
  mask-image: url("https://cdn.dealeron.com/static/industry-automotive/icons/search.svg");
  -webkit-mask-image: url("https://cdn.dealeron.com/static/industry-automotive/icons/search.svg");
}

.search-tab-icon.budget {
  mask-image: url("https://cdn.dealeron.com/static/industry-automotive/icons/budget-icon.svg");
  -webkit-mask-image: url("https://cdn.dealeron.com/static/industry-automotive/icons/budget-icon.svg");
}

.inventory-search-widget .field {
  position: relative;
  height: 66px;
  gap: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.search-filter-shell {
  display: grid;
  overflow: hidden;
  border: 1px solid #dcdce2;
  border-radius: 8px;
  background: #fff;
}

.vehicle-filter-shell {
  grid-template-columns: minmax(118px, .7fr) minmax(145px, 1fr) minmax(145px, 1fr);
}

.budget-filter-shell {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
  width: min(420px, 100%);
  margin-inline: auto;
}

.search-filter-shell .field + .field {
  border-left: 1px solid #dcdce2;
}

.inventory-search-widget .field label {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 1;
  color: #5c5c5c;
  font-size: 12px;
}

.inventory-search-widget .field input,
.inventory-search-widget .field select {
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 25px 12px 6px 16px;
  color: #333;
  font-size: 18px;
  box-shadow: none;
}

.inventory-search-widget .field input::placeholder {
  color: #333;
}

.inventory-search-widget .button {
  min-height: 44px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  align-self: end;
}

.inventory-search-widget .button:hover {
  background: #fff;
  color: #333;
}

.inventory-search-widget .button.secondary {
  border-color: transparent;
}

.keyword-field {
  height: 50px;
}

.keyword-search-pane {
  width: min(560px, 100%);
  margin-inline: auto;
  justify-items: center;
}

.keyword-search-pane .keyword-field {
  width: 100%;
}

.keyword-search-pane > .button {
  min-width: 130px;
  width: auto;
  padding-inline: 28px;
  justify-self: center;
}

.keyword-field input {
  padding: 0 20px !important;
  font-size: 16px !important;
}

.keyword-field label {
  display: none;
}

.budget-search-pane {
  width: min(620px, 100%);
  margin-inline: auto;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.section {
  padding: 88px 0;
}

.section.dark {
  background: #15171b;
  color: #fff;
}

.section.alt {
  background: #fff;
}

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

.section-heading h2 {
  color: inherit;
  font-size: clamp(34px, 4vw, 58px);
}

.section-heading p {
  color: var(--muted);
}

.dark .section-heading p {
  color: rgba(255, 255, 255, .7);
}

.stats-grid,
.brand-grid,
.offer-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat,
.brand-card,
.offer-card,
.service-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.dark .stat,
.dark .brand-card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}

.brand-shop {
  display: grid;
  gap: 18px;
}

.brand-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.brand-tabs button {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.brand-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.brand-stage {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    #1b1e23;
}

.brand-stage-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 320px;
  padding: 12px;
}

.brand-stage-copy h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.brand-stage-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.65;
}

.brand-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brand-model-card {
  display: grid;
  align-content: space-between;
  min-height: 200px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.brand-model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 182, 31, .7);
  background: rgba(255, 255, 255, .12);
}

.brand-model-card img {
  width: 100%;
  height: 118px;
  object-fit: contain;
}

.brand-model-card span {
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.brand-model-card small {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.quicklink-section {
  background: #fff;
}

.quicklink-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.quicklink-card {
  display: grid;
  gap: 20px;
}

.quicklink-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: #d9dee6;
}

.quicklink-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.quicklink-card:hover .quicklink-media img {
  transform: scale(1.035);
}

.quicklink-body {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.quicklink-body h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.quicklink-body p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 19px;
}

.stat strong {
  display: block;
  font-size: 40px;
}

.stat span,
.vehicle-specs,
.card-copy {
  color: var(--muted);
}

.dark .stat span,
.dark .card-copy {
  color: rgba(255, 255, 255, .68);
}

.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.featured-marquee {
  display: grid;
  gap: 22px;
  overflow: hidden;
}

.featured-marquee-row {
  overflow: hidden;
}

.featured-marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee-left 10s linear infinite;
}

.featured-marquee-row[data-direction="right"] .featured-marquee-track {
  animation-name: marquee-right;
}

.featured-marquee-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100vw - 32px));
}

.featured-marquee .vehicle-card {
  min-width: 0;
}

.featured-marquee:hover .featured-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(calc(-50% - 9px));
  }
  to {
    transform: translateX(0);
  }
}

.vehicle-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9edf3;
}

.vehicle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-media span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.vehicle-body {
  padding: 18px;
}

.vehicle-title-row {
  display: grid;
  gap: 10px;
}

.vehicle-title-row h3 {
  min-height: 54px;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.vehicle-title-row strong {
  color: var(--brand);
  font-size: 24px;
}

.vehicle-specs {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  font-size: 13px;
}

.vehicle-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.vehicle-specs dt,
.vehicle-specs dd {
  margin: 0;
}

.brand-card h3,
.offer-card h3,
.service-card h3,
.contact-card h3 {
  margin: 0 0 10px;
}

.brand-card img {
  height: 130px;
  width: 100%;
  object-fit: contain;
  margin: 16px 0;
}

.offer-card {
  display: grid;
  min-height: 220px;
  align-content: space-between;
}

.offer-card strong {
  color: var(--brand);
  font-size: 28px;
}

.specials-quickintro {
  display: grid;
  gap: 6px;
  margin-bottom: 34px;
  background: #f0f0f0;
}

.specials-carousel,
.specials-quicknav-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: #111318;
}

.specials-carousel {
  aspect-ratio: 3.2 / 1;
}

.specials-carousel-inner,
.specials-slide,
.specials-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.specials-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.specials-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.specials-slide img,
.specials-quicknav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s cubic-bezier(.335, .015, .46, .995);
}

.specials-carousel:hover .specials-slide.active img,
.specials-quicknav-card:hover img {
  transform: scale(1.06);
}

.specials-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 62px;
  border: 0;
  background: rgba(0, 0, 0, .32);
  cursor: pointer;
  transform: translateY(-50%);
}

.specials-carousel-control:hover {
  background: rgba(0, 0, 0, .55);
}

.specials-carousel-control.prev {
  left: 0;
}

.specials-carousel-control.next {
  right: 0;
}

.specials-carousel-control::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}

.specials-carousel-control.prev::before {
  left: 19px;
  transform: translateY(-50%) rotate(-45deg);
}

.specials-carousel-control.next::before {
  right: 19px;
  transform: translateY(-50%) rotate(135deg);
}

.specials-carousel-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.specials-carousel-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
}

.specials-carousel-dots button.active {
  background: #fff;
}

.specials-quicknav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.specials-quicknav-card {
  min-height: 260px;
}

.specials-quicknav-copy {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 74px 28px 30px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .82));
}

.specials-quicknav-copy strong {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
}

.specials-quicknav-copy em {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 15px 10px;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.specials-quicknav-card:hover em {
  background: #fff;
  color: #222;
}

.featured-model-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(209, 27, 36, .12), transparent 32%),
    linear-gradient(135deg, #f3f4f6 0%, #fff 42%, #e9ebef 100%);
}

.featured-model-block {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  min-height: 520px;
  align-items: center;
  gap: 26px;
}

.featured-model-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 34px 0;
}

.featured-model-copy h2 {
  max-width: 700px;
  margin: 8px 0 12px;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: .95;
  font-weight: 1000;
  text-transform: uppercase;
}

.featured-model-copy h3 {
  margin: 0 0 16px;
  color: #24262c;
  font-size: clamp(21px, 2.1vw, 30px);
}

.featured-model-copy p {
  margin: 0 0 22px;
  color: #4d535f;
  font-size: 18px;
  line-height: 1.68;
}

.featured-model-media {
  min-height: 430px;
  align-self: stretch;
  background:
    linear-gradient(180deg, transparent 62%, rgba(16, 17, 20, .16) 100%),
    url("https://www.norristownchryslerdodge.com/assets/stock/ColorMatched_01/Transparent/640/cc_2026JES05_01_640/cc_2026JES052058059_01_640_PW7.png") center / contain no-repeat;
  filter: drop-shadow(0 34px 34px rgba(16, 17, 20, .28));
}

.service-grid {
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
}

.service-photo {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(16, 17, 20, .1), rgba(16, 17, 20, .1)),
    url("https://www.norristownchryslerdodge.com/static/brand-dodge/Homepage/backgrounds/bgService.jpg") center / cover;
}

.service-card {
  display: grid;
  align-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.location-card {
  cursor: pointer;
}

.location-card:hover,
.location-card:focus-within,
.location-card:focus {
  border-color: var(--brand);
  box-shadow: 0 20px 50px rgba(16, 17, 20, .14);
  outline: 0;
}

.contact-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #101114;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height .35s ease,
    margin-top .25s ease,
    opacity .25s ease,
    transform .25s ease;
}

.contact-section:has(.location-card:hover) .contact-map-panel,
.contact-section:has(.location-card:focus) .contact-map-panel,
.contact-section:has(.location-card:focus-within) .contact-map-panel,
.contact-section.map-open .contact-map-panel,
.contact-map-panel:hover {
  max-height: 720px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.map-block {
  position: relative;
  min-height: 420px;
}

.map-block iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.hours-block {
  display: grid;
  gap: 1px;
  align-content: stretch;
  background: rgba(255, 255, 255, .12);
}

.hours-block article {
  display: grid;
  align-content: center;
  padding: 24px;
  background: #fff;
}

.hours-block h3 {
  margin: 0 0 10px;
}

.hours-block p {
  margin: 0;
  color: var(--muted);
}

.dealership-story-section {
  background:
    linear-gradient(180deg, #f4f5f7 0%, #fff 34%, #fff 100%);
}

.dealership-story-intro,
.dealership-story-outro {
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #101114 0%, #292c33 100%);
  color: #fff;
  text-align: center;
}

.dealership-story-intro h2,
.dealership-story-outro h3 {
  margin: 8px 0 14px;
  color: #fff;
}

.dealership-story-intro p,
.dealership-story-outro p {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .78);
}

.dealership-story-outro {
  margin-top: 22px;
  margin-bottom: 0;
}

.dealership-story-outro .button {
  margin-top: 22px;
}

.dealership-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 20px;
  align-items: stretch;
}

.dealership-story-copy,
.dealership-support-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 17, 20, .08);
}

.dealership-story-copy h3,
.dealership-support-card h3 {
  margin: 8px 0 12px;
}

.dealership-story-copy p,
.dealership-support-card p {
  color: var(--muted);
}

.dealership-story-media {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #101114;
}

.dealership-story-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform .3s cubic-bezier(.335, .015, .46, .995);
}

.dealership-story-media:hover img {
  transform: scale(1.04);
}

.model-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.model-link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #dadce2;
  border-radius: 8px;
  color: #101114;
  font-weight: 900;
  background: #f7f7f8;
}

.model-link-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.dealership-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.support-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 900;
}

.site-footer {
  padding: 34px 0;
  background: #101114;
  color: rgba(255, 255, 255, .76);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.global-footer-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.footer-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mydevpartners-logo {
  width: 168px;
  height: 43px;
  object-fit: contain;
}

.footer-dealer-label {
  color: #fff;
  font-weight: 900;
  text-align: right;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.page-hero {
  padding: 96px 0 54px;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, .88), rgba(16, 17, 20, .52)),
    url("https://www.norristownchryslerdodge.com/static/dealer-23677/24_Jeep_Grand_Cherokee.jpg") center / cover;
  color: #fff;
}

.page-hero h1 {
  max-width: 880px;
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.65;
}

.menu-hub-grid,
.feature-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-grid {
  grid-template-columns: 1fr 1.2fr;
}

.menu-hub-card,
.menu-hub-grid > article,
.feature-card,
.form-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 17, 20, .07);
}

.menu-hub-card h3,
.menu-hub-grid > article h3,
.feature-card h3,
.form-card h3 {
  margin: 0 0 10px;
}

.menu-hub-card p,
.menu-hub-grid > article p,
.feature-card p,
.form-card p {
  color: var(--muted);
}

.menu-hub-card .button,
.menu-hub-grid > article .button,
.feature-card .button,
.form-card .button {
  margin-top: 12px;
}

.simple-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.simple-form label {
  display: grid;
  gap: 6px;
  color: #333842;
  font-size: 13px;
  font-weight: 900;
}

.simple-form input,
.simple-form select,
.simple-form textarea {
  min-height: 46px;
  border: 1px solid #dadce2;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.simple-form textarea,
.simple-form .full {
  grid-column: 1 / -1;
}

.page-band {
  background: #f5f6f8;
}

.service-three-shell {
  overflow: hidden;
  background: #f5f6f8;
}

.service-three-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.service-three-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vehicle-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #101114;
}

.vehicle-carousel-track {
  display: flex;
  gap: 14px;
  padding: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.vehicle-carousel-card {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: #101114;
}

.vehicle-carousel-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f0f1f3;
}

.vehicle-carousel-card div {
  padding: 16px;
}

.vehicle-carousel-card h3 {
  margin: 0 0 8px;
}

.vehicle-carousel-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #101114;
  font-weight: 900;
}

.link-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 900px) {
  .nav,
  .topbar,
  .section-heading,
  .inventory-toolbar,
  .footer-inner,
  .global-footer-credit {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-dealer-label {
    text-align: left;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-dropdown {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .search-panel,
  .stats-grid,
  .brand-grid,
  .brand-stage,
  .offer-grid,
  .specials-quicknav-grid,
  .quicklink-grid,
  .featured-model-block,
  .service-grid,
  .contact-grid,
  .contact-map-panel,
  .dealership-story-grid,
  .dealership-support-grid,
  .menu-hub-grid,
  .feature-grid,
  .form-grid,
  .service-three-layout,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero .container {
    min-height: 640px;
  }

  .brand-tabs,
  .brand-model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-stage-copy {
    min-height: 0;
  }

  .specials-carousel {
    aspect-ratio: 1 / 1;
  }

  .featured-model-block {
    min-height: 0;
    text-align: center;
  }

  .featured-model-copy {
    max-width: none;
    padding-bottom: 0;
  }

  .featured-model-copy .quick-actions {
    justify-content: center;
  }

  .featured-model-media {
    min-height: 330px;
  }

  .keyword-field {
    grid-column: auto;
  }

  .dealership-story-media img {
    min-height: 320px;
  }

  .contact-section:has(.location-card:hover) .contact-map-panel,
  .contact-section:has(.location-card:focus) .contact-map-panel,
  .contact-section:has(.location-card:focus-within) .contact-map-panel,
  .contact-section.map-open .contact-map-panel,
  .contact-map-panel:hover {
    max-height: 980px;
  }

}

@media (min-width: 701px) and (max-width: 900px) {
  .inventory-search-widget .vehicle-filter-shell {
    grid-template-columns: minmax(105px, .65fr) minmax(130px, 1fr) minmax(130px, 1fr);
  }

  .inventory-search-widget .keyword-field {
    grid-column: span 3;
  }
}

@media (max-width: 700px) {
  .simple-form {
    grid-template-columns: 1fr;
  }

  .inventory-search-widget .vehicle-filter-shell,
  .inventory-search-widget .budget-filter-shell {
    grid-template-columns: 1fr;
  }

  .search-filter-shell .field + .field {
    border-left: 0;
    border-top: 1px solid #dcdce2;
  }

  .search-button-group {
    width: 100%;
  }

  .search-button-group .button,
  .inventory-search-widget .search-panel > .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-tabs,
  .brand-model-grid,
  .model-link-list {
    grid-template-columns: 1fr;
  }

  .dealership-story-intro,
  .dealership-story-copy,
  .dealership-support-card,
  .dealership-story-outro {
    padding: 24px;
  }
}
