/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Footer styles */
footer {
    background-color: #2c3e50; /* Navy blue */
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-section ul li a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive footer styles */
@media (max-width: 768px) {
    .footer-sections {
        gap: 1.5rem;
    }
    
    .footer-section {
        min-width: 150px;
        flex: 0 0 calc(50% - 1.5rem);
    }
}


/* Navigation styles */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}


@media (max-width: 480px) {
    .footer-sections {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        flex: 1 1 100%;
    }
    
    .footer-section h3::after {
        width: 30px;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

hr.solid {
    border-top: 1px solid #ddd;
    margin-bottom: 2rem;
}

/* Map container */
#map {
    width: 90%;
    height: 500px;
    margin: 0 auto 2rem;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-window-content {
  font-family: Arial, sans-serif;
  max-width: 250px;
}

.info-window-content h3 {
  margin-top: 0;
  color: #1a73e8;
  font-size: 16px;
}

.info-window-content p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.info-window-content small {
  color: #666;
  font-size: 12px;
}
/* Location list styles */
.location-list {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 0 auto 3rem;
    width: 90%;
}

.list-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
    color: #2c3e50;
    text-align: center;
}

.list-items {
    list-style: none;
}

.list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.item-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 15px;
    font-size: 0.9rem;
}

.item-name {
    font-size: 1rem;
    color: #333;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        width: 100%;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding-top: 1rem;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Adjust map and list width for mobile */
    #map,
    .location-list {
        width: 95%;
    }
    
    #map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    #map {
        height: 300px;
    }
    
    .item-number {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.8rem;
        margin-right: 10px;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
}

/* Filter controls container */
.filter-controls {
    width: 90%;
    margin: 0 auto 2rem;
    padding: 1.2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Fieldset styling */
.filter-group {
    border: none;
    padding: 0;
    margin: 0;
}

/* Legend styling */
.filter-legend {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0;
    width: 100%;
}

/* Options container */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Individual option styling */
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

/* Hide default checkbox */
.filter-checkbox {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Custom checkbox */
.filter-option .filter-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}

/* Checkmark (hidden by default) */
.filter-option .filter-label::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

/* Checkbox checked state */
.filter-checkbox:checked ~ .filter-label::before {
    background-color: #3498db;
    border-color: #3498db;
}

.filter-checkbox:checked ~ .filter-label::after {
    opacity: 1;
}

/* Hover state */
.filter-option:hover .filter-label::before {
    border-color: #2980b9;
}

/* Focus state */
.filter-checkbox:focus ~ .filter-label::before {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Label text styling */
.filter-label {
    font-size: 0.95rem;
    color: #333;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-controls {
        width: 95%;
        padding: 1rem;
    }
    
    .filter-options {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-legend {
        font-size: 0.9rem;
    }
    
    .filter-label {
        font-size: 0.9rem;
    }
}