

@font-face {
    font-family: "trade-gothic-next-condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-family: "din-2014", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.exchange-ad-preview .exchange-ad {
    display: flex;
    flex-direction: column !important;
    background-color: #FFFFFF !important;
    width: 100% !important;
    padding: 1.25rem;
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.card-type {
    width: 100% !important;
    height: auto !important;
    position: relative; 
}

/* Image */
.card-image {
    width: 100% !important;
    height: auto !important;
    position: relative;
}

    /* Overline */
    .card-image .overline {
        position: absolute;
        top: 0rem;
        left: 0rem;
        background-color: #ec0808;
        color: #FFF;
        font-size: 1.0rem;
        text-transform: lowercase;
        padding: 0.5rem;
    }

        .card-image .overline::before {
            content: "For ";
        }

        .card-image .overline::first-letter {
            text-transform: uppercase;
        }


.card-section {
    margin: 1rem 0 0 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    flex-grow: 1;
    padding-bottom: 5rem; 
}

    
    .card-section .card-title {
        font-size: 1.6rem;
    }

/* Button */
.view-details-btn {
    background-color: transparent !important;
    border: 1px solid #e0e0e0 !important;
    width: 100%;
    padding: 1rem 0 !important;
    position: absolute; 
    bottom: 0; 
    left: 0;
}

    /* Button text */
    .view-details-btn .button-text {
        color: #ec0808 !important;
        font-size: 19px !important;
        font-weight: 700 !important;
        font-family:"din-2014";
    }

.card-title {
    padding-bottom: 0rem;
    font-size: 16px !important;
}

.vertical-bar {
    display: inline-block;
    color: #ec0808 !important;
    width: 2px; 
    height: 2.5em; 
    margin-left: 5px; 
    margin-right: 5px; 
}
.exchange-cat-btn {
    background-color: #ec0808;
    color: #ffffff;
}

/* =========================
   Carousel Layout
   ========================= */

.carousel-wrapper {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

/* Shows exactly 3 cards */
.carousel-viewport {
    overflow: hidden;
}

/* =========================
   Arrow Buttons
   ========================= */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ec0808;
    color: #fff;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-btn:hover {
        opacity: 0.85;
    }

/* =========================
   Override grid for carousel
   ========================= */
.exchange-ad-preview {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden;
}


.carousel-wrapper {
    position: relative;
    padding: 0rem 3rem;
    display: flex;
    justify-content: center;
}

.carousel-viewport {
   
overflow: visible;
}

/* =========================================================
   CAROUSEL ARROWS (LEFT / RIGHT)
   ========================================================= */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ec0808;
    color: #ffffff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 20;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25) !important;
    opacity: 0.85 !important;
}

    .carousel-btn.prev {
        left: -30px;
    }

    .carousel-btn.next {
        right: -30px;
    }

    .carousel-btn:hover {
        opacity: 0.9;
    }

/* =========================================================
   OVERRIDE FOUNDATION GRID FOR CAROUSEL
   ========================================================= */

.exchange-ad-preview {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* gap: 2rem !important;*/
    overflow-x: hidden;
    background-color: transparent !important;
    margin-block-start: 1rem !important;
}

    /* =========================================================
   CARD BASE STYLE (MATCH SCREENSHOT)
   ========================================================= */
    .exchange-ad-preview .exchange-ad {
        flex: 0 0 auto;
        width: 25% !important;
        background: #ffffff !important;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        overflow: hidden;
        position: relative;
        height: 100%;
        margin: 15px 5px 0 5px;
    }

/* =========================================================
   IMAGE SECTION
   ========================================================= */

