/* ==========================================================
   GLOBAL THEME COLORS (uses ListingPro fallback)
   ========================================================== */
:root {
    --lp-primary: #007bff;
    --lp-secondary: #2d2d2d;
    --lp-overlay-dark: rgba(0,0,0,0.35);
    --lp-overlay-hover: rgba(0,0,0,0.55);
}


/* ==========================================================
   WRAPPER
   ========================================================== */
.lp-home-locations-hero,
.lp-locations-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}


/* ==========================================================
   HERO CARD BASE
   ========================================================== */
.lp-location-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.lp-location-hero, .city-girds {
    margin-bottom: 0 !important;
}

.lp-location-hero-thumb img.lp-location-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lp-location-hero:hover .lp-location-hero-thumb img.lp-location-hero-img {
    transform: scale(1.05);
}


/* ==========================================================
   HERO OVERLAY (TEXT + BUTTON)
   ========================================================== */
.lp-location-hero-overlay {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    z-index: 20;
    pointer-events: none;
    padding: 0 20px;
}

.lp-location-title {
    margin-top: 10px;
    font-weight: 700;
}

.lp-location-count {
    margin-top: 3px;
    font-size: 14px;
    opacity: 0.9;
}

/* overlay animated background */
.lp-location-hero-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 15;
}


/* ==========================================================
   BUTTON — Premium ListingPro style
   ========================================================== */
.lp-location-hero-btn-wrap {
    margin-top: 10px;
}

.lp-view-btn {
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    background: var(--lp-primary) !important;
    color: #fff !important;
    pointer-events: auto;
    transition: background 0.25s ease;
}

.lp-view-btn:hover {
    background: var(--lp-secondary) !important;
}


/* ==========================================================
   PREMIUM DROPDOWN (Hero)
   ========================================================== */
.lp-location-select-wrapper-hero {
    position: absolute;
    top: -15%; /* perfect position relative to hero height */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    display: inline-block;
    pointer-events: auto;
}

.lp-location-select-hero {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 260px;
    height: 46px;
    padding: 10px 50px 10px 18px;

    font-size: 15px;
    font-weight: 500;
    color: #fff !important;

    background: var(--lp-overlay-dark);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 30px;

    outline: none;
    cursor: pointer;

    transition:
            background 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.lp-location-select-hero:hover,
.lp-location-select-hero:focus {
    background: var(--lp-overlay-hover);
    border-color: var(--lp-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* Arrow icon */
.lp-location-select-wrapper-hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    pointer-events: none;

    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 20 20'>\
<path d='M5 7l5 6 5-6H5z'/>\
</svg>");
    background-size: 15px;
    background-repeat: no-repeat;
    opacity: 0.9;
}

/* Dropdown list items */
.lp-location-select-hero option {
    background: #181818;
    color: #fff;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Fade animation */
.lp-location-select-hero:focus option {
    animation: lpFadeIn 0.20s ease-in;
}

@keyframes lpFadeIn {
    from { transform: translateY(-5px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}


/* ==========================================================
   GRID / SLIDER / MASONRY BASE STYLES
   ========================================================== */

.lp-location-grid-card,
.lp-location-masonry-card,
.lp-location-slider-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.lp-location-grid-card img,
.lp-location-masonry-card img,
.lp-location-slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.lp-location-grid-card:hover img,
.lp-location-masonry-card:hover img,
.lp-location-slider-card:hover img {
    transform: scale(1.06);
}

.lp-location-grid-overlay,
.lp-location-masonry-overlay,
.lp-location-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.10));
    z-index: 2;
}

.lp-location-grid-title,
.lp-location-masonry-title,
.lp-location-slider-title {
    position: absolute;
    bottom: 14px;
    left: 20px;
    color: #fff;
    font-weight: 700;
    z-index: 3;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {

    .lp-location-select-hero {
        width: 220px;
        height: 42px;
        font-size: 14px;
    }

    .lp-location-select-wrapper-hero {
        top: 48%;
    }

    .lp-location-select-wrapper-hero::after {
        right: 14px;
    }

    .lp-location-hero-overlay {
        bottom: 15px;
        padding: 0 10px;
    }
}

.lp-section-content-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


.lp-slider-prev,
.lp-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    z-index: 99;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-slider-prev:hover,
.lp-slider-next:hover {
    background: rgba(0,0,0,0.65);
    transform: translateY(-50%) scale(1.15);
}

.lp-slider-prev {
    left: 15px;
}

.lp-slider-next {
    right: 15px;
}

/* SVG icons inside arrows */
.lp-slider-prev svg,
.lp-slider-next svg {
    display: block;
}

/*.lp-slider-item {*/
/*    min-height: 350px;*/
/*    background: #111; !* prevent white flash *!*/
/*}*/

/* ============================================================
   MASONRY GRID WRAPPER
   ============================================================ */
.lp-masonry-wrapper {
    width: 100%;
    margin: 40px auto;
}

/* CSS Fallback masonry (no JS) */
.lp-masonry-grid {
    column-gap: var(--masonry-gap, 20px);
}

.lp-masonry-item {
    break-inside: avoid;
    margin-bottom: var(--masonry-gap, 20px);

    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity .5s ease, transform .6s cubic-bezier(0.33, 0, 0.2, 1);
}

.lp-masonry-item.lp-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card */
.lp-masonry-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.lp-masonry-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .8s ease;
}

.lp-masonry-card:hover .lp-masonry-thumb img {
    transform: scale(1.08);
}

/* Overlay (same vibe as HERO) */
.lp-masonry-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: #fff;
}

.lp-masonry-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lp-masonry-count {
    font-size: 14px;
    opacity: .85;
    margin-top: 4px;
}

/* Responsive columns */
@media (max-width: 992px) {
    .lp-masonry-wrapper[data-columns="4"] .lp-masonry-grid {
        column-count: 3;
    }
}
@media (max-width: 768px) {
    .lp-masonry-wrapper[data-columns] .lp-masonry-grid {
        column-count: 2 !important;
    }
}
@media (max-width: 480px) {
    .lp-masonry-wrapper[data-columns] .lp-masonry-grid {
        column-count: 1 !important;
    }
}
