.lmap-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 25px !important;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 50;
}

.lmap-card-info {
    padding: 18px;
}

.lmap-bar>.lmap-filtre-item,
.lmap-bar>.lmap-location-container {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lmap-bar>.lmap-filtre-item label,
.lmap-bar>.lmap-location-container label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 0;
}

.lmap-bar>.lmap-advanced-filter-section {
    flex: 0 0 auto;
}

.lmap-bar>#lmap-search-btn {
    flex: 0 0 auto;
    height: 45px;
    padding: 0 25px;
    background: #247a34;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    margin-bottom: 15px;
}

.lmap-bar>#lmap-search-btn:hover {
    background: #1e632a;
}

/* Main Results Container - Robust Grid Layout */
.lmap-cartes-container,
.cartes-container,
.annonces-grille {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Base adjustment for cards inside these containers */
.lmap-cartes-container .lmap-card-vehicle,
.cartes-container .lmap-card-vehicle,
.annonces-grille .lmap-card-vehicle {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Tablet: 3 columns (e.g., 768px to 1100px) */
@media (max-width: 1100px) {

    .lmap-cartes-container,
    .cartes-container,
    .annonces-grille {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

/* Mobile & Small Tablet: 2 columns (below 768px) */
@media (max-width: 768px) {

    .lmap-cartes-container,
    .cartes-container,
    .annonces-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Small Smartphone: 2 columns (below 480px) */
/* Small Smartphone: 2 columns (below 480px) - ROBUST FIX */
@media (max-width: 480px) {


    .lmap-results-header {
        display: flex !important;
        flex-direction: column !important;
    }

    .elementor-shortcode {
        width: 335px;
    }

    .lmap-cartes-container,
    .cartes-container,
    .annonces-grille {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0 0px !important;
        /* Slight padding to prevent edge sticking */
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Center listing map cards specifically on mobile */
    .lmap-cartes-container {
        width: 100% !important;
        justify-items: center;
    }

    .lmap-cartes-container .lmap-card-vehicle,
    .cartes-container .lmap-card-vehicle,
    .annonces-grille .lmap-card-vehicle {
        width: 100% !important;
        margin: 0 !important;
        /* Remove conflicts */
        max-width: 100% !important;
    }

    /* standardizing height for smaller cards */


    /* Reduce font sizes for better fit */
    .lmap-card-title {
        font-size: 13px !important;
    }

    .lmap-price-current {
        font-size: 15px !important;
    }

    .lmap-card-mobile-info {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        gap: 2px !important;
        padding-top: 10px;
    }
}

.lmap-favorite-center-hover {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.3s;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.lmap-card-vehicle:hover .lmap-favorite-center-hover {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.lmap-share-options i {
    gap: 16px;
    font-size: 10px;
    width: 40px;
    text-align: center;
}

.lmap-share-dropdown:hover .lmap-share-options {
    display: block;
}

.lmap-favorite-center-hover {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.lmap-favorite-center-hover button,
.lmap-favorite-center-hover .lmap-share-button {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lmap-favorite-center-hover button:hover,
.lmap-favorite-center-hover .lmap-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.lmap-favorite-center-hover i {
    color: #247a34;
    font-size: 15px;
}

.lmap-share-dropdown {
    position: relative;
    display: inline-block;
}

.lmap-share-options {
    display: none;
    position: absolute;
    top: -51px;
    right: 55px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    padding: 5px;
    z-index: 10;
    min-width: 100px;
}

.lmap-share-options a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    font-size: 10px;
    padding: 5px 0;
    opacity: 1;
}

.lmap-share-options a:hover {
    color: #247a34;
}

.lmap-share-dropdown:hover .lmap-share-options {
    display: block;
}

.lmap-custom-select {
    border-radius: 14px !important;
    display: block !important;
}

.lmap-input-container {
    position: relative;
    display: block;
    width: 100%;
    z-index: 1002;
    overflow: visible !important;
}

.lmap-location-input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#lmap-remove-around {
    position: absolute;
    right: 10px;
    top: 45%;
    transform: translateY(-50%);
    color: #247a34;
    background-color: #fff !important;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#lmap-remove-around.show {
    display: flex;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Favorite Button - Match Share Button Style */
.lmap-favorite-button {
    background-color: #fff !important;
    color: #247a34 !important;
}

.lmap-favorite-button i {
    color: #247a34 !important;
    transition: color 0.3s ease;
}

/* On hover, keep background white and just scale (handled by parent hover effect) */
.lmap-favorite-button:hover {
    background-color: #fff !important;
    color: #247a34 !important;
}

.lmap-favorite-button:hover i {
    color: #247a34 !important;
}

.lmap-favorite-button:hover .fa-heart:before {
    color: #247a34;
}

.lmap-favorite-button:hover::after {
    background-color: white !important;
    color: #247a34 !important;
}

.fa-times::before {
    content: '\e928' !important;
    font-family: 'autodeal';
}

.lmap-filtre-item label {
    font-size: 14px;
    font-weight: 500;
}

.lmap-pagination-btn:hover,
.lmap-pagination-btn.active {
    background: #247a34e6 !important;
    color: #fff !important;
    border-color: #247a34e6 !important;
}

.lmap-pagination-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #24272C;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lmap-pagination-btn.active {
    background: #218838;
    color: #fff !important;
    border-color: #218838;
}

.lmap-pagination-btn:hover:not(.active) {
    background: #f1f1f1;
    border-color: #bbb;
}

@media (max-width: 768px) {
    .lmap-age-badge {
        margin: 5px !important;
    }

    .lmap-title-filt {
        text-align: left !important;
    }

    .lmap-card-title .lmap-prix {
        text-align: left !important;
    }

    .lmap-title-filt>div {
        text-align: left !important;
    }

    .lmap-title-filt p {
        text-align: left !important;
    }
}


.lmap-input-container {
    display: flex;
}

.lmap-filtered-count {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
    font-style: italic;
}

.lmap-count-filtered {
    font-weight: bold;
    color: #247a34;
}

@media (max-width: 576px) {
    div[style*="display: flex"] {
        flex-direction: column;
        align-items: flex-end;
    }

    .lmap-form-row {
        margin-top: 10px;
        width: 100%;
    }

    .lmap-form-row select {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    #lmap-tri-titre {
        font-size: 12px;
    }

    .lmap-titre-option {
        font-size: 12px;
    }

    .lmap-form-row {
        display: flex;
        justify-content: flex-end;
    }
}

.lmap-pagination-wrapper {
    margin-top: 20px !important;
    padding: 0 10px;
}

.lmap-pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
}

.lmap-pagination-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
    min-width: 44px !important;
    flex-shrink: 0;
}

.lmap-pagination-btn.lmap-prev-btn,
.lmap-pagination-btn.lmap-next-btn {
    width: 44px !important;
    height: 44px !important;
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px !important;
    }

    .pagination-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
    }

    .lmap-pagination-btn.lmap-prev-btn,
    .lmap-pagination-btn.lmap-next-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .lmap-pagination-ellipsis {
        display: none !important;
    }

    .lmap-pagination-btn:not(.lmap-prev-btn):not(.lmap-next-btn):not(.active) {
        display: none !important;
    }

    .lmap-pagination-btn.active {
        display: inline-flex !important;
    }

    .lmap-pagination-btn[data-page="1"] {
        display: inline-flex !important;
    }
}

@media (max-width: 360px) {
    .lmap-pagination-btn:not(.lmap-prev-btn):not(.lmap-next-btn):not(.active) {
        display: none !important;
    }

    .pagination-btn.active {
        display: inline-flex !important;
    }

    .pagination {
        gap: 4px !important;
    }
}

.lmap-stock-icon-link:hover {
    background: #f0f8f0 !important;
    border-color: #2e7d32 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lmap-btn-view-plus:hover {
    background: #f0f8f0 !important;
    border-color: #2e7d32 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lmap-stock-icon-link:active,
.lmap-btn-view-plus:active {
    transform: translateY(0);
}

.lmap-icon-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.icon-buttons-row>div {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
}

.icon-buttons-row>div:only-child {
    flex: 0 0 100% !important;
}

.lmap-icon-buttons-row.no-stock>div:last-child {
    flex: 0 0 100% !important;
}

.lmap-icon-buttons-row.no-stock>div:first-child:empty {
    display: none;
}

@media (max-width: 576px) {
    .lmap-stock-icon-link {
        width: 100% !important;
        height: 40px !important;
    }

    .lmap-stock-icon-link svg {
        width: 16px !important;
        height: 16px !important;
    }

    .lmap-btn-view-plus {
        width: 100% !important;
        height: 40px !important;
    }

    .lmap-btn-view-plus img {
        width: 26px !important;
        height: 26px !important;
    }

    .icon-buttons-row {
        gap: 8px;
    }
}

.lmap-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 40px 0 20px;
}

.lmap-custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lmap-pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lmap-pagination-btn:hover:not(.active) {
    background: #f5f5f5;
    border-color: #247a34;
    color: #247a34;
    transform: translateY(-2px);
}

.lmap-pagination-btn.active {
    background: #247a34;
    border-color: #247a34;
    color: #fff;
    cursor: default;
    font-weight: 600;
}

.lmap-pagination-btn.lmap-prev-btn,
.lmap-pagination-btn.lmap-next-btn {
    font-weight: 600;
    color: #247a34;
}

.lmap-pagination-btn.lmap-prev-btn:hover,
.lmap-pagination-btn.lmap-next-btn:hover {
    background: #247a34;
    color: #fff;
}

.lmap-pagination-dots {
    padding: 0 8px;
    color: #999;
    font-weight: 500;
}

.lmap-pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .lmap-pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .lmap-custom-pagination {
        gap: 6px;
    }

    .lmap-card-info {
        padding: 18px;
    }
}

/* Extracted Styles */
.lmap-statut-badge {
    position: absolute;
    z-index: 9;
    right: 0;
    padding: 5px 15px;
    background-color: #FF7101;
    color: #fff;
    border-radius: 30px;
    margin-top: 10px;
    margin-right: 10px;
    font-weight: 500;
}

.lmap-age-badge {
    position: absolute;
    z-index: 9;
    right: 0;
    padding: 5px 15px;
    background-color: #247a34;
    color: #fff;
    border-radius: 30px;
    margin-top: 10px;
    margin-right: 10px;
    font-weight: 300;
}

.lmap-urgent-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    background: #FDC4C4;
    color: #8A0000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lmap-urgent-badge img {
    width: 25px;
    height: 25px;
}

.lmap-alaune-badge {
    position: absolute;
    bottom: 10px;
    display: flex;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    background: #FBE393;
    color: #947305;
}

.lmap-alaune-badge img {
    width: 18px !important;
    height: 18px !important;
}

.lmap-package-badge {
    position: absolute;
    z-index: 9;
    left: 0;
    margin-top: 6px;
    margin-left: 10px;
    max-width: 25px;
    height: auto;
    border-radius: 30px;
}

.lmap-price-bar-wrapper {
    width: 70px;
    margin: 0px;
    position: relative;
}

.lmap-price-bar {
    display: flex;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.lmap-price-segment {
    flex: 1;
}

.lmap-label-below {
    text-align: center;
    font-size: 10px;
    margin-top: 2px;
    color: #666;
}

.lmap-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    object-fit: cover;
}

.lmap-stock-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid green;
    color: #247a34;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lmap-stock-icon-link img {
    width: 30px;
    height: 30px;
}

.lmap-user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.lmap-user-no-link {
    display: flex;
    align-items: center;
    color: inherit;
    cursor: default;
}

.lmap-user-name {
    margin-left: 10px;
    font-weight: 500;
}

.lmap-discount-badge-img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    max-width: 35px !important;
    height: auto;
}