.card-image {
    position: relative;
}

    .card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 4px 4px 0 0;
    }

    /* =========================================================
   FOR SALE BADGE
   ========================================================= */

    .card-image .overline {
        position: absolute;
        background-color: #ec0808;
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        font-family:"din-2014";
        padding: 0.4rem 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .card-image .overline::before {
            content: "For ";
        }

/* =========================================================
   CARD CONTENT AREA
   ========================================================= */

.card-section {
    padding: 0rem 0rem 4.5rem 0rem !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.vertical-bar {
    color: #ec0808 !important;
    margin-left: 0.3rem;
}

.card-section p {
    font-size: 16px;
    line-height: 1.5;
    color: #131212;
    font-family:'din-2014';
    margin-bottom: 0.75rem;
}

/* =========================================================
   VIEW DETAILS BUTTON (MATCH SCREENSHOT)
   ========================================================= */

.view-details-btn {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto !important;
    padding: 0.9rem 0 !important;
    border: 1px solid #dddddd !important;
    border-radius: 4px;
    background: #ffffff !important;
    text-align: center;
}

    .view-details-btn .button-text {
        color: #ec0808 !important;
        font-weight: 700;
        font-size: 1rem;
    }

/* =========================================================
   CARD HOVER EFFECT (SUBTLE)
   ========================================================= */

.exchange-ad-preview .exchange-ad:hover {
    transform: translateY(-3px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* =========================================================
   RESPONSIVE TUNING
   ========================================================= */

@media (max-width: 1024px) {
 
}

@media (max-width: 768px) {
    .carousel-viewport {
        width: 300px;
    }

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }

    .exchange-ads .section-heading::before,
    .exchange-ads .section-heading::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 10% !important;
        height: 1px;
        background-color: #000;
    }
}

.exchange-ad .card-image img {
    border-radius: 0 !important;
    height:300px !important;
}

/* =========================================================
   Exchange Ads Section Heading (with divider lines)
   ========================================================= */

.exchange-ads .section-heading {
    position: relative;
    text-align: center;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    width: 100%;
    left: 0%;
    font-family: 'trade-gothic-next-condensed';
}

    /* Horizontal lines */
    .exchange-ads .section-heading::before,
    .exchange-ads .section-heading::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 35%;
        height: 1px;
        background-color: #000;
    }

    /* Left line */
    .exchange-ads .section-heading::before {
        left: -2%;
    }

    /* Right line */
    .exchange-ads .section-heading::after {
        right: -2%;
    }

    .exchange-ads .section-heading + p {
        text-align: center !important;
        font-family: 'din-2014';
    }

.exchange-ads-container {
    background-color: #f5f5f5 !important;
    padding: 1rem 1rem 2rem 0rem;
    border-radius: 8px;
    display: flex;
    /* gap: 10px; */
    justify-content: space-between;
}

.carousel-viewport .exchange-ad-preview .exchange-ad .card-section h2,
.carousel-viewport .exchange-ad-preview .exchange-ad .card-section a {
    font-family: "trade-gothic-next-condensed";
}

    .carousel-viewport .exchange-ad-preview .exchange-ad .card-section a.button.view-details-btn:hover {
        background: #000 !important;
        text-decoration: none !important;
    }

    .carousel-viewport .exchange-ad-preview .exchange-ad .card-section a.view-details-btn:hover .button-text {
        color: #FFFFFF !important;
        text-decoration: none !important;
    }


.exchange-ads-container .exchange-ad-card {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    padding: 30px 15px 5px 15px;
}

.overline-type {
    background-color: #ec0808;
    color: #FFF !important;
    position: absolute;
    top: -3.0rem;
    left: -1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
    margin-left: 4px;
    font-family: 'din-2014';
    font-size: 0.85rem !important;
    line-height:1 !important;
}

.county-name {
    font-size: 1.4rem;
    color: #131212;
}

.card.panel .card-footer {
    padding-bottom: 10px !important;
}

.card.panel .card-header {
    padding-bottom: 0px !important;
}

.card.panel .card-body {
    padding-bottom: 0px !important;
}

.city-name {
    font-weight: 100;
    font-size: 1rem;
}

.exchange-desc {
    margin-top: 25px !important;
}

.exchange-desc, .city-name, .card.panel .card-header, .exchange-cat-btn {
    font-family: 'din-2014'
}

    .card.panel .card-header .county-name {
        font-family: 'trade-gothic-next-condensed';
    }

.exchange-ad-card .card-section.card-header hr {
    margin-top: 10px;
}

.carousel-btn.prev i.fa-solid.fa-caret-left, 
.carousel-btn.next i.fa-solid.fa-caret-right {
    font-size: 26px;
    margin-top: 5px;
}

/* Mobile */
@media (max-width:768px) {
    .exchange-ad {
        width: 100%;
    }
    .grid-margin-x.xxlarge-up-4 > .cell {
        width: calc(100%);
    }
    #exchangeCarousel {
        display: flex;
        overflow-x: hidden;
        scroll-behavior: smooth;
        padding-left: 0;
        margin-left: 0;
        gap: 16px; 
    }
    .carousel-viewport #exchangeCarousel.grid-margin-x > .cell {
        margin-left: 0;
        margin-right: 0;
    }
    .carousel-btn.next {
        right: -5px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
        .carousel-btn.prev i.fa-solid.fa-caret-left, .carousel-btn.next i.fa-solid.fa-caret-right {
            font-size: 26px;
            margin-top: 0px;
            margin-right: 0px;
            margin-left: -2px;
        }
        .carousel-btn.prev {
            left: 0px;
        }
}

@media screen and (max-width:480px) {
    .carousel-viewport {
        margin-left: -5px;
        width: 75vw;
    }
    .exchange-ad-preview .exchange-ad{
        width:100vw !important;
    }
}

