#wplm-search-page {
    position: relative;
    max-width: 1400px;
    margin: 10px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #111;
}

/* Premium Header Filter Bar */
.wplm-premium-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1001;
    position: sticky;
    top: 0;
}


.wplm-filters-scroll-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #000 !important;
    border-bottom: 1px solid #000 !important;
    padding: 0 20px 5px;
}

@media (max-width: 768px) {
    .wplm-filters-scroll-container {
        justify-content: flex-start;
    }
}

.wplm-filters-scroll-container::-webkit-scrollbar {
    height: 3px;
}

.wplm-filters-scroll-container::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 4px;
}

/* Custom Select2 Overrides */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

.woocommerce-js .select2-container .select2-selection--single,
.select2-container .select2-selection--single {
    height: auto !important;
    padding: 8px !important;
    font-size: 13px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000000 !important;
}

.wplm-filter-group {
    display: flex;
    gap: 12px;
}

.wplm-divider {
    display: block !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 45px !important;
    background: #000 !important;
    margin: 0 20px !important;
    align-self: center !important;
    flex-shrink: 0 !important;
}

/* Button Styles */
.wplm-cat-btn,
.wplm-country-btn,
.wplm-size-btn {
    background: #fff !important;
    background-color: #fff !important;
    border: none !important;
    padding: 10px 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    color: #111 !important;
    gap: 8px;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    flex-shrink: 0;
}

.wplm-cat-btn img,
.wplm-country-btn img,
.wplm-size-btn img {
    height: 24px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wplm-cat-btn .label,
.wplm-country-btn .label,
.wplm-size-btn .label {
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}



.wplm-child-term {
    padding: 10px 12px;
    border-left: 1px solid #f0f0f0;
}

.wplm-child-term .label {
    font-size: 13px;
    font-weight: 400;
    color: #000 !important;
}

.wplm-cat-btn:hover,
.wplm-country-btn:hover,
.wplm-size-btn:hover {
    border-bottom: 2px solid #ddd !important;
    color: #000 !important;
}

.wplm-cat-btn.active,
.wplm-country-btn.active,
.wplm-size-btn.active {
    border-bottom: 2px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    opacity: 1;
}

.wplm-child-term.active .label {
    color: #000 !important;
    font-weight: 600;
}

/* Premium Pill Search Bar Refined */
.wplm-secondary-bar {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    background: #fff;
    border-bottom: 2px solid #f8f8f8;
}

.wplm-search-pill-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.wplm-search-pill-modern {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid black;
    border-radius: 60px;
    padding: 6px 6px 6px 25px;
    transition: box-shadow 0.3s ease;
}



.wplm-pill-location {
    flex: 1.2;
    display: flex;
    align-items: center;
    position: relative;
}

.wplm-pill-location input {
    border: none !important;
    outline: none !important;
    width: 100%;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
    height: 35px;
}

.wplm-icon-btn {
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    margin-right: 15px;
}

.wplm-icon-btn:hover {
    background: #e0e0e0;
    color: #000;
}

.wplm-pill-divider {
    width: 1px;
    height: 30px;
    background: #e0e0e0;
    margin: 0 15px;
}

.wplm-pill-date {
    flex: 0.8;
    display: flex;
    align-items: center;
}

.wplm-pill-date input {
    border: none !important;
    outline: none !important;
    width: 100%;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 10px 0 !important;
    background: transparent !important;
    cursor: pointer;
    color: #111 !important;
    box-shadow: none !important;
}

.wplm-search-circle-btn {
    background: #ec1e25 !important !important;
    /* Premium Golden Yellow */
    border: none !important;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #000;
    margin-left: 10px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(255, 210, 0, 0.3);
    padding: 0 !important;
}

.wplm-search-circle-btn:hover {
    transform: scale(1.08);
    background: #ffcc00 !important;
    box-shadow: 0 6px 15px rgba(255, 210, 0, 0.4);
}

/* Autocomplete Dropdown */
.wplm-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    padding: 10px 0;
    border: 1px solid #eee;
    max-height: 350px;
    overflow-y: auto;
}

.wplm-autocomplete-item {
    padding: 14px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.wplm-autocomplete-item:last-child {
    border-bottom: none;
}

.wplm-autocomplete-item:hover {
    background: #f9f9f9;
}

.wplm-autocomplete-item i {
    margin-right: 15px;
    color: #666;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.wplm-autocomplete-item span {
    font-size: 15px;
    color: #111;
    font-weight: 400;
}

.wplm-autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.wplm-autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.wplm-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

/* Main Layout */
.wplm-main-layout {
    display: flex;
    height: calc(100vh - 197px);
    position: relative;
}

#wplm-map-canvas {
    flex: 1;
    z-index: 10;
}

