/* ======================================================
   RESET
====================================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#1565c0;
    --primary-light:#eaf4ff;

    --danger:#e53935;
    --warning:#ff9800;
    --success:#2e7d32;

    --text:#222;
    --text-light:#666;

    --border:#e8e8e8;

    --bg:#f5f7fb;

    --card:#ffffff;

    --radius:18px;

    --shadow:
        0 4px 14px rgba(0,0,0,.06);

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    font-size:15px;

    line-height:1.45;

    -webkit-font-smoothing:antialiased;

}

img{

    display:block;

    max-width:100%;

}

button{

    border:none;

    background:none;

    font:inherit;

    cursor:pointer;

}

a{

    color:inherit;

    text-decoration:none;

}

input{

    font:inherit;

}


/* ======================================================
   APP
====================================================== */

.app{

    max-width:480px;

    margin:auto;

    min-height:100vh;

    background:#fff;

    position:relative;

    padding-bottom:90px;

}


/* ======================================================
   HEADER
====================================================== */

.page-header{

    position:sticky;

    top:0;

    z-index:999;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:14px 16px;

    border-bottom:1px solid var(--border);

}

.page-header h1{

    flex:1;

    text-align:center;

    font-size:20px;

    font-weight:700;

}

.icon-btn{

    width:40px;

    height:40px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

}

.icon-btn:hover{

    background:#f3f3f3;

}

.material-symbols-outlined{

    font-size:22px;

}

.share-btn{

    height:40px;

    padding:0 14px;

    border-radius:999px;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    gap:6px;

    font-weight:600;

    transition:.25s;

}

.share-btn:hover{

    opacity:.92;

}


/* ======================================================
   STICKY FILTER
====================================================== */

.sticky-filter{

    position:sticky;

    top:69px;

    z-index:998;

    background:#fff;

    padding:12px 16px;

    display:flex;

    gap:10px;

    overflow-x:auto;

    border-bottom:1px solid var(--border);

    scrollbar-width:none;

}

.sticky-filter::-webkit-scrollbar{

    display:none;

}

.filter-item{

    flex-shrink:0;

    height:42px;

    padding:0 16px;

    background:#f7f7f7;

    border:1px solid #ececec;

    border-radius:999px;

    display:flex;

    align-items:center;

    gap:8px;

    white-space:nowrap;

    transition:.25s;

}

.filter-item:hover{

    background:#edf5ff;

    border-color:#b9d8ff;

}

.filter-item i{

    color:var(--primary);

}

.arrow{

    font-size:18px;

    color:#999;

}


/* ======================================================
   SUMMARY
====================================================== */

.summary-card{

    margin:16px;

    padding:18px;

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

.summary-left{

    display:flex;

    align-items:center;

    gap:14px;

}

.summary-icon{

    width:54px;

    height:54px;

    border-radius:14px;

    background:var(--primary-light);

    color:var(--primary);

    display:flex;

    justify-content:center;

    align-items:center;

}

.summary-icon .material-symbols-outlined{

    font-size:30px;

}

.summary-left h2{

    font-size:18px;

    margin-bottom:4px;

}

.summary-left p{

    color:var(--text-light);

    font-size:14px;

}

.summary-left strong{

    color:var(--primary);

}


/* ======================================================
   CHECKBOX
====================================================== */

.checkbox-wrap{

    margin-top:18px;

    display:flex;

    align-items:flex-start;

    gap:12px;

    cursor:pointer;

}

.checkbox-wrap input{

    display:none;

}

.checkmark{

    width:22px;

    height:22px;

    border-radius:6px;

    border:2px solid #cfcfcf;

    flex-shrink:0;

    position:relative;

    margin-top:2px;

}

.checkbox-wrap input:checked + .checkmark{

    background:var(--primary);

    border-color:var(--primary);

}

.checkbox-wrap input:checked + .checkmark::after{

    content:"";

    position:absolute;

    left:6px;

    top:2px;

    width:6px;

    height:12px;

    border:solid #fff;

    border-width:0 2px 2px 0;

    transform:rotate(45deg);

}

.checkbox-text{

    font-size:14px;

    color:var(--text-light);

}

.checkbox-text strong{

    color:var(--primary);

}


/* ======================================================
   TOUR LIST
====================================================== */

.tour-list{

    padding:0 16px 20px;

}
/* ======================================================
   TOUR CARD
====================================================== */

.tour-card{

    background:#fff;

    border-radius:20px;

    box-shadow:var(--shadow);

    margin-bottom:18px;

    overflow:hidden;

    transition:.25s;

    border:1px solid #ececec;

}

.tour-card:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 28px rgba(0,0,0,.10);

}

.tour-content{

    display:flex;

    gap:18px;

    padding:18px;

}


/* ======================================================
   LEFT
====================================================== */

.tour-info{

    flex:1;

    min-width:0;

}

.tour-title{

    font-size:18px;

    font-weight:700;

    line-height:1.35;

    margin-bottom:10px;

    color:#222;

}


/* ======================================================
   TAGS
====================================================== */

.tour-tags{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:16px;

}

.tag{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:28px;

    padding:0 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

    letter-spacing:.3px;

}

.tag-green{

    background:#e8f7ec;

    color:#1b8d42;

}

.tag-red{

    background:#ffe8e8;

    color:#d32f2f;

}

.tag-blue{

    background:#e8f2ff;

    color:#1565c0;

}

.tag-orange{

    background:#fff1df;

    color:#ef6c00;

}


/* ======================================================
   FLIGHT
====================================================== */

