/* =========================================================
   URSUS AUTO — MARKET PAGES
   China / Korea / Japan / UAE / Europe / USA
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.market-hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0 80px;
    min-height: 560px;
    border-top: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 85% 30%, rgba(255,255,255,.06), transparent 30%),
        linear-gradient(180deg, #0b0c0e 0%, #0d0e10 100%);
}

.market-hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    right: -280px;
    top: -330px;
    border-radius: 50%;
    background: rgba(255,255,255,.025);
    pointer-events: none;
}

.market-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.15),
        transparent
    );
}

.market-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr);
    gap: 80px;
    align-items: center;
}

.market-hero h1 {
    max-width: 950px;
    margin: 14px 0 28px;
    font-size: clamp(48px,6vw,82px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 700;
}

.market-lead {
    max-width: 760px;
    margin: 0;
    color: #aaaeb5;
    font-size: 19px;
    line-height: 1.75;
}

.market-actions {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 38px;
}

.market-text-link {
    color: #fff;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.35);
    transition: .25s ease;
}

.market-text-link:hover {
    border-color: #fff;
}


/* =========================================================
   HERO PROOF / POPULAR BRANDS
   ========================================================= */

.market-proof {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.02)
        );
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
}

.market-proof::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.market-proof span {
    position: relative;
    display: block;
    color: #898d95;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.market-proof strong {
    position: relative;
    display: block;
    margin: 17px 0;
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.market-proof p {
    position: relative;
    margin: 0;
    color: #969aa2;
    line-height: 1.65;
}



/* =========================================================
   PREMIUM HERO IMAGE
   ========================================================= */

.market-hero-image {
    position: relative;
}

.market-hero-image::before {
    content: "";
    position: absolute;
    inset: 10% -10%;
    background: radial-gradient(circle, rgba(200,161,90,.16), transparent 60%);
    filter: blur(40px);
}

.market-hero-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.market-hero-content {
    position: relative;
    z-index: 2;
}

.market-hero-image .market-proof {
    margin-top: 25px;
}

/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.market-section {
    position: relative;
    padding: 100px 0;
}

.market-muted {
    background: #101114;
}

.market-copy {
    max-width: 1000px;
}

.market-copy > p:last-child,
.market-two p {
    max-width: 850px;
    color: #a4a8af;
    font-size: 18px;
    line-height: 1.8;
}

.market-section h2 {
    margin: 12px 0 24px;
    font-size: clamp(34px,4vw,54px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.market-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-bottom: 38px;
}

.market-heading h2 {
    margin-bottom: 0;
}

.market-heading > a {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.3);
    transition: .25s ease;
}

.market-heading > a:hover {
    border-color: #fff;
}


/* =========================================================
   CAR CARDS
   ========================================================= */

.market-cars {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.market-car {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: #151619;
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.market-car:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 28px 60px rgba(0,0,0,.3);
}

.market-car > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.market-car img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #1b1c20;
    transition: transform .5s ease;
}

.market-car:hover img {
    transform: scale(1.035);
}

.market-car div {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.market-car span {
    color: #858991;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.market-car h3 {
    margin: 10px 0 11px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.market-car p {
    margin: 0;
    color: #969aa2;
    font-size: 14px;
    line-height: 1.6;
}

.market-car strong {
    display: block;
    margin-top: auto;
    padding-top: 22px;
    font-size: 18px;
}

.market-car b {
    display: block;
    margin-top: 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   EMPTY CATALOG
   ========================================================= */

.market-empty {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    padding: 55px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.07),
            transparent 25%
        ),
        #151619;
}

.market-empty h3 {
    margin: 0 0 15px;
    font-size: 28px;
    letter-spacing: -.03em;
}

.market-empty p {
    max-width: 700px;
    margin-bottom: 28px;
    color: #999da5;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   DELIVERY STEPS
   ========================================================= */

.market-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-top: 35px;
}

.market-steps article {
    position: relative;
    min-height: 250px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.01)
        ),
        #111215;
    transition: .3s ease;
}

.market-steps article:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.18);
}

.market-steps article::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -50px;
    bottom: -50px;
    border-radius: 50%;
    background: rgba(255,255,255,.025);
}

.market-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: #a6a9af;
    font-size: 12px;
}

.market-steps h3 {
    margin: 42px 0 13px;
    font-size: 21px;
    line-height: 1.25;
}

.market-steps p {
    margin: 0;
    color: #93979f;
    line-height: 1.65;
}


/* =========================================================
   PRICE / DELIVERY TIME
   ========================================================= */

.market-two {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    align-items: stretch;
}

.market-two > div {
    position: relative;
    overflow: hidden;
    padding: 45px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: #151619;
}

.market-two > div:last-child {
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,.08),
            transparent 30%
        ),
        #151619;
}

.market-two .button {
    margin-top: 18px;
}


/* =========================================================
   FAQ
   ========================================================= */

.market-faq {
    max-width: 1050px;
    margin-top: 35px;
}

