/* Atrakcje Karuzela - Style Frontend */

/* ========== GRID LAYOUT (bez parametru noshow) ========== */
.atrakcje-grid-wrapper {
    width: 100%;
    padding: 40px 20px;
}

.atrakcje-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.atrakcje-grid-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.atrakcje-grid-item-link:hover {
    transform: translateY(-5px);
}

.atrakcje-grid-item {
    position: relative;
    /* border: 2px solid #d49f58; */
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.atrakcje-grid-item .atrakcje-item-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: #ddd;
}

.atrakcje-grid-item .atrakcje-item-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    /* border-top: 2px solid #d49f58; */
}

/* ========== CAROUSEL LAYOUT (z parametrem noshow) - Swiper ========== */
.atrakcje-carousel-wrapper.atrakcje-carousel-mode {
    width: 100%;
    padding: 40px 0;
    background-color: transparent;
    overflow: hidden;
}

.atrakcje-carousel-container {
    position: relative;
    margin: 0 auto;
}

/* Swiper container */
.atrakcje-swiper {
    width: 100%;
    overflow: hidden;
}

.atrakcje-swiper .swiper-wrapper {
    display: flex;
}

.atrakcje-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Kafelek w karuzeli */
.atrakcje-carousel-mode .atrakcje-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    /* border: 2px solid #d49f58; */
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Wspólne style dla itemów (grid i karuzela) */
.atrakcje-item-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: #ddd;
}

.atrakcje-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.atrakcje-item:hover .atrakcje-item-image img {
    transform: scale(1.05);
}

.atrakcje-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    max-height: 100%;
    overflow-y: auto;
    height: 100%;
    display: grid;
    place-items: center;
}

.atrakcje-item:hover .atrakcje-item-overlay {
    background: rgba(255, 255, 255, 1);
    transform: translateY(0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.atrakcje-item-content {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    text-align: center;
}

.atrakcje-item:hover .atrakcje-item-content {
    opacity: 1;
}

.atrakcje-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.atrakcje-item-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.atrakcje-item-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #d49f58;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

/* Dla grida - przycisk jako span wewnątrz linku */
.atrakcje-grid-item-link .atrakcje-item-button {
    pointer-events: none;
}

.atrakcje-item-button:hover {
    background-color: #c08f4a;
    transform: translateY(-2px);
    color: #ffffff;
}

.atrakcje-item-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    /* border-top: 2px solid #d49f58; */
    flex-shrink: 0;
}

/* Swiper Navigation Buttons - Custom Styling */
.atrakcje-swiper .swiper-button-next,
.atrakcje-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: #d49f58;
    color: #ffffff;
    border-radius: 50%;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.atrakcje-swiper .swiper-button-next:after,
.atrakcje-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.atrakcje-swiper .swiper-button-next:hover,
.atrakcje-swiper .swiper-button-prev:hover {
    background-color: #c08f4a;
    transform: translateY(-50%) scale(1.1);
}

.atrakcje-swiper .swiper-button-next:active,
.atrakcje-swiper .swiper-button-prev:active {
    transform: translateY(-50%) scale(0.95);
}

.atrakcje-swiper .swiper-button-next {
    right: 0;
}

.atrakcje-swiper .swiper-button-prev {
    left: 0;
}

/* Disabled state dla przycisków */
.atrakcje-swiper .swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.atrakcje-swiper .swiper-button-disabled:hover {
    background-color: #d49f58;
    transform: translateY(-50%) scale(1);
}

/* Responsywność - Grid */
@media (max-width: 1024px) {
    .atrakcje-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .atrakcje-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsywność - Karuzela */
@media (max-width: 768px) {
    .atrakcje-carousel-container {
        padding: 0 50px;
    }
    
    .atrakcje-swiper .swiper-button-next,
    .atrakcje-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .atrakcje-swiper .swiper-button-next:after,
    .atrakcje-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .atrakcje-item-title {
        font-size: 20px;
    }
    
    .atrakcje-item-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .atrakcje-carousel-container {
        padding: 0 40px;
    }
}
