/* === CSS CHO TRANG DAT-VE.HTML === */

/* --- Section 1: Mua vé theo phim (Slider) --- */
.book-by-movie {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto;
}

.book-by-movie h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000;
}

.book-by-movie .movie-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;  /* Firefox */
    &::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */
    }
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.book-by-movie .slider-dots {
    text-align: center;
    margin-top: 10px;
}

.book-by-movie .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
}

.book-by-movie .dot.active {
    background-color: #555;
}

/* --- Section 2: Mua vé theo rạp --- */
.book-by-cinema {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto;
}

.book-by-cinema h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000;
}

.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 h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    padding: 0 10px;
}

.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 (ĐÃ SỬA GIAO DIỆN) --- */

/* Style cho Date Picker (Giống Ảnh 1 - Nền trắng) */
.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; /* Nền trắng */
    color: #333;      /* Chữ đen */
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd; /* Viền xám */
    transition: all 0.3s;
}

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

/* Active state: Viền đỏ, chữ đỏ (Giống Ảnh 1) */
.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;
}

.showtime-listing {
    margin-top: 20px;
}

/* Style cho Item Phim (Nền trắng, giống cấu trúc Ảnh 2) */
.movie-showtime-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff; /* Nền trắng */
    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; /* Tên phim màu đen */
    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á (Giống Ảnh 2 nhưng nền sáng) */
.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;
}