.market-faq details {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 24px 0;
}

.market-faq details:last-child {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.market-faq summary {
    position: relative;
    padding-right: 45px;
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

.market-faq summary::-webkit-details-marker {
    display: none;
}

.market-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    color: #8f939a;
    font-size: 28px;
    font-weight: 300;
    transition: transform .25s ease;
}

.market-faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.market-faq p {
    max-width: 850px;
    margin: 17px 0 0;
    color: #9a9ea6;
    line-height: 1.75;
}


/* =========================================================
   OTHER MARKETS
   ========================================================= */

.market-related {
    padding: 34px 0;
    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: #0d0e10;
}

.market-related .shell {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.market-related span {
    margin-right: 8px;
    color: #858990;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.market-related a {
    display: inline-flex;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: .25s ease;
}

.market-related a:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.22);
}


/* =========================================================
   FOOTER
   ========================================================= */

.catalog-footer {
    padding: 38px 0;
    background: #0b0c0e;
}

.catalog-footer .shell {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.catalog-footer .shell > span {
    margin-right: auto;
    font-weight: 800;
    letter-spacing: .08em;
}

.catalog-footer a {
    color: #999da5;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}

.catalog-footer a:hover {
    color: #fff;
}


/* =========================================================
   NEW VISUAL COMPONENTS
   These will be activated by the next seo.js update.
   ========================================================= */


/* ---------- VISUAL HERO ---------- */

.market-visual-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0a0b0d;
}

.market-visual-bg {
    position: absolute;
    inset: 0;
}

.market-visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.market-visual-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7,8,10,.94) 0%,
            rgba(7,8,10,.74) 38%,
            rgba(7,8,10,.24) 72%,
            rgba(7,8,10,.18) 100%
        ),
        linear-gradient(
            0deg,
            #0b0c0e 0%,
            rgba(11,12,14,.25) 45%,
            rgba(11,12,14,.15) 100%
        );
}

.market-visual-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 120px 0 90px;
}

.market-visual-copy {
    max-width: 790px;
}

.market-visual-copy h1 {
    margin: 14px 0 27px;
    max-width: 900px;
    font-size: clamp(50px,6.3vw,86px);
    line-height: .96;
    letter-spacing: -.06em;
}

.market-visual-copy > p {
    max-width: 720px;
    color: #c1c3c7;
    font-size: 19px;
    line-height: 1.7;
}


/* ---------- TRUST BAR ---------- */

.market-trust {
    position: relative;
    z-index: 5;
    margin-top: -1px;
    background: #101114;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.market-trust-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.market-trust-item {
    position: relative;
    padding: 30px 25px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.market-trust-item:first-child {
    border-left: 1px solid rgba(255,255,255,.08);
}

.market-trust-item b {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.market-trust-item span {
    display: block;
    color: #858991;
    font-size: 13px;
    line-height: 1.5;
}


/* ---------- LOGISTICS IMAGE SECTION ---------- */

.market-logistics {
    padding: 110px 0;
    background: #0c0d0f;
}

.market-logistics-grid {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    gap: 65px;
    align-items: center;
}

.market-logistics-image {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.09);
    background: #151619;
}

.market-logistics-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-logistics-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(8,9,11,.55),
            transparent 50%
        );
}

.market-logistics-copy h2 {
    margin: 12px 0 23px;
    font-size: clamp(36px,4.5vw,58px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.market-logistics-copy > p {
    max-width: 670px;
    color: #a0a4ab;
    font-size: 17px;
    line-height: 1.75;
}


/* ---------- BRAND PILLS ---------- */

.market-brands {
    padding: 85px 0;
    background: #101114;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.market-brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.market-brand-pill {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    background: rgba(255,255,255,.025);
    font-size: 15px;
    font-weight: 600;
}


/* ---------- FINAL CTA ---------- */

.market-final-cta {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.08),
            transparent 35%
        ),
        #0b0c0e;
}

.market-final-cta::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    left: 50%;
    bottom: -500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.market-final-cta .shell {
    position: relative;
    z-index: 2;
}

.market-final-cta h2 {
    max-width: 850px;
    margin: 12px auto 22px;
    font-size: clamp(40px,5vw,68px);
    line-height: 1;
    letter-spacing: -.055em;
}

