:root {
    --blue-color: #0096ff;
    --accent-teal: #213746;
    --highlight-text: #64ffda;
}
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-style: normal;
}
.font-google-sans {
    font-family: 'Google Sans', sans-serif;
}

a,
button {
    cursor: pointer;
}
.btn-live {
    background-color: #e8405d;
    color: white;
}
.btn-info {
    background-color: #3cebfb;
    color: #05101a;
}
.btn-success {
    background-color: #25d06f;
    color: white;
}
.btn-warning {
    background-color: #ffb200;
    color: #05101a;
}
.icon-location {
    color: #fff;
}
.icon-location img {
    width: 16px;
    height: 16px;
}
.swiper {
    /* touch-action: pan-x !important; */
}
.swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    /* width: auto !important;
    right: 0;
    left: auto !important; */
}
.swiper-pagination-bullet {
    background: #ccc !important;
}

.swiper-pagination-bullet-active {
    background: #0096ff !important;
}
.swiper-pagination-line .swiper-pagination-bullet {
    width: 30px;
    border-radius: 2px;
    height: 2px;
}
.swiper-pagination-line .swiper-pagination-bullet-active {
    width: 50px;
}
.swiper-pagination-bar .swiper-pagination-bullet {
    width: 30px;
    border-radius: 2px;
    height: 2px;
}
.swiper-pagination-bar .swiper-pagination-bullet-active {
    width: 50px;
}
/* Ẩn scrollbar cho Chrome, Safari và Opera (Mobile & Desktop) */
.mobile-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Ẩn scrollbar cho Firefox và IE/Edge */
.mobile-scrollbar {
    -ms-overflow-style: none; /* IE và Edge */
    scrollbar-width: none; /* Firefox */

    /* Đảm bảo vẫn cuộn được mượt mà trên iOS */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.open-preview-modal {
    cursor: pointer;
}
.nav-tabs a {
    transition: all 0.2s ease;
}
.nav-tabs a:hover {
    color: var(--color-cyan-300);
}
.nav-tabs a.active {
    color: var(--color-cyan-300);
    background-color: rgba(255, 255, 255, 0.2);
}
.text-blue-400 {
    color: var(--blue-color);
}
.bg-accent-teal {
    background-color: var(--accent-teal);
}
.bg-ticket-gradient::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    background: linear-gradient(270deg, #051b2a 0%, rgba(5, 27, 42, 0.5) 50%, #051b2a 100%);
}
.bg-header {
    /* backdrop-filter: blur(8px); */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}
.bg-weather {
    background-image: url(../img/bg/bg6.png);
    background-size: cover;
}

.bg-linear-1,
.bg-linear-2,
.bg-linear-3,
.bg-linear-4,
.bg-linear-5,
.bg-linear-6 {
    position: relative;
    background-image: url(../img/haiphong/home/box_2.webp);
    background-size: cover;
}
.bg-linear-1 {
    background-image: url(../img/haiphong/home/box_1.webp);
}

.bg-linear-3 {
    background-image: url(../img/haiphong/home/box_3.webp);
}
.bg-linear-4 {
    background-image: url(../img/haiphong/home/box_4.webp);
}
.bg-linear-5 {
    background-image: url(../img/haiphong/home/box_5.webp);
}
.bg-linear-6 {
    background-image: url(../img/haiphong/home/box_6.webp);
}

.bg-linear-1::before {
    background: #000;
    /* background: linear-gradient(180deg, rgba(5, 27, 42, 0.10) 0%, rgba(5, 27, 42, 0.00) 13.46%, rgba(5, 27, 42, 0.00) 73.56%, #051B2A 100%); */
    background: linear-gradient(180deg, rgba(5, 27, 42, 0.3) 0%, rgba(5, 27, 42, 0.1) 10%, rgba(5, 27, 42, 0) 47.12%, rgba(5, 27, 42, 0.1) 70%, rgba(5, 27, 42, 0.5) 80%, #051b2a 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
    z-index: 0;
}
.bg-linear-2::before,
.bg-linear-3::before,
.bg-linear-4::before,
.bg-linear-5::before,
.bg-linear-6::before {
    background: #000;
    background: linear-gradient(180deg, #051b2a 5%, rgba(5, 27, 42, 0.2) 30%, rgba(5, 27, 42, 0) 47.12%, rgba(5, 27, 42, 0.5) 70%, rgba(5, 27, 42, 0.75) 85%, #051b2a 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
    z-index: 0;
}
.bg-linear-card {
    position: relative;
}
.bg-linear-card::before {
    background: #000;
    background: linear-gradient(180deg, rgba(5, 27, 42, 0) 30.91%, rgba(5, 27, 42, 0.4) 62.02%, #051b2a 97.32%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
    z-index: 1;
}
.bg-hai-phong {
    background-image: url(../img/bg/bg-hai-phong-3.webp);
}
.bg-son-la {
    background-image: url(../img/bg/bg-son-la.webp);
}
.bg-hung-yen {
    background-image: url(../img/bg/bg-hung-yen.webp);
}
.bg-saleoff {
    background-image: url(../img/icon/saleoff.svg);
    background-size: contain;
    width: 41px;
    height: 19px;
    padding-left: 8px;
    display: flex;
    align-items: center;
    color: #051b2a;
    font-size: 10px;
    margin-left: 5px;
}
/* Header Wrapper */
.main-header {
    background-color: #05101a; /* Màu xanh đen đậm như ảnh */
    color: white;
    padding: 15px 0;
    width: 100%;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Trạng thái mặc định: Ẩn và đẩy xuống */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
    pointer-events: none; /* Tránh click nhầm khi đang ẩn */
}

/* Trạng thái kích hoạt: Hiện và bay lên */
.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 1. Define the animation steps */
@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        display: none;
        transform: translateY(20px); /* Adjust distance as needed */
    }
}

/* 2. Apply to your element */
.fade-out-down {
    animation: fadeOutDown 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;

        transform: translateY(20px); /* Start lower */
    }
    to {
        opacity: 1;
        display: block;
        transform: translateY(0); /* Move to original position */
    }
}

.fade-in-up {
    animation: fadeInUp 0.3s ease-out both;
}
/* PWA */

/* ── Text ── */
.pwa-guide-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}
.pwa-guide-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* ── Steps ── */
.pwa-guide-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: step;
}
.pwa-guide-steps li {
    counter-increment: step;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #222;
}
.pwa-guide-steps li::before {
    content: counter(step);
    min-width: 26px;
    height: 26px;
    background: #007aff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.pwa-guide-steps strong {
    color: #111;
}

