.mp-page { margin: 0; background: #101012; color: #fafafa; font: 16px/1.5 Arial, sans-serif; }
.mp-page a { color: inherit; }
.mp-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mp-hero { display: grid; align-items: end; min-height: clamp(360px, 53vw, 560px); background: linear-gradient(90deg, #101012fa 0%, #101012b8 39%, #10101222 100%), url('/assets/chile-motorcycle-hero.webp') center 55% / cover; border-bottom: 2px solid #ed1c24; }
.mp-hero-content { padding-block: clamp(45px, 8vw, 95px); }
.mp-hero h1, .mp-intro h1 { margin: 0; font-size: clamp(38px, 7vw, 78px); line-height: .99; letter-spacing: -.045em; }
.mp-intro { padding: 26px 0 12px; }
.mp-intro h1 { font-size: clamp(29px, 4vw, 44px); line-height: 1.1; }
.mp-intro p { margin: 10px 0 0; }
.mp-hero p { margin-block: 18px 28px; max-width: 440px; color: #eee; font-size: 19px; }
.mp-actions, .mp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mp-row { justify-content: space-between; }
.mp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid #ed1c24; border-radius: 7px; background: #ed1c24; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.mp-outline { border-color: #777; background: #1d1d20; }
.mp-button:hover { border-color: #fff; }
.mp-page :focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.mp-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-block: 30px 46px; }
.mp-shortcuts a, .mp-card, .mp-panel { background: #19191c; border: 1px solid #37373c; border-radius: 9px; padding: 18px; }
.mp-shortcuts a { text-decoration: none; }
.mp-shortcuts a:hover { border-color: #ed1c24; }
.mp-shortcuts strong { display: block; font-size: 18px; }
.mp-shortcuts span, .mp-detail { color: #c2c2c6; }
.mp-browse, .mp-panel { margin-block: 0 52px; }
.mp-page .mp-panel { box-sizing: border-box; }
.mp-browse h2, .mp-panel h2 { font-size: clamp(26px, 4vw, 39px); line-height: 1.15; }
.mp-tabs { display: flex; gap: 8px; margin: 0 0 18px; border-bottom: 1px solid #404045; }
.mp-browse-tools { border-bottom: 1px solid #404045; }
.mp-browse-tools .mp-tabs { margin: 0; border: 0; }
.mp-tabs a { text-decoration: none; padding: 10px 14px; border-bottom: 3px solid transparent; }
.mp-tabs a[aria-current="true"] { border-color: #ed1c24; font-weight: bold; }
.mp-filters, .mp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); align-items: end; gap: 12px; margin-block: 15px; }
.mp-page main label { display: block; font-weight: 650; }
.mp-page main :is(select, input, textarea) { box-sizing: border-box; display: block; width: 100%; min-height: 44px; margin: 5px 0 12px; padding: 8px; border: 1px solid #555; border-radius: 6px; background: #1a1a1d; color: #f6f6f6; font: inherit; color-scheme: dark; }
.mp-page .mp-filters select { margin-bottom: 0; }
.mp-filters button { justify-self: start; }
#marketplace-status:empty { display: none; }
#marketplace-gallery-title { margin: 24px 0 12px; font-size: clamp(22px, 3vw, 30px); }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); align-items: start; gap: 12px; }
.mp-card h3 { margin: 4px 0 10px; }
.mp-card .mp-price { font-size: 21px; font-weight: 750; }
.mp-advert-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px; background: #111; margin-bottom: 10px; }
.mp-grid .mp-card > .mp-advert-photo { object-fit: contain; max-height: 240px; }
.mp-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-block: 12px; }
.mp-photo-gallery:empty { display: none; }
.mp-share { margin-block: 14px 0; }
.mp-share summary { width: fit-content; cursor: pointer; font-weight: 700; }
.mp-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mp-share-actions .mp-button { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.mp-share-status { margin: 8px 0 0; }
.mp-share-status:empty { display: none; }
.mp-empty { border: 1px dashed #666; padding: 22px; border-radius: 8px; }
.mp-empty p { margin: 0 0 12px; }
.mp-empty a { margin: 0 8px 4px 0; }
.mp-footer { border-top: 1px solid #39393d; padding-block: 22px; }
.mp-footer .mp-wrap { display: flex; flex-wrap: wrap; gap: 18px; }
.mp-page main [hidden] { display: none !important; }
.mp-classifieds .mp-intro {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  position: relative;
  overflow: hidden;
  margin-block: 22px 14px;
  padding: 0;
  border: 1px solid #37373c;
  border-top-color: #ed1c24;
  border-radius: 10px;
  background: #0b0b0c;
}
.mp-intro-copy { align-self: center; padding: clamp(20px, 3vw, 38px); }
.mp-intro-copy h1 span { display: block; color: #ff4148; }
.mp-intro-copy > p { color: #d0d0d2; margin-block: 10px 19px; }
.mp-intro-copy .mp-actions p { margin: 0; font-size: 14px; }
#marketplace-posting-notice strong { color: #fff; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.3; }
#marketplace-posting-notice span { color: #c2c2c6; }
.mp-intro-photo { position: relative; display: grid; align-items: center; min-width: 0; margin: 0; background: #141414; }
.mp-intro-photo img { display: block; width: 100%; height: auto; }
.mp-intro-photo figcaption { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; background: #090909e8; font-size: 11px; }
.mp-search-panel { padding: 12px 16px 14px; border: 1px solid #37373c; border-top-color: #ed1c24; border-radius: 10px; background: #171719; }
.mp-search-panel .mp-tabs { flex-wrap: wrap; }
.mp-search-panel .mp-tabs a { border-radius: 6px 6px 0 0; }
.mp-search-panel .mp-tabs a[aria-current="true"] { background: #252527; }
.mp-classifieds .mp-empty { margin-top: 15px; background: #151517; border: 1px solid #37373c; }
.mp-classifieds .mp-card { border-top-color: #ed1c24; }
.mp-request-link { display: inline-block; margin-block: 2px; color: #ececee; font-size: 14px; }
.mp-model-request { box-sizing: border-box; border-top-color: #ed1c24; scroll-margin-top: 20px; }
.mp-model-request summary { width: fit-content; cursor: pointer; font-weight: 700; }
.mp-model-request [role="status"]:empty { display: none; }
#marketplace-inbox { box-sizing: border-box; width: min(760px, 100%); margin: 18px auto 28px; padding: clamp(16px, 3vw, 25px); border-top-color: #ed1c24; scroll-margin-top: 16px; }
#marketplace-inbox h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.mp-inbox-context { margin: 0 0 14px; }
.mp-inbox-context a, #marketplace-inbox > div > a:not(.mp-button) { color: #eee; text-decoration: underline; }
.mp-inbox-form { margin-top: 14px; }
.mp-inbox-form label { display: block; font-weight: 700; }
.mp-inbox-form textarea { box-sizing: border-box; display: block; width: 100%; min-height: 104px; margin: 6px 0 12px; padding: 10px; border: 1px solid #555; border-radius: 6px; background: #101012; color: #f6f6f6; font: inherit; resize: vertical; }
.mp-inbox-form [role="status"]:empty, #marketplace-inbox .mp-thread:empty { display: none; }
#marketplace-inbox .mp-thread { display: grid; gap: 8px; margin-top: 14px; }
#marketplace-inbox.mp-classified-thread { width: min(1080px, 100%); background: #101012; border-color: #3a3a3a; border-top-color: #ed1c24; }
.mp-classified-thread-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #ed1c24;
}
.mp-classified-thread-header .mp-button { color: #fff; }
.mp-classified-thread-advert { margin: 12px 0 16px; overflow-wrap: anywhere; }
.mp-classified-thread-advert a { font-weight: 700; text-decoration-color: #ed1c24; text-underline-offset: .18em; }
.mp-classified-message {
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #444;
  border-left: 2px solid #ed1c24;
  border-radius: 3px 10px 10px;
  background: #202023;
  overflow-wrap: anywhere;
}
.mp-classified-message-own { justify-self: end; border-left-width: 1px; border-right: 2px solid #ed1c24; border-radius: 10px 3px 10px 10px; background: #271b1c; }
.mp-classified-message-meta { gap: 4px 16px; font-size: .88em; }
.mp-classified-message time { color: #bdbdbf; font-size: .9em; }
.mp-classified-message p { margin: 6px 0 0; white-space: pre-wrap; }
@media (min-width: 850px) {
  .mp-page .mp-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .mp-page .mp-filters:has([data-part-filter]:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
}
@media (max-width: 680px) {
  .mp-classifieds .mp-intro { grid-template-columns: 1fr; }
}
@media (max-width: 720px) { .mp-shortcuts { grid-template-columns: repeat(2, 1fr); } .mp-hero { background-position: 58% center; } }
@media (max-width: 390px) { .mp-wrap { width: calc(100% - 24px); } .mp-shortcuts { gap: 6px; } .mp-shortcuts a { padding: 12px; } }

.mp-gallery-thumbnail {
  display: block;
  padding: 0;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: inherit;
  cursor: zoom-in;
}
.mp-gallery-viewer {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 20px));
  max-height: 95dvh;
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid #444;
  border-top-color: #ed1c24;
  border-radius: 12px;
  background: #101012;
  color: #fff;
}
.mp-gallery-viewer::backdrop { background: rgb(0 0 0 / 86%); }
.mp-gallery-logo { display: block; width: 98px; height: auto; }
.mp-gallery-stage { margin-block: 12px; }
.mp-gallery-stage .mp-advert-photo {
  display: block;
  width: 100%;
  height: min(65dvh, 740px);
  aspect-ratio: auto;
  object-fit: contain;
}
.mp-gallery-controls .mp-button { padding-inline: clamp(7px, 2vw, 16px); }

.mp-classifieds #browse .mp-tabs { gap: 8px; }
.mp-classifieds #browse .mp-tabs a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid #ed1c24;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.mp-classifieds #browse .mp-tabs a:hover { background: #353535; }
.mp-classifieds #browse .mp-tabs a[aria-current="true"] { background: #303030; box-shadow: inset 0 0 0 1px #ed1c24; }
.mp-classifieds #browse .mp-tabs a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#motorcycle-transport { scroll-margin-top: 9rem; }

.mp-classifieds #advert { background: #050404; border-top-color: #ed1c24; }
.mp-master-nav {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ed1c24;
}
.mp-master-nav .mp-gallery-logo { width: min(112px, 32vw); }
.mp-master-advert.ab-listing-layout { border: 0; border-radius: 0; overflow: visible; }
.mp-master-gallery { display: grid; gap: 12px; }
.mp-master-hero {
  width: 100%;
  background: #151515;
  border-radius: 9px;
}
.mp-master-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}
.mp-master-open .mp-advert-photo { height: 100%; margin: 0; object-fit: contain; border-radius: inherit; }
.mp-master-thumbnails {
  display: grid;
  gap: 8px;
}
.ab-listing-layout .mp-master-thumbnails.ab-listing-thumbnails:not([hidden]) {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.mp-master-thumbnails .mp-gallery-placeholder {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: #0d0d0d;
  border: 1px solid #303030;
  border-radius: 7px;
  overflow: hidden;
}
.mp-master-thumbnails .mp-gallery-placeholder > img {
  width: 70%;
  height: 70%;
  aspect-ratio: auto;
  object-fit: contain;
}
.mp-master-thumbnails .mp-gallery-thumbnail { border: 2px solid transparent; cursor: pointer; }
.mp-master-thumbnails .mp-gallery-thumbnail[aria-pressed="true"] { border-color: #ed1c24; }
.mp-master-thumbnails img { aspect-ratio: 1.5; object-fit: cover; margin: 0; }
.mp-master-gallery button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mp-master-summary { display: grid; gap: 12px; }
.mp-master-key-facts h3 { margin: 0 0 8px; font-size: 1.05em; }
.mp-master-key-facts dl { margin: 0; }
.mp-master-summary h2 { margin: 0; overflow-wrap: anywhere; }
.mp-master-summary .mp-actions { align-items: flex-start; margin: 0; }
.mp-master-summary .mp-share { flex-basis: 100%; }
.mp-master-price { margin: 8px 0 0; font-size: clamp(22px, 3vw, 32px); font-weight: 750; }
.mp-master-panel { padding: 16px; margin: 14px 0; border: 1px solid #3a3a3a; border-radius: 12px; background: #19191c; }
.mp-master-panel h3 { margin: 0 0 12px; }
.mp-master-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 8px; margin: 0; }
.mp-master-facts > div { padding: 10px; border: 1px solid #414141; border-radius: 8px; background: #292929; }
.mp-master-facts dt { color: #ccc; font-size: .9em; }
.mp-master-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.mp-master-description { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.mp-classifieds .mp-browse-actions { margin-block: 12px; }
.mp-classifieds main .mp-button { border-radius: 999px; text-align: center; }
.mp-classifieds main .mp-button.mp-outline { border-color: #ed1c24; background: #2b2b2b; }
.mp-classifieds main .mp-button.mp-outline:hover { border-color: #fff; background: #353535; }
.mp-classifieds .mp-browse-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 12px;
  border-top-color: #ed1c24;
  border-radius: 10px;
  background: #151517;
}
.mp-browse-card-photo { display: block; border-radius: 7px; }
.mp-browse-card-photo .mp-advert-photo { max-height: 240px; }
.mp-browse-card h3 { font-size: 1.08em; line-height: 1.35; overflow-wrap: anywhere; }
.mp-browse-card h3 a { text-decoration: none; }
.mp-browse-card h3 a:hover { text-decoration: underline; text-decoration-color: #ed1c24; }
.mp-browse-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mp-browse-card .mp-price { font-size: 24px; color: #ed1c24; }
.mp-browse-card .mp-share { border-top: 1px solid #37373c; padding-top: 9px; }
.mp-classifieds #marketplace-dvsa {
  min-width: 0;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #474747;
  border-left: 2px solid #ed1c24;
  border-radius: 9px;
  background: #19191c;
}
.mp-classifieds #marketplace-dvsa legend { padding-inline: 5px; color: #fff; font-weight: 700; }
.mp-classifieds #dvsaMotLookupBtn:hover:not(:disabled) { border-color: #fff; }
.mp-classifieds #dvsaMotLookupBtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mp-classifieds #post {
  padding: clamp(16px, 3vw, 32px);
  border-top-color: #ed1c24;
}
.mp-post-header { margin-bottom: 24px; }
.mp-post-header h2 { margin: 0; }
#marketplace-seller-type select { max-width: 460px; }
#marketplace-seller-type .mp-detail { margin: 8px 0; }
.mp-post-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #37373c;
}
#marketplace-post { display: grid; gap: 22px; }
.mp-post-group legend {
  margin-bottom: 12px;
  padding: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}
.mp-post-grid { display: grid; align-items: start; gap: 14px 18px; }
.mp-post-grid label { min-width: 0; }
.mp-page #marketplace-post .mp-post-group :is(select, input, textarea) { margin: 5px 0 0; }
.mp-post-grid small, #marketplace-photo-limit, .mp-post-footer p {
  color: #c2c2c6;
  font-size: .875rem;
  font-weight: 400;
}
.mp-post-grid small { display: block; margin-top: 5px; }
.mp-post-preview {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-left: 2px solid #ed1c24;
  border-radius: 4px;
  background: #111113;
}
.mp-post-preview output { color: #e1e1e4; }
.mp-post-group [name="description"] { resize: vertical; }
.mp-post-group label:has([name="photos"]) { margin-top: 14px; }
#marketplace-photo-limit { margin: 5px 0 0; }
.mp-post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mp-post-footer p, #marketplace-post-status { margin: 0; }
#marketplace-post-status:empty { display: none; }

@media (min-width: 560px) {
  .mp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#marketplace-condition-progress { margin-block: 14px; font-weight: 700; }
#marketplace-sale-faults { margin-top: 14px; }
@media (min-width: 960px) {
  .mp-post-grid.mp-condition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mp-quote-dialog {
  color: #f6f6f6;
  margin: auto;
  width: min(580px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
}
.mp-quote-dialog::backdrop { background: rgb(0 0 0 / 70%); }
