* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f9f7f4;
    color: #4a3728;
    line-height: 1.5;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.content-section {
    margin-bottom: 40px;
}

.section-title {
    color: #8b5e3c;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

h1 {
    color: #4a3728;
    font-size: 28px;
    margin-bottom: 15px;
}

.description {
    color: #6b4e3e;
    font-size: 14px;
    line-height: 1.6;
    max-width: 900px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.map-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-left: -30px;
}

.locations-panel {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 500px;
    overflow-y: auto;
    margin-left: -20px;
    position: relative;
}

.location-item {
    padding: 20px;
    border-bottom: 1px solid #e6ddd4;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-item:hover {
    background-color: #f9f7f4;
}

.location-item.active {
    background-color: #f9f7f4;
    border-left: 4px solid #8b5e3c;
}

.location-item h3 {
    color: #4a3728;
    font-size: 16px;
    margin-bottom: 10px;
}

.location-item p {
    color: #6b4e3e;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.location-details {
    font-size: 13px;
    color: #6b4e3e;
    display: grid;
    gap: 6px;
}

.location-details p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.directions-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #8b5e3c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.directions-link:hover {
    background-color: #6b4e3e;
    text-decoration: none;
}

.map-section {
    position: relative;
    flex: 1;
}

.top-row {
    display: flex;
    gap: 20px;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
    margin-left: -30px;
}

.contact-box {
    flex: 0.85;
    background: transparent;
    border-radius: 8px;
    padding: 25px;
}

.contact-box h2 {
    color: #4a3728;
    font-size: 22px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.contact-box p {
    color: #4a3728;
    font-size: 14px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.network-description {
    color: #4a3728;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.locate-box {
    width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-left: 100px;
}

.box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6ddd4;
}

.box-title h2 {
    color: #4a3728;
    font-size: 16px;
}

.location-marker {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b5e3c'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    color: #6b4e3e;
    font-size: 12px;
    font-weight: 600;
}

.filter-row {
    display: block;
    margin-bottom: 10px;
}

input[type="text"],
select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d4c5b9;
    border-radius: 4px;
    font-size: 13px;
    color: #4a3728;
    background: #fff;
    box-sizing: border-box;
}

input[type="text"]:focus,
select:focus {
    border-color: #8b5e3c;
    outline: none;
}

.search-btn {
    background: #8b5e3c;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: #6b4e3e;
}

.natural-search-btn {
    background: #8b5e3c;
    margin-top: 8px;
}

.natural-search-btn:hover {
    background: #6b4e3e;
}

/* Radius information styling */
.radius-info {
    padding: 8px 12px;
    background: #fff3e0;
    border: 2px solid #8b5e3c;
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
}

.radius-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #8b5e3c;
    border-radius: 2px 0 0 2px;
}

.radius-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b5e3c;
    font-size: 13px;
    font-weight: 500;
    margin-left: 4px;
}

.radius-icon {
    font-size: 16px;
    color: #6b4e3e;
}

.map-box {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Map info window styles */
.map-popup {
    padding: 15px;
    max-width: 250px;
}

.map-popup h4 {
    color: #4a3728;
    font-size: 14px;
    margin-bottom: 8px;
}

.map-popup p {
    color: #6b4e3e;
    font-size: 12px;
    margin-bottom: 5px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9f7f4;
}

::-webkit-scrollbar-thumb {
    background: #8b5e3c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b4e3e;
}

.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(249, 247, 244, 0.9);
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #d4c5b9;
    border-top: 4px solid #8b5e3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-container::after {
    content: 'Searching...';
    position: absolute;
    top: calc(50% + 30px);
    color: #6b4e3e;
    font-size: 14px;
    font-weight: 500;
}

.no-locations {
    padding: 20px;
    text-align: center;
    color: #6b4e3e;
    font-size: 14px;
    font-style: italic;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .page-wrapper {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        gap: 15px;
        margin-top: 15px;
    }

    .top-row {
        flex-direction: column;
        margin: 0;
        gap: 15px;
        width: 100%;
    }

    .contact-box {
        flex: 1;
        padding: 15px;
        width: 100%;
    }

    .locate-box {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .map-container {
        flex-direction: column;
        margin: 0;
        gap: 15px;
        width: 100%;
    }

    .locations-panel {
        flex: none;
        width: 100%;
        height: 300px;
        margin: 0;
        box-sizing: border-box;
    }

    .map-section {
        width: 100%;
        height: 400px;
    }

    .map-box {
        height: 400px !important;
        width: 100% !important;
    }

    .filter-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-row .input-group {
        width: 100%;
    }
    
    .filter-row select {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
        border: 1px solid #d4c5b9;
        border-radius: 4px;
        font-size: 13px;
        background: #fff;
    }
    
    .filter-row select:focus {
        outline: none;
        border-color: #8b5e3c;
    }

    .network-description {
        font-size: 13px;
        padding: 0;
    }

    .section-title {
        font-size: 20px;
    }

    .location-item {
        padding: 15px;
    }

    input[type="text"],
    select {
        width: 100%;
        padding: 10px;
        font-size: 16px; /* Better for mobile touch */
    }

    .search-btn {
        padding: 12px;
        width: 100%;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .page-wrapper {
        padding: 10px;
    }

    .main-content {
        gap: 10px;
    }

    .locations-panel {
        height: 250px;
    }

    .map-section {
        height: 300px;
    }

    .map-box {
        height: 300px !important;
    }

    .section-title {
        font-size: 18px;
    }

    .network-description {
        font-size: 12px;
        line-height: 1.4;
    }

    .location-item {
        padding: 12px;
    }

    .location-item h3 {
        font-size: 14px;
    }

    .location-item p,
    .location-details {
        font-size: 12px;
    }

    .box-title h2 {
        font-size: 16px;
    }

    .input-group label {
        font-size: 14px;
    }

    .directions-link {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
} 