/* ==============================================
   CALENDAR LAYOUT
   ============================================== */

/* === KALENDARZE === */

/* === BOOKING HEADER SECTION === */
.booking-header-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    padding: 0 5vw;
    margin-top: 8rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: visible;
    gap: 3rem;
}

.booking-header-grid .bg-watermark-horizontal {
    top: 50%;
}

.booking-header-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.booking-header-title {
    font-family: var(--font-hull);
    font-size: 5rem;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--storm-foam);
    margin: 0;
}

.booking-header-right {
    width: 60%;
    max-width: 700px;
}

.booking-header-desc {
    font-family: var(--font-liquid);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--wet-concrete);
    margin: 0;
}

/* === CALENDARS GRID === */
.calendars-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    max-width: 100%;
    padding: 0 2vw;
    margin-bottom: 1rem;
    align-items: stretch;
}

.calendar-column {
    display: flex;
    flex-direction: column;
}

.calendar-image-wrapper {
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 4px;
}

.calendar-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}



.calendar-container {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Kalendarze w sekcjach apartamentów - single column */
.apt-card .calendar-container {
    max-width: 800px;
    margin: 0 auto;
}



.calendar-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    max-height: none;
}

.calendar-info {
    display: none;
}

.calendar-dates-row {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.3rem;
}

.calendar-dates-row .calendar-date-field {
    flex: 1;
}

.calendar-date-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding-bottom: 0;
    transition: all 0.3s ease;
    border: 1px solid #1a1a1a;
    background: #fff;
    padding: 0.6rem 0.7rem;
    border-radius: 4px;
    box-sizing: border-box;
}

.calendar-date-field.filled {
    border: 1px solid #1a1a1a;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-date-field.filled .calendar-info-label {
    color: #1a1a1a;
    font-weight: 700;
}

.calendar-date-field.filled .calendar-info-value {
    font-weight: 600;
    font-size: 1.35rem;
    color: #1a1a1a;
    animation: fadeInScale 0.4s ease;
}



@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.calendar-price-section {
    grid-column: 1 / -1;
    padding-top: 0.35rem;
    margin-top: 0.3rem;
}

.calendar-info-label {
    font-family: var(--font-liquid);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #999;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
}

.calendar-info-value {
    font-family: var(--font-hull);
    font-size: 1.35rem;
    color: #000;
    line-height: 1.2;
    font-weight: 500;
}

.calendar-info.has-selection .calendar-info-value {
    font-weight: 500;
}

.calendar-info.has-error {
    border-bottom-color: #d32f2f;
}

.calendar-info.has-error .calendar-info-value {
    color: #d32f2f;
    font-size: 0.95rem;
}

.calendar-min-stay-hint {
    font-size: 0.85rem;
    color: #555;
    padding: 0.35rem 0 0.1rem;
    letter-spacing: 0.01em;
}

.calendar-date-edit {
    cursor: pointer;
    transition: color 0.2s;
}

.calendar-date-edit:hover {
    color: var(--rusty-beacon);
}

/* === TOP BAR === */

.calendar-top-bar {
    padding: 0;
    margin-bottom: 0;
}

.calendar-apartment-name {
    font-family: var(--font-hull);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 500;
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 0px;
}

/* === SCROLL WRAPPER === */

.calendar-scroll-wrapper {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.calendar-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}
.calendar-scroll-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.calendar-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.calendar-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* === SCROLL EDGE BARS (outside scroll wrapper) === */

.scroll-edge-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    background: #f0f0f0;
    cursor: pointer;
    user-select: none;
    z-index: 9000;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.scroll-edge-bar:hover {
    background: #e0e0e0;
    color: #333;
}

.scroll-edge-bar.scrolling {
    background: #c8e6c9;
    color: #2e7d32;
}

.scroll-edge-bar.hidden {
    visibility: hidden;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.scroll-edge-bar .scroll-edge-arrow {
    font-size: 1rem;
    line-height: 1;
}

/* === STICKY WEEKDAY HEADERS === */

.calendar-weekday-headers {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr);
    gap: 2px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-weekday-headers .weekday-label-spacer {
    background: #fff;
}

.calendar-weekday-headers .weekday {
    text-align: center;
    font-family: var(--font-hull);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 0.5rem 0;
    font-weight: 600;
    background: #fff;
}