@media screen and (max-width: 480px) {

    #exchangeCarousel.exchange-ad-preview {
        gap: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #exchangeCarousel .exchange-ad {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .carousel-viewport {
        width: 100vw;
        overflow: hidden;
    }

    .carousel-wrapper {
        padding: 0 !important;
        width: 350px;
        margin-left: 15px;
    }

    /* neutralize Foundation grid margins */
    .exchange-ad-preview.grid-x.grid-margin-x {
        margin-left: 30px !important;
        margin-right: 20px !important;
    }

    .exchange-ad-preview .cell.exchange-ad {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100vw !important;
        flex: 0 0 100vw !important;
    }
    .carousel-btn.next {
        right: -30px;
    }
    .carousel-btn.prev {
        left: -22px;
    }
}
@media (min-width: 361px) and (max-width: 425px) {

    .exchange-ad-preview.grid-x.grid-margin-x {
        margin-left: -4px !important;
        margin-right: 56px !important;
    }

 

    .carousel-btn.prev {
        left: -60px;
    }

    .carousel-btn.next {
        right: 10px;
    }
    .allads-section {
        padding: 0px 0px 45px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .exchangeads-section .section-heading-wrap{
        gap:0 !important;
    }
}
@media (min-width: 361px) and (max-width: 376px) {
    .carousel-wrapper {
        padding: 0 !important;
        width: 320px !important;
        margin-left: 48px !important;
    }
}


@media (min-width: 390px) and (max-width: 415px) {
    .carousel-wrapper {
        padding: 0 !important;
        width: 320px !important;
        margin-left: 50px !important;
    }
}
    @media (max-width: 360px) {

        .exchange-ad-preview.grid-x.grid-margin-x {
            margin-left: -4px !important;
            margin-right: 56px !important;
        }

        .carousel-wrapper {
            padding: 0 !important;
            width: 280px;
            margin-left: 50px;
        }

        .carousel-btn.prev {
            left: -60px;
        }

        .carousel-btn.next {
            right: 10px;
        }

        .allads-section {
            padding: 0 0px 45px 0px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .exchangeads-section .section-heading-wrap {
            gap: 0 !important;
        }
    }

    @media screen and (min-width: 768px) and (max-width: 1024px) {

        .carousel-wrapper {
            width: 100%;
            padding: 0rem 2.5rem;
            box-sizing: border-box;
        }

        #exchangeCarousel.exchange-ad-preview {
            gap: 1rem !important;
            padding-left: 0 !important;
            margin-left: 0 !important;
            justify-content: flex-start !important;
        }

        #exchangeCarousel .exchange-ad {
            flex: 0 0 calc((100% - 1rem) / 2) !important;
            width: calc((100% - 1rem) / 2) !important;
            max-width: calc((100% - 1rem) / 2) !important;
            min-width: calc((100% - 1rem) / 2) !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .carousel-viewport {
            width: 100% !important;
            overflow: hidden !important;
        }

            .carousel-viewport #exchangeCarousel.grid-margin-x > .cell {
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

        .carousel-btn {
            width: 40px;
            height: 40px;
            font-size: 16px;
            padding: 0;
        }

            .carousel-btn.prev {
                left: -5px;
            }

            .carousel-btn.next {
                right: -5px;
            }

        .exchange-ads .section-heading {
            font-size: 2.4rem;
        }

            .exchange-ads .section-heading::before,
            .exchange-ads .section-heading::after {
                width: 25%;
            }

        .card-section {
            padding: 0rem 0rem 4rem 0rem !important;
        }

        .card-title {
            font-size: 1.2rem !important;
        }

        .grid-margin-x {
            margin-right: 0 !important;
        }
    }

    @media (min-width: 2560px) {

        .carousel-viewport {
            width: 100%;
            margin: 0 auto;
        }
    }

    @media screen and (min-width: 481px) and (max-width: 600px) {

        .carousel-viewport {
            width: 100%;
            overflow: hidden;
        }

        .carousel-wrapper {
            width: 100%;
            padding: 0 2rem !important;
            box-sizing: border-box;
        }

        #exchangeCarousel.exchange-ad-preview {
            gap: 16px !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        #exchangeCarousel .exchange-ad {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
            margin: 0 !important;
        }

        .carousel-btn {
            width: 40px;
            height: 40px;
        }

            .carousel-btn.prev {
                left: -5px;
            }

            .carousel-btn.next {
                right: -5px;
            }
    }

    /*new rules for <767*/
    @media screen and (min-width: 601px) and (max-width: 767px) {

        .carousel-viewport {
            width: calc(100vw - 4rem);
            overflow: hidden;
        }

        .carousel-wrapper {
            padding: 0 2rem !important;
            box-sizing: border-box;
        }

        #exchangeCarousel .exchange-ad {
            flex: 0 0 calc(100vw - 8rem) !important;
            width: calc(100vw - 8rem) !important;
            max-width: calc(100vw - 6rem) !important;
            min-width: unset !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        #exchangeCarousel.exchange-ad-preview {
            gap: 0rem !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
        }

        .exchange-ad-preview.grid-x.grid-margin-x {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .exchange-ad-preview .cell.exchange-ad {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .carousel-btn {
            width: 40px;
            height: 40px;
        }

            .carousel-btn.prev {
                left: -5px;
            }

            .carousel-btn.next {
                right: -5px;
            }
        .grid-margin-x.xxlarge-up-4 > .cell {
            width: calc(47%);
        }
    }

label {
    font-family: 'din-2014';
}

span.separator {
    color: #ec0808;
}

@media screen and (min-width: 767px) {
    .grid-margin-x.xxlarge-up-4 > .cell {
        width: calc(32%);
    }
}