﻿body {
}

/* ========== NEWSPAPER.CSS - STYLE DLA STRONY KURIERA WESELNEGO ========== */

/* ========== RESPONSYWNOŚĆ MAP GOOGLE ========== */

/* Wrapper dla responsywnej mapy - padding hack dla aspect ratio */
.map-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Pełna szerokość w grid */
    margin: 0;
    padding-bottom: 75%; /* Aspect ratio 4:3 (75% = 3/4 * 100%) */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: #f5f5f5; /* Placeholder podczas ładowania */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Nagłówki map */
.map-container h3 {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 10px 10px 0 0;
}

/* Ikony w nagłówkach */
.map-icon {
    color: #d4af37;
    margin-right: 8px;
    font-size: 22px;
}

/* ========== 2 MAPY OBOK SIEBIE ========== */

.maps-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolumny równe */
    gap: 30px;
    margin: 40px auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* ========== MEDIA QUERIES - RESPONSYWNOŚĆ MAP ========== */

/* Tablety (landscape) */
@media (max-width: 1024px) {
    .maps-row {
        gap: 25px;
        padding: 0 15px;
    }
    
    .map-container {
        padding-bottom: 80%; /* Wyższy aspect ratio */
    }
}

/* Tablety (portrait) */
@media (max-width: 768px) {
    .maps-row {
        grid-template-columns: 1fr; /* 1 kolumna - jedna pod drugą */
        gap: 20px;
        margin: 30px auto;
        padding: 0 10px;
    }
    
    .map-container {
        max-width: 600px;
        margin: 0 auto;
        padding-bottom: 75%;
    }
    
    .map-container h3 {
        font-size: 18px;
    }
}

/* Smartfony (większe - iPhone 12, 14, Samsung Galaxy) */
@media (max-width: 480px) {
    .maps-row {
        gap: 15px;
        margin: 20px auto;
        padding: 0 5px;
    }
    
    .map-container {
        padding-bottom: 85%; /* Prawie kwadrat */
        border-radius: 8px;
    }
    
    .map-container h3 {
        font-size: 16px;
        padding: 8px;
    }
    
    .map-icon {
        font-size: 18px;
    }
}

/* Smartfony (mniejsze - iPhone SE, 8) */
@media (max-width: 375px) {
    .maps-row {
        gap: 12px;
        margin: 15px auto;
    }
    
    .map-container {
        padding-bottom: 90%; /* Prawie kwadrat */
    }
    
    .map-container h3 {
        font-size: 15px;
        padding: 6px;
    }
}

/* Bardzo małe ekrany (320px - iPhone 5) */
@media (max-width: 320px) {
    .map-container {
        padding-bottom: 100%; /* Kwadrat */
        border-radius: 6px;
    }
    
    .map-container h3 {
        font-size: 14px;
    }
}

/* ========== FALLBACK - jeśli iframe jest bezpośrednio (bez wrappera) ========== */

iframe[src*="google.com/maps"],
iframe[src*="openstreetmap.org"] {
    max-width: 100%;
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

@media (max-width: 768px) {
    iframe[src*="google.com/maps"],
    iframe[src*="openstreetmap.org"] {
        height: 350px;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    iframe[src*="google.com/maps"],
    iframe[src*="openstreetmap.org"] {
        height: 280px;
        margin: 10px 5px;
        border-radius: 8px;
    }
}

@media (max-width: 375px) {
    iframe[src*="google.com/maps"],
    iframe[src*="openstreetmap.org"] {
        height: 250px;
    }
}

@media (max-width: 320px) {
    iframe[src*="google.com/maps"],
    iframe[src*="openstreetmap.org"] {
        height: 220px;
    }
}

.map-link {
    display: inline-block; /* Przycisk zachowuje się jak blok */
    margin-top: 10px; /* Odstęp od mapy */
    padding: 10px 20px; /* Wewnętrzne marginesy */
    background-color: #4285f4; /* Niebieski kolor Google */
    color: white; /* Biały tekst */
    text-decoration: none; /* Usuwa podkreślenie */
    border-radius: 5px; /* Zaokrąglone rogi */
    transition: background-color 0.3s; /* Płynna animacja */
}

    .map-link:hover {
        background-color: #357ae8; /* Ciemniejszy niebieski po najechaniu */
    }

/* Link overlay na całą mapę - umożliwia kliknięcie w mapę */
.map-overlay-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.map-overlay-link:hover .map-container {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.map-overlay-link .map-container {
    pointer-events: none;
    transition: all 0.3s ease;
}

.map-overlay-link iframe {
    pointer-events: none;
}
