/* Tours & attractions: search, results, tour page, booking box */
.search.tours { grid-template-columns: 2.4fr 1.2fr auto; }
.tours-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); padding: 84px 0 64px; color: #fff; }
.tours-hero::before, .tours-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tours-hero::before { background: url('https://images.unsplash.com/photo-1533105079780-92b9be482077?auto=format&fit=crop&w=2000&q=65') 50% 60% / cover no-repeat; animation: tzoom 24s ease-out both; }
.tours-hero::after { background: radial-gradient(55% 70% at 90% 0%, rgba(255, 122, 89, .28), transparent 60%), linear-gradient(180deg, rgba(6, 16, 34, .45), rgba(6, 16, 34, .72)); }
.tours-hero.slim { padding: 26px 0; }
.tours-hero h1 { color: #fff; }
@keyframes tzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tours-hero::before { animation: none; } }

.t-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.t-head h1 { margin: 0; }
.t-sort { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.t-sort a { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.t-sort a.on { background: var(--navy-2); color: #fff; }
.t-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t-card { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.t-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.t-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9eefb, #fdeef0); display: grid; place-items: center; font-size: 2.4rem; }
.t-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255, 255, 255, .94); color: #b4232f; font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.t-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.t-body h3 { font-size: 1.02rem; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-rate b { color: #b26b00; }
.t-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.t-price { margin: auto 0 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.t-price b { font-size: 1.25rem; color: var(--ink); }
.t-price.big b { font-size: 1.6rem; }
.t-soon { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.t-soon > span { font-size: 2.4rem; }
.t-soon > div { flex: 1; min-width: 220px; }
.t-soon h2 { margin: 0 0 4px; }

.t-top { padding-top: 24px; }
.t-top h1 { margin: 6px 0 8px; }
.t-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.t-gallery { display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; height: 420px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.t-gallery img { width: 100%; height: 100%; object-fit: cover; }
.t-gallery img:first-child { grid-row: span 2; }
.t-gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.t-gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.t-gallery.n2 img:first-child, .t-gallery.n1 img:first-child { grid-row: auto; }
.t-gallery.n3 { grid-template-columns: 2fr 1fr; }
.t-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.t-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t-main h2 { margin-top: 0; }
.t-desc { white-space: pre-line; line-height: 1.75; margin: 0; }
.t-checks, .t-x { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.t-checks li::before { content: '✓'; color: var(--good); font-weight: 800; margin-inline-end: 8px; }
.t-x li::before { content: '✕'; color: #c0392b; font-weight: 800; margin-inline-end: 8px; }
.t-inc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.t-inc h3, .t-facts h3 { font-size: 1rem; margin: 0 0 8px; }
.t-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.t-facts p, .t-facts ul { margin: 0; color: var(--ink-2); }
.t-facts ul { padding-inline-start: 18px; }
.t-itin { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.t-itin ul { margin: 4px 0 0; color: var(--ink-2); }
.t-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-reviews figure { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.t-reviews blockquote { margin: 6px 0 0; color: var(--ink-2); }
.t-rv-top { margin: 0 0 4px; }
.t-rv-top b { color: #b26b00; letter-spacing: 1px; }
.t-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.t-book .f { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-weight: 600; }
.t-book select, .t-book input { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: 600 1rem var(--font); background: var(--card); color: var(--ink); }
.t-pax { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.t-pax legend { font-weight: 700; margin-bottom: 6px; }
.t-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-count input { width: 80px; text-align: center; }
.t-book .btn.big { width: 100%; }
.t-opts h2 { margin-top: 0; }
.t-opt { padding: 14px 0; border-top: 1px solid var(--line); }
.t-opt:first-of-type { border-top: 0; padding-top: 0; }
.t-opt p { margin: 4px 0; }
.t-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.t-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.t-slot:hover { border-color: var(--brand); transform: translateY(-1px); }
.t-slot span { font-weight: 700; color: var(--brand); font-size: .92rem; }
.t-slot small { color: #b4232f; font-size: .72rem; font-weight: 700; }
.t-ref { font-size: 1.1rem; }
.good { color: var(--good); }

@media (max-width: 1100px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .t-layout { grid-template-columns: 1fr; } .t-side { position: static; order: -1; } }
@media (max-width: 760px) {
  .t-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search.tours { grid-template-columns: 1fr; }
  .t-gallery { height: 240px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .t-gallery img:first-child { grid-row: auto; }
  .t-gallery img:nth-child(n+3) { display: none; }
  .t-inc, .t-facts, .t-reviews { grid-template-columns: 1fr; }
  .tours-hero { padding: 48px 0 40px; }
}
@media (max-width: 480px) { .t-grid { grid-template-columns: 1fr; } }

/* dark mode */
html[data-theme=dark] .t-badge { background: rgba(21, 27, 38, .92); color: #ff8a95; }
html[data-theme=dark] .t-img { background: linear-gradient(135deg, #192441, #3b161b); }
html[data-theme=dark] .t-rate b, html[data-theme=dark] .t-rv-top b { color: #ffc24d; }
