.vehicle-inventory { text-align: left; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.cg-filter { background: #191919; border: 1px solid #3b3b3b; border-radius: 3px; box-shadow: 0 2px 12px rgba(0,0,0,.18); margin: 0 0 1.5rem; padding: 1rem; }
.cg-filter-grid { display: grid; gap: .9rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cg-filter-more { border-top: 1px solid #3b3b3b; clear: both; margin-top: .85rem; padding-top: .85rem; }
.cg-filter-more[hidden] { display: none; }
.cg-filter label span { color: #b9b9b9; display: block; font-size: .75rem; font-weight: 700; margin: 0 0 .25rem; }
.cg-filter select { background: #2a2a2a; border: 1px solid #4b4b4b; border-radius: 3px; color: #eee; height: 2.5rem; padding: 0 .6rem; width: 100%; }
.cg-filter select:focus { border-color: #b72529; outline: 1px solid #b72529; }
.cg-more-toggle { background: #2a2a2a; border: 1px solid #4b4b4b; border-radius: 3px; color: #ddd; cursor: pointer; float: right; font: inherit; font-size: .8rem; font-weight: 600; margin-top: .85rem; padding: .6rem .8rem; }
.cg-more-toggle:hover, .cg-more-toggle:focus { border-color: #9f1c20; color: #9f1c20; }
.cg-more-toggle span { display: inline-block; font-size: 1.05rem; font-weight: 700; margin-right: .3rem; }
.cg-filter-actions { align-items: center; display: flex; gap: .6rem; justify-content: flex-end; margin-top: .85rem; }
.cg-button { background: #a91f23; border: 0; border-radius: 3px; color: #fff !important; cursor: pointer; display: inline-block; font-weight: 600; line-height: 1.2; padding: .7rem .9rem; text-decoration: none; }
.cg-button:hover { background: #7e1518; }
.cg-button-secondary { background: #4b4b4b; }
.cg-list-head { align-items: center; display: flex; justify-content: space-between; margin: 0 0 1rem; }
.cg-list-head p { margin: 0; }
.cg-cache-note { color: #8a6500; font-size: .8rem; }
.cg-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cg-card { background: #292929; border: 1px solid #454545; border-radius: 3px; box-shadow: 0 3px 12px rgba(0,0,0,.2); color: #ddd; cursor: pointer; display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cg-card:hover, .cg-card:focus { border-color: #777; box-shadow: 0 6px 18px rgba(0,0,0,.32); outline: none; transform: translateY(-2px); }
.cg-card-image { aspect-ratio: 4 / 3; background: #181818; overflow: hidden; position: relative; }
.cg-card-image img { display: block; height: 100%; object-fit: contain; width: 100%; }
.cg-image-placeholder { align-items: center; color: #777; display: flex; height: 100%; justify-content: center; }
.cg-badges { bottom: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; max-width: calc(100% - 1.2rem); position: absolute; right: .6rem; }
.cg-badge { color: #fff; font-size: .65rem; font-weight: 700; line-height: 1.1; padding: .32rem .48rem; text-transform: uppercase; }
.cg-badge-location { background: #a91f23; border: 1px solid #fff; color: #fff; font-size: .76rem; padding: .42rem .62rem; }
.cg-gallery-arrow { align-items: center; background: rgba(20,20,20,.78); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font: 700 1.8rem/1 Arial,sans-serif; height: 2.25rem; justify-content: center; padding: 0 0 .15rem; position: absolute; top: 50%; transform: translateY(-50%); transition: background .15s ease, transform .15s ease; width: 2.25rem; z-index: 2; }
.cg-gallery-arrow:hover, .cg-gallery-arrow:focus { background: #a91f23; outline: none; transform: translateY(-50%) scale(1.06); }
.cg-gallery-prev { left: .6rem; }
.cg-gallery-next { right: .6rem; }
.cg-gallery-count { background: rgba(20,20,20,.78); color: #fff; font-size: .65rem; left: .6rem; line-height: 1; padding: .32rem .42rem; position: absolute; top: .6rem; }
.cg-card-content { display: flex; flex: 1; flex-direction: column; padding: .65rem .75rem .7rem; }
.cg-card h3 { color: #f1f1f1; line-height: 1.1; margin: 0 0 .48rem; min-height: 3.25rem; overflow: hidden; }
.cg-vehicle-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-vehicle-title .cg-title-main { color: #f3f3f3; font-size: 1rem; font-weight: 700; }
.cg-vehicle-title .cg-title-detail { color: #c4c4c4; font-size: .76rem; font-weight: 400; line-height: 1.25; margin-top: .22rem; }
.cg-vehicle-title .cg-title-additional { color: #a8a8a8; font-size: .7rem; margin-top: .12rem; }
.cg-facts { display: grid; gap: 0 .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 .46rem; padding: 0; }
.cg-facts li { border-bottom: 1px solid #414141; min-width: 0; padding: .12rem 0 .24rem; }
.cg-facts li:last-child { border-bottom: 0; }
.cg-facts span, .cg-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-facts span { color: #999; font-size: .59rem; line-height: 1.05; text-transform: uppercase; }
.cg-facts strong { color: #e4e4e4; font-size: .76rem; line-height: 1.12; }
.cg-envkv { background: #202020; border-left: 2px solid #555; color: #aaa; font-size: .65rem; line-height: 1.25; margin: 0 0 .4rem; padding: .3rem .4rem; }
.cg-price-row { align-items: flex-end; border-top: 1px solid #494949; display: flex; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.cg-price-row del, .cg-price-row small { color: #999; display: block; font-size: .66rem; }
.cg-price { color: #dc3a3f; display: block; font-size: 1.2rem; line-height: 1.05; }
.cg-detail-coming { color: #ddd; font-size: .68rem; text-decoration: underline; text-underline-offset: .15rem; }
.cg-modal[hidden] { display: none; }
.cg-modal { display: block; height: 100vh; inset: 0; position: fixed; width: 100vw; z-index: 2147483000; }
.cg-modal-backdrop { background: rgba(0,0,0,.82); inset: 0; position: absolute; }
.cg-modal-panel { background: #222; border: 1px solid #4a4a4a; border-radius: 4px; box-shadow: 0 15px 60px rgba(0,0,0,.65); color: #ddd; left: 50%; max-height: 92vh; max-width: 1180px; overflow-y: auto; position: absolute; top: 50%; transform: translate(-50%,-50%); width: calc(100% - 2rem); }
.cg-modal-close { -webkit-appearance: none; align-items: center; appearance: none; background: rgba(28,28,28,.92); border: 1px solid #555; border-radius: 7px; box-shadow: 0 2px 8px rgba(0,0,0,.28); color: #ddd; cursor: pointer; display: flex; font: 300 1.45rem/1 Arial,sans-serif; height: 2.15rem; justify-content: center; padding: 0 0 .12rem; position: absolute; right: .7rem; text-shadow: none; top: .7rem; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; width: 2.15rem; z-index: 5; }
.cg-modal-close:hover { background: #a91f23; border-color: #c94a4e; color: #fff; transform: translateY(-1px); }
.cg-modal-close:focus { outline: none; }
.cg-modal-close:focus-visible { border-color: #dc3a3f; box-shadow: 0 0 0 2px rgba(220,58,63,.3); color: #fff; outline: none; }
.cg-modal-detail { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); }
.cg-modal-media { align-self: start; background: #181818; border-right: 1px solid #3d3d3d; min-width: 0; padding-bottom: .75rem; position: sticky; top: 0; }
.cg-modal-gallery { aspect-ratio: 4 / 3; min-height: 0; position: relative; }
.cg-gallery-thumbnails { background: #111; display: grid; gap: .42rem; grid-auto-columns: 76px; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; padding: .55rem .65rem; scrollbar-color: #a91f23 #292929; scrollbar-width: thin; }
.cg-gallery-thumb { aspect-ratio: 4 / 3; background: #222; border: 2px solid transparent; border-radius: 2px; cursor: pointer; overflow: hidden; padding: 0; transition: border-color .15s ease, opacity .15s ease, transform .15s ease; }
.cg-gallery-thumb img { display: block; height: 100%; object-fit: cover; opacity: .68; width: 100%; }
.cg-gallery-thumb:hover, .cg-gallery-thumb:focus { border-color: #888; outline: none; transform: translateY(-1px); }
.cg-gallery-thumb.is-active { border-color: #dc3a3f; }
.cg-gallery-thumb.is-active img, .cg-gallery-thumb:hover img, .cg-gallery-thumb:focus img { opacity: 1; }
.cg-modal-info { min-width: 0; padding: 1.25rem 1.35rem 1.5rem; }
.cg-modal-meta { color: #dc3a3f; font-size: .72rem; font-weight: 700; letter-spacing: .04em; margin: 0 3rem .3rem 0; text-transform: uppercase; }
.cg-modal-info h2.cg-modal-title { color: #fff; line-height: 1.15; margin: 0 2.7rem 1rem 0; }
.cg-modal-title span { display: block; }
.cg-modal-title .cg-title-main { color: #fff; font-size: 1.55rem; font-weight: 700; letter-spacing: -.015em; }
.cg-modal-title .cg-title-detail { color: #c9c9c9; font-size: 1rem; font-weight: 400; line-height: 1.35; margin-top: .38rem; overflow-wrap: anywhere; }
.cg-modal-title .cg-title-additional { color: #aaa; font-size: .8rem; margin-top: .16rem; }
.cg-modal-facts { display: grid; gap: 0 .9rem; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 0 0 1rem; padding: 0; }
.cg-modal-facts li { border-bottom: 1px solid #444; padding: .28rem 0 .38rem; }
.cg-modal-facts span, .cg-modal-facts strong { display: block; }
.cg-modal-facts span { color: #999; font-size: .62rem; text-transform: uppercase; }
.cg-modal-facts strong { color: #eee; font-size: .85rem; }
.cg-modal-price { border-bottom: 1px solid #4a4a4a; border-top: 1px solid #4a4a4a; margin: .75rem 0 1rem; padding: .7rem 0; }
.cg-modal-price del, .cg-modal-price small { color: #999; display: block; font-size: .72rem; }
.cg-modal-price strong { color: #ed4147; display: block; font-size: 1.65rem; line-height: 1.1; }
.cg-modal-section { border-top: 1px solid #444; margin-top: 1rem; padding-top: .85rem; }
.cg-modal-section h3 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; min-height: 0; }
.cg-modal-section p { color: #bbb; font-size: .78rem; line-height: 1.5; margin: 0; }
.cg-modal-envkv { background: #1a1a1a; border-left: 3px solid #a91f23; border-top: 0; margin-top: .5rem; padding: .65rem .75rem; }
.cg-modal-envkv p { line-height: 1.4; }
.cg-contact { background: linear-gradient(135deg,#252525 0%,#171717 100%); border: 1px solid #424242; border-top: 3px solid #b72529; box-shadow: 0 5px 16px rgba(0,0,0,.28); margin: .75rem .75rem 0; padding: 1rem; }
.cg-contact h3 { color: #fff; font-size: 1.05rem; line-height: 1.15; margin: 0 0 .48rem; }
.cg-contact p strong { color: #eee; }
.cg-contact p { color: #aaa; font-size: .75rem; line-height: 1.4; margin: 0; }
.cg-contact-actions { display: none; }
.cg-contact-action { align-items: center; background: #8d2024; border-right: 1px solid #661519; color: #fff !important; display: flex; flex-direction: column; font-size: .7rem; font-weight: 700; justify-content: center; line-height: 1.2; min-height: 3.15rem; padding: .58rem .45rem; text-align: center; text-decoration: none; transition: background .15s ease; }
.cg-contact-action:last-child { border-right: 0; }
.cg-contact-action:hover, .cg-contact-action:focus { background: #b72529; color: #fff !important; outline: none; }
.cg-contact-action:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.cg-contact-action.is-loading { cursor: wait; opacity: .68; }
.cg-contact-action strong { color: inherit; font-size: inherit; }
.cg-contact-action small { color: rgba(255,255,255,.76); display: block; font-size: .58rem; font-weight: 400; margin-top: .18rem; }
.cg-contact-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .7rem; }
.cg-contact-links a { color: #c8c8c8; font-size: .68rem; text-decoration: underline; text-underline-offset: .15rem; }
.cg-contact-links a:hover, .cg-contact-links a:focus { color: #ed4147; }
.cg-contact .cg-test-drive-status { color: #d7a7a9; font-size: .65rem; margin-top: .55rem; }
.cg-floating-contact { background: rgba(27,27,27,.96); border: 1px solid #4b4b4b; border-top: 2px solid #b72529; bottom: .6rem; box-shadow: 0 5px 20px rgba(0,0,0,.45); color: #ddd; left: .6rem; padding: .62rem .7rem .7rem; position: fixed; width: min(27rem,calc(100vw - 1.2rem)); z-index: 2147483050; }
.cg-floating-contact p { color: #aaa; font-size: .76rem; line-height: 1.3; margin: 0; }
.cg-floating-contact p strong { color: #e5e5e5; }
.cg-floating-location { align-items: flex-start; display: flex; gap: .75rem; justify-content: space-between; }
.cg-email-link { color: #d5d5d5 !important; flex: 0 0 auto; font-size: .66rem; margin-top: .08rem; text-align: right; text-decoration: underline; text-underline-offset: .14rem; }
.cg-email-link:hover, .cg-email-link:focus { color: #fff !important; }
.cg-floating-contact .cg-test-drive-status { color: #d7a7a9; font-size: .62rem; margin-top: .45rem; }
.cg-floating-contact .cg-contact-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: .5rem; }
.cg-floating-contact .cg-contact-action { font-size: .68rem; min-height: 2.75rem; padding: .38rem .28rem; }
.cg-floating-contact .cg-contact-action small { font-size: .6rem; }
.cg-email-modal { inset: 0; position: fixed; z-index: 2147483550; }
.cg-email-modal[hidden] { display: none; }
.cg-email-backdrop { background: rgba(0,0,0,.78); border: 0; cursor: default; inset: 0; padding: 0; position: absolute; width: 100%; }
.cg-email-panel { background: #242424; border: 1px solid #555; border-top: 3px solid #b72529; box-shadow: 0 15px 55px rgba(0,0,0,.7); color: #ddd; left: 50%; max-height: calc(100vh - 2rem); max-width: 31rem; overflow-y: auto; padding: 1.15rem; position: absolute; top: 50%; transform: translate(-50%,-50%); width: calc(100% - 2rem); }
.cg-email-panel h3 { color: #fff; font-size: 1.15rem; margin: 0 2.5rem .25rem 0; }
.cg-email-panel .cg-email-vehicle { color: #aaa; font-size: .72rem; margin-bottom: .85rem; }
.cg-email-close { background: transparent; border: 0; color: #ddd; cursor: pointer; font: 300 1.65rem/1 Arial,sans-serif; padding: .25rem; position: absolute; right: .65rem; top: .55rem; }
.cg-email-close:hover, .cg-email-close:focus { color: #ed4147; }
.cg-email-fields { display: grid; gap: .65rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cg-email-fields label { color: #ddd; display: block; font-size: .7rem; font-weight: 600; }
.cg-email-fields label span { display: block; margin-bottom: .22rem; }
.cg-email-fields input, .cg-email-fields textarea { background: #171717; border: 1px solid #555; border-radius: 2px; box-sizing: border-box; color: #fff; font: inherit; padding: .52rem .58rem; width: 100%; }
.cg-email-fields input:focus, .cg-email-fields textarea:focus { border-color: #dc3a3f; outline: none; }
.cg-email-message { grid-column: 1 / -1; }
.cg-email-message textarea { line-height: 1.4; resize: vertical; }
.cg-email-submit { background: #a92328; border: 0; color: #fff; cursor: pointer; font-size: .72rem; font-weight: 700; margin-top: .75rem; padding: .62rem .85rem; }
.cg-email-submit:hover, .cg-email-submit:focus { background: #c42d33; }
.cg-email-panel form > small { color: #999; font-size: .58rem; margin-left: .55rem; }
#au-floating-container .au-popover[aria-labelledby="au-prompt-title"] { display: none !important; }
#au-floating-container > .au-floating-action-button { display: none !important; }
html.cg-modal-open #au-modal-test_drive,
html.cg-modal-open .auws-overlay { z-index: 2147483600 !important; }
html.cg-modal-open #au-modal-test_drive .au-button-icon { opacity: 1 !important; pointer-events: auto !important; z-index: 2147483640 !important; }
html.cg-modal-open .auws-overlay .auws-close-button { align-items: center !important; background: #8d2024 !important; border: 2px solid #fff !important; border-radius: 50% !important; box-shadow: 0 3px 14px rgba(0,0,0,.5) !important; cursor: pointer !important; display: flex !important; height: 2.8rem !important; justify-content: center !important; opacity: 1 !important; pointer-events: auto !important; position: fixed !important; right: 1rem !important; top: 1rem !important; width: 2.8rem !important; z-index: 2147483640 !important; }
html.cg-modal-open .auws-overlay .auws-close-button img { filter: brightness(0) invert(1); height: 1rem !important; width: 1rem !important; }
.booking-modal { z-index: 2147483100; }
.cg-detail-data { margin: 0; }
.cg-detail-data div { border-bottom: 1px solid #3f3f3f; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); padding: .35rem 0; }
.cg-detail-data dt { color: #999; font-size: .7rem; }
.cg-detail-data dd { color: #ddd; font-size: .76rem; font-weight: 600; margin: 0; text-align: right; }
.cg-equipment-section > h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.cg-equipment-groups { display: grid; gap: .6rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cg-equipment-group { background: #1b1b1b; border: 1px solid #3b3b3b; border-radius: 3px; padding: .62rem .68rem .7rem; }
.cg-equipment-group h4 { border-bottom: 1px solid #393939; color: #e4e4e4; font-size: .72rem; font-weight: 700; letter-spacing: .055em; line-height: 1.25; margin: 0 0 .48rem; padding: 0 0 .38rem; text-transform: uppercase; }
.cg-equipment { display: grid; gap: .25rem .8rem; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; }
.cg-equipment-group .cg-equipment { grid-template-columns: 1fr; }
.cg-equipment li { color: #bbb; font-size: .72rem; line-height: 1.35; padding-left: .72rem; position: relative; }
.cg-equipment li::before { color: #dc3a3f; content: "•"; left: 0; position: absolute; }
.cg-service-notes { background: #1b1b1b; border: 1px solid #363636; margin-top: 1.25rem; padding: .75rem; }
.cg-service-notes h3 { color: #aaa; font-size: .78rem; letter-spacing: .035em; text-transform: uppercase; }
.cg-service-notes p { color: #929292; font-size: .7rem; line-height: 1.45; }
.cg-modal-open { overflow: hidden; }
.cg-notice { background: #f3f4f5; border-left: 4px solid #777; padding: 1rem; }
.cg-notice-error { border-left-color: #9f1c20; }
.cg-test-diagnosis { border-top: 1px solid #d4d6d8; color: #555; display: block; margin-top: .75rem; padding-top: .75rem; }
@media screen and (max-width: 980px) { .cg-filter-grid, .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 860px) {
  .cg-modal-detail { grid-template-columns: 1fr; }
  .cg-modal-media { border-right: 0; position: relative; }
}
@media screen and (max-width: 620px) {
  .cg-filter-grid, .cg-grid { grid-template-columns: 1fr; }
  .cg-more-toggle { float: none; width: 100%; }
  .cg-filter-actions { align-items: stretch; flex-direction: column-reverse; }
  .cg-button { text-align: center; width: 100%; }
  .cg-card h3 { min-height: 0; }
  .cg-modal-panel { max-height: 96vh; width: calc(100% - 1rem); }
  .cg-modal-info { padding: 1rem; }
  .cg-modal-title .cg-title-main { font-size: 1.3rem; }
  .cg-modal-title .cg-title-detail { font-size: .9rem; }
  .cg-modal-facts, .cg-equipment, .cg-equipment-groups { grid-template-columns: 1fr; }
  .cg-gallery-thumbnails { grid-auto-columns: 68px; padding: .45rem .5rem; }
  .cg-contact { margin: .65rem .5rem 0; padding: .85rem; }
  .cg-floating-contact { bottom: .35rem; left: .35rem; padding: .38rem .42rem .42rem; width: calc(100vw - .7rem); }
  .cg-floating-contact p { font-size: .58rem; line-height: 1.25; }
  .cg-email-link { font-size: .52rem; }
  .cg-floating-contact .cg-contact-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cg-floating-contact .cg-contact-action { border-bottom: 0; border-right: 1px solid #661519; font-size: .49rem; min-height: 2rem; }
  .cg-floating-contact .cg-contact-action small { font-size: .52rem; }
  .cg-floating-contact .cg-contact-action:last-child { border-right: 0; }
  .cg-contact-action { border-bottom: 1px solid #661519; border-right: 0; min-height: 2.75rem; }
  .cg-contact-action:last-child { border-bottom: 0; }
  .cg-email-panel { padding: .9rem; }
  .cg-email-fields { grid-template-columns: 1fr; }
  .cg-email-message { grid-column: auto; }
  .cg-email-panel form > small { display: block; margin: .4rem 0 0; }
}
