/**
 * City Selector Styles
 */

/* City Selector Wrapper */
.tsl-city-selector-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.tsl-city-selector-dropdown {
    display: flex;
    flex-direction: column;
}

.tsl-city-selector {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.tsl-city-selector:hover {
    border-color: #999;
}

.tsl-city-selector:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.tsl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    overflow-y: auto;
    padding: 1rem;
    animation: tslFadeIn 0.3s ease;
}

.tsl-modal.tsl-modal-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsl-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: tslSlideUp 0.3s ease;
}

.tsl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.tsl-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #333;
    font-weight: 700;
}

.tsl-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tsl-modal-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

.tsl-modal-close:focus {
    outline-offset: 2px;
}

.tsl-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Modal Locations */
.tsl-modal-locations {
    display: grid;
    gap: 2rem;
}

.tsl-modal-location {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tsl-modal-location h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.tsl-modal-location p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.tsl-modal-location p strong {
    color: #333;
    font-weight: 600;
}

.tsl-modal-location a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.tsl-modal-location a:hover {
    text-decoration: underline;
}

.tsl-modal-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    line-height: 1.6;
}

/* Body lock when modal is open */
.tsl-modal-body-open {
    overflow: hidden;
}

/* Animations */
@keyframes tslFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tslSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tsl-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .tsl-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .tsl-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .tsl-modal-body {
        padding: 1.5rem;
    }
    
    .tsl-modal-location {
        padding: 1rem;
    }
    
    .tsl-modal-location h3 {
        font-size: 1.25rem;
    }
    
    .tsl-city-selector-wrapper {
        margin: 1rem auto;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tsl-modal-header {
        padding: 0.875rem 1rem;
    }
    
    .tsl-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .tsl-modal-close {
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
    }
    
    .tsl-modal-body {
        padding: 1rem;
    }
    
    .tsl-city-selector {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }
}

