/* Location Popup Styles */

/* Popup Container */
.location-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.location-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.location-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

.location-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.location-popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.location-popup-body {
    padding: 40px 30px 30px;
}

/* Title */
.location-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    padding: 0;
}

/* Search Bar */
.location-search-bar {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.city-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.city-search-input:focus {
    outline: none;
    border-color: #667eea;
}

.city-search-input::placeholder {
    color: #999;
}

/* Detect Location Section */
.detect-location-section {
    margin-bottom: 20px;
}

.detect-location-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.detect-location-link:hover {
    color: #5568d3;
    text-decoration: none;
}

.detect-icon {
    margin-right: 8px;
    font-size: 16px;
}

.detect-location-link.detecting {
    color: #999;
    cursor: not-allowed;
}

.detect-location-link.detecting .detect-icon {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

/* Popular Cities Section */
.popular-cities-section {
    margin-top: 25px;
}

.popular-cities-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 15px 10px;
    border-radius: 8px;
}

.city-card:hover {
    transform: translateY(-3px);
    background: #f8f9fa;
}

.city-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.city-landmark-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landmark-svg {
    width: 100%;
    height: 100%;
}

.city-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 500;
    margin-top: 5px;
}

.no-cities-found {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Location Popup Loader */
.location-popup-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.location-popup-loader .loader-img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.location-popup-loading-text {
    margin: 0;
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
}

/* Body Popup Open */
.body-popup-open {
    overflow: hidden;
}

/* Location Instruction Modal */
.location-instruction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10010;
    align-items: center;
    justify-content: center;
}

.location-instruction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.location-instruction-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10011;
}

.location-instruction-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10012;
}

.location-instruction-close:hover {
    background: #f5f5f5;
    color: #333;
}

.location-instruction-body {
    padding: 40px 30px 30px;
}

.location-instruction-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.location-instruction-body ol {
    margin: 0;
    padding-left: 20px;
}

.location-instruction-body li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.location-instruction-body p {
    color: #666;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-popup-content {
        width: 95%;
        max-height: 95vh;
    }

    .location-popup-body {
        padding: 30px 20px 20px;
    }

    .location-popup-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }

    .city-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .city-name {
        font-size: 12px;
    }
}

