/* Combined CSS file for Dönerfreund website */

/* ===== GENERAL STYLES ===== */
body {
    background-color: #f4f4f4; /* Light background for contrast */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* ===== HEADER STYLES ===== */
.sticky-header_header_page {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    /* Force hardware acceleration to prevent flickering */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.header-container_header_page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.logo_header_page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 40px; /* Fixed height */
    width: 160px; /* Fixed width */
    background-color: white; /* Background color to prevent flickering */
    overflow: hidden; /* Prevent content from spilling out */
}

.logo_header_page svg {
    display: block; /* Prevent extra space below */
    width: 160px; /* Fixed width */
    height: 40px; /* Fixed height */
}

.search-box_header_page {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box_header_page form {
    display: flex;
    width: 100%;
}

.search-box_header_page input {
    flex-grow: 1;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box_header_page input:focus {
    border-color: #FF8000;
}

.search-box_header_page button {
    padding: 8px 16px;
    background: #FF8000;
    border: none;
    border-radius: 0 5px 5px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box_header_page button:hover {
    background: #FF4D00;
}

.icons_header_page {
    display: flex;
}

.icon_header_page {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    border-radius: 5px;
    background-color: #ddd;
    cursor: pointer;
}

/* ===== INDEX PAGE STYLES ===== */
.home-container-new {
    max-width: 1200px; /* Max width for larger screens */
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff; /* White background for content area */
}

.hero-section-new {
    width: 100%;
    height: auto;
    min-height: 300px;
    background-color: #FF8000; /* Brand color fallback */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.hero-map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8; /* More visible map */
}

.hero-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2; /* Above the map */
    background-color: rgba(255, 128, 0, 0.15); /* Extremely transparent background */
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(1px); /* Very light blur effect */
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for definition */
}

.hero-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    max-width: 100%;
}

.hero-images .image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-images .image-container:last-child {
    margin-bottom: 0;
}

.hero-logo-image {
    height: auto;
    width: 150px;
    max-width: 100%;
    margin-bottom: 15px;
}

.hero-logo-text {
    height: auto;
    width: 250px;
    max-width: 100%;
}

.hero-section-new h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white; /* Ensure text is white for contrast */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); /* Stronger text shadow for better readability */
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
}

.hero-description p {
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Text shadow for better readability */
}

.location-status {
    margin-top: 15px;
    font-size: 0.9em;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Text shadow for better readability */
}

.location-status button {
    background-color: white;
    color: #FF8000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

.location-status button:hover {
    background-color: #f0f0f0;
}

.content-section-new {
    padding: 20px 15px;
    border-bottom: 5px solid #f4f4f4; /* Separator */
}

.content-section-new:last-child {
    border-bottom: none;
}

.content-section-new h2 {
    font-size: 1.3em;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #FF8000;
    display: inline-block; /* Make border only under text */
}

.cities-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.city-card-new {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.city-card-new:hover {
    transform: translateY(-2px);
}

.city-card-new a {
    display: flex;
    flex-direction: column;
    padding: 15px;
    color: inherit;
    text-decoration: none;
}

.city-name-new {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.doener-count-new {
    color: #FF8000;
    font-size: 0.9em;
    font-weight: 500;
}

.reviews-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-item-new {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.review-item-new:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-item-new a {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    text-decoration: none;
    color: inherit;
    gap: 15px; /* Space between image and info */
}

.review-image-container {
    flex-shrink: 0; /* Prevent image from shrinking */
    width: 80px;  /* Fixed width */
    height: 80px; /* Fixed height */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder bg */
}

.review-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image nicely */
}

.review-info {
    flex-grow: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    gap: 4px; /* Small gap between info lines */
}

.review-info h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.review-rating {
    font-size: 1em;
    color: #FF8000; /* Star color */
}

.review-text {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
    margin-top: 8px;
}

.review-author {
    font-size: 0.8em;
    color: #777;
    text-align: right;
    margin-top: 4px;
}

.review-address {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 4px;
}

.review-hours {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 6px;
}

.review-count {
    font-size: 0.85em;
    color: #666;
    margin-left: 5px;
}

.no-content-message {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 10px 0;
}

.no-content-message p {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Fallback image styling */
.fallback-image {
    object-fit: contain;
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 5px;
    transition: transform 0.3s ease;
}

.fallback-image:hover {
    transform: scale(1.02);
}

/* LQIP (Low-Quality Image Placeholder) styling */
.image-container {
    position: relative;
    overflow: hidden;
}

.lqip-blur {
    filter: blur(8px);
    transform: scale(1.05);
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.main-image.loaded {
    opacity: 1;
}

.main-image.loaded + .lqip-blur {
    opacity: 0;
}

/* ===== FOOTER STYLES ===== */
.footer_page {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

/* A-Z Navigation */
.az-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.letter-link {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    text-decoration: none;
    color: #495057;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.letter-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.letter-link.active {
    background-color: #007bff;
    color: white;
}

/* Footer Sections */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
}

.footer-section h3 {
    color: #343a40;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
/* For tablets and larger screens */
@media (min-width: 768px) {
    .hero-images {
        flex-direction: row;
        justify-content: center;
    }

    .hero-images .image-container {
        margin-bottom: 0;
        margin-right: 20px;
    }

    .hero-images .image-container:last-child {
        margin-right: 0;
    }

    .hero-logo-image {
        margin-bottom: 0;
    }

    .hero-section-new {
        height: 400px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-section-new h1 {
        font-size: 2.5em;
    }

    .content-section-new h2 {
        font-size: 1.5em;
    }

    .cities-grid-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .reviews-list-new {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .review-item-new {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
    }

    .footer-section {
        min-width: 150px;
    }
    
    .az-nav {
        gap: 0.25rem;
    }
    
    .letter-link {
        width: 1.75rem;
        height: 1.75rem;
        line-height: 1.75rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .cities-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-list-new {
        grid-template-columns: repeat(3, 1fr);
    }
}
