/* 10.11.2026, №107: форма и карточки туров по образцу выдачи отелей. */
.tours-wrap [hidden]{display:none!important;}
.tours-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px;}
.tours-search{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;}
.tours-search .form-row{min-width:0;margin:0;}
.tours-search input,.tours-search select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;}
/* 10.11.2026: iPhone рисует поле даты своей шириной и наезжает на «Ночи» — убираем системный вид. */
.tours-search input[type=date]{-webkit-appearance:none;appearance:none;display:block;min-height:48px;}
.tours-search>button{grid-column:1/-1;justify-self:start;}
.tours-results{display:grid;gap:20px;}
.tour-card{display:flex;gap:20px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm);}
.tour-card .hotel-result-body{overflow-wrap:anywhere;}
.tour-card p{margin:4px 0;}
.tour-card .hotel-result-footer{flex-wrap:wrap;}
.tour-card .hotel-result-footer .btn{max-width:100%;white-space:normal;}
#toursStatus,#toursSuccess{overflow-wrap:anywhere;margin:16px 0;}
@media(max-width:650px){.tours-search{grid-template-columns:repeat(2,minmax(0,1fr));}.tour-card{padding:16px;}}
@media(max-width:360px){.tours-search{grid-template-columns:minmax(0,1fr);}.tours-tabs .btn{width:100%;}.tour-card .hotel-result-footer{align-items:start;flex-direction:column;}}
/* 10.11.2026, №108б: фото над карточкой, галерея ограничена её шириной. */
.tour-card{flex-direction:column;min-width:0;}
.tour-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:200px;overflow:hidden;border-radius:var(--radius);background:var(--cream-2);color:var(--text-muted);text-align:center;overflow-wrap:anywhere;}
.tour-photo img{display:block;width:100%;height:100%;object-fit:cover;}
.tour-photo-icon{font-size:40px;line-height:1;}
.tour-card .hotel-result-body{padding:0;}
.tour-about-button{align-self:flex-start;margin-top:12px;max-width:100%;white-space:normal;}
.tour-about{min-width:0;max-width:100%;margin-top:12px;}
.tour-gallery{min-width:0;max-width:100%;}
.tour-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;max-width:100%;}
.tour-gallery-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;}
.tour-gallery-slide img{display:block;width:100%;height:260px;object-fit:contain;background:var(--cream-2);}
.tour-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;}
.tour-facts{margin:12px 0 0;overflow-wrap:anywhere;}
.tour-facts dt{font-weight:600;}
.tour-facts dd{margin:0 0 8px;white-space:pre-line;}
@media(max-width:360px){.tour-photo{height:170px;}.tour-gallery-slide img{height:200px;}}

/* 10.11.2026, №109б: пассажиры и длинные строки рейсов помещаются на 320 px. */
.flights-search{grid-template-columns:repeat(3,minmax(0,1fr));}
.flights-search label,.flights-note{overflow-wrap:anywhere;}
.flight-card{min-width:0;padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--white);overflow-wrap:anywhere;}
.flight-card p{margin:6px 0;}
.flight-card h2{font-size:1.1rem;}
.flight-card .btn,#flightsSuccess .btn{max-width:100%;white-space:normal;}
.flight-price{font-size:1.3rem;font-weight:700;}
#flightsStatus,#flightsSuccess{margin:16px 0;overflow-wrap:anywhere;}
@media(max-width:650px){.flights-search{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:360px){.flights-search{grid-template-columns:minmax(0,1fr);}.flight-card{padding:16px;}}