.lmap-discount-badge-span {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #247a34;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lmap-price-on-request {
    color: #666 !important;
    font-size: 17px;
    font-weight: 500 !important;
}

.lmap-price-discount-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.lmap-price-current {
    color: #247a34;
    font-size: 18px;
    font-weight: 600;
}

.lmap-price-old {
    text-decoration: line-through;
    color: #B6B6B6 !important;
    font-size: 12px;
    font-weight: normal !important;
}

.lmap-card-vehicle {
    box-shadow: unset;
    margin-bottom: 30px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f6f6f6;
    height: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    isolation: isolate;
}



.lmap-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    width: 100%;
    padding-top: 75%;
    /* Foolproof 4:3 Aspect Ratio Hack */
    height: 0;
}

.lmap-card-img-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: high-quality !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    display: block !important;
}

.lmap-image-count {
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 30%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 13px;
    align-items: center;
    gap: 6px;
    z-index: 9;
}

.lmap-card-anchor {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lmap-card-mobile-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    height: 40px;
    padding-top: 10px;
}

.lmap-card-category {
    margin: 0px !important;
    color: #247a34;
    font-size: 16px;
    font-weight: 400;
    padding-bottom: 25px;
}

.lmap-card-title {
    padding-top: 0px !important;
}

.lmap-title-filt {
    margin-top: 5px;
    margin-bottom: 5px;
}

