/* Tripstan – SearchMyGuide tours. Uses the Togo theme variables so colours follow the site. */
.tsmg-card-badge { width: 100%; font-size: 12px; color: #6b7280; }
.tsmg-card-badge span { font-weight: 600; color: var(--togo-primary-color, #111); }

.tsmg-trip { --tsmg-accent: var(--togo-accent-color, #fd4621); --tsmg-text: var(--togo-primary-color, #111); --tsmg-muted: #6b7280; --tsmg-line: #e5e7eb; --tsmg-radius: 16px; padding: 32px 0 64px; color: var(--tsmg-text); }
.tsmg-head { margin-bottom: 20px; }
.tsmg-trip h1.tsmg-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.tsmg-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--tsmg-muted); font-size: 15px; }
.tsmg-meta > span + span::before { content: "·"; margin-right: 20px; margin-left: -10px; }
.tsmg-rating { color: var(--tsmg-text); font-weight: 600; }
.tsmg-rating span { color: var(--tsmg-muted); font-weight: 400; }

.tsmg-gallery { position: relative; display: grid; gap: 8px; height: clamp(260px, 42vw, 480px); border-radius: var(--tsmg-radius); overflow: hidden; margin-bottom: 36px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tsmg-gallery-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tsmg-gallery-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.tsmg-gallery-3 { grid-template-columns: 2fr 1fr; }
.tsmg-gallery-4 { grid-template-columns: 2fr 1fr 1fr; }
.tsmg-gallery-item { padding: 0; border: 0; background: #f3f4f6; cursor: zoom-in; overflow: hidden; min-height: 0; }
.tsmg-gallery-item:first-child { grid-row: 1 / -1; }
.tsmg-gallery-4 .tsmg-gallery-item:nth-child(2) { grid-column: 2 / 4; }
.tsmg-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tsmg-gallery-item:hover img { transform: scale(1.03); }
.tsmg-gallery-all { position: absolute; right: 16px; bottom: 16px; background: #fff; color: var(--tsmg-text); border: 1px solid var(--tsmg-text); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }

.tsmg-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.tsmg-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.tsmg-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.tsmg-lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.tsmg-lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.tsmg-lightbox-close { top: 20px; right: 20px; }
.tsmg-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tsmg-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.tsmg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.tsmg-section { padding: 28px 0; border-top: 1px solid var(--tsmg-line); }
.tsmg-section:first-child { border-top: 0; padding-top: 0; }
.tsmg-trip .tsmg-section h2 { font-size: 22px; margin: 0 0 16px; }
.tsmg-text { line-height: 1.65; }
.tsmg-text p { margin: 0 0 12px; }

.tsmg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tsmg-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.tsmg-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.tsmg-list-check li::before { content: "✓"; color: #16a34a; }
.tsmg-list-cross li::before { content: "✕"; color: #dc2626; }
.tsmg-ie { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.tsmg-itinerary { list-style: none; margin: 0; padding: 0; }
.tsmg-itinerary li { position: relative; padding: 0 0 24px 32px; border-left: 2px solid var(--tsmg-line); margin-left: 7px; }
.tsmg-itinerary li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tsmg-itinerary li::before { content: ""; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--tsmg-accent); }
.tsmg-trip .tsmg-itinerary h3 { font-size: 17px; line-height: 1.4; margin: 0 0 4px; }
.tsmg-day { color: var(--tsmg-accent); margin-right: 8px; }
.tsmg-place { color: var(--tsmg-muted); font-size: 14px; margin-bottom: 8px; }
.tsmg-map-link { color: var(--tsmg-accent); font-weight: 500; }

.tsmg-guide { display: flex; gap: 16px; align-items: center; line-height: 1.6; }
.tsmg-guide img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }

.tsmg-side { position: sticky; top: 110px; }
.tsmg-book { border: 1px solid var(--tsmg-line); border-radius: var(--tsmg-radius); padding: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, .06); background: #fff; }
.tsmg-price { margin-bottom: 16px; }
.tsmg-price strong { font-size: 28px; }
.tsmg-from, .tsmg-per { color: var(--tsmg-muted); font-size: 14px; }
.tsmg-book-btn { display: block; width: 100%; text-align: center; }
.tsmg-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--tsmg-muted); }
.tsmg-powered { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--tsmg-line); font-size: 13px; color: var(--tsmg-muted); text-align: center; text-decoration: none; }
.tsmg-powered strong { color: var(--tsmg-text); }

.tsmg-mobile-bar { display: none; }

@media (max-width: 991px) {
    .tsmg-layout { grid-template-columns: 1fr; gap: 0; }
    .tsmg-side { position: static; margin-top: 12px; }
    .tsmg-trip { padding-bottom: 96px; }
    .tsmg-mobile-bar { display: flex; position: fixed; z-index: 99; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--tsmg-line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06); }
    .tsmg-mobile-bar .tsmg-price { margin: 0; }
    .tsmg-mobile-bar .tsmg-price strong { font-size: 20px; }
}
@media (max-width: 640px) {
    .tsmg-gallery, .tsmg-gallery-3, .tsmg-gallery-4 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 280px; }
    .tsmg-gallery-item:not(:first-child) { display: none; }
    .tsmg-ie { grid-template-columns: 1fr; }
    .tsmg-meta > span + span::before { display: none; }
    .tsmg-trip h1.tsmg-title { font-size: 26px; }
    .tsmg-trip .tsmg-section h2 { font-size: 20px; }
}
