﻿
/*=========DESKTOP============ */

/* BENDRI MYGTUKAI */
.btn-primary {
    display: inline-block;
    background-color: #0071eb;
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background-color: #005bbd;
}


.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 20px;
    height: 20px;
}

.arrow-icon::after {
    content: "❯";
    font-size: 20px;
    font-weight: 200;
    opacity: 0.9;
}

hr {
    border: none;
    border-top: 1px solid #dcdcdc;
    margin: 10px 0;
}



/*---------------------------- BLOKAS: TOP ---------------------------------*/

.block-top {
    display: flex;
    flex-direction: column; /* vienas stulpelis */
    align-items: center;    /* centruoja VISĄ turinį horizontaliai */
    justify-content: center;
    text-align: center;     /* centruoja tekstą viduje */
    gap: 40px;
    padding: 40px 40px 60px 40px;
    background-color: #E6ECF2;
}

.block-top-text {
    display: flex;
    flex-direction: column;
    align-items: center;    /* centruoja H3 ir p kaip grupę */
    text-align: center;
    gap: 10px;
}

.block-top-text h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 0px;
    align-items: center;    /* centruojam horizontaliai */
}

.block-top-text p {
    font-size: 18px;
    font-weight: 200;
    line-height: 1.5;
    margin-bottom: 10px;
    align-items: center;    /* centruojam horizontaliai */
}

/*--------------------------------------MYGTUKAS PURF-ROGE------------------------- */

.route-switch {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 420px;
    min-width: 380px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 2px; /* svarbu – balta juostelė aplink */
    border: 1px solid #d0d7e2;
    overflow: hidden;
}

/* SLANKIOJANTIS MĖLYNAS FONAS */
.switch-bg {
    position: absolute;
    top: 4px;  /* svarbu, turi sutapti su padding – balta juostel? aplink */
    left: 4px;
	width: calc(50% - 4px); /* mažesnis, kad likt? balta juosta */
	height: calc(100% - 8px);
    background: #041E42;
    border-radius: 8px;
    transition: transform 0.25s ease;
    z-index: 1;

}

/* MYGTUKAI */
.switch-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
    color: #041E42;
    transition: color 0.25s ease;
    text-decoration:none;
}

/* AKTYVUS MYGTUKAS */
.switch-btn.active {
    color: #fff;
}

/* JEI AKTYVUS ANTRAS MYGTUKAS → perstumti mėlyną į dešinę */
.switch-btn:nth-of-type(2).active ~ .switch-bg {
    transform: translateX(100%);
}

/* JEI AKTYVUS PIRMAS MYGTUKAS → mėlynas kairėje */
.switch-btn:nth-of-type(1).active ~ .switch-bg {
    transform: translateX(0%);
}

/* MENIU BLOKAI */
.route-content {
    display: none;
}

.route-content.active {
    display: block;
}

/*---------------------------------- BLOKAS - KAINU KORTELES------------------------------- */

.ticket-wrapper {
    position: relative;
    width: 100%;
    margin: 0 0 40px 0;
    z-index: 20;}

/* KONTEINERIS */
.ticket-cards {
    display: flex;
    justify-content: center;
  	align-items: flex-end; /* svarbiausia dalis */
    gap: 32px;
    padding: 20px 0;
    transform: translateY(-92px); /* kortelės pakyla ant antro bloko*/
}

/* KORTELĖ */
.ticket-card {
    background: #ffffff;
    width: 300px; 
    padding: 4px 20px 50px 20px; 
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    overflow: hidden;
	height: auto;
}

/* HOVER — tik border */
.ticket-card:hover {
    border-color: #999; 
    box-shadow: 0 6px 24px rgba(0,0,0,0.12); 
}

/* PAVADINIMAS SU PLONA LINIJĄ APAČIOJE */
.ticket-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 14px;
    position: relative;
}

.ticket-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #dcdcdc;
}

/* TEKSTAI */

.ticket-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
    width: 100%;
}

/* Kairysis tekstas */
.ticket-middle p {
    font-size: 15px;
    color: #444;
    margin: 0;
    text-align: left;
    padding-right:40px;
}

/* Dešinysis blokas (label + price) */
.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right;
}

/* Mažos raidės virš kainos */
.price-label {
    font-size: 14px;
    color: #444;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

/* Kaina — palieku tavo originalų stilių */
.price {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin: 0;
	white-space: nowrap;
}

/* GELTONA JUOSTA APAČIOJE */
.ticket-card .note {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background:#E8B92B; 
    padding: 6px 0;
    font-size: 15px;
    color: #000;
    font-weight: 400;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.15);
}

/* VISA KORTELE NUORODA */
.ticket-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/*---------------------------- TICKET STRUKTŪRA LINIJOMIS ---------------------------------*/

/* PRADINIS BLOKAS (2 stulpeliai) */
.ticket-master-row {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 40px;
    padding: 40px 100px;
    align-items: flex-start;
    margin-top:-120px;
    margin-bottom:60px;
}

/* 1 stulpelis – stambus pavadinimas */
.tm-title {
    font-size: 28px;
    font-weight: 700;
	display: flex;
    flex-direction: column;
    gap: 6px; /* tarpas tarp pavadinimo ir aprašymo */}
    
.tm-title .tm-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}    

