.tour-page{
    padding:40px 0;
		max-width: 1100px;
		margin:auto;
}
.is-hidden{
	display: none;
}
.tour-notfound{
    padding:120px 0;
    text-align:center;
}

.btn-back{
    display:inline-block;
    margin-top:20px;
}
/* HERO */

.tour-hero{
    position:relative;
    width:100%;
    min-height:420px;
    display:flex;
    align-items:center;
    overflow:hidden;
		padding-top: 150px;
}
/* background */
.tour-hero__bg{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    z-index:1;
}
/* overlay */
.tour-hero__overlay{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;

    background:linear-gradient(
        180deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.55) 100%
    );

    z-index:2;
}
/* content */
.tour-hero .container{
    position:relative;
    z-index:3;
}
.tour-hero__content{
    max-width:720px;
    color:#fff;
}
/* title */
.tour-hero__title{
    margin:0 0 12px 0;
		color: var(--sg-accent-primary);
}
/* announce */
.tour-hero__announce{
    margin-bottom:14px;
    opacity:0.95;		
}
.tour-hero__announce, .tour-hero__announce p{color: var(--sg-frame-text);}
/* meta */
.tour-hero__meta{
    margin-bottom:20px;
    font-size:0.95rem;
    opacity:0.9;
}
/* actions */
.tour-hero__actions{
    margin-top:10px;
}
#tourRequestBtn{
    font-size:16px;
    padding:12px 26px;
		background: linear-gradient(135deg, var(--sg-block-grad-start), var(--sg-block-grad-end));
		border-radius: 14px;
}

section{
		padding: 40px 10px;
		min-height: unset! important;}
/*PROGRAM SECTION*/

.tour-program, #tourProgram{
    display:flex;
    flex-direction:column;
    gap:40px;
}

.tour-day{
    display:flex;
    gap:24px;
    align-items:flex-start;
}

.tour-day__photo{
    width:220px;
    height:160px;

    background-size:cover;
    background-position:center;

    border-radius:10px;

    flex-shrink:0;
}

.tour-day__content{
    flex:1;
}

.tour-day__title{
    font-size:22px;
    font-weight:600;

    margin-bottom:10px;
}

.tour-day__text{
    font-size:16px;
    line-height:1.6;

    color:var(--sg-text-color);
		margin:auto;
    margin-bottom:12px;
		
    max-width:680px; 
}

.tour-day__text > img{heigyt: auto;}

.tour-day__links{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.tour-day__events,
.tour-day__hotels{
    font-size:15px;

    color:var(--sg-accent-color);

    cursor:pointer;

    border-bottom:1px dashed var(--sg-accent-color);
}

.tour-day__events:hover,
.tour-day__hotels:hover{
    opacity:0.8;
}


@media (max-width:768px){

    .tour-day{
        flex-direction:column;
    }

    .tour-day__photo{
        width:100%;
        height:200px;
    }

}


/* EVENTS SECTION */

.tour-events{
    display:flex;
    flex-direction:column;
    gap:40px;
}
.tour-event-card{
    display:flex;
    gap:24px;
    align-items:flex-start;
}
.tour-event-card__photo{
    width:240px;
    height:170px;

    background-size:cover;
    background-position:center;

    border-radius:10px;

    flex-shrink:0;
}
.tour-event-card__content{
    flex:1;
}
.tour-event-card__title{
    font-size:22px;
    font-weight:600;

    margin-bottom:10px;
}
.tour-event-card__text{
    font-size:16px;
    line-height:1.6;

    color:var(--sg-text-color);

    max-width:720px;
}
.tour-day__events{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:10px;
}
#tourEvents{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:10px;	
}
.tour-event-link{
    font-size:15px;

    color:var(--sg-accent-color);

    cursor:pointer;

    text-decoration:none;

    border-bottom:1px dashed var(--sg-accent-color);

    width:fit-content;
}
.tour-event-link:hover{
    opacity:0.8;
}
@media (max-width:768px){

    .tour-event-card{
        flex-direction:column;
    }

    .tour-event-card__photo{
        width:100%;
        height:200px;
    }

}

/* PROGRAM HOTEL */

.tour-day__hotel{
    margin-top:10px;
    font-size:15px;
}

.tour-day__hotel-label{
    font-weight:600;
    margin-right:6px;
}

.tour-day__hotel-link{
    color:var(--sg-accent-color);
    text-decoration:none;
    border-bottom:1px dashed var(--sg-accent-color);
}

.tour-day__hotel-link:hover{
    opacity:0.8;
}

/* HOTELS BLOCK */

.tour-hotels{
    display:flex;
    flex-direction:column;
    gap:40px;
}

.tour-hotel-card{
    display:flex;
    gap:24px;
    align-items:flex-start;
}

.tour-hotel-card__photo{
    width:240px;
    height:170px;
    background-size:cover;
    background-position:center;
    border-radius:10px;
    flex-shrink:0;
}

.tour-hotel-card__content{
    flex:1;
}

.tour-hotel-card__title{
    font-size:22px;
    font-weight:600;
    margin-bottom:10px;
}

