/* Add-on layout. Colors stay in styles.css. No reviews, ratings, or dealer claim. */
.site-header { position: sticky; top: 0; z-index: 40; }
.header-call { min-height: 48px; }

.models-index .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.models-index a.thumb,
.models-index a.thumb img { height: 320px; }
.models-index a.thumb { display: block; }

.model-tags {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.model-tags li {
  background: #fff;
  color: var(--forest);
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .01em;
}
.page-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1rem; padding: 0; list-style: none; }
.page-tags li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .82rem;
  font-weight: 700;
}

.clayton-slot {
  border: 1.5px dashed var(--clay-d);
  border-radius: 16px;
  min-height: 148px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem 1.2rem;
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(185,137,90,.12) 8px, rgba(185,137,90,.12) 16px);
}
.clayton-slot p { margin: 0; }
.clayton-slot strong { display: block; margin-bottom: .25rem; }

.config-feature { padding-top: 0; }
.config-panel {
  background: var(--forest);
  color: #f4efe6;
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.config-panel h2, .config-panel p, .config-panel .kicker { color: #f4efe6; }
.config-panel .kicker { letter-spacing: .08em; text-transform: uppercase; font-weight: 750; font-size: .78rem; margin: 0 0 .6rem; }
.config-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.3rem; padding: 0; }
.config-steps li {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .4rem .75rem;
  font-weight: 700;
}

.trust-band { padding-top: 0; }
.trust-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-facts p {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-weight: 700;
}

.placeholders { margin: 0 0 1.2rem; }
.placeholders div { margin: 0 0 .8rem; }
.placeholders dt { font-weight: 750; }
.placeholders dt span {
  margin-left: .45rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay-d);
}
.placeholders dd { margin: .15rem 0 0; font-size: 1.15rem; }

.buy-steps { display: grid; gap: 1rem; }
.buy-steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}
.buy-steps .n { font-family: Fraunces, Georgia, serif; color: var(--clay-d); font-size: 1.4rem; margin: 0; }
.buy-steps h2 { font-size: 1.35rem; margin: .15rem 0 .4rem; }
.buy-steps p { margin: 0 0 .45rem; }

.phone-bar { display: none; }
@media (max-width: 760px) {
  .phone-bar {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--forest);
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .phone-bar a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 750;
    padding: .85rem .25rem;
    min-height: 52px;
  }
  .phone-bar a + a { border-left: 1px solid rgba(255,255,255,.18); }
  body { padding-bottom: 64px; }
  .trust-facts { grid-template-columns: 1fr; }
  .site-header .header-call { padding-inline: .8rem; }
}

.model-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 210px 210px 180px;
  gap: 10px;
  margin: 0 0 .45rem;
}
.model-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #e7e1d6;
}
.model-gallery img:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.photo-credit {
  margin: .2rem 0 1rem;
  font-size: .82rem;
  color: #6b645b;
}
@media (max-width: 700px) {
  .model-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .model-gallery img { height: 160px; }
  .model-gallery img:first-child {
    grid-column: 1 / span 2;
    grid-row: auto;
    height: 220px;
  }
}