#wplm-sidebar {
    width: 380px;
    background: #fff;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.wplm-sidebar-hidden {
    width: 0 !important;
    overflow: hidden;
}

/* Card Styles Extended */
.wplm-card {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    border-radius: 0;
    padding: 15px;
}

.wplm-card:last-child {
    border-bottom: none;
}

.wplm-card-image {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 0.6;
    object-fit: cover;
    width: 100%;
}

/* Premium München Style Popup */
.wplm-premium-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.wplm-premium-leaflet-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 850px !important;
    min-width: 850px !important;
}

.wplm-premium-leaflet-popup .leaflet-popup-close-button {
    top: 15px !important;
    right: 15px !important;
    font-size: 24px !important;
    color: #333 !important;
    background: #fff !important;
    border-radius: 50%;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1010 !important;
}

.wplm-popup-grid {
    display: flex !important;
    /* Force side-by-side flex layout */
    width: 100% !important;
}

.wplm-popup-left {
    flex: 0 0 45% !important;
    /* Fixed 45% of width */
    position: relative;
    background: #f8f8f8;
}

.wplm-popup-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wplm-popup-badge-pink {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #E6007E;
    /* Vibrant Pink */
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 4px 4px 10px rgba(230, 0, 126, 0.3);
}

.wplm-popup-right {
    flex: 1 !important;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.wplm-popup-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #222;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.wplm-popup-header h3 img {
    margin-right: 10px;
    flex-shrink: 0;
}

.wplm-popup-subtitle {
    margin: 0 !important;
    font-size: 14px;
    color: #666;
}

.wplm-popup-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.wplm-popup-features {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-content: start;
}

hr.wplm-popup-divider {
    margin: 10px 0 !important;
}

.wplm-popup-features li {
    font-size: 13px;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping if absolutely necessary, but keep together */
    align-items: baseline;
    gap: 2px;
    padding: 0;
    line-height: 1.4;
}

.wplm-popup-features li strong {
    white-space: nowrap;
}

.wplm-popup-features li.wplm-feature-full-width {
    grid-column: span 2;
    display: inline !important;
}

.wplm-popup-features li.wplm-feature-highlight-green {
    grid-column: span 2;
    /* Span both columns */
    background: #e6f7ed;
    color: #1e4620;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 5px;
    display: inline !important;
}

.wplm-popup-features li.wplm-feature-highlight-green i {
    color: #2e7d32;
}

.wplm-popup-features li i {
    font-size: 16px;
    color: #222;
    width: 16px;
}

.wplm-popup-features li i.fa-check {
    color: #222;
}

@media (max-width: 768px) {
    .wplm-popup-features li i {
        font-size: 12px;
    }
}

.wplm-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.wplm-popup-price {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.wplm-popup-price del {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

.wplm-popup-btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wplm-popup-location-btn {
    background: #000 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wplm-popup-location-btn:hover {
    transform: scale(1.05);
    background: #333 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.wplm-popup-action-btn {
    background: #FFD200 !important;
    color: #000 !important;
    text-decoration: none !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3);
}

.wplm-popup-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 210, 0, 0.4);
}

@media (max-width: 900px) {
    .wplm-main-layout {
        flex-direction: column !important;
        height: auto !important;
        display: block !important;
    }

    #wplm-sidebar {
        width: 100% !important;
        height: auto !important;
        max-height: 500px;
    }

    #wplm-map-canvas {
        height: calc(100vh - 197px) !important;
        width: 100% !important;
        display: block !important;
        background-color: #f0f0f0;
    }

    /* Force hide hidden elements on mobile with higher specificity */
    #wplm-map-canvas.wplm-map-hidden,
    #wplm-sidebar.wplm-sidebar-hidden,
    #wplm-grid-view.wplm-grid-view-hidden {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #wplm-grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px 5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .wplm-grid-card {
        min-width: 0 !important;
    }

    /* Price overflow fix */
    .wplm-grid-price-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .wplm-price-regular {
        margin-left: 0 !important;
        border-top: 1px dashed #eee;
        padding-top: 5px;
        width: 100%;
    }

    .wplm-price-value,
    .wplm-price-value-old {
        font-size: 14px !important;
    }

    .wplm-grid-title {
        font-size: 14px !important;
    }

    .wplm-price-icon-circle {
        display: none !important;
    }

    /* Popup resizing */
    .wplm-popup-grid {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    .wplm-premium-leaflet-popup .leaflet-popup-content {
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
    }

    .wplm-popup-left {
        flex: none !important;
        height: 120px !important;
    }

    .wplm-popup-right {
        padding: 8px !important;
    }

    .wplm-popup-header h3 {
        font-size: 14px !important;
    }

    .wplm-popup-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 10px !important;
    }

    .wplm-popup-features li {
        font-size: 11px !important;
    }

    .wplm-popup-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .wplm-popup-btn-group {
        width: 100%;
        justify-content: space-between;
    }

    .wplm-popup-action-btn,
    .wplm-popup-location-btn {
        padding: 10px 15px !important;
        font-size: 12px !important;
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .wplm-popup-badge-pink {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}

/* View Toggle Button - Used via Shortcode */
#wplm-view-toggle {
    background: #ec1e25 !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 16px;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
    width: fit-content;
}



