/**
 * CSS dla widoku pojedynczej atrakcji - styl Osada Sławutowo
 *
 * @package Atrakcje i Warsztaty
 */

.aw-single {
    font-family: "Poppins", sans-serif;
    color: #333;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.aw-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Nagłówek w stylu "O Nas" */
.aw-single-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.aw-single-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.aw-single-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
}

.aw-single-hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
    padding: 0 20px;
}

.aw-single-hero-title {
    font-family: "MedievalSharp", serif;
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.aw-single-hero-subtitle {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* Stare style nagłówka - zachowane dla kompatybilności */
.aw-single-header {
    margin-bottom: 2rem;
}

.aw-single-featured-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 55vh;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.aw-featured-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.aw-single-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
    color: #3a3226;
}

.aw-single-categories {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #8b6d3c;
}

.aw-single-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: #3a3226;
    font-family: "MedievalSharp", serif;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

.aw-single-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: #5a5248;
}

/* Tytułu bez obrazka */
.aw-single-title-container {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.aw-single-categories-no-image {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #8b6d3c;
}

.aw-single-title-no-image {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: #3a3226;
    font-family: "MedievalSharp", serif;
}

.aw-single-subtitle-no-image {
    font-size: 1.5rem;
    font-style: italic;
    color: #5a5248;
    font-weight: 400;
}

/* Breadcrumbs */
.aw-single-breadcrumbs {
    margin: 0 0 2rem;
    font-size: 0.875rem;
    padding: 0 20px;
}

.aw-single-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.aw-single-breadcrumbs li {
    display: inline;
}

.aw-single-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #ccc;
}

.aw-single-breadcrumbs a {
    color: #8b6d3c;
    text-decoration: none;
    transition: color 0.2s;
}

.aw-single-breadcrumbs a:hover {
    color: #3a3226;
    text-decoration: underline;
}

/* Treść */
.aw-single-content,
.aw-single-gallery,
.aw-single-video,
.aw-related,
.aw-single-footer {
    padding: 0 20px;
}

.aw-single-content {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.aw-single-content p {
    margin-bottom: 1.5rem;
}

.aw-single-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: #3a3226;
    font-family: "MedievalSharp", serif;
}

.aw-single-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #3a3226;
    font-family: "MedievalSharp", serif;
}

.aw-single-content ul,
.aw-single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.aw-single-content li {
    margin-bottom: 0.5rem;
}

.aw-single-content a {
    color: #8b6d3c;
    text-decoration: none;
    border-bottom: 1px dotted #8b6d3c;
    transition: all 0.2s;
}

.aw-single-content a:hover {
    color: #3a3226;
    border-bottom-color: #3a3226;
}

/* Tytuły sekcji */
.aw-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f5f5f5;
    color: #3a3226;
    font-family: "MedievalSharp", serif;
}

/* Galeria */
.aw-single-gallery {
    margin-bottom: 3rem;
}

.aw-single-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.aw-single-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    aspect-ratio: 3/2;
}

.aw-single-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.aw-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.aw-single-gallery-item:hover .aw-gallery-image {
    transform: scale(1.05);
}

/* Usunięcie duplikacji klas galerii */
.aw-gallery-images {
    display: none;
}

/* Video */
.aw-single-video {
    margin-bottom: 3rem;
}

.aw-single-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporcje 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.aw-single-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Podobne atrakcje */
.aw-related {
    margin-bottom: 3rem;
}

.aw-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.aw-single-related-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.aw-single-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.aw-single-related-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.aw-single-related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.aw-related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.aw-single-related-item:hover .aw-related-thumb {
    transform: scale(1.05);
}

.aw-single-related-title {
    font-size: 1.1rem;
    margin: 0;
    padding: 1rem;
    color: #3a3226;
    font-family: "MedievalSharp", serif;
}

/* Przyciski udostępniania */
.aw-single-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Lightbox */
.aw-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.aw-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aw-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.aw-lightbox-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aw-lightbox-img-container img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.aw-lightbox-img-container img.active {
    transform: scale(1);
}

.aw-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.aw-lightbox-close:hover {
    background: rgba(139, 109, 60, 0.8);
}

.aw-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.aw-lightbox-nav:hover {
    background: rgba(139, 109, 60, 0.8);
}

.aw-lightbox-nav.prev {
    left: 20px;
}

.aw-lightbox-nav.next {
    right: 20px;
}

.aw-lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.aw-lightbox-counter {
    position: absolute;
    top: -40px;
    left: 0;
    color: #fff;
    font-size: 14px;
}

/* Responsywność */
@media (max-width: 900px) {
    .aw-single-hero {
        height: 40vh;
    }

    .aw-single-hero-title {
        font-size: 2.5rem;
    }

    .aw-single-hero-subtitle {
        font-size: 1.2rem;
    }

    .aw-single-featured-image {
        height: 40vh;
    }

    .aw-single-title,
    .aw-single-title-no-image {
        font-size: 2.2rem;
    }

    .aw-single-subtitle,
    .aw-single-subtitle-no-image {
        font-size: 1.2rem;
    }

    .aw-single-content {
        font-size: 1rem;
    }

    .aw-single-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aw-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    .aw-single-hero {
        height: 30vh;
    }

    .aw-single-hero-title {
        font-size: 2rem;
    }

    .aw-single-hero-subtitle {
        font-size: 1rem;
    }

    .aw-single-featured-image {
        height: 30vh;
    }

    .aw-single-title,
    .aw-single-title-no-image {
        font-size: 1.8rem;
    }

    .aw-section-title {
        font-size: 1.5rem;
    }

    .aw-single-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .aw-single-related-grid {
        grid-template-columns: 1fr;
    }

    .aw-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .aw-lightbox-nav.prev {
        left: 10px;
    }

    .aw-lightbox-nav.next {
        right: 10px;
    }
}