.tour-hotel-card__line{
    margin-bottom:8px;
    font-size:16px;
    line-height:1.5;
}

.tour-hotel-card__link{
    display:inline-block;
    margin-top:8px;
    color:var(--sg-accent-color);
    text-decoration:none;
    border-bottom:1px dashed var(--sg-accent-color);
}

.tour-hotel-card__link:hover{
    opacity:0.8;
}

@media (max-width:768px){

    .tour-hotel-card{
        flex-direction:column;
    }

    .tour-hotel-card__photo{
        width:100%;
        height:200px;
    }

}

/* HERO CATEGORIES */

.tour-hero__categories{
    margin-top:18px;
}

.tour-hero__categories-note{
    margin-bottom:10px;
    font-size:14px;
    opacity:0.9;
}

.tour-hero__categories-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tour-cat-chip{
    border:1px solid rgba(255,255,255,0.35);
    background:rgba(255,255,255,0.08);
    color:#fff;
    border-radius:12px;
    padding:10px 14px;
    cursor:pointer;
    text-align:left;
    min-width:120px;
}

.tour-cat-chip.is-active{
    background:rgba(255,255,255,0.22);
    border-color:rgba(255,255,255,0.65);
}

.tour-cat-chip__name{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:4px;
}

.tour-cat-chip__price{
    display:block;
    font-size:13px;
    opacity:0.9;
}

/*sights*/

.tour-sights-slider{
    position:relative;
}
.tour-sights-track-wrap{
    overflow:hidden;
}
.tour-sights-track{
    display:flex;
    gap:16px;
    transition:transform .35s ease;
}
.tour-sight-card{
    min-width:220px;
    cursor:pointer;
}
.tour-sight-card__photo{
    width:220px;
    height:150px;
    background-size:cover;
    background-position:center;
    border-radius:10px;
}
.tour-sight-card__title{
    margin-top:8px;
    font-weight:600;
}
.tour-sights-nav{
    position:absolute;
    top:45%;
    width:36px;
    height:36px;
    border-radius:50%;
    border:none;
    cursor:pointer;
}
.tour-sights-prev{
    left:-10px;
}
.tour-sights-next{
    right:-10px;
}

.tour-sight-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1000;
}
.tour-sight-modal.is-hidden {
  display: none;
}
.tour-sight-modal__content{
    background:#fff;
    max-width:700px;
    width:90%;
    padding:24px;
    border-radius:12px;
		    max-height:85vh;
    overflow-y:auto;
}
.tour-sight-modal__photo{
    width:100%;
    height:320px;
    background-size:cover;
    background-position:center;
    border-radius:10px;
    margin-bottom:16px;
}
.tour-sight-modal__text{
    max-height:150px;
    overflow:hidden;
    position:relative;
}
.tour-sight-modal__text::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:40px;
    background:linear-gradient(to bottom,transparent,white);
}


/* ============================= */
/* TOUR CONTACT FORM */
/* ============================= */

.sg-modal{
    position:fixed;
    inset:0;
    z-index:1000;
}
.sg-modal.is-hidden{
    display:none; 
}
.sg-modal__overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.55);
} 
.sg-modal__window{
    position:relative;
    width:90%;
    max-width:520px;

    margin:10vh auto;
    padding:30px 32px;

    background:#fff;
    border-radius:12px;

    box-shadow:0 20px 50px rgba(0,0,0,0.25);
		max-height:80vh;
		overflow:auto;
}
.sg-modal__close{
    position:absolute;
    top:10px;
    right:12px;

    border:none;
    background:none;

    font-size:22px;
    cursor:pointer;
}
.sg-modal__window h2{
    margin-top:0;
    margin-bottom:6px;
}
#tourModalTitle{
    font-size:15px;
    opacity:0.7;
    margin-bottom:20px;
}
/* MODE SWITCH */
.tour-contact__mode{
    display:flex;
    gap:20px;
    margin-bottom:24px;
}
.tour-contact__mode label{
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    font-size:15px;
}
/* FORM ROW */
.form-row{
    margin-bottom:16px;
}
.form-row label{
    display:block;
    font-size:14px;
    margin-bottom:6px;
    font-weight:600;
}
.form-row input,
.form-row select{
    width:100%;
    padding:10px 12px;

    border:1px solid #ddd;
    border-radius:8px;

    font-size:15px;

    background:#fff;
}
/* TOURISTS GRID */
.tourists-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
}
/* DATE ROW */
.form-row input[type="date"]{
    margin-bottom:6px;
}
/* CHECKBOX */
.form-checkbox{
    font-size:14px;
}
.form-checkbox label{
    display:flex;
    gap:8px;
    align-items:flex-start;
    cursor:pointer;
}
.form-checkbox input{
    width:auto;
    margin-top:3px;
}
/* PRICE PREVIEW */
.tour-price-preview{
    padding:14px;
    border-radius:10px;

    background:linear-gradient(
        135deg,
        var(--sg-block-grad-start),
        var(--sg-block-grad-end)
    );

    color:#fff;
}
.tour-price-preview__label{
    font-size:13px;
    opacity:0.9;
}
#tourPricePreview{
    font-size:20px;
    font-weight:600;
    margin:4px 0 6px 0;
}
.tour-price-preview__note{
    font-size:12px;
    opacity:0.9;
}
/* SUCCESS */
#tourContactSuccess{
    padding:20px;
    text-align:center;
}
/* RESPONSIVE */
@media (max-width:640px){

    .tourists-grid{
        grid-template-columns:1fr;
    }

    .sg-modal__window{
        padding:24px 20px;
    }

}
/* DESCRIPTION ACCORDION */
.tour-announce{
	padding: 100px 40px 10px;
}