/* ── Inline icon (⬆ v.v.) ── */
.pwa-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #007aff;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    vertical-align: middle;
    margin: 0 2px;
}

/* ── Note ── */
.pwa-guide-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid #f0f0f0;
    line-height: 1.4;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .pwa-guide-title {
        color: #f2f2f7;
    }
    .pwa-guide-subtitle {
        color: #aeaeb2;
    }
    .pwa-guide-steps li {
        color: #e5e5ea;
    }
    .pwa-guide-steps strong {
        color: #f2f2f7;
    }
    .pwa-guide-note {
        color: #636366;
        border-color: #2c2c2e;
    }
}
/** EVENT BOX **/
/* RESET FLATPICKR WIDTHS */
.flatpickr-calendar.inline {
    border-radius: 8px;
    background: rgba(66, 110, 138, 0.5);
    width: 100%;
}
.flatpickr-innerContainer,
.flatpickr-rContainer {
    width: 100%;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background-color: transparent;
    font-size: 14px;
}
.flatpickr-current-month input.cur-year {
    font-size: 14px;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month {
    right: 30px;
    left: auto;
    position: absolute;
}
.flatpickr-current-month {
    left: 0;
    justify-content: flex-start;
    display: flex;
}

span.flatpickr-weekday {
    background-color: transparent;
}
.flatpickr-days {
    padding: 10px;
    width: 100%;
}
.flatpickr-day {
    border-radius: 0;
    background: rgba(66, 110, 138, 0.5);
    font-size: 12px;
    height: 36px;
    line-height: 36px;
}
.flatpickr-day,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    max-width: 100%;
    width: auto;
    border-right: 1px solid #426e8a;
    border-bottom: 1px solid #426e8a;
}
.dayContainer {
    border-top: 1px solid #426e8a;
    border-left: 1px solid #426e8a;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
    min-width: 100%;
}
/* Ngày có sự kiện */
.has-event {
    background-color: var(--accent-teal) !important;
    color: var(--highlight-text) !important;
    font-weight: bold !important;
}

.flatpickr-day:hover:not(.has-event) {
    background: #263a45 !important;
}

/* Popover Style Custom */
.tippy-box {
    background-color: #1a2b34 !important;
    border: 1px solid #428b97 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}
.tippy-arrow {
    color: #1a2b34 !important;
}
.event-popover {
    padding: 12px;
    max-width: 220px;
}
.event-popover h4 {
    font-weight: bold;
    color: #64ffda;
    margin-bottom: 8px;
    border-bottom: 1px solid #344955;
    padding-bottom: 5px;
    font-size: 1rem;
}
.event-popover p {
    font-size: 0.85rem;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.event-popover a {
    display: inline-block;
    margin-top: 8px;
    color: #64ffda;
    text-decoration: underline;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .flatpickr-day {
        height: 28px;
        line-height: 28px;
    }
    .swiper-content-tabs {
        padding: 0 calc(var(--spacing) * 3);
    }
}
/* Các style chỉ áp dụng khi chạy app đã cài đặt */
@media (display-mode: standalone) {
}

/* Kiểm tra chế độ standalone tiêu chuẩn */
@media (display-mode: standalone) {
    #installAppBtn {
        display: none !important;
    }
}

/* Dành riêng cho Safari/iOS hoặc một số bản webkit cũ trên Mac */
@media (display-mode: fullscreen), (display-mode: standalone), (display-mode: minimal-ui) {
    #installAppBtn {
        display: none !important;
    }
}
