/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Science+Gothic:slnt,wdth,CTRS@0,125,0&display=swap');


/* Google DeepMind Inspired Design */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* DeepMind Color Palette */
    --deep-blue: #1a73e8;
    --deep-blue-dark: #1967d2;
    --google-gray-50: #f8f9fa;
    --google-gray-100: #f1f3f4;
    --google-gray-200: #e8eaed;
    --google-gray-300: #dadce0;
    --google-gray-400: #bdc1c6;
    --google-gray-700: #5f6368;
    --google-gray-900: #202124;
    --white: #ffffff;
    --shadow-subtle: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-elevated: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --radius: 8px;
}


body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--google-gray-900);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

/* Minimal Header - Google Style */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--google-gray-200);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header h1 {
    font-family: "Science Gothic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 125,
        "CTRS" 0;
    font-size: 22px;
    color: var(--google-gray-900);
    letter-spacing: -0.3px;
    text-transform: uppercase; /* For that tech/sci-fi feel */
}

/* Google-style Search */
.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box input {
    padding: 12px 16px;
    border: 1px solid var(--google-gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 14px;
    font-weight: 400;
    width: 320px;
    transition: all 0.2s ease;
    color: var(--google-gray-900);
}

.search-box input:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.search-box input::placeholder {
    color: var(--google-gray-400);
}

.search-box button {
    padding: 12px 20px;
    background: var(--deep-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: var(--deep-blue-dark);
    box-shadow: var(--shadow-subtle);
}

/* Clean Main Layout */
.main-container {
    display: flex;
    height: calc(100vh - 73px);
    background: var(--white);
}

/* Google-style Sidebar */
.sidebar {
    width: 360px;
    background: var(--white);
    border-right: 1px solid var(--google-gray-200);
    padding: 24px;
    overflow-y: auto;
}

/* Minimal Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-primary, .btn-secondary {
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--white);
    border: 1px solid var(--google-gray-300);
    color: var(--google-gray-700);
}

.btn-primary {
    background: var(--deep-blue);
    color: var(--white);
    border-color: var(--deep-blue);
}

.btn-primary:hover {
    background: var(--deep-blue-dark);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: var(--google-gray-50);
    border-color: var(--google-gray-400);
}

/* Clean Filters */
.filters {
    background: var(--google-gray-50);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--google-gray-200);
}

.filters h3 {
    margin-bottom: 16px;
    color: var(--google-gray-900);
    font-weight: 500;
    font-size: 16px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--google-gray-700);
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--google-gray-300);
    border-radius: 6px;
    background: var(--white);
    font-size: 14px;
    color: var(--google-gray-900);
    transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Minimal Amenities List */
.amenities-list h3 {
    margin-bottom: 16px;
    color: var(--google-gray-900);
    font-weight: 500;
    font-size: 16px;
}

#amenities-count {
    color: var(--google-gray-400);
    font-size: 0.9em;
    font-weight: 400;
}

.amenity-item {
    background: var(--white);
    padding: 16px;
    margin-bottom: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--google-gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.amenity-item.accessible { 
    border-left: 4px solid #0a832b90;
    background: var(--white);
}

.amenity-item.not-accessible { 
    border-left: 4px solid #a41204;
    background: var(--white);
}

.amenity-item:hover {
    background: var(--google-gray-50);
    border-color: var(--google-gray-300);
    box-shadow: var(--shadow-subtle);
}

.amenity-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--google-gray-900);
    font-size: 14px;
}

.amenity-details {
    font-size: 0.8em;
    color: var(--google-gray-700);
}

/* Clean Map */
#map {
    flex: 1;
    height: 100%;
    background: var(--google-gray-50);
}

/* Google-style Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--google-gray-200);
}

.modal-content h3 {
    margin-bottom: 24px;
    color: var(--google-gray-900);
    font-weight: 500;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--google-gray-700);
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--google-gray-300);
    border-radius: 6px;
    background: var(--white);
    font-size: 14px;
    color: var(--google-gray-900);
    transition: all 0.2s ease;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-actions button[type="submit"] {
    background: var(--deep-blue);
    color: var(--white);
}

.form-actions button[type="submit"]:hover {
    background: var(--deep-blue-dark);
}

.form-actions button[type="button"] {
    background: var(--google-gray-100);
    color: var(--google-gray-700);
    border: 1px solid var(--google-gray-300);
}

.form-actions button[type="button"]:hover {
    background: var(--google-gray-200);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--deep-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error State */
.error-message {
    background: #fce8e6;
    color: #a41204;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    border: 1px solid #f5b4ae;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 40vh;
        padding: 20px;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--google-gray-100);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--google-gray-400);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--google-gray-500);
}

/* Leaflet Controls - Google Style */
.leaflet-control-zoom a {
    background: var(--white) !important;
    border: 1px solid var(--google-gray-300) !important;
    color: var(--google-gray-700) !important;
    font-weight: 500;
}

.leaflet-control-zoom a:hover {
    background: var(--google-gray-50) !important;
}

.high-contrast {
    filter: contrast(1.5) brightness(1.2);
}

.high-contrast .amenity-item {
    border-width: 2px;
}