/* Store Locator Vanilla PHP - style-standalone.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #666;
}

#store-locator-app {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Controls Section */
.locator-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.control-row:last-child {
    margin-bottom: 0;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 14px;
    background: white;
}
.control-group input:focus,
.control-group select:focus {
    outline-style: solid;
    outline-color: #7FC0C6;
    outline-width: 1px;
    border-style: solid;
    border-color: #7FC0C6;
}
.control-group button {
    width: 100%;
    padding: 12px;
    background: #0F828D;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.control-group button:hover {
    background: #1d93ab;
}

.control-group button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}

.filter-btn:hover {
    background: #e7f3ff;
}

.filter-btn.active:hover {
    background: #0056b3;
}

/* Main Content */
.locator-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    min-height: 600px;
}

/* Map */
#map {
    width: 100%;
    height: 700px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Results List */
.results-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.results-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: #333;
}

.results-search {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.results-search input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.results-search input:focus {
    outline: none;
    border-color: #007bff;
}

.results-list {
    max-height: 645px;
    overflow-y: auto;
    padding: 10px;
}

.store-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.store-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.store-card.highlighted {
    border-color: #007bff;
    background: #f0f8ff;
}

.store-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.store-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.store-type.showroom {
    background: #0F828D;
    color: white;
}

.store-type.installer {
    background: #007bff;
    color: white;
}

.store-distance {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.store-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.store-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 0px;
    padding-top: 0px;
    border-top: 1px solid #eee;
}

.store-contact a {
    color: #00828E;
    text-decoration: none;
    font-size: 13px;
}

.store-contact a:hover {
    text-decoration: none;
}

.store-units {
    background: #f8f9fa;
    padding: 8px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Info Window Styles */
.info-window {
    max-width: 300px;
}

.info-window .store-name {
    font-size: 16px;
    margin-bottom: 8px;
}

.info-window .store-type {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .locator-content {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 400px;
        order: 2;
    }
    
    .results-container {
        order: 1;
    }
    
    .results-list {
        max-height: 400px;
    }
}

@media (max-width: 640px) {
    .page-container {
        padding: 10px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    .control-row {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    #store-locator-app {
        padding: 10px;
    }
}

.results-search {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.results-search input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.results-search input:focus {
    outline: none;
    border-color: #007bff;
}

@media screen and (max-width: 767px) {
    #store-locator-app .control-row:first-child .control-group:nth-of-type(2) label,
    #store-locator-app .control-row:first-child .control-group:nth-of-type(3) label,
    #store-locator-app .control-row:first-child .control-group:nth-of-type(4) label{
        display: none;
    }
}