.wplm-view-toggle-btn:hover {
    transform: scale(1.05);
    background: #ffcc00 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wplm-view-toggle-btn i {
    font-size: 18px;
}

/* Grid View Styles */
#wplm-grid-view {
    width: 100%;
    background: #fff;
    padding: 30px 15px 120px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-content: start;
}

.wplm-is-grid {
    height: auto !important;
    display: block !important;
    min-height: 50vh;
}

.wplm-grid-view-hidden {
    display: none !important;
}

.wplm-map-hidden {
    display: none !important;
}

/* --- Toggle Button Fade Animation (opacity only, ease-in-out) --- */
#wplm-view-toggle {
    opacity: 1;
    transition: opacity 0.45s ease-in-out;
    will-change: opacity;
}

.wplm-fade-out {
    animation: wplmFadeOut 0.45s ease-in-out forwards;
    pointer-events: none;
}

.wplm-fade-in {
    animation: wplmFadeIn 0.45s ease-in-out forwards;
}

@keyframes wplmFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes wplmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Hide sidebar when in grid view */
.wplm-is-grid #wplm-sidebar {
    display: none !important;
}


/* Premium Grid Card Design */
.wplm-grid-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.wplm-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.wplm-grid-image-container {
    position: relative;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
}

.wplm-grid-image-container img {
    width: 100%;
    aspect-ratio: 1 / 0.6;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 20px 20px 0 0 !important;
}

.wplm-grid-card:hover .wplm-grid-image-container img {
    transform: scale(1.05);
}

.wplm-grid-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    color: #111;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.wplm-grid-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wplm-grid-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #111 !important;
    line-height: 1.2 !important;
}

.wplm-grid-subtitle {
    margin: 0 0 15px 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 400 !important;
}

.wplm-grid-address {
    margin: 0 0 20px 0 !important;
    font-size: 13px !important;
    color: #777 !important;
    line-height: 1.4 !important;
}


.wplm-grid-price-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wplm-price-icon-circle {
    width: 28px;
    height: 28px;
    background: #ec1d26;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(190, 0, 107, 0.2);
}

.wplm-price-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wplm-price-label {
    font-size: 12px;
    color: #000;
    font-weight: 400;
    margin-bottom: 2px;
}

.wplm-price-value {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

.wplm-price-value .woocommerce-Price-amount {
    font-family: inherit;
}

.wplm-price-value-old {
    font-size: 16px;
    color: #333;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1;
}

.wplm-price-regular {
    margin-left: 20px;
}

@media (max-width: 900px) {
    #wplm-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 10px 100px;
    }
}

.wplm-grid-price {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.wplm-price-prefix {
    font-size: 16px;
    font-weight: 800;
    text-transform: lowercase;
    color: #000;
}

/* Style WooCommerce Price HTML inside grid */
.wplm-grid-price del {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
    margin-right: 5px;
}

.wplm-grid-price ins {
    text-decoration: none;
    color: #111;
}

.wplm-grid-price .amount {
    font-family: inherit;
}

/* Astra Theme Specific Fixes for Single Product Page Map */
.ast-article-single figure,
.ast-article-single img:not(figure img) {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Prevent scroll when map popup is open */
body.wplm-popup-lock {
    overflow: hidden !important;
}


.select2-results__option {
    font-size: 13px;
    color: black;
}

.woocommerce-js .select2-container .select2-selection--single,
.select2-container .select2-selection--single {
    border: 1px solid black !important;
}


.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #eb1d26;
}

/* Stats Shortcode Styles */
.wplm-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 0px auto;
    max-width: 470px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wplm-stat-item {
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 10px;
}

.wplm-stat-item:not(:last-child):after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: #f1f5f9;
}

