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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Banner */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.banner {
    position: relative;
    background-color: #4a7c59;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.banner h1 {
    font-size: 2.2em;
    margin: 0;
    font-weight: 600;
}

.breadcrumb {
    padding: 10px 20px;
    background-color: #f0f0f0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        padding: 15px;
    }
    
    .banner h1 {
        font-size: 1.8em;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

section {
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 20px;
    color: #4a7c59;
}

/* State Selection */
.location-selector {
    text-align: center;
    padding: 30px 0;
}

.state-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.state-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background-color: #4a7c59;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 200px;
    cursor: pointer;
}

.state-button:hover,
.state-button.active {
    background-color: #3d6549;
    transform: translateY(-5px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.state-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.store-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* City List */
.city-list {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.city-list.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.city-button {
    display: block;
    padding: 8px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.2;
}

.city-button:hover {
    background-color: #4a7c59;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

@media screen and (max-width: 1200px) {
    .city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .city-grid {
        grid-template-columns: 1fr;
    }
    .city-button {
        padding: 10px;
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Store Listings */
.store-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.store-name {
    background-color: #4a7c59;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.5em;
}

.store-name a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.store-name a:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

.store-content {
    display: grid;
    grid-template-columns: 200px 1fr 200px 250px;
    gap: 20px;
    padding: 20px;
}

.store-image {
    flex: 1;
    margin-right: 20px;
    max-width: 300px;
}

.store-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.fallback-logo {
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    object-fit: contain !important;
}

.store-website-link {
    text-align: center;
    margin: 5px 0 0 0;
}

.store-website-link a {
    display: inline-block;
    width: 100%;
    padding: 8px 15px;
    background-color: #4a7c59;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-align: center;
}

.store-website-link a:hover {
    background-color: #3d6549;
    text-decoration: none;
}

.store-details p {
    margin-bottom: 12px;
    line-height: 1.4;
}

.store-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

.store-address {
    font-weight: 500;
    color: #333;
}

.store-map-link a {
    color: #4a7c59;
    font-size: 0.9em;
}

.store-phone a {
    color: #4a7c59;
    font-weight: 500;
}

.store-website a {
    color: #0066cc;
    word-break: break-all;
    font-size: 0.9em;
}

/* Store Hours */
.store-hours {
    margin: 0;
    padding: 0;
    border: none;
}

.store-hours h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75em;
    text-align: center;
}

.hours-table tr {
    border-bottom: 1px solid #f5f5f5;
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 6px 0;
    line-height: 1.4;
    text-align: center;
}

.hours-table .day {
    font-weight: 500;
    color: #4a7c59;
    width: 80px;
    padding-right: 15px;
    text-align: center;
}

.hours-table .hours {
    color: #555;
    padding-left: 10px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .store-content {
        grid-template-columns: 200px 1fr 180px 220px;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .store-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .store-image {
        grid-column: 1;
        grid-row: 1;
    }
    
    .store-details {
        grid-column: 2;
        grid-row: 1;
    }
    
    .store-hours {
        grid-column: 1;
        grid-row: 2;
    }
    
    .store-map {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .store-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .store-image,
    .store-details,
    .store-hours,
    .store-map {
        grid-column: 1;
    }
    
    .store-image { grid-row: 1; }
    .store-details { grid-row: 2; }
    .store-hours { grid-row: 3; }
    .store-map { grid-row: 4; }
    
    .hours-table {
        font-size: 0.8em;
    }
    
    .hours-table .day {
        width: 50px;
    }
    
    .store-image img,
    .map-container {
        height: 250px;
    }
    
    .store-image {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.map-link {
    display: inline-block;
    margin-top: 5px;
}

/* Google Ads */
.google-ad {
    margin: 30px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
}

/* Back Button */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a7c59;
    color: white;
    border-radius: 5px;
    margin-top: 20px;
}

.back-button:hover {
    background-color: #3d6549;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #4a7c59;
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: white;
    font-size: 1.1em;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.copyright {
    font-size: 0.9em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about-section {
        padding: 30px;
        margin: 40px auto;
    }

    .about-section h2 {
        font-size: 1.8em;
    }

    .about-section p {
        font-size: 1em;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

.home-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.2s ease;
}

.home-link:hover {
    opacity: 0.9;
}

.home-link h1 {
    margin: 0;
}

.about-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 60px auto;
    max-width: 900px;
}

.about-section h2 {
    color: #4a7c59;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.about-section p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section p a {
    color: #4a7c59;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-section p a:hover {
    color: #3d6549;
    text-decoration: underline;
}

.coverage-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.coverage-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.95em;
}

.coverage-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .coverage-list li {
        font-size: 0.9em;
        padding: 8px 0;
    }
}

.page-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.vertical-ad {
    width: 300px;
    min-height: 600px;
    position: sticky;
    top: 20px;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    min-width: 0;
}

@media (max-width: 1600px) {
    .vertical-ad {
        display: none;
    }
    
    .main-content {
        max-width: 1200px;
    }
}

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    border-top: 3px solid var(--primary-color);
}

.consent-banner.show {
    display: block;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.consent-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.consent-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.accept-all {
    background: var(--primary-color);
    color: white;
}

.accept-all:hover {
    background: var(--primary-color-dark);
}

.customize {
    background: #f0f0f0;
    color: #333;
}

.customize:hover {
    background: #e0e0e0;
}

.reject-all {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.reject-all:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Cookie preferences modal */
.preferences-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.preferences-modal.show {
    display: flex;
}

.preferences-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.preferences-header {
    margin-bottom: 1.5rem;
}

.preferences-section {
    margin-bottom: 1.5rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.preferences-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
} 