/* 
 * D&H Auto Works - Location Page Stylesheet
 * Author: Roo
 * Version: 1.0
 */

/* ===== Page Hero Section ===== */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/location-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

/* ===== Map Section ===== */
.map-section {
    height: 400px;
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

/* ===== Location Details Section ===== */
.location-details {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.location-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.address-card,
.hours-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.address-card h2,
.hours-card h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.address-line {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.contact-info {
    margin: var(--spacing-md) 0;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Hours Card Styling */
.hours-container {
    position: relative;
}

.hours-status {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
}

.hours-status.open {
    background-color: var(--success-color);
    color: white;
}

.hours-status.closed {
    background-color: var(--secondary-color);
    color: white;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

.hours-table td {
    padding: var(--spacing-sm) 0;
}

.hours-table td:first-child {
    font-weight: 600;
    width: 40%;
}

.hours-table tr.current-day {
    background-color: rgba(0, 86, 179, 0.1);
    font-weight: 700;
}

.hours-note {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

/* ===== Directions Section ===== */
.directions-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-color);
}

.directions-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.directions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.directions-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.directions-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.directions-list {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.directions-list li {
    margin-bottom: var(--spacing-sm);
}

.directions-time {
    font-style: italic;
    color: var(--gray-color);
}

/* ===== Service Area Section ===== */
.service-area {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.service-area h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.service-area-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    align-items: center;
}

.service-area-text {
    flex: 1;
    min-width: 300px;
}

.service-area-list {
    columns: 2;
    column-gap: var(--spacing-lg);
    list-style-type: disc;
    padding-left: var(--spacing-lg);
    margin: var(--spacing-md) 0;
}

.service-area-map {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}

/* ===== Facility Info Section ===== */
.facility-info {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-color);
}

.facility-info h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.facility-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.facility-image {
    flex: 1;
    min-width: 300px;
}

.facility-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.facility-details {
    flex: 1;
    min-width: 300px;
}

.facility-details h3,
.parking-info h3,
.accessibility-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.amenities-list {
    list-style-type: none;
    padding: 0;
}

.amenities-list li {
    margin-bottom: var(--spacing-md);
    padding-left: 30px;
    position: relative;
}

.amenities-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.parking-info,
.accessibility-info {
    margin-top: var(--spacing-lg);
    background-color: white;
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accessibility-info ul {
    list-style-type: disc;
    padding-left: var(--spacing-lg);
    margin: var(--spacing-md) 0;
}

/* ===== Nearby Section ===== */
.nearby-section {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.nearby-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.nearby-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.nearby-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: var(--light-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nearby-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.nearby-card ul {
    list-style-type: none;
    padding: 0;
}

.nearby-card li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #eee;
}

.nearby-card li:last-child {
    border-bottom: none;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.cta-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background-color: var(--light-color);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .action-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .service-area-list {
        columns: 1;
    }
    
    .map-section {
        height: 300px;
    }
    
    .service-area-map {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .map-section {
        height: 250px;
    }
}