/* Chilla Gallery & Booking - Frontend Styles */

.chilla-gallery-booking-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: stretch;
    background-color: #f5f5f5;
    overflow: hidden;
}

.chilla-gallery-booking-container {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    max-height: 100vh;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Kolumny - 50% każda */
.chilla-gallery-booking-column {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Lewa kolumna - Galeria */
.chilla-gallery-booking-gallery-column {
    overflow: hidden;
    position: relative;
}

.chilla-gallery-booking-gradient {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    z-index: 10;
    pointer-events: none;
}

.chilla-gallery-booking-gradient-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(245, 245, 245, 1) 0%, rgba(245, 245, 245, 0.8) 30%, rgba(245, 245, 245, 0) 100%);
}

.chilla-gallery-booking-gradient-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(245, 245, 245, 1) 0%, rgba(245, 245, 245, 0.8) 30%, rgba(245, 245, 245, 0) 100%);
}

.chilla-gallery-booking-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 100vh;
    max-height: 100vh;
}

.chilla-gallery-booking-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
    padding: 20px;
    animation: chilla-gallery-booking-scroll linear infinite;
    will-change: transform;
    width: 100%;
    animation-duration: 30s;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.chilla-gallery-booking-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    grid-row: span 1;
    grid-column: span 1;
}

/* Różne rozmiary zdjęć */
.chilla-gallery-booking-item-small {
    grid-row: span 1;
    grid-column: span 1;
    min-height: 180px;
}

.chilla-gallery-booking-item-medium {
    grid-row: span 2;
    grid-column: span 1;
    min-height: 415px;
}

.chilla-gallery-booking-item-large {
    grid-row: span 2;
    grid-column: span 2;
    min-height: 415px;
}

.chilla-gallery-booking-item-wide {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 180px;
}

.chilla-gallery-booking-item-tall {
    grid-row: span 3;
    grid-column: span 1;
    min-height: 630px;
}

.chilla-gallery-booking-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 100%;
}

/* Animacja przesuwania w górę */
@keyframes chilla-gallery-booking-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(var(--chilla-scroll-distance, -50%));
    }
}

.chilla-gallery-booking-empty {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Prawa kolumna - Tekst */
.chilla-gallery-booking-text-column {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    height: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.chilla-gallery-booking-text-content {
    max-width: 650px;
    width: 100%;
    text-align: center;
}

.chilla-gallery-booking-text-top {
    font-size: 16px;
    color: #009fdf;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.chilla-gallery-booking-text-main {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: Georgia, serif;
}

.chilla-gallery-booking-text-bottom {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* Widżet rezerwacji */
.chilla-booking-widget {
    margin-top: 40px;
}

.chilla-booking-form {
    margin: 0;
}

.chilla-booking-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chilla-booking-fields {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 0.9fr;
    column-gap: 18px;
    row-gap: 16px;
    align-items: stretch;
}

.chilla-booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.chilla-booking-field-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #9b9b9b;
}

.chilla-booking-date-input,
.chilla-booking-select-wrapper select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #111111;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.chilla-booking-date-input::placeholder {
    color: #b5b5b5;
}

.chilla-booking-select-wrapper {
    position: relative;
}

.chilla-booking-select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9b9b9b;
    pointer-events: none;
}

.chilla-booking-select-wrapper select {
    padding-right: 28px;
}

.chilla-booking-submit-row {
    display: flex;
    justify-content: flex-start;
}

.chilla-booking-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #009fdf;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 159, 223, 0.35);
    width: 100%;
}

.chilla-booking-submit-button:hover {
    background-color: #009fdf;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 159, 223, 0.4);
}

.chilla-booking-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 159, 223, 0.35);
}

.chilla-booking-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.chilla-booking-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a4a4a;
}

.chilla-booking-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #009fdf;
    color: #009fdf;
    font-size: 12px;
}

/* Stylowanie kalendarza flatpickr, aby pasował do widżetu */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.inRange {
    background: #009fdf !important;
    border-color: #009fdf !important;
    color: #ffffff !important;
}


.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #009fdf !important;
    border-color: #009fdf !important;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
    -webkit-box-shadow: -10px 0 0 #009fdf !important;
    box-shadow: -10px 0 0 #009fdf !important;
}


/* Responsywność */
@media (max-width: 1200px) {
    .chilla-gallery-booking-track {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 180px;
        gap: 12px;
        padding: 15px;
    }
    
    .chilla-gallery-booking-gradient {
        height: 100px;
    }
    
    .chilla-gallery-booking-item-medium {
        min-height: 375px;
    }
    
    .chilla-gallery-booking-item-large {
        min-height: 375px;
    }
    
    .chilla-gallery-booking-item-tall {
        min-height: 570px;
    }
    
    .chilla-gallery-booking-text-main {
        font-size: 36px;
    }
}

@media (max-width: 968px) {
    .chilla-gallery-booking-container {
        flex-direction: column;
    }
    
    .chilla-gallery-booking-column {
        flex: 1 1 100%;
        min-height: 50vh;
    }
    
    .chilla-gallery-booking-gallery-container {
        min-height: 50vh;
    }
    
    .chilla-gallery-booking-text-column {
        padding: 40px 30px;
        min-height: auto;
    }
    
    .chilla-gallery-booking-text-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .chilla-gallery-booking-track {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 140px;
        gap: 10px;
        padding: 10px;
    }
    
    .chilla-gallery-booking-gradient {
        height: 80px;
    }
    
    .chilla-gallery-booking-item {
        border-radius: 6px;
    }
    
    .chilla-gallery-booking-item-small {
        min-height: 130px;
    }
    
    .chilla-gallery-booking-item-medium {
        grid-row: span 2;
        grid-column: span 1;
        min-height: 290px;
    }
    
    .chilla-gallery-booking-item-large {
        grid-row: span 2;
        grid-column: span 2;
        min-height: 290px;
    }
    
    .chilla-gallery-booking-item-wide {
        grid-row: span 1;
        grid-column: span 2;
        min-height: 130px;
    }
    
    .chilla-gallery-booking-item-tall {
        grid-row: span 3;
        grid-column: span 1;
        min-height: 440px;
    }
    
    .chilla-gallery-booking-text-column {
        padding: 30px 20px;
    }
    
    .chilla-gallery-booking-text-main {
        font-size: 28px;
    }
    
    .chilla-gallery-booking-text-top {
        font-size: 14px;
    }
    
    .chilla-gallery-booking-text-bottom {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chilla-gallery-booking-track {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        grid-auto-rows: 110px;
        gap: 8px;
        padding: 8px;
    }
    
    .chilla-gallery-booking-gradient {
        height: 60px;
    }
    
    .chilla-gallery-booking-item-small {
        min-height: 100px;
    }
    
    .chilla-gallery-booking-item-medium {
        min-height: 228px;
    }
    
    .chilla-gallery-booking-item-large {
        min-height: 228px;
    }
    
    .chilla-gallery-booking-item-wide {
        min-height: 100px;
    }
    
    .chilla-gallery-booking-item-tall {
        min-height: 346px;
    }
    
    .chilla-gallery-booking-text-column {
        padding: 25px 15px;
    }
    
    .chilla-gallery-booking-text-main {
        font-size: 24px;
    }
}