.model-ahead { margin: 0 0 1.35rem; }
.model-ahead h2 { font-size: 1.45rem; margin: 0 0 .55rem; }
.floorplan-main {
  display: block;
  background: #fff;
  border: 1px solid #e4ddd2;
  border-radius: 16px;
  overflow: hidden;
}
.floorplan-main img { width: 100%; height: auto; display: block; background: #fff; }
.floorplan-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.floorplan-thumbs a {
  display: block;
  width: 168px;
  max-width: 46%;
  background: #fff;
  border: 1px solid #e4ddd2;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.floorplan-thumbs img {
  width: 100%;
  height: 78px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.floorplan-thumbs span, .floorplan-enlarge {
  display: block;
  font-size: .78rem;
  padding: .28rem .45rem .4rem;
  color: #3d4a42;
}
.floorplan-enlarge { padding-left: 0; }
.tour-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #24382e;
  border-radius: 16px;
  overflow: hidden;
}
.tour-poster, .tour-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tour-poster {
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 750;
  background: #24382e;
}
.tour-open { margin: .5rem 0 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: .35rem 0 .8rem; }
.spec-table th {
  text-align: left;
  background: #f4efe6;
  padding: .55rem .7rem;
  font-size: .95rem;
}
.spec-table td {
  padding: .38rem .7rem;
  border-top: 1px solid #e7e1d6;
  vertical-align: top;
}
.spec-note { font-size: .82rem; color: #6b645b; margin: 0 0 .7rem; }
.spec-options { margin: .2rem 0 0; padding-left: 1.15rem; }
@media (max-width: 700px) {
  .floorplan-thumbs a { width: 46%; }
}

/* Five-model photo tiles. Ribbon text lives in rank-labels.js. */
.nav-models { position: relative; }
nav ul.nav-model-list {
  display: none;
  position: absolute;
  z-index: 6;
  top: 100%;
  left: 0;
  min-width: 11rem;
  margin: .35rem 0 0;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  flex-direction: column;
  gap: 0;
}
.nav-models:hover > ul.nav-model-list,
.nav-models:focus-within > ul.nav-model-list { display: flex; }
nav ul.nav-model-list a { display: block; padding: .4rem .65rem; border-radius: 8px; }
nav ul.nav-model-list a:hover { background: var(--cream); }
.photo-stage { position: relative; }
.photo-stage .rank-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  max-width: 46%;
  margin: 0;
  padding: 3px 7px;
  background: #8f2d2a;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .01em;
  border-radius: 3px;
  text-align: right;
  pointer-events: none;
}
.photo-tiles {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  max-width: calc(100% - 16px);
}
.photo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  color: #1d2b24;
  font-weight: 750;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.photo-tile:hover { background: var(--clay); color: #1c1917; }
.cards .photo-stage a.thumb,
.cards .photo-stage a.thumb img { height: 240px; }
.models-index .photo-stage a.thumb,
.models-index .photo-stage a.thumb img { height: 320px; }
.hero-stage { margin: 1rem 0 0; border-radius: 16px; overflow: hidden; }
.hero-stage img { width: 100%; height: min(520px, 62vw); object-fit: cover; display: block; }
.media-modal[hidden] { display: none; }
.media-modal [hidden] { display: none !important; }
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 24, 20, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.media-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.4rem 1rem 1rem;
}
.media-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: .4rem .9rem;
  cursor: pointer;
}
.media-modal-plan { width: 100%; height: auto; display: block; background: #fff; }
.media-modal-tour { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #24382e; }
.media-modal-tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-modal .tour-open { margin: .6rem 0 0; }
@media (max-width: 860px) {
  nav ul.nav-model-list {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 .2rem .15rem;
    margin: 0;
  }
}
@media (max-width: 420px) {
  .photo-stage .rank-flag { font-size: 10px; padding: 3px 6px; top: 6px; right: 6px; }
  .photo-tile { font-size: 13px; padding: 7px 9px; min-height: 36px; }
}

/* True 3:2 model photos. Crop inside the box. Lightbox stays the full file. */
.cards .photo-stage,
.models-index .photo-stage,
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  overflow: hidden;
}
.cards .photo-stage a.thumb,
.models-index .photo-stage a.thumb,
.hero-stage > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.cards .photo-stage a.thumb img,
.models-index .photo-stage a.thumb img,
.models-index a.thumb img,
.hero-stage > img,
a.thumb.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-art picture,
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.model-gallery {
  grid-template-rows: none;
  grid-auto-rows: auto;
}
.model-gallery img,
.model-gallery img:first-child {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}
.polish-gallery {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: none;
}
.polish-gallery picture,
.polish-gallery picture:first-child {
  grid-row: auto;
  display: block;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.polish-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.polish-related-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.media-modal-plan {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 96px);
  object-fit: contain;
}
@media (max-width: 700px) {
  .model-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .model-gallery img,
  .model-gallery img:first-child {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .polish-gallery {
    grid-template-columns: 1fr;
  }
  .polish-gallery picture,
  .polish-gallery picture:first-child {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}