.wplm-stat-number {
    font-size: 25px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1;
}

.wplm-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .wplm-stats-container {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 20px 10px;
        margin: 10px;
    }

    .wplm-stat-item {
        flex: 0 0 50%;
        margin: 15px 0;
    }

    .wplm-stat-item:after {
        display: none;
    }

    .wplm-stat-number {
        font-size: 24px;
    }

    .wplm-stat-label {
        font-size: 13px;
    }
}

/* Category Emoji Icon Styles */
.wplm-cat-emoji {
    font-size: 22px;
    line-height: 1;
    display: block;
}

.wplm-cat-btn {
    min-width: 70px;
    white-space: nowrap;
}

.wplm-filter-group.main-categories {
    gap: 5px;
}



/* ===== Categories Shortcode ===== */
.wplm-categories-section {
    margin: 40px auto;
    padding: 0 20px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wplm-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.wplm-category-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.wplm-category-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wplm-category-header-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.wplm-category-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.wplm-category-card-emoji {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.wplm-category-info h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wplm-category-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.wplm-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wplm-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wplm-tag:hover {
    background: #111;
    color: #fff !important;
    border-color: #111;
    transform: translateY(-1px);
}

/* All Available Formats */
.wplm-all-formats {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.wplm-all-formats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wplm-all-formats-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.wplm-formats-badge {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wplm-all-formats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wplm-tag-colored {
    background: #fff;
    border-color: #e2e8f0;
}

.wplm-tag-colored:hover {
    background: #eb1d26;
    color: #fff !important;
    border-color: #eb1d26;
}

/* Child Type Filter Buttons in Filter Bar */
.wplm-filter-group.child-types {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 5px 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.wplm-child-type-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #334155 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.wplm-child-type-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

.wplm-child-type-btn.active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .wplm-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wplm-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wplm-category-card {
        padding: 18px;
    }

    .wplm-category-card-emoji {
        font-size: 26px;
    }

    .wplm-category-info h3 {
        font-size: 13px;
    }

    .wplm-all-formats {
        padding: 20px;
    }

    .wplm-all-formats-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ===== Locations Shortcode (Governorates + Districts) ===== */
.wplm-locations-section {
    padding: 0 20px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wplm-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.wplm-location-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 28px;
    transition: box-shadow 0.3s ease;
}

.wplm-location-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.wplm-location-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.wplm-location-card-icon {
    width: 44px;
    height: 44px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #3b5998;
    flex-shrink: 0;
    line-height: 1;
}

.wplm-location-card-info {
    flex: 1;
    min-width: 0;
}

.wplm-location-card-info h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.wplm-location-card-info p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

.wplm-location-badge {
    background: #1a1a2e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.wplm-location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wplm-loc-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wplm-loc-tag:hover {
    background: #111;
    color: #fff !important;
    border-color: #111;
    transform: translateY(-1px);
}

.wplm-tag-more {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: default;
}

/* Locations Responsive */
@media (max-width: 768px) {
    .wplm-locations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wplm-location-card {
        padding: 20px;
    }

    .wplm-location-card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .wplm-location-card-info h3 {
        font-size: 15px;
    }

    .wplm-location-badge {
        margin-left: auto;
    }
}

/* ===== NEW PREMIUM POPUP DESIGN ===== */
.wplm-premium-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 5px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.wplm-premium-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 700px !important;
}

.wplm-popup-grid {
    display: flex;
    padding: 5px;
}

.wplm-popup-left {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.wplm-popup-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wplm-popup-left:hover .wplm-popup-main-image {
    transform: scale(1.03);
}

.wplm-popup-badge-rent {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #eb1d26;
    color: #fff;
    padding: 8px 26px 8px 20px;
    border-radius: 0 50px 50px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(235, 29, 38, 0.4);
    z-index: 520;
}

.wplm-popup-right {
    flex: 1;
    padding: 10px 35px 5px 25px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.wplm-popup-header {
    margin-bottom: 5px;
}

.wplm-popup-header h3 {
    margin: 0;
    font-size: 22px;
    color: #111;
    line-height: 1.2;
}

.wplm-popup-subtitle {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #111;
    font-weight: 400;
}

.wplm-popup-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 15px 0;
}

.wplm-popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.wplm-popup-features li {
    font-size: 13px;
    color: #111;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.wplm-popup-features li i {
    color: #111;
    font-size: 14px;
}

.wplm-popup-features li strong {
    font-weight: bold;
    color: #111;
}

.wplm-popup-features li.wplm-feature-full-width {
    grid-column: span 2;
}

.wplm-popup-features li.wplm-feature-col-1 {
    grid-column-start: 1;
}

.wplm-popup-features li.wplm-feature-col-2 {
    grid-column-start: 2;
}

.wplm-popup-footer {
    margin-top: auto;
}

.wplm-popup-btn-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.wplm-popup-location-btn {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: #fff !important;
    /* Force white background */
    border: 1.5px solid #111 !important;
    border-radius: 50px;
    color: #111 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.wplm-popup-location-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.wplm-popup-location-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
}

.wplm-popup-action-btn {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: #eb1d26 !important;
    border: 1.5px solid #eb1d26 !important;
    border-radius: 50px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(235, 29, 38, 0.2);
    white-space: nowrap;
    text-align: center;
}

.wplm-popup-action-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.wplm-popup-action-btn:hover {
    background: #d41a22 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(235, 29, 38, 0.3);
}


.wplm-popup-lock {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .wplm-premium-leaflet-popup .leaflet-popup-content {
        width: 320px !important;
    }

    .wplm-popup-grid {
        flex-direction: column;
    }

    .wplm-popup-left {
        height: 200px;
    }

    .wplm-popup-features {
        grid-template-columns: 1fr;
    }

    .wplm-popup-btn-group {
        flex-direction: column;
    }
}



.wplm-popup-type-row strong {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.2;
    margin-right: 4px;
}

.leaflet-popup-content p {
    margin-top: 5px !important;
}

.leaflet-popup-content p {
    margin-top: 5px !important;
}

.leaflet-popup-content p {
    margin-top: 5px !important;
}

/* --- Stats Shortcode Divider Bar Redesign --- */
.wplm-stats-bar-outer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #fff;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 25px 0;
    margin-top: 50px;
    margin-bottom: 50px;
}

.wplm-stats-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.wplm-stat-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.wplm-stat-bar-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.wplm-stat-bar-content {
    display: flex;
    flex-direction: column;
}

.wplm-stat-bar-divider {
    width: 1px;
    height: 40px;
    background-color: #000;
    margin: 0 10px;
}

.wplm-stat-number {
    font-size: 35px;
    font-weight: 800;
    color: black;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}

.wplm-stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Icon Box Colors matched to Brand Color #ec1d26 */
.wplm-stat-bar-icon.color-orange,
.wplm-stat-bar-icon.color-blue,
.wplm-stat-bar-icon.color-green,
.wplm-stat-bar-icon.color-purple {
    background-color: rgba(236, 29, 38, 0.08);
    color: #ec1d26;
}
}

/* --- Pin Map Markers --- */
.wplm-pin-icon-wrapper {
    background: transparent !important;
    border: none !important;
}

.wplm-pin-marker {
    width: 34px;
    height: 34px;
    background: #ec1d26;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wplm-pin-inner {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.wplm-pin-marker:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000 !important;
}

/* --- Responsive Layouts --- */
@media (max-width: 1024px) {
    .wplm-stat-bar-divider {
        display: none;
    }

    .wplm-stats-bar-inner {
        flex-wrap: wrap;
        gap: 30px 10px;
        justify-content: center;
    }

    .wplm-stat-bar-item {
        flex: 0 0 calc(50% - 20px);
        min-width: 160px;
        justify-content: flex-start;
        padding-left: 5%;
    }
}

@media (max-width: 600px) {
    .wplm-stat-bar-item {
        padding-left: 2%;
        gap: 10px;
    }

    .wplm-stat-bar-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .wplm-stat-number {
        font-size: 30px;
    }

    .wplm-stat-label {
        font-size: 13px;
    }
}

/* --- My Account: Reservations Tab --- */
.wplm-my-reservations h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.wplm-no-reservations {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.wplm-no-reservations p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.wplm-no-reservations .button {
    background: #ec1d26;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.wplm-no-reservations .button:hover {
    background: #c5161e;
    color: #fff;
}

.wplm-reservations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.wplm-reservations-table thead th {
    background: #EC1D26;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}

.wplm-reservations-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.wplm-reservations-table tbody tr:last-child td {
    border-bottom: none;
}

.wplm-reservations-table tbody tr:hover {
    background: #fef8f8;
}

.wplm-reservations-table tbody td a {
    color: #ec1d26;
    font-weight: 600;
    text-decoration: none;
}

.wplm-reservations-table tbody td a:hover {
    text-decoration: underline;
}

.wplm-reservation-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.wplm-status-pending {
    background: #fff3e0;
    color: #e65100;
}

.wplm-status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.wplm-status-completed {
    background: #e3f2fd;
    color: #0d47a1;
}

.wplm-status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.wplm-status-reviewing {
    background: #fff8e1;
    color: #b27000;
}

.wplm-status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.wplm-status-rejected {
    background: #ffebee;
    color: #c62828;
}

/* Supplier listings — uploaded files preview grid */
.wplm-sd-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.wplm-sd-attachment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    word-break: break-word;
}

.wplm-sd-attachment:hover {
    border-color: #ec1d26;
    box-shadow: 0 4px 12px rgba(236, 29, 38, 0.12);
    transform: translateY(-2px);
}

.wplm-sd-attachment img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.wplm-sd-attachment i {
    font-size: 36px;
    color: #ec1d26;
    margin-top: 6px;
}

.wplm-sd-attachment span {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .wplm-reservations-table thead {
        display: none;
    }

    .wplm-reservations-table tbody td {
        display: block;
        text-align: right;
        padding: 10px 16px;
        position: relative;
        padding-left: 50%;
    }

    .wplm-reservations-table tbody td::before {
        content: attr(data-title);
        position: absolute;
        left: 16px;
        font-weight: 700;
        color: #1a1a2e;
        text-align: left;
    }

    .wplm-reservations-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
}

/* --- See More Button --- */
.wplm-view-detail-btn {
    background: #ec1d26;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wplm-view-detail-btn:hover {
    background: #c5161e;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(236, 29, 38, 0.3);
}

/* --- Reservation Detail Modal --- */
.wplm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.wplm-modal-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: wplmModalIn 0.25s ease;
    display: flex;
    flex-direction: column;
}

@keyframes wplmModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wplm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #ec1d26;
    color: #fff;
}

.wplm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.wplm-modal-header h3 i {
    margin-right: 8px;
}

.wplm-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
    padding: 0 !important;
}

.wplm-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.wplm-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.wplm-modal-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.wplm-modal-id {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
}

.wplm-modal-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wplm-modal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wplm-modal-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ec1d26;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wplm-modal-section h4 i {
    margin-right: 6px;
    font-size: 13px;
}

.wplm-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wplm-modal-field {
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.wplm-modal-field.full-width {
    grid-column: 1 / -1;
}

.wplm-mf-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.wplm-mf-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    word-break: break-word;
}

.wplm-modal-billboard {
    padding: 10px 14px;
    background: #fef8f8;
    border-radius: 8px;
    border: 1px solid #fce4e4;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

@media (max-width: 600px) {
    .wplm-modal-container {
        max-height: 90vh;
        border-radius: 12px;
    }

    .wplm-modal-grid {
        grid-template-columns: 1fr;
    }

    .wplm-modal-header {
        padding: 16px 18px;
    }

    .wplm-modal-body {
        padding: 16px 18px 20px;
    }
}

/* --- OTP Login Form --- */
.wplm-woo-login-override {
    max-width: 480px;
    margin: 0 auto;
}

.wplm-otp-container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.wplm-otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.wplm-otp-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.wplm-otp-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.wplm-otp-container .wplm-form-group {
    margin-bottom: 20px;
}

.wplm-otp-container label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.wplm-otp-container input[type="email"],
.wplm-otp-container input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wplm-otp-container input[type="text"] {
    text-align: center;
    font-size: 24px;
    letter-spacing: 4px;
    font-weight: 700;
}

.wplm-otp-container input:focus {
    outline: none;
    border-color: #ec1d26;
    box-shadow: 0 0 0 3px rgba(236, 29, 38, 0.1);
}

.wplm-otp-container .wplm-submit-btn {
    width: 100%;
    background: #ec1d26;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.wplm-otp-container .wplm-submit-btn:hover:not(:disabled) {
    background: #c5161e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 29, 38, 0.3);
}

.wplm-otp-container .wplm-submit-btn:disabled {
    background: #fca5a5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wplm-otp-container .wplm-text-btn {
    width: 100%;
    background: transparent;
    color: #666;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.2s ease;
}

.wplm-otp-container .wplm-text-btn:hover {
    color: #ec1d26;
}

.wplm-otp-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.wplm-alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.wplm-otp-logged-in {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}