/* Location Carousel Stylings */
.location-section {
    padding: 100px 0 80px;
    background: #f8f9fa;
    /* position: relative; */
    /* overflow: visible; */
}

.location-title {
    color: #22395d;
    font-weight: 700;
    margin-bottom: 40px;
}

.location-item {
    position: relative;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 1;
    /* ensure stacking context */
}

/* Fix Owl Carousel clipping absolute elements */
.location-carousel .owl-stage-outer {
    padding-top: 50px;
}

.location-carousel .owl-stage {
    /* overflow: visible !important; */
}

.location-img-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.location-item:hover .location-img-container {
    transform: scale(1.05);
}

.location-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22395d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-name:hover {
    color: #009CFF;
    text-decoration: none;
}

/* Hover Popup for Mumbai */
.location-item.has-popup {
    position: relative;
}

.sub-location-popup {
    position: absolute;
    bottom: 100%;
    /* Back to above the item */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    border: 1px solid rgba(0, 156, 255, 0.1);
    pointer-events: none;
    /* Prevent flickering on transition */
}

.sub-location-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.location-item:hover .sub-location-popup,
.location-item.has-popup:hover .sub-location-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.sub-location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.sub-location-list li {
    position: relative;
}

.sub-location-list li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -12px;
    color: #ddd;
    font-size: 0.8rem;
}

.sub-location-list li a {
    color: #22395d;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sub-location-list li a:hover {
    color: #009CFF;
    text-decoration: none;
}

/* Custom Dots for Owl Carousel */
.location-section .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.location-section .owl-dot {
    width: 12px;
    height: 12px;
    background: #ccc !important;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
}

.location-section .owl-dot.active {
    background: #009CFF !important;
}