/* === CSS CHO TRANG LICH-CHIEU.HTML === */

/* --- Thanh Tiêu Đề --- */
.page-title-bar {
    background-image: url('https://via.placeholder.com/1920x200/000000/FFFFFF?text=Movie+Collage+Banner');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
    color: white;
}

.page-title-bar h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.page-title-bar p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Wrapper cho khung 3 cột --- */
.booking-container-wrapper {
    width: 90%;
    max-width: 1300px;
    margin: -50px auto 30px auto; /* Kéo lên trên banner */
    position: relative;
    z-index: 2;
}

/* --- Khung 3 Cột (Giống dat-ve.css) --- */
.booking-container {
    display: grid;
    grid-template-columns: 250px 300px 1fr;
    gap: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    min-height: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cột 1: Khu vực */
.area-list {
    border-right: 1px solid #f0f0f0;
}

.area-list ul {
    list-style: none;
}

.area-list .area-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.2s;
}

.area-list .area-link:hover {
    background-color: #f5f5f5;
}

.area-list .area-link.active {
    background-color: #007bff;
    color: white;
}

.area-list .area-link span {
    background-color: #eee;
    color: #555;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.area-list .area-link.active span {
    background-color: white;
    color: #007bff;
}

/* Cột 2: Danh sách rạp */
.cinema-list {
    border-right: 1px solid #f0f0f0;
    padding: 0 20px;
    max-height: 700px;
    overflow-y: auto;
}

.cinema-list h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-top: 15px;
}

.cinema-list h4 img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.cinema-list .cinema-locations {
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
}

.cinema-list .cinema-link {
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cinema-list .cinema-link:hover {
    background-color: #f5f5f5;
}

.cinema-list .cinema-link.active {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #e00b0f;
}

/* --- Cột 3: Lịch chiếu (ĐÃ ĐỒNG BỘ VỚI DAT-VE.CSS) --- */

/* Date Picker (Nền trắng, active viền đỏ) */
.date-picker ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.date-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    padding: 10px 5px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.date-link span:first-child {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.date-link.active {
    background: #fff;
    color: #e00b0f;
    border: 2px solid #e00b0f;
    font-weight: bold;
}

.info-box {
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #665c3e;
}

.info-box i {
    margin-right: 8px;
    color: #f57f17;
}

.cinema-showtime-list {
    margin-top: 20px;
}

/* Style cho Item Phim (Nền trắng) */
.movie-showtime-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.movie-showtime-item .poster {
    flex-shrink: 0;
    width: 100px;
}

.movie-showtime-item .poster img {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    object-fit: cover;
}

.movie-showtime-item .movie-details {
    flex-grow: 1;
}

.movie-details h4 {
    font-size: 1.2rem;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

.movie-details .movie-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.movie-details .times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style cho ô giờ chiếu + giá */
.times .time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    padding: 5px 10px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 70px;
}

.times .time-slot .time-text {
    font-size: 1rem;
    font-weight: bold;
}

.times .time-slot .price-sub {
    font-size: 0.75rem;
    color: #777;
    margin-top: 2px;
}

.times .time-slot:hover {
    background-color: #e00b0f;
    color: white;
    border-color: #e00b0f;
}

.times .time-slot:hover .price-sub {
    color: #fff;
}