/* Map Section */
.map-section {
    height: 100% !important;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.map-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-title {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    color: #1B1B1B;
    z-index: 2;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.map-image {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop Location List - Under the map */
.desktop-location-list {
    display: block;
    position: relative;
    /* background: #FEDD31; */
    border-radius: 1rem;
    padding: 2rem 0;
    width: 100%;
    margin-top: 2rem;
}

.desktop-location-list .list-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1B1B1B;
    margin-bottom: 1.5rem;
    text-align: center;
}

.location-list { 
    width: 62%;
    margin: auto;
    margin-top: 3rem;
    display: grid ;
    grid-auto-flow: column;
    grid-template-rows: repeat(10, auto);
    grid-auto-columns: minmax(250px, 1fr);
    gap: 12px 16px;
    list-style: none; 
    padding: 0;
}

.location-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* padding: 1rem; */
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.location-list-item:hover {
    /* background: #1B1B1B; */
    /* color: #FEDD31; */
    transform: translateY(-3px);
    /* border-color: #1B1B1B; */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
}

.location-list-item.active {
    background: #1B1B1B;
    color: #FEDD31;

}

.location-number {
    /* width: 35px; */
    /* height: 35px; */
    /* background: #FEDD31; */
    /* border: 2px solid #1B1B1B; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.location-list-item:hover .location-number,
.location-list-item.active .location-number {
    /* background: #FEDD31; */
    /* color: #1B1B1B; */
}

.location-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

/* Mobile List Button */
.mobile-list-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FEDD31;
    border: 3px solid #1B1B1B;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    gap: 0.5rem;
    align-items: center;
}

.mobile-list-toggle:hover {
    background: #1B1B1B;
    color: #FEDD31;
    transform: scale(1.05);
}

.toggle-icon {
    font-size: 1.25rem;
}

/* Mobile Sliding Panel */
.mobile-list-panel {
    position: fixed;
    bottom: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 95vh;
    background: #FEDD31;
    z-index: 95;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-list-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #1B1B1B;
    color: #FEDD31;
    position: sticky;
    top: 0;
    z-index: 1;
}

.panel-header h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.panel-close {
    background: transparent;
    border: none;
    color: black;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.panel-close:hover {
    transform: rotate(90deg);
}

.mobile-location-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.mobile-location-list .location-list-item {
    background: #fff;
    margin-bottom: 1rem;
}

/* Mobile Panel Overlay */
.mobile-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 94;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-panel-overlay.active {
    display: block;
    opacity: 1;
}

/* Location Point Wrapper - For positioning */
.location-point-wrapper {
    position: absolute;
}

/* Location Points */
.location-point {
    width: 1.5vw;
    height: 1.5vw;
    background: black;
    color:white;
    opacity: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.location-point:hover {
    transform: scale(1.15);
    background: #1B1B1B;
    color: #FEDD31;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.location-point.active {
    background: #1B1B1B;
    color: #FEDD31;
    transform: scale(1.2);
}

/* Mobile Tooltip - positioned relative to wrapper */
.mobile-tooltip {
    position: absolute;
    /* background: #fff; */
    border-radius: 20px;
    padding: 1.5rem;
    /* width: 280px; */
    box-shadow: unset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
    background-image: url("https://talpiot.city/wp-content/uploads/2025/08/popup-mobile.png"); /* The image used */
    /* background-color: #cccccc; */ /* Used if the image is unavailable */
    /* height: 500px; */ /* You must set a specified height */
    background-position: top; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: 100% 100%; /* Resize the background image to cover the entire container */
}

.mobile-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Arrow pointing down to the location point */
.mobile-tooltip::after {
    content: '';

    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.mobile-tooltip-close {
    position: absolute;
    top: 1rem;
    left: 2rem;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-tooltip-close::before,
.mobile-tooltip-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #666;
}

.mobile-tooltip-close::before {
    transform: rotate(45deg);
}

.mobile-tooltip-close::after {
    transform: rotate(-45deg);
}

.mobile-tooltip h4 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #1B1B1B;
    /* padding-right: 35px; */
}

.mobile-tooltip p {
    font-size: 1.7rem;
    color: black;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mobile-tooltip .read-more-btn {
    background: white;
    border: unset;
    padding: 1rem 1.5rem;
    border-radius: 9px;
    font-weight: 700;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.mobile-tooltip .read-more-btn:hover {
    background: #1B1B1B;
    color: #FEDD31;
}

/* Main Popup Modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    /* background: #FEDD31; */
    border-radius: 24px;
    width: 34%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: popupEntry 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("https://talpiot.city/wp-content/uploads/2025/08/popup-desktop-1-1.png"); /* The image used */
    /* background-position: center; */ /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    /* Resize the background image to cover the entire container */
    background-size: 100% 100%;
}

@keyframes popupEntry {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 45px;
    height: 45px;
    background: #1B1B1B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s;
}

.popup-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 1px;
    background: #FEDD31;
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}

.popup-left {
    flex: 0 0 50%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Swiper Gallery Styles */
.popup-gallery-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.popup-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
}

.popup-gallery-swiper .swiper-slide img {
    object-fit: cover;
    width: 100%;
    height: 93%;
    border-radius: 12px;
}

/* Swiper Pagination */
.popup-gallery-swiper .swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    right: 0;
    z-index: 10;
}

.popup-gallery-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 4px !important;
    transition: all 0.3s;
}

.popup-gallery-swiper .swiper-pagination-bullet-active {
    background: #1B1B1B;
    width: 24px;
    border-radius: 5px;
}

.popup-right {
    flex: 0 0 49%;
    padding: 3rem 2.5rem 3rem 1rem;
    /* background: #fff; */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.popup-right h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #1B1B1B;
    font-weight: 900;
    text-align: center;
}

.popup-right .subtitle {
    font-size: 1.25rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.popup-right .description {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1rem;
}

.popup-bottom-image {
    width: 100%;
    height: 14rem;
    /* background: #f0f0f0; */
    border-radius: 12px;
    overflow: hidden;
    margin-top: auto;
}

.popup-bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-section::after, .map-section::before {
    content: unset !important;
}

/* Location positions - You can customize these based on your map */
.location-point-wrapper[data-location="1"] { top: 23%; left: 45%; }
.location-point-wrapper[data-location="2"] { top: 35.5%; left: 44.7%; }
.location-point-wrapper[data-location="3"] {top: 38.5%;left: 44.7%;}
.location-point-wrapper[data-location="4"] {top: 44.7%;left: 44.8%;}
.location-point-wrapper[data-location="5"] {top: 42.5%;left: 47.6%;}
.location-point-wrapper[data-location="6"] {top: 50.5%;left: 44.7%;}
.location-point-wrapper[data-location="7"] {top: 53%;left: 34.6%;}
.location-point-wrapper[data-location="8"] {top: 51.7%;left: 32.8%;}
.location-point-wrapper[data-location="9"] {top: 63.8%;left: 34.5%;}
.location-point-wrapper[data-location="10"] {top: 65%;left: 37%;}
.location-point-wrapper[data-location="11"] {top: 67.8%;left: 36.5%;}
.location-point-wrapper[data-location="12"] {top: 66.7%;left: 38.4%;}
.location-point-wrapper[data-location="13"] {top: 69.8%;left: 41.9%;}
.location-point-wrapper[data-location="14"] {top: 66.8%;left: 42.7%;}
.location-point-wrapper[data-location="15"] {top: 50.8%;left: 55.7%;}
.location-point-wrapper[data-location="16"] {top: 51%;left: 57.5%;}
.location-point-wrapper[data-location="17"] {top: 54%;left: 60.3%;}
.location-point-wrapper[data-location="18"] {/* top: 30%; *//* left: 44%; */top: 54%;left: 61.8%;}
.location-point-wrapper[data-location="19"] {/* top: 30%; *//* left: 44%; */top: 54%;left: 63.4%;}
.location-point-wrapper[data-location="20"] {/* top: 30%; *//* left: 44%; */top: 54%;left: 65%;}
.location-point-wrapper[data-location="21"] {top: 51%;left: 60.3%;}
.location-point-wrapper[data-location="22"] {top: 47.6%;left: 60.4%;}
.location-point-wrapper[data-location="23"] {top: 47.5%;left: 62.6%;}
.location-point-wrapper[data-location="24"] {top: 44.6%;left: 64.5%;}
.location-point-wrapper[data-location="25"] {top: 44.6%;left: 62.7%;}
.location-point-wrapper[data-location="26"] {top: 44.5%;left: 60.4%;}
.location-point-wrapper[data-location="27"] {top: 47.8%;left: 57.5%;}
.location-point-wrapper[data-location="28"] {top: 44.5%;left: 57.5%;}
.location-point-wrapper[data-location="29"] {top: 41.5%;left: 54.5%;}
.location-point-wrapper[data-location="30"] {top: 41.5%;left: 57.4%;}
.location-point-wrapper[data-location="31"] {top: 41.4%;left: 60.4%;}
.location-point-wrapper[data-location="32"] {top: 41.5%;left: 64.8%;}
.location-point-wrapper[data-location="33"] {top: 38.4%;left: 64.8%;}
.location-point-wrapper[data-location="34"] {top: 38.5%;left: 60.4%;}
.location-point-wrapper[data-location="35"] {top: 35.4%;left: 60.3%;}
.location-point-wrapper[data-location="36"] {top: 35.5%;left: 57.5%;}
.location-point-wrapper[data-location="37"] {top: 32%;left: 60.5%;}
.location-point-wrapper[data-location="38"] {top: 32%;left: 65%;}
.location-point-wrapper[data-location="39"] {top: 29.7%;left: 67.5%;}
.location-point-wrapper[data-location="40"] {top: 35.5%;left: 69.8%;}

.popup-gallery-swiper .swiper-pagination-bullet {
    background: #FFE600;
}
/* Mobile Styles */
@media screen and (max-width: 768px) {
	
	/* Location positions - You can customize these based on your map */
.location-point-wrapper[data-location="1"] {top: 17.5%;left: 41.4%;}
.location-point-wrapper[data-location="2"] {top: 32%;left: 40.7%;}
.location-point-wrapper[data-location="3"] {top: 35.5%;left: 40.7%;}
.location-point-wrapper[data-location="4"] {top: 42.7%;left: 40.8%;}
.location-point-wrapper[data-location="5"] {top: 40.1%;left: 46%;}
.location-point-wrapper[data-location="6"] {top: 49.5%;left: 40.7%;}
.location-point-wrapper[data-location="7"] {top: 52.56%;left: 22.8%;}
.location-point-wrapper[data-location="8"] {top: 50.8%;left: 19.8%;}
.location-point-wrapper[data-location="9"] {top: 65.2%;left: 22.5%;}
.location-point-wrapper[data-location="10"] {top: 66.5%;left: 27%;}
.location-point-wrapper[data-location="11"] {top: 69.8%;left: 26%;}
.location-point-wrapper[data-location="12"] {top: 68.7%;left: 29.4%;}
.location-point-wrapper[data-location="13"] {top: 72.5%;left: 35.9%;}
.location-point-wrapper[data-location="14"] {top: 68.8%;left: 37.4%;}
.location-point-wrapper[data-location="15"] {top: 50%;left: 60%;}
.location-point-wrapper[data-location="16"] {top: 50%;left: 63.5%;}
.location-point-wrapper[data-location="17"] {top: 53.5%;left: 67.8%;}
.location-point-wrapper[data-location="18"] {/* top: 30%; *//* left: 44%; */top: 53.5%;left: 70.8%;}
.location-point-wrapper[data-location="19"] {/* top: 30%; *//* left: 44%; */top: 53.5%;left: 73.8%;}
.location-point-wrapper[data-location="20"] {/* top: 30%; *//* left: 44%; */top: 53.5%;left: 77%;}
.location-point-wrapper[data-location="21"] {top: 50%;left: 68.3%;}
.location-point-wrapper[data-location="22"] {top: 46%;left: 68.4%;}
.location-point-wrapper[data-location="23"] {top: 46.5%;left: 72.6%;}
.location-point-wrapper[data-location="24"] {top: 42.6%;left: 76%;}
.location-point-wrapper[data-location="25"] {top: 42.6%;left: 72.7%;}
.location-point-wrapper[data-location="26"] {top: 42.5%;left: 68.4%;}
.location-point-wrapper[data-location="27"] {top: 46.2%;left: 63.5%;}
.location-point-wrapper[data-location="28"] {top: 42.7%;left: 63.5%;}
.location-point-wrapper[data-location="29"] {top: 39%;left: 58%;}
.location-point-wrapper[data-location="30"] {top: 39%;left: 63.4%;}
.location-point-wrapper[data-location="31"] {top: 38.8%;left: 68.5%;}
.location-point-wrapper[data-location="32"] {top: 39%;left: 76.5%;}
.location-point-wrapper[data-location="33"] {top: 35.5%;left: 76.4%;}
.location-point-wrapper[data-location="34"] {top: 35.5%;left: 68.4%;}
.location-point-wrapper[data-location="35"] {top: 32%;left: 68.3%;}
.location-point-wrapper[data-location="36"] {top: 32%;left: 63.5%;}
.location-point-wrapper[data-location="37"] {top: 27.8%;left: 68.8%;}
.location-point-wrapper[data-location="38"] {top: 27.7%;left: 77%;}
.location-point-wrapper[data-location="39"] {top: 25.2%;left: 81%;}
.location-point-wrapper[data-location="40"] {top: 31.9%;left: 85%;}
	
    .popup-right {
        padding-top: unset !important;
    }
    .popup-right {
        order: 1;
    }
    .popup-right h3 {
        font-size: 3rem !important;
    }
    .popup-right .subtitle {
        font-size: 2.25rem !important;
    }
    .popup-right .description {
        font-size: 2rem !important;
    }


    .mobile-list-panel {
        width: 65%;
    }
    .location-number {
        font-size: 1.9rem;
    }
    .location-name {
        font-size: 1.9rem;
        font-weight: 600;
        text-align: right;
        flex: 1;
    }
    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: white !important;
        color: black;
        position: sticky;
        top: 0;
        z-index: 10000000000;
        margin-top: 1.5rem;
    }
    .mobile-list-panel {
        background: white !important;
    }
    .map-section {
        padding: 0;
        align-items: flex-start;
    }
    .mobile-list-toggle {
        display: none;
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        border: unset;
        border-radius: 12px;
        padding: 1.2rem 1.5rem;
        font-weight: 700;
        font-size: 2rem;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        gap: 0.5rem;
        align-items: center;
    }
    .map-container {
        padding: 0;
        max-width: none;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .map-wrapper {
        padding: unset;
        border-radius: 0;
        width: 799px;
        background: #FEDD31;
        position: relative;
        flex-direction: row;
        gap: 0;
    }
.map-image img {
  	width;auto !important;
	height:auto !important;
	object-fit:unset !important;
}
    .map-image {
        width: 100%;
        position: relative;
    }

    /* Hide desktop list on mobile */
    .desktop-location-list {
        display: none;
    }

    /* Show mobile list button */
    .mobile-list-toggle {
        display: flex;
    }

    .location-point {
        width: 5vw;
        height: 5vw;
        font-size: 2.7vw;
    }

    /* Mobile tooltip adjustments */
    .mobile-tooltip {
        width: 85vw;
        max-width: 252px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    /* If tooltip goes off-screen, adjust position */
    .mobile-tooltip.adjust-left {
        left: auto;
        right: -10px;
        transform: translateY(10px);
    }

    .mobile-tooltip.adjust-right {
        left: -10px;
        transform: translateY(10px);
    }

    .mobile-tooltip.active {
        transform: translateX(-50%) translateY(0);
    }

    .mobile-tooltip.adjust-left.active,
    .mobile-tooltip.adjust-right.active {
        transform: translateY(0);
    }

    .popup-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
    }

    .popup-left {
        flex: none;
        padding: 2rem 1.5rem 1rem;
        min-height: 250px;
    }

    .popup-gallery-swiper .swiper-slide img {
        max-height: 350px;
    }

    .popup-right {
        padding: 2rem 1.5rem;
    }

    .popup-right h3 {
        font-size: 1.75rem;
    }

    .popup-right .subtitle {
        font-size: 1rem;
    }

    .popup-right .description {
        font-size: 1rem;
    }

    .popup-bottom-image {
        height: 140px;
    }

    /* Scroll indicator */
    .map-container::after {
        content: ' → גלול ←';
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(27, 27, 27, 0.8);
        color: #FEDD31;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 1.5rem;
        font-weight: 600;
        pointer-events: none;
        z-index: 5;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
}

.heading{
    margin-bottom: unset;
}

span.toggle-text {
    display: flex;
    gap: 1rem;
}