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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #64b5f6, #42a5f5, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
    color: #b0bec5;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Search section */
.search-section {
    background: linear-gradient(145deg, #1e1e2e, #2d2d3f);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    border: 1px solid #3a3a4a;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #2a2a3a;
    border-radius: 15px;
    padding: 5px;
    border: 2px solid #3a3a4a;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #64b5f6;
    background: #1e1e2e;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.search-input-group i {
    color: #64b5f6;
    margin-left: 15px;
    font-size: 1.2rem;
}

#locationInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px;
    font-size: 1.1rem;
    outline: none;
    color: #e0e0e0;
}

#locationInput::placeholder {
    color: #9e9e9e;
}

.location-btn {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 15px;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.location-btn:hover {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.location-btn:disabled {
    background: #424242;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Search options */
.search-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.keyword-search {
    width: 100%;
}

.keyword-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #3a3a4a;
    border-radius: 12px;
    background: #2a2a3a;
    font-size: 1rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.keyword-input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
    background: #1e1e2e;
}

.keyword-input::placeholder {
    color: #9e9e9e;
}

/* Autocomplete styles */
.pac-container {
    border-radius: 12px;
    border: 2px solid #667eea;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pac-item {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-selected {
    background-color: #667eea !important;
    color: white !important;
}

.pac-item-selected:hover {
    background-color: #5a6fd8 !important;
}

.pac-icon {
    margin-right: 10px;
    color: #667eea;
}

.pac-item-selected .pac-icon {
    color: white;
}

.pac-matched {
    font-weight: 600;
    color: #667eea;
}

.pac-item-selected .pac-matched {
    color: white;
}

.radius-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 2px solid #3a3a4a;
    border-radius: 12px;
    background: #2a2a3a;
    font-size: 1rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radius-select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
    background: #1e1e2e;
}

.search-btn {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 50%, #1976d2 100%);
}

.search-btn:active {
    transform: translateY(-1px);
}

/* Results section */
.results-section {
    background: linear-gradient(145deg, #1e1e2e, #2d2d3f);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    flex: 1;
    border: 1px solid #3a3a4a;
}

/* Welcome message */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #b0bec5;
}

.welcome-message i {
    font-size: 3rem;
    color: #64b5f6;
    margin-bottom: 20px;
}

.welcome-message h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.welcome-message p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #9e9e9e;
}

.usage-tips {
    background: linear-gradient(145deg, #2a2a3a, #3a3a4a);
    border: 1px solid #4a4a5a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.usage-tips h4 {
    color: #64b5f6;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-tips h4 i {
    color: #ffd54f;
}

.usage-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-tips li {
    color: #e0e0e0;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.usage-tips li:before {
    content: "•";
    color: #64b5f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.usage-tips li:last-child {
    margin-bottom: 0;
}

.usage-tips strong {
    color: #81c784;
}

.quick-examples {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.example-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.example-section h4 {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.example-section .example-tag {
    display: inline-block;
}

.example-tag {
    background: #2a2a3a;
    color: #64b5f6;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #3a3a4a;
    font-size: 0.9rem;
}

.example-tag:hover {
    background: #64b5f6;
    color: white;
    transform: translateY(-2px);
    border-color: #64b5f6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #b0bec5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2a2a3a;
    border-top: 4px solid #64b5f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Error message */
.error-message {
    background: linear-gradient(145deg, #2d1b1b, #3d2b2b);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border: 1px solid #4a3a3a;
}

.error-message i {
    font-size: 1.5rem;
}

/* Sort section */
.sort-section {
    background: linear-gradient(145deg, #2a2a3a, #3a3a4a);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #4a4a5a;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-container label {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1rem;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #3a3a4a;
    border-radius: 8px;
    background: #1e1e2e;
    font-size: 0.95rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
    background: #2a2a3a;
}

/* Results */
.results-container {
    display: grid;
    gap: 20px;
}

.place-card {
    background: linear-gradient(145deg, #2a2a3a, #3a3a4a);
    border: 1px solid #4a4a5a;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.place-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: #64b5f6;
    background: linear-gradient(145deg, #3a3a4a, #4a4a5a);
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.place-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.place-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0bec5;
    font-size: 0.9rem;
}

.rating-stars {
    color: #ffc107;
}

.review-count {
    color: #9e9e9e;
    font-size: 0.85rem;
}

.place-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-open {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
    color: #a5d6a7;
}

.status-closed {
    background: linear-gradient(145deg, #b71c1c, #c62828);
    color: #ef9a9a;
}

.place-address {
    color: #b0bec5;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.place-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9e9e9e;
}

.place-distance {
    font-weight: 500;
    color: #64b5f6;
}

.distance-within-radius {
    color: #4caf50;
}

.distance-outside-radius {
    color: #f44336;
}

/* Map container */
.map-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(calc(100% - 50px));
    transition: transform 0.3s ease;
    z-index: 1000;
}

.map-container.active {
    transform: translateY(0);
}

#map {
    width: 100%;
    height: 100%;
}

.toggle-map-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(145deg, #2a2a3a, #3a3a4a);
    border: 1px solid #4a4a5a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #64b5f6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.toggle-map-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #3a3a4a, #4a4a5a);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1e1e2e, #2d2d3f);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid #3a3a4a;
    color: #e0e0e0;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #9e9e9e;
    transition: color 0.3s ease;
}

.close:hover {
    color: #64b5f6;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-section, .results-section {
        padding: 20px;
    }
    
    .search-options {
        flex-direction: column;
    }
    
    .radius-select {
        min-width: auto;
    }
    
    .sort-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sort-select {
        min-width: 100%;
    }
    
    .map-container {
        width: 250px;
        height: 150px;
        bottom: 15px;
        right: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .quick-examples {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .search-input-group {
        flex-direction: row;
        gap: 5px;
        padding: 5px;
    }
    
    .search-input-group i {
        margin-left: 10px;
        font-size: 1rem;
    }
    
    #locationInput {
        padding: 12px 10px;
        font-size: 1rem;
    }
    
    .search-row {
        gap: 10px;
        align-items: center;
    }
    
    .radius-select {
        flex: 1;
        min-width: auto;
    }
    
    .location-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(100, 181, 246, 0.2);
        white-space: nowrap;
    }
    
    .map-container {
        width: 200px;
        height: 120px;
    }
    
    /* Mobile autocomplete adjustments */
    .pac-container {
        width: calc(100vw - 30px) !important;
        left: 15px !important;
        right: 15px !important;
    }
} 