.flight-list{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.flight-row{

    display:flex;

    gap:12px;

    align-items:flex-start;

}

.flight-row i{

    width:18px;

    margin-top:2px;

    color:var(--primary);

    flex-shrink:0;

}

.flight-row strong{

    display:block;

    margin-bottom:2px;

}

.flight-row div{

    color:#444;

    font-size:14px;

    line-height:1.45;

}


/* ======================================================
   PRICE
====================================================== */

.tour-price{

    width:150px;

    flex-shrink:0;

    text-align:right;

}

.price-label{

    font-size:13px;

    color:#888;

    margin-bottom:4px;

}

.price-main{

    font-size:26px;

    font-weight:800;

    color:var(--danger);

    line-height:1.1;

    margin-bottom:12px;

}

.price-child{

    font-size:13px;

    color:#666;

    margin-bottom:6px;

}

.price-child strong{

    color:#222;

    font-weight:700;

}


/* ======================================================
   STATUS
====================================================== */

.status-row{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-top:16px;

}

.status{

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:999px;

    padding:7px 12px;

    font-size:13px;

    font-weight:700;

}

.status-green{

    background:#e7f8eb;

    color:#1b8d42;

}

.status-orange{

    background:#fff2df;

    color:#ef6c00;

}

.status-red{

    background:#ffe7e7;

    color:#d32f2f;

}


/* ======================================================
   FOOTER
====================================================== */

.tour-footer{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

    padding:16px 18px 18px;

    border-top:1px solid #eee;

}

.footer-link{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:42px;

    border-radius:12px;

    background:#f7f7f7;

    color:#444;

    font-size:14px;

    font-weight:600;

    transition:.25s;

}

.footer-link:hover{

    background:#edf5ff;

    color:var(--primary);

}

.footer-link i{

    color:var(--primary);

}


/* ======================================================
   SHARE
====================================================== */

.share-card{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:46px;

    border-radius:12px;

    background:#eef5ff;

    color:var(--primary);

    font-weight:700;

    transition:.25s;

}

.share-card:hover{

    background:#dcecff;

}

.share-card i{

    font-size:15px;

}


/* ======================================================
   BOOKING
====================================================== */

.booking-btn{

    height:46px;

    border-radius:12px;

    background:#e53935;

    color:#fff;

    font-size:15px;

    font-weight:700;

    transition:.25s;

}

.booking-btn:hover{

    background:#d32f2f;

}

.booking-btn:active{

    transform:scale(.98);

}
/* ======================================================
   BOTTOM NAVIGATION
====================================================== */

.bottom-nav{

    position:fixed;

    left:50%;

    bottom:0;

    transform:translateX(-50%);

    width:100%;

    max-width:480px;

    height:68px;

    background:#ffffff;

    border-top:1px solid #e8e8e8;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    z-index:999;

    box-shadow:0 -4px 20px rgba(0,0,0,.08);

}

.nav-item{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:4px;

    color:#777;

    font-size:12px;

    font-weight:600;

    transition:.25s;

}

.nav-item i{

    font-size:20px;

}

.nav-item:hover{

    background:#f8f9fb;

}

.nav-item.active{

    color:var(--primary);

}

.nav-item.active i{

    color:var(--danger);

}



/* ======================================================
   BOTTOM SHEET
====================================================== */

.bottom-sheet{

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    background:#fff;

    border-radius:24px 24px 0 0;

    z-index:2000;

    padding:12px 20px 30px;

    box-shadow:0 -10px 30px rgba(0,0,0,.15);

    animation:sheetUp .28s ease;

}

.sheet-handle{

    width:50px;

    height:5px;

    background:#d7d7d7;

    border-radius:999px;

    margin:0 auto 18px;

}

.sheet-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.sheet-header h3{

    font-size:20px;

    font-weight:700;

}

.close-sheet{

    width:40px;

    height:40px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

}

.close-sheet:hover{

    background:#f3f3f3;

}

.sheet-body{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.month-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;

}

.sheet-option{

    height:48px;

    border-radius:14px;

    background:#f7f7f7;

    font-weight:600;

    transition:.25s;

}

.sheet-option:hover{

    background:#edf5ff;

}

.sheet-option.active{

    background:var(--primary);

    color:#fff;

}



/* ======================================================
   OVERLAY
====================================================== */

.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    z-index:1990;

    backdrop-filter:blur(2px);

}

.hidden{

    display:none;

}



/* ======================================================
   ANIMATION
====================================================== */

@keyframes sheetUp{

    from{

        opacity:0;

        transform:translateY(100%);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

.tour-card{

    animation:fadeIn .35s ease;

}



/* ======================================================
   SCROLLBAR
====================================================== */

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-thumb{

    background:#d0d0d0;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#b5b5b5;

}



/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width:430px){

    .page-header{

        padding:12px;

    }

    .page-header h1{

        font-size:18px;

    }

    .share-btn{

        padding:0 10px;

        font-size:13px;

    }

    .summary-card{

        margin:12px;

        padding:16px;

    }

    .tour-list{

        padding:0 12px 20px;

    }

    .tour-content{

        flex-direction:column;

        gap:14px;

    }

    .tour-price{

        width:100%;

        text-align:left;

    }

    .price-main{

        font-size:28px;

    }

    .status-row{

        flex-direction:row;

        flex-wrap:wrap;

    }

    .tour-footer{

        grid-template-columns:1fr;

    }

    .booking-btn{

        height:52px;

        font-size:16px;

    }

}



@media (min-width:431px){

    .tour-card{

        border-radius:22px;

    }

}



/* ======================================================
   SAFE AREA (iPhone)
====================================================== */

.bottom-nav{

    padding-bottom:env(safe-area-inset-bottom);

}

body{

    padding-bottom:env(safe-area-inset-bottom);

}