.tour-description--collapsed #tourAnnounceFull{
    max-height:160px;
    overflow:hidden;
    position:relative;
}

.tour-description--collapsed #tourAnnounceFull:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:60px;
    background:linear-gradient(
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
}

/* toggle */

.tour-description__toggle{
		padding: 0 40px;
		text-align: right;
}

.btn-link{
    border:none;
    background:none;
    padding:0;
    font-size:16px;
    color:var(--sg-accent-color);
    cursor:pointer;
}


/* responsive */
@media (max-width:768px){

    .tour-hero{
        min-height:340px;
    }
    .tour-hero__content{
        max-width:100%;
    }
}

/* SIGHT MODAL FIX */

.tour-sight-modal__content{
    position:relative;
}

.tour-sight-modal__close{
    position:absolute;
    top:12px;
    right:12px;
    z-index:2;
    border:none;
    background:none;
    font-size:24px;
    line-height:1;
    cursor:pointer;
}

.tour-sight-modal__toggle{
    margin-top:12px;
    border:none;
    background:none;
    padding:0;
    font-size:15px;
    color:var(--sg-accent-color);
    cursor:pointer;
    border-bottom:1px dashed var(--sg-accent-color);
}

.tour-sight-modal__text.is-expanded{
    max-height:none;
    overflow:visible;
}

.tour-sight-modal__text.is-expanded::after{
    display:none;
}

/* SIGHTS SLIDER FIX */

.tour-sights-slider{
    position:relative;
    padding:0 46px;
}

.tour-sights-track-wrap{
    overflow:hidden;
    width:100%;
}

.tour-sights-track{
    display:flex;
    gap:16px;
    transition:transform .35s ease;
    will-change:transform;
}

.tour-sight-card{
    flex:0 0 220px;
    min-width:220px;
}

.tour-sights-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    border-radius:50%;
    border:none;
    cursor:pointer;
    z-index:2;
    background:rgba(255,255,255,0.9);
    box-shadow:0 2px 10px rgba(0,0,0,0.15);
}

.tour-sights-prev{
    left:0;
}

.tour-sights-next{
    right:0;
}

.tour-sights-prev::before,
.tour-sights-next::before{
    content:'';
    display:block;
    width:10px;
    height:10px;
    margin:auto;
    border-top:2px solid #333;
    border-right:2px solid #333;
}

.tour-sights-prev::before{
    transform:rotate(-135deg);
}

.tour-sights-next::before{
    transform:rotate(45deg);
}

/* ============================
   TOUR PRICES
============================ */

.tour-prices-table{

    margin-top:30px;

    display:flex;
    flex-direction:column;

    gap:8px;

}

/* HEADER */

.tour-prices-head{

    display:grid;

    grid-template-columns:180px repeat(auto-fit,minmax(120px,1fr));

    gap:8px;

}

/* ROW */

.tour-prices-row{

    display:grid;

    grid-template-columns:180px repeat(auto-fit,minmax(120px,1fr));

    gap:8px;

}

/* CELL */

.tour-prices-cell{

    background:#fff;

    padding:12px 14px;

    border-radius:10px;

    text-align:center;

    font-size:15px;

}

/* HEADER CELLS */

.tour-prices-head .tour-prices-cell{

    font-weight:600;

    background:var(--sg-block-bg);

}

/* GROUP COLUMN */

.tour-prices-group{

    text-align:left;

    font-weight:600;

}

/* CATEGORY HEADER */

.tour-prices-cat{
    text-transform:uppercase;
    font-size:14px;
}

/* HOVER */

.tour-prices-row:hover .tour-prices-cell{

    background:rgba(0,0,0,0.04);

}

#tourAnnounceFull img,
.tour-day__text img,
.tour-event-card__text img,
.tour-sight-modal__text img{
    max-width:100%;
    height:auto;
    display:block;
    margin:20px auto;
    border-radius:10px;
}

/*=============================*/

/* IMAGES INSIDE TOUR TEXT */
.tour-content-img{
    max-width:100%;
    height:auto;
    display:block;
    margin:20px auto;
    border-radius:10px;
}

/* ============================
   MOBILE
============================ */

@media (max-width:700px){

    .tour-prices-head,
    .tour-prices-row{grid-template-columns:90px repeat(auto-fit,minmax(60px,1fr)); }
		.tour-prices-cat{font-size:11px;}
    .tour-prices-cell{
        font-size:12px;
        padding:5px 5px; 
    }
}



