/* Modern Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem;
    margin-top: 4rem;
    max-width: 100%;
    box-sizing: border-box; /* Ensures padding is included in width */
}

.footer-container {
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

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

.footer-section ul li {
    margin-bottom: 0.7rem;
    /* Default font size for general list items */
    font-size: 1rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem; /* Base font size for links */
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

/* Specific style for contact info list items */
.footer-section ul.contact-infoJkp2 li {
    margin-bottom: 0.7rem;
    font-size: 1rem; /* Base font size for contact details */
    line-height: 1.5;
    /* Remove any flex properties here if you want them to stack normally by default */
}

.social-icons {
    display: flex;
    gap: 1.1rem;
    margin-top: 1.2rem;
    font-size: 1.5rem;
    justify-content: flex-start; /* Default align for desktop */
}

.social-icons a {
    color: #25d366; /* WhatsApp green */
    transition: color 0.3s;
}
.social-icons a[title="Instagram"] {
    color: #e1306c; /* Instagram pink */
}
.social-icons a[title="E-posta"] {
    color: #fff; /* Email white */
}
.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.map-containerJkp2 {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    
}
.map-containerJkp2 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Media Queries --- */

@media (max-width: 1440px) {
    .footer {
        padding: 3rem 1.5rem 1rem;
    }

    .map-containerJkp2 {
        grid-column: span 4;
        min-height: 380px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
        padding-top: 0;
    }
    
    .map-containerJkp2 iframe {
        position: static;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    /* Ensure contact-infoJkp2 li is also correctly sized at this breakpoint */
    .footer-section ul.contact-infoJkp2 li {
        font-size: 0.9rem;
    }
    .social-icons {
        font-size: 1.5rem;
    }
    .map-containerJkp2 {
        grid-column: 1 / -1; /* Make map span all columns */
        padding-top: 0; /* Remove the padding-top trick for aspect ratio here */
        width: 100%; /* Ensure it takes the full width of the grid area */
        margin: 1rem auto 0; /* Add some top margin for spacing, center horizontally, remove bottom margin */
        display: flex; /* Ensure flex centering is still active if you want it */
        justify-content: center;
        align-items: center;
    }
    .map-containerJkp2 iframe {
        position: static; /* No need for absolute positioning when we control container size */
        width: 100%;
        height: 300px; /* Set a fixed height for the map, adjust as desired */
        border: 0;
        margin: 0 auto !important; /* Keep this for centering the iframe within its container if needed */
        display: block; /* Ensure it behaves as a block-level element */
        object-fit: cover; /* Make sure the iframe content fills the container */
    }
}

@media (max-width: 1200px) {
    .footer {
        padding: 2rem 1rem;
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr); /* Single column layout for mobile */
        gap: 1.5rem;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3 {
        font-size: 1rem;
    }
    .footer-section ul {
        text-align: center;
    }
    .footer-section ul li {
        margin-bottom: 0.5rem;
        font-size: 0.95rem; /* General list item size */
    }
    .footer-section ul li a {
        font-size: 0.95rem; /* Adjust link size to match general li */
    }
    /* Crucial: Override contact-infoJkp2 li to be smaller if needed here */
    .footer-section ul.contact-infoJkp2 li {
        font-size: 0.95rem; /* Set desired size for contact info, make it smaller than 1.1rem if needed */
        /* Adjust flex properties if you want specific alignment here */
        display: flex; /* Re-add flex for centering */
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .social-icons {
        justify-content: center;
        font-size: 1.2rem;
    }

    .map-containerJkp2 {
        grid-column: span 1; /* Change to span 1 for single column */
        min-height: 200px;
        padding-top: 0;
    }
  
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
    .map-containerJkp2 {
        grid-column: 1 / -1; /* Make map span all columns */
        padding-top: 0; /* Remove the padding-top trick for aspect ratio here */
        width: 100%; /* Ensure it takes the full width of the grid area */
        margin: 1rem auto 0; /* Add some top margin for spacing, center horizontally, remove bottom margin */
        display: flex; /* Ensure flex centering is still active if you want it */
        justify-content: center;
        align-items: center;
    }
    .map-containerJkp2 iframe {
        position: static; /* No need for absolute positioning when we control container size */
        width: 100%;
        height: 300px; /* Set a fixed height for the map, adjust as desired */
        border: 0;
        margin: 0 auto !important; /* Keep this for centering the iframe within its container if needed */
        display: block; /* Ensure it behaves as a block-level element */
        object-fit: cover; /* Make sure the iframe content fills the container */
    }
}

@media (max-width: 1024px) {
        .footer {
            padding: 2rem 1rem;
        }
        .footer-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 columns for the first 4 sections */
            gap: 1.5rem;

        }
        
        /* Explicitly make the map container span both columns and adjust its sizing */
        .map-containerJkp2 {
            grid-column: 1 / -1; /* Make map span all columns */
            padding-top: 0; /* Remove the padding-top trick for aspect ratio here */
            width: 100%; /* Ensure it takes the full width of the grid area */
            margin: 1rem auto 0; /* Add some top margin for spacing, center horizontally, remove bottom margin */
            display: flex; /* Ensure flex centering is still active if you want it */
            justify-content: center;
            align-items: center;
        }
        .map-containerJkp2 iframe {
            position: static; /* No need for absolute positioning when we control container size */
            width: 100%;
            height: 300px; /* Set a fixed height for the map, adjust as desired */
            border: 0;
            margin: 0 auto !important; /* Keep this for centering the iframe within its container if needed */
            display: block; /* Ensure it behaves as a block-level element */
            object-fit: cover; /* Make sure the iframe content fills the container */
        }

        .footer-section {
            text-align: center;
        }
        .footer-section h3 {
            font-size: 1.15rem;
        }
        .footer-section ul {
            text-align: center;
        }
        .footer-section ul li {
            margin-bottom: 0.5rem;
            font-size: 1.05rem; /* General list item size */
        }
        .footer-section ul li a {
            font-size: 1.05rem;
        }
        .footer-section ul.contact-infoJkp2 li {
            font-size: 0.95rem; /* Ensure contact info is smaller */
            display: flex; /* Re-enable flex for centering */
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        .social-icons {
            justify-content: center;
            font-size: 1.15rem;
        }
        .footer-bottom {
            font-size: 0.85rem;
            padding-top: 1.5rem;
        }
    }


@media (max-width: 768px) {
    /* Similar to 1200px, but ensure overrides are present */
    .footer-grid {
        /* 2 columns for the first 4 sections */
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-section h3 {
        font-size: 1.1rem;
    }
    .footer-section ul li {
        font-size: 1rem;
    }
    .footer-section ul li a {
        font-size: 1rem;
    }
    .footer-section ul.contact-infoJkp2 li {
        font-size: 0.95rem; /* Keep it smaller */
    }
    .social-icons {
        font-size: 1.1rem;
    }
    .map-containerJkp2 {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        margin-right: 0;
        margin-bottom: 0 !important;
    }
    .map-containerJkp2 iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        margin: 0 auto !important;
    }
}

@media (max-width: 600px) {
    .footer-section h3 {
        font-size: 1.05rem;
    }
    .footer-section ul li {
        font-size: 0.95rem;
    }
    .footer-section ul li a {
        font-size: 0.95rem;
    }
    .footer-section ul.contact-infoJkp2 li {
        font-size: 0.9rem; /* Further reduce for smaller screens */
    }
    .social-icons {
        font-size: 1rem;
    }
    .map-containerJkp2 {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        margin-right: 0;
    }
    .map-containerJkp2 iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0.75rem; /* Even less padding */
    }
    .footer-section h3 {
        font-size: 1rem;
    }
    .footer-section ul li {
        font-size: 0.9rem;
    }
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    .footer-section ul.contact-infoJkp2 li {
        font-size: 0.85rem; /* Smallest size for contact info */
    }
    .social-icons {
        font-size: 0.95rem;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
    .map-containerJkp2 {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        margin-right: 0;
    }
    .map-containerJkp2 iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        margin: 0 auto !important;
    }
}

@media (max-width: 375px) {
    .footer-section h3 {
        font-size: 0.95rem;
    }
    .footer-section ul li {
        font-size: 0.88rem;
    }
    .footer-section ul li a {
        font-size: 0.88rem;
    }
    /* Apply !important here if you absolutely need to override all else */
    .footer-section ul.contact-infoJkp2 li {
        font-size: 0.85rem; /* Ensure consistency */
        line-height: 1.4;
    }
    .social-icons {
        font-size: 0.9rem;
    }

    .map-containerJkp2 {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        margin-right: 0;
    }
    .map-containerJkp2 iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        margin: 0 auto !important;
    }
}