/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Form Styles */
.search-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn.primary {
    background-color: #3498db;
    color: white;
}

.btn.primary:hover {
    background-color: #2980b9;
}

.btn.secondary {
    background-color: #95a5a6;
    color: white;
}

.btn.secondary:hover {
    background-color: #7f8c8d;
}

/* Results Section */
.results-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.map-container {
    height: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.places-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.place-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.place-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.place-card-content {
    padding: 15px;
}

.place-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.place-card p {
    color: #7f8c8d;
    margin-bottom: 5px;
}

.place-card .rating {
    color: #f39c12;
    font-weight: bold;
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Styles */
.message {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
    border-left: 4px solid;
}

.error-message {
    background-color: #ffeaea;
    color: #d63031;
    border-left-color: #d63031;
}

.success-message {
    background-color: #eafaf1;
    color: #00b894;
    border-left-color: #00b894;
}

.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.info-message {
    background-color: #e8f4fd;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Input Validation Styles */
.input-valid {
    border-color: #00b894 !important;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}

.input-invalid {
    border-color: #d63031 !important;
    box-shadow: 0 0 0 2px rgba(214, 48, 49, 0.2);
}

.input-error {
    color: #d63031;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background-color: inherit;
}

/* Enhanced Form Styles */
.form-group {
    position: relative;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Popular Locations Styles */
.popular-locations-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.popular-locations-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.popular-locations-section p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 14px;
}

.popular-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.location-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-btn:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.location-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.location-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.location-coords {
    font-family: 'Courier New', monospace;
    color: #6c757d;
    font-size: 12px;
}

.location-country {
    color: #95a5a6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* No Results Message */
.no-results {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

/* Utilities */
.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .places-list {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .message {
        margin: 8px 0;
        padding: 10px 12px;
    }
    
    .popular-locations-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .location-btn {
        padding: 10px 12px;
    }
    
    .popular-locations-section {
        margin-top: 25px;
        padding-top: 20px;
    }
} 