/* Base Styles */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e7f1ff;
    --accent: #ffcc00;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: static;
    top: 0;
    z-index: 1000;
}

.header-left {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
h1 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    font-size: 2rem;
}
nav a:hover::after {
    width: 100%;
}

.logo-divider {
    height: 30px;
    width: 2px;
    background: rgba(255,255,255,0.5);
}

/* Rest of your existing CSS remains the same */
/* Button Styles */
button {
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
}


#find-me-button {
    padding: 12px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    font-size: 16px;
}

#find-me-button:hover {
    background-color: #5a6268;
}

/* Form Styles */
form#address-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#address-input, #find-me-button, #search-button {
    height: 48px;
    box-sizing: border-box;
}

#address-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    font-size: 16px;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    transition: border-color 0.3s;
}

#address-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Main Content Styles */
main {
    padding: 20px;
    text-align: center;
}

.color-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.legend-pin {
    width: 20px;
    height: 34px;
    background-size: contain;
    background-repeat: no-repeat;
}

#container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

#map {
    flex: 2;
    height: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#results {
    flex: 1;
    max-width: 30%;
    padding: 10px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-y: auto;
    height: 500px;
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Location Layer Styles */
.location-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.location-layer.active {
    transform: translateY(0);
}

.layer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #ff0000;
}

.layer-content {
    text-align: center;
    padding: 10px;
}

/* Autocomplete Styles */
.pac-container {
    z-index: 10000 !important;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-top: 3px;
}

.pac-item {
    padding: 4px 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.3;
    min-height: 0;
}

.pac-item:hover {
    background-color: #f8f8f8;
}

.pac-item-query {
    font-size: 13px;
    color: #333;
    padding-bottom: 2px;
}

.pac-icon {
    display: none;
    margin: 0;
    padding: 0;
}

.pac-matched {
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        position: static;
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    header img.logo {
        max-width: 80px;
    }
    
    .logo-divider {
        display: none;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    

    
    #container {
        flex-direction: column;
    }
    
    #results {
        max-width: 100%;
        order: 2;
        height: auto;
        max-height: 40vh;
    }
    
    #map {
        height: 60vh !important;
        order: 1;
        width: 100%;
    }
    
    form#address-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    #address-input, #find-me-button, #search-button {
        width: 100%;
        max-width: 100%;
    }
    
    .location-card {
        padding: 10px;
        margin: 10px 0;
    }
    
    button, .location-card {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .header-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
    
    #address-input {
        font-size: 14px;
    }
    
    #find-me-button, #search-button {
        padding: 10px;
        font-size: 14px;
    }
    
    .legend-item {
        font-size: 12px;
    }
    
    .location-layer {
        padding: 10px;
    }
}