/* Base styles - these work with styles.css */
:root {
    /* Use the same color scheme as the main site */
    --primary-color: #FFFFFF;
    --secondary-color-light: #FF3333;
    --secondary-color-dark: #CC0000;
    --accent-color: #d0a84a;
    --background-color: #000000;
}

/* Promo banner styles */
.promo-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-banner, .bottom-banner {
    width: 100%;
    height: auto; /* Changed from fixed height to auto */
    max-height: 300px; /* Added a max-height instead of fixed height */
    overflow: hidden;
}

/* Main content area - Modified for correct layout */
.main-content {
    display: flex;
    flex: 1;
    flex-direction: row; /* Ensure horizontal layout */
    gap: 24px;
    padding: 24px;
    min-height: calc(100vh - 260px);
    align-items: center; /* Center items vertically */
}

/* Location images container */
.location-images {
    display: flex;
    gap: 24px;
    flex: 3; /* Increased from 2 to 3 to give more space to location images */
}

.location {
    flex: 1;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    background-color: var(--background-color);
    border: 1px solid var(--accent-color);
}

.location:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(208, 168, 74, 0.3);
}

.location img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right banner - Modified positioning */
.right-banner {
    flex: 1;
    max-width: 250px; /* Reduced from 280px to make it more proportional */
    overflow: hidden;
    box-shadow: -2px 0 8px rgba(208, 168, 74, 0.2);
    order: 3; /* Ensures it stays on the right */
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    display: flex; /* Added to make the banner a flex container */
    flex-direction: column; /* Stack children vertically */
    height: 80%; /* Reduced from 100% to create more vertical balance */
    align-self: center; /* Center the banner vertically */
}

.right-banner img {
    width: 100%;
    height: 100%; /* Full height of the parent */
    object-fit: cover; /* Cover the entire space */
    flex: 1; /* Allow it to grow and take available space */
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .right-banner {
        max-width: 220px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 16px;
        gap: 16px;
    }
    
    .right-banner {
        max-width: 200px;
        height: 75%; /* Adjust the height for tablet */
    }
    
    .top-banner, .bottom-banner {
        max-height: 250px; /* Changed from fixed height to max-height */
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 12px;
        align-items: stretch; /* Reset vertical alignment on mobile */
    }
    
    .location-images {
        flex-direction: column;
    }
    
    .right-banner {
        max-width: 100%;
        min-height: 150px; /* Changed from fixed height to min-height */
        max-height: none; /* Remove max-height limit on mobile */
        order: 3; /* Keep it at the bottom on mobile */
        align-self: stretch; /* Full width on mobile */
        margin-top: 16px; /* Add some space above the banner */
        background-color: black; /* Add a background color */
        border-radius: 8px; /* Keep consistent border radius */
        padding: 0; /* Remove padding */
        display: block; /* Change display from flex to block for mobile */
    }
    
    /* Make the image inside the right banner fill the space */
    .right-banner img {
        width: 100%;
        height: auto;
        min-height: 150px; /* Match the min-height of the container */
        object-fit: cover;
        display: block;
    }
    
    /* Style for a special mobile banner */
    .right-banner.has-mobile-fallback {
        background-color: var(--accent-color, #d0a84a);
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px;
    }
    
    /* If no image is available, show a promotional message */
    .right-banner.has-mobile-fallback:empty::before {
        content: "Special Promotion!";
        font-size: 24px;
        font-weight: bold;
        color: black;
        text-align: center;
        display: block;
        margin-bottom: 10px;
    }
    
    .right-banner.has-mobile-fallback:empty::after {
        content: "Visit us for the latest styles and cuts!";
        font-size: 16px;
        color: black;
        text-align: center;
        display: block;
    }
    
    .location {
        height: 300px;
    }
    
    .top-banner, .bottom-banner {
        max-height: 200px; /* Changed from fixed height to max-height */
    }
}

/* Smooth transitions */
img {
    transition: transform 0.3s ease;
}

/* Hover effects */
.top-banner img:hover,
.bottom-banner img:hover,
.right-banner img:hover {
    transform: scale(1.02);
}

/* Location overlay styles */
.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--accent-color);
}

.location:hover .location-overlay {
    transform: translateY(0);
}

.location-overlay h2 {
    margin: 0;
    color: var(--accent-color);
}

.location-overlay p {
    margin: 0;
}

.map-link, .gallery-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.map-link:hover, .gallery-link:hover {
    background-color: #fff;
}