.lmap-title-filt-inner {
    margin-bottom: 10px;
}

.lmap-title-filt .lmap-prix {
    font-size: 20px;
    margin: 0;
    color: #247a34;
    font-weight: 600;
}

.lmap-date-published {
    text-align: left;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.lmap-date-published span {
    margin-left: 4px;
    color: #666 !important;
    font-weight: normal;
}

.lmap-card-separator {
    border-top: 1px solid #e0e0e0;
    margin: 10px 0;
}

.list-information-filtrage {
    display: flex !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

@media (max-width: 480px) {
    .list-information-filtrage {
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .lmap-card-info {
        padding: 10px;
    }
}

.listing-information {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.listing-information svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
}

.listing-information .inner p {
    margin: 0 !important;
    font-size: 12px !important;
}

.lmap-filtre-mo {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.lmap-icon-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.lmap-icon-btn-col {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
}

.lmap-btn-view-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid green;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lmap-btn-view-plus img {
    width: 30px;
    height: 30px;
}

.lmap-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.lmap-results-left h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.lmap-results-left .lmap-count-results {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.lmap-header-app-links {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.lmap-header-app-links a {
    transition: transform 0.2s ease;
}

.lmap-header-app-links a:hover {
    transform: translateY(-2px);
}

.lmap-header-app-links img {
    width: 140px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .lmap-header-app-links {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .lmap-results-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .lmap-results-left {
        margin-bottom: 15px;
    }

    .lmap-header-app-links {
        flex-direction: column;
        gap: 10px;
        order: 2;
        margin-bottom: 20px;
        width: 100%;
    }

    .lmap-form-row {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

.lmap-no-results {
    text-align: center;
    padding: 40px;
}

.lmap-prix-range-flex {
    display: flex;
    gap: 10px;
}

.lmap-suggestions-title {
    font-size: 16px;
    color: #24272C;
    font-weight: 600;
    margin-bottom: 25px;
}

.lmap-map-preview {
    height: 200px;
}

.lmap-advanced-filter-section {
    display: flex;
    padding: 0 !important;
    flex: 0 0 auto !important;
    min-width: unset !important;
}

.lmap-advanced-filter-header {
    background: #247a34;
    border-radius: 8px;
    padding: 11px 13px;
    cursor: pointer;
    color: #fff;
    margin-top: 0 !important;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.lmap-advanced-filter-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    z-index: 99999;
    padding: 30px;
    width: 800px;
    max-width: calc(100vw - 40px);
    border-radius: 18px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
}

.lmap-filtre-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

/* Hide nice-select and show original select for advanced filters and sorting */
.lmap-filtre-grid .nice-select,
.lmap-form-row .nice-select {
    display: none !important;
}

.lmap-filtre-grid select,
.lmap-form-row select {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    padding: 5px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 13px !important;
    appearance: auto !important;
    /* Restore default arrow */
}

.lmap-filtre-grid label,
.lmap-form-row label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

@media (max-width: 992px) {
    .lmap-advanced-filter-content {
        width: 600px;
    }

    .lmap-filtre-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .lmap-advanced-filter-content {
        width: 80vw;
        padding: 20px;
        left: 0px;
    }

    .lmap-filtre-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Helper for hiding elements */
.lmap-hidden {
    display: none !important;
}

/* Price Score Marker */
.lmap-marker {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    z-index: 10;
    left: var(--lmap-marker-pos, 50%);
}

.lmap-marker-hidden {
    display: none !important;
}

/* Avatar fix */
.lmap-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    object-fit: cover;
}

.lmap-user-block {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.lmap-user-name {
    margin-left: 10px;
    font-weight: 500;
}

/* Gallery and counts */
.lmap-image-count {
    display: none;
    /* Default, overridden in PHP if needed */
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.lmap-image-count.lmap-visible {
    display: flex;
}

/* Placeholders */
.lmap-empty-placeholder {
    width: 100%;
    height: 45px;
}

/* AJAX States (Loading/Error) */
.lmap-loading-container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

.lmap-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: lmap-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes lmap-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lmap-loading-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.lmap-error-container {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 12px;
}

.lmap-error-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmap-error-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lmap-error-message {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Badge Styles */
.lmap-statut-badge {
    position: absolute;
    z-index: 9;
    right: 0;
    padding: 5px 15px;
    background-color: #FF7101;
    color: #fff;
    border-radius: 30px;
    margin-top: 10px;
    margin-right: 10px;
    font-weight: 500;
}

.lmap-age-badge {
    position: absolute;
    z-index: 9;
    right: 0;
    padding: 5px 15px;
    background-color: #247a34;
    color: #fff;
    border-radius: 30px;
    margin-top: 10px;
    margin-right: 10px;
    font-weight: 300;
}

.lmap-urgent-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    background: #FDC4C4;
    color: #8A0000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lmap-urgent-badge img {
    width: 25px;
    height: 25px;
}

.lmap-alaune-badge {
    position: absolute;
    bottom: 10px;
    display: flex;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    background: #FBE393;
    color: #947305;
    align-items: center;
    gap: 5px;
}

.lmap-alaune-badge img {
    width: 18px !important;
    height: 18px !important;
}

.lmap-package-badge {
    position: absolute;
    z-index: 9;
    left: 0;
    margin-top: 6px;
    margin-left: 10px;
    max-width: 25px !important;
    height: auto;
    border-radius: 30px;
}

.lmap-distance-info {
    position: absolute;
    z-index: 9;
    padding: 5px;
    right: 0;
    bottom: 10px;
    background-color: #247a34;
    color: #fff;
    border-radius: 30px;
    margin-top: 10px;
    margin-right: 12px;
    font-weight: 300;
}

/* Price Score Styles */
.lmap-price-score-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lmap-price-bar-wrapper {
    width: 70px;
    margin: 0;
    position: relative;
}

.lmap-price-bar {
    display: flex;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.lmap-price-segment {
    flex: 1;
}

.lmap-price-marker {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    z-index: 10;
}

.lmap-price-label-below {
    text-align: center;
    font-size: 10px;
    margin-top: 2px;
    color: #666;
}

.lmap-stock-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid green;
    color: #247a34;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lmap-stock-icon-link img {
    width: 30px;
    height: 30px;
}

/* Price Score Segments */
.lmap-price-segment-1 {
    background-color: #e53935 !important;
}

.lmap-price-segment-2 {
    background-color: #fb8c00 !important;
}

.lmap-price-segment-3 {
    background-color: #fdd835 !important;
}

.lmap-price-segment-4 {
    background-color: #9ccc65 !important;
}

.lmap-price-segment-5 {
    background-color: #43a047 !important;
}

.lmap-price-segment-6 {
    background-color: #2e7d32 !important;
}

.lmap-price-segment-disabled {
    background-color: #cccccc !important;
}

/* Location Reset Button Visibility */
#lmap-remove-around.lmap-show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Pagination Styles */
.lmap-pagination-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lmap-custom-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.lmap-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lmap-pagination-btn:hover {
    border-color: #247a34;
    color: #247a34;
}

.lmap-pagination-btn.active {
    background: #247a34;
    border-color: #247a34;
    color: #fff;
}

.lmap-pagination-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    color: #999;
}

.lmap-pagination-info {
    font-size: 13px;
    color: #777;
}

.lmap-prev-btn svg,
.lmap-next-btn svg {
    width: 18px;
    height: 18px;
}

/* Location Dropdown Styles */
#lmap-location-container {
    position: relative;
    z-index: 1001;
    overflow: visible !important;
}

.lmap-dropdown-filtre {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999 !important;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.lmap-dropdown-section {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.lmap-dropdown-section:last-child {
    border-bottom: none;
}

.lmap-suggestions-title {
    font-size: 12px;
    color: #888;
    margin: 0 0 5px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.lmap-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 14px;
    color: #333;
}

.lmap-dropdown-item:hover {
    background-color: #f0f8f0;
    color: #247a34;
}

#lmap-suggestions-list {
    background: #fff;
    background-color: white !important;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
}

.lmap-suggestion-item {
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

.lmap-suggestion-item:last-child {
    border-bottom: none;
}

.lmap-suggestion-item:hover {
    background-color: #f9f9f9;
    color: #247a34;
    font-weight: 500;
}

.lmap-hidden {
    display: none !important;
}

/* Mobile Responsive Fixes for Dropdown */
@media (max-width: 768px) {
    .lmap-dropdown-filtre {
        position: absolute;
        width: 100%;
        left: 0;
        z-index: 9999;
    }

    #lmap-suggestions-list {
        position: absolute;
        width: 100%;
        left: 0;
        z-index: 10001;
    }
}

.lmap-rotate-180 {
    transform: rotate(180deg);
}

.icon-autodeal-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

lmap-card-info {
    padding: 15px;
}

@media (max-width: 480px) {
    .elementor-shortcode {
        width: 382px;
    }

    @media (max-width: 380px) {
        .elementor-shortcode {
            width: 335px;
        }
    }
}

.lmap-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lmap-reset-icon-btn {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    margin-bottom: 12px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lmap-reset-icon-btn:hover {
    background: #f5f5f5;
    color: #247a34;
    border-color: #247a34;
}

span.lmap-count-total {
    color: #247a34;
}
   /* App download section */
.lmap-header-app-links {
    display: flex;
    flex-direction: column;
  
    gap: 10px;
}

/* Text */
.app-download-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Buttons container */
.app-buttons {
    display: flex;
    gap: 10px;
}

/* Store badges */
.store-badge {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {

    .lmap-results-header {
        flex-direction: column;
        gap: 15px;
    }

    .lmap-header-app-links {
        align-items: center;
        text-align: center;
    }
.lmap-header-app-links {
    width: 260px !important;
}
    .app-buttons {
        justify-content: center;
    }

    .store-badge {
        height: 36px;
    }

    .app-download-text {
        font-size: 13px;
    }
}