/**
 * Jhopdi Popular Searches Styles
 */

.jhopdi-popular-searches-container {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.jhopdi-popular-searches-container .location-grid {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.jhopdi-popular-searches-container .location-grid::-webkit-scrollbar {
    height: 4px;
}

.jhopdi-popular-searches-container .location-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.jhopdi-popular-searches-container .popular-box {
    background: #65BFE2;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.jhopdi-popular-searches-container .popular-box span {
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.jhopdi-popular-searches-container .location-box {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 25px 35px 25px 20px;
    position: relative;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.25s ease, opacity 0.25s ease;
    box-sizing: border-box;
}

.jhopdi-popular-searches-container .location-box:hover {
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.jhopdi-popular-searches-container .location-box:last-child {
    border-right: 0;
}

.jhopdi-popular-searches-container .location-label {
    display: block;
    color: #6095C3;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jhopdi-popular-searches-container .location-title {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
}

.jhopdi-popular-searches-container .location-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.jhopdi-popular-searches-container .location-box:hover .location-arrow {
    transform: translateY(-50%) translateX(3px);
    opacity: 1;
}

@media (max-width: 991px) {
    .jhopdi-popular-searches-container .popular-box {
        min-width: 140px;
        padding: 20px 15px;
    }
    
    .jhopdi-popular-searches-container .location-box {
        min-width: 150px;
        padding: 20px 30px 20px 15px;
    }
}