.market-final-cta p {
    max-width: 700px;
    margin: 0 auto 32px;
    color: #9da1a8;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .market-cars {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .market-hero-grid {
        grid-template-columns: minmax(0,1fr) 330px;
        gap: 45px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

    .market-hero {
        padding: 75px 0;
    }

    .market-hero-grid,
    .market-two,
    .market-logistics-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .market-proof {
        max-width: 650px;
    }

    .market-steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .market-trust-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .market-trust-item:nth-child(3) {
        border-left: 1px solid rgba(255,255,255,.08);
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .market-trust-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .market-visual-hero {
        min-height: 650px;
    }

    .market-visual-bg::after {
        background:
            linear-gradient(
                90deg,
                rgba(7,8,10,.9),
                rgba(7,8,10,.45)
            ),
            linear-gradient(
                0deg,
                #0b0c0e 0%,
                transparent 60%
            );
    }

    .market-logistics-image {
        min-height: 430px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .market-hero {
        padding: 55px 0 60px;
    }

    .market-hero h1 {
        font-size: clamp(42px,13vw,60px);
    }

    .market-lead {
        font-size: 16px;
    }

    .market-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .market-actions .button {
        width: 100%;
        text-align: center;
    }

    .market-text-link {
        align-self: flex-start;
    }

    .market-proof {
        padding: 26px;
        border-radius: 18px;
    }

    .market-section {
        padding: 68px 0;
    }

    .market-section h2 {
        font-size: 34px;
    }

    .market-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 27px;
    }

    .market-cars {
        grid-template-columns: 1fr;
    }

    .market-car {
        border-radius: 18px;
    }

    .market-car img {
        aspect-ratio: 16 / 10;
    }

    .market-steps {
        grid-template-columns: 1fr;
    }

    .market-steps article {
        min-height: auto;
    }

    .market-two > div {
        padding: 30px 25px;
        border-radius: 18px;
    }

    .market-empty {
        padding: 35px 25px;
    }

    .market-trust-grid {
        grid-template-columns: 1fr;
    }

    .market-trust-item,
    .market-trust-item:first-child,
    .market-trust-item:nth-child(3) {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .market-trust-item:first-child {
        border-top: 0;
    }

    .market-visual-hero {
        min-height: 620px;
    }

    .market-visual-content {
        padding: 100px 0 65px;
    }

    .market-visual-copy h1 {
        font-size: clamp(43px,13vw,60px);
    }

    .market-visual-copy > p {
        font-size: 16px;
    }

    .market-visual-bg::after {
        background:
            linear-gradient(
                0deg,
                rgba(8,9,11,.98) 0%,
                rgba(8,9,11,.72) 55%,
                rgba(8,9,11,.38) 100%
            );
    }

    .market-logistics {
        padding: 70px 0;
    }

    .market-logistics-image {
        min-height: 320px;
        border-radius: 18px;
    }

    .market-logistics-copy h2 {
        font-size: 37px;
    }

    .market-brands {
        padding: 65px 0;
    }

    .market-brand-pill {
        min-height: 46px;
        padding: 0 17px;
        font-size: 13px;
    }

    .market-final-cta {
        padding: 80px 0;
    }

    .market-final-cta h2 {
        font-size: 42px;
    }

    .market-related .shell {
        gap: 9px;
    }

    .catalog-footer .shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-footer .shell > span {
        margin-right: 0;
        margin-bottom: 8px;
    }

}


/* =========================================================
   URSUS AUTO FINAL OVERRIDES
   ========================================================= */

.market-hero {
    padding: 70px 0 65px;
    min-height: 500px;
}

.market-section {
    padding: 70px 0;
}

.market-section .market-copy {
    max-width: 820px;
    margin-left: 0;
    margin-right: auto;
}

.market-copy {
    text-align: left;
}

.market-logistics-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .market-hero {
        padding: 55px 0;
    }

    .market-section {
        padding: 55px 0;
    }
}


/* =========================================================
   URSUS AUTO — BLOCK REDESIGN V2
   ========================================================= */

.market-section .shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.market-copy {
    max-width: 900px;
    margin: 0 auto;
}

.market-copy > p:last-child {
    max-width: 760px;
}

.market-section {
    padding: 80px 0;
}

/* advantages */
.market-advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
    margin-top: 45px;
}

.market-advantage {
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.09);
    background: #151619;
}

.market-advantage h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.market-advantage p {
    margin: 0;
    color: #969aa2;
    line-height: 1.6;
}

/* logistics */
.market-logistics {
    padding: 90px 0;
}

.market-logistics-grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: 60px;
    align-items: center;
}

@media(max-width:900px){
    .market-advantages,
    .market-logistics-grid {
        grid-template-columns:1fr;
    }
}

/* =========================
   MARKET INFO ALIGNMENT FIX
   ========================= */

.market-copy{
    max-width: none;
}

.market-copy h2{
    max-width: 820px;
}

.market-copy > p:last-child{
    max-width: 850px;
}


/* FINAL MARKET COPY ALIGNMENT */
.market-section .shell{
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.market-section .market-copy{
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.market-copy h2{
    max-width: 820px;
}

.market-copy > p:last-child{
    max-width: 760px;
}


/* FINAL FIX — WHY MARKET BLOCK */
.market-section > .shell.market-copy{
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.market-section > .shell.market-copy h2{
    max-width: 820px;
    margin-left: 0;
    margin-right: 0;
}

.market-section > .shell.market-copy > p:last-child{
    max-width: 760px;
    margin-left: 0;
    margin-right: 0;
}


/* Slight left alignment with main site shell */
.market-section > .shell.market-copy{
    width: min(1240px, calc(100% - 48px));
}