/* 2 stulpelis – blokų konteineris */
.ticket-block {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    gap: 32px;
    align-items: stretch; /* svarbiausia */
}

/* VIDINIS BLOKAS (3 stulpeliai) */


.ticket-block {
    display: grid;
    grid-template-columns: 4fr 1.5fr auto;
    gap: 32px;
	position: relative;
	padding: 40px 0 ;
}




.ticket-block::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    height: 1.5px;
     background: #c5c9d0; /* tamsesnė, ryškesnė */
         opacity: 0.5;
}

/* 1 stulpelis – pavadinimas + aprašymas */
.tb-info strong {
    font-size: 24px;
}
.tb-info p {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.5;
}

/* 2 stulpelis – mažas tekstas + kaina */
.tb-details,
.tb-details-non {
    position: relative;      /* rodyklė centruojama pagal šį bloką */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 48px;     /* vieta rodyklei dešinėje */
}

/* geltonas tag */
.ticket-block[data-tag]::after {
    content: attr(data-tag);
    position: absolute;
    top:0px; /* prilipęs prie linijos apačios */
    right: 0;
    background: #E8B92B;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tb-details::before {
    content: attr(data-tag); /* tekstas iš HTML */
    position: absolute;
    top: -40px;               /* prilipina prie linijos */
    right: 0;
    background:#E8B92B; 
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}


.tb-details::before,
.tb-details-non::before {
    content: none !important;
}


.small-note {
    font-size: 13px;
	margin-left: 0 !important;
	text-align: left;
}

.big-price {
    font-size: 20px;
    font-weight: 700;
	margin-left: 0 !important;
	text-align: left;
}

/* RODYKLĖ  */
.tb-arrow {
    position: absolute;
    right: 0;
    top: 50%;                /* centras pagal kainos bloką */
    transform: translateY(-50%);
    transform: translateX(100%);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* LINK BLOKAS */
.ticket-link {
    text-decoration: none;
    color: inherit;
    display: block;
}






/*============MOBILE CSS (≤ 768px)==================== */

@media (max-width: 768px) {

.block-top {
    display: flex;
    flex-direction: column; /* vienas stulpelis */
    align-items: center;    /* centruoja VISĄ turinį horizontaliai */
    justify-content: center;
    text-align: center;     /* centruoja tekstą viduje */
    gap: 40px;
    padding: 40px 40px 10px 40px;
    background-color: #E6ECF2;
}

    /* BLOKAS 1-stulpelis */
    .block-one {
        flex-direction: column;
        text-align: center;
        padding: 20px 20px 20px 20px;
        gap: 24px;
    }

    .block-one-text {
        max-width: 100%;
        order: 1;
    }

    .block-one-image {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .block-one-image img {
        width: 100%;
        max-width: 420px;
        border-radius: 8px;
    }


    /* BLOKAS 2-stulpeliai */
    .block-two {
        flex-direction: column;
        text-align: center;
        padding: 0px 20px 0px 20px;
        gap: 20px;
    	margin-bottom:10px;
    }

    .block-two-text,
    .block-two-image {
        max-width: 100%;
    	margin-bottom:10px;
    }
    
.block-two-text p {
    margin-bottom: 0px;
}

    .block-two-image img {
        width: 100%;
        max-width: 420px;
        border-radius: 8px;
    }


    /* KORTELĖS – viena po kitos */
    .ticket-cards {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 30px 20px 0 20px;
        transform: none;
    }

    .ticket-card {
        width: 100%;
        max-width:300px;
    }
 }
    
    
/*---------------------------- TICKET STRUKTŪRA LINIJOMIS mobile ---------------------------------*/
    


@media (max-width: 768px) {

    .ticket-master-row {
        grid-template-columns: 1fr;
        margin-top:-40px;
        padding: 40px;
        gap: 20px;
    	margin-bottom:20px;
    }

    .ticket-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
        position: relative;
    }

    .ticket-block::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1.5px;
        background: #c5c9d0;
        opacity: 0.5;
    }

    /* GELTONAS TAG PRIRIŠTAS PRIE BLOKO */
    .ticket-block[data-tag]::after {
        content: attr(data-tag);
        position: absolute;
        top: 0px;
        right: 0;
        background: #E8B92B;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    /* IŠJUNGIAM SENĄ TAG’Ą */
    .tb-details::before,
    .tb-details-non::before {
        content: none !important;
    }

    .tb-details,
    .tb-details-non {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: relative;
        padding-right: 45px;
    }

    .small-note {
        font-size: 14px;
        margin: 0;
    }

    .big-price {
        font-size: 22px;
        font-weight: 700;
        margin: 0;
    }

    .tb-arrow {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tb-info {
    	padding-right:90px;
    }


    .tb-info strong {
        font-size: 20px;
    }
    .tb-info p {
        font-size: 15px;
        margin-top: 6px;
    }
}

/*--------------------------------------MYGTUKAS PURF-ROGE------------------------- */
@media (max-width: 768px) {

    .route-switch {
        padding: 3px;
        border-radius: 10px;
    }

    .switch-bg {
        top: 3px;
        left: 3px;
        width: calc(50% - 3px);
        height: calc(100% - 6px);
        border-radius: 6px;
        white-space:nowrap;
    }

    .switch-btn {
        padding: 8px 0;
        font-size: 12px;
    }
}




