/* Calendar/Tickets Page - Minimal old-web styles */

/* Override container max-width for calendar page to allow more movies */
body .container {
    max-width: 1400px;
}

.movies-container {
    display: block;
}

.info {
    margin-bottom: 20px;
}
.movie-card {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .movies-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .movie-card {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .movies-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.movie-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.movie-poster a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-title {
    margin: 0 0 5px 0;
}

.movie-title a {
    color: inherit;
    text-decoration: none;
}

.movie-title a:hover {
    text-decoration: underline;
}

.date-grid {
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .date-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
}

@media (min-width: 481px) and (max-width: 600px) {
    .date-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
}

.date-square {
    display: inline-block;
    border: 2px outset;
    margin: 2px;
    cursor: pointer;
    background: #e2e2e2;
    text-align: center;
    vertical-align: top;
    min-width: 80px;
}

.date-square .date-day {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.2;
}

.date-square .date-separator {
    display: block;
    height: 1px;
    background-color: #1a237e;
    margin: 4px 0;
}

.date-square .date-month {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.date-square .date-weekday {
    display: block;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

.date-square:hover {
    background: #c8c8c8;
    border-style: inset;
}

.date-square.active {
    border-style: inset;
    background: #c8c8c8;
}

.showtimes-panel {
    display: none;
    padding: 10px;
    border: 1px solid #999;
    margin-bottom: 10px;
    background: #ffffcc;
}

.showtimes-panel.visible {
    display: block;
}

.showtime-link {
    display: block;
}

.showtime-sold-out {
    text-decoration: line-through;
    color: #999;
    cursor: default;
}

@media (max-width: 600px) {
    .date-square {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 8px 3px;
        min-width: 0;
        gap: 3px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        overflow: hidden;
        word-wrap: break-word;
        white-space: nowrap;
        margin: 0;
    }

    .date-square .date-weekday {
        font-size: 1.05rem;
        display: inline;
        flex-shrink: 1;
        order: 1;
        color: #000;
    }

    .date-square .date-month {
        font-size: 1.05rem;
        display: inline;
        flex-shrink: 1;
        order: 2;
    }

    .date-square .date-day {
        font-size: 1.05rem;
        display: inline;
        flex-shrink: 0;
        font-weight: normal;
        order: 3;
    }

    .date-square .date-separator {
        display: none;
    }
}
