﻿:root {
    --tg-primary: #0b4ea2;
    --tg-primary-dark: #083b7a;
    --tg-accent: #f58220;
    --tg-accent-dark: #d96c0f;
    --tg-bg: #f4f6fa;
    --tg-text: #1b2433;
    --bs-primary: var(--tg-primary);
    --bs-primary-rgb: 11, 78, 162;
    --bs-link-color: var(--tg-primary);
    --bs-link-hover-color: var(--tg-primary-dark);
    --bs-body-color: var(--tg-text);
}

html { font-size: 15px; }
body { background: var(--tg-bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { text-decoration: none; }

.btn-primary { --bs-btn-bg: var(--tg-primary); --bs-btn-border-color: var(--tg-primary); --bs-btn-hover-bg: var(--tg-primary-dark); --bs-btn-hover-border-color: var(--tg-primary-dark); --bs-btn-active-bg: var(--tg-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--tg-primary); --bs-btn-border-color: var(--tg-primary); --bs-btn-hover-bg: var(--tg-primary); --bs-btn-hover-border-color: var(--tg-primary); }
.btn-accent { background: var(--tg-accent); border-color: var(--tg-accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--tg-accent-dark); border-color: var(--tg-accent-dark); color: #fff; }
.text-accent { color: var(--tg-accent); }
.text-primary { color: var(--tg-primary) !important; }

/* Header / footer */
.tg-header { background: #fff; border-bottom: 1px solid #e3e8f0; position: sticky; top: 0; z-index: 1030; }
.tg-header .nav-link { color: var(--tg-text); font-weight: 500; }
.tg-logo { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--tg-primary), var(--tg-accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.navbar-brand { color: var(--tg-primary) !important; font-size: 1.2rem; }
.tg-footer { background: #fff; border-top: 1px solid #e3e8f0; }
.tg-footer a { color: var(--tg-text); }

/* Hero + search */
.tg-hero { position: relative; color: #fff; padding: 84px 0 110px;
    background: linear-gradient(115deg, rgba(6,32,72,.94) 0%, rgba(11,78,162,.78) 55%, rgba(11,78,162,.35) 100%), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=60') center/cover; }
.tg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--tg-bg)); pointer-events: none; }
.tg-hero .container { position: relative; z-index: 2; }
.tg-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; line-height: 1.1; }
.tg-hero h1 .hl { background: linear-gradient(90deg, #ffb066, var(--tg-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); margin-bottom: 16px; }
.tg-hero-badge i { color: #ffd166; }
.tg-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.88); }
.tg-trust i { color: #5ee0a6; margin-right: 6px; }

/* ===== Booking engine (search bar) ===== */
.tg-search { color: var(--tg-text); }
.tg-sbar { display: flex; align-items: stretch; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 22px 60px rgba(5,25,60,.28), 0 2px 6px rgba(5,25,60,.08); overflow: visible; }
.tg-field { position: relative; flex: 1 1 0; min-width: 0; border-radius: 14px; transition: background .15s, box-shadow .15s; }
.tg-f-dest { flex-grow: 1.35; } .tg-f-dates { flex-grow: 1.3; } .tg-f-guests { flex-grow: 1; }
.tg-field + .tg-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #e3e8f0; transition: opacity .15s; }
.tg-field:hover { background: #f3f6fb; }
.tg-field:hover::before, .tg-field:hover + .tg-field::before, .tg-field.is-open::before, .tg-field.is-open + .tg-field::before,
.tg-field:focus-within::before, .tg-field:focus-within + .tg-field::before { opacity: 0; }
.tg-field.is-open, .tg-field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--tg-primary), 0 6px 18px rgba(11,78,162,.14); }
.tg-field:has(.is-invalid) { box-shadow: inset 0 0 0 2px #dc3545; }
.tg-fbtn { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 66px; padding: 10px 18px; margin: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.tg-fbtn:focus { outline: none; }
.tg-fi { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: #eef3fb; color: var(--tg-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: background .15s, color .15s; }
.tg-field.is-open .tg-fi, .tg-field:focus-within .tg-fi { background: var(--tg-primary); color: #fff; }
.tg-fbody { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.tg-flabel { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8a94a3; margin-bottom: 3px; }
.tg-fvalue, .tg-input { font-size: 1rem; font-weight: 600; color: var(--tg-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-input { border: 0; outline: 0; padding: 0; background: transparent; width: 100%; }
.tg-input::placeholder { color: #9aa4b2; font-weight: 500; }
.tg-chev { color: #8a94a3; font-size: .85rem; transition: transform .2s; }
.tg-field.is-open .tg-chev { transform: rotate(180deg); }
.tg-sbtn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: 6px; padding: 0 34px; border: 0; border-radius: 14px; color: #fff; font-weight: 700; font-size: 1.08rem;
    background: linear-gradient(135deg, #ff9f45 0%, var(--tg-accent) 55%, var(--tg-accent-dark) 100%); box-shadow: 0 10px 22px rgba(245,130,32,.38); transition: transform .15s, box-shadow .15s, filter .15s; }
.tg-sbtn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 28px rgba(245,130,32,.45); }
.tg-sbtn:active { transform: translateY(0); }
.tg-sbtn i { font-size: 1.15rem; }
.tg-sopts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.tg-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 6px 4px 14px; border-radius: 999px; font-size: .82rem; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(6px); }
.tg-pill select { border: 0; outline: 0; background: rgba(255,255,255,.16); color: inherit; font-weight: 700; border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.tg-pill select option { color: var(--tg-text); }

/* Compact bar (results & hotel pages) */
.tg-search-compact { margin-bottom: 8px; }
.tg-search-compact .tg-sbar { box-shadow: 0 4px 16px rgba(17,38,79,.08); border: 1px solid #e3e8f0; padding: 5px; }
.tg-search-compact .tg-fbtn { min-height: 56px; padding: 6px 14px; }
.tg-search-compact .tg-fi { width: 32px; height: 32px; font-size: .95rem; }
.tg-search-compact .tg-sbtn { padding: 0 26px; font-size: 1rem; box-shadow: 0 6px 14px rgba(245,130,32,.3); }
.tg-search-compact .tg-sopts { margin-top: 8px; }
.tg-search-compact .tg-pill { background: #fff; color: #5b6676; border-color: #e3e8f0; backdrop-filter: none; }
.tg-search-compact .tg-pill select { background: #f1f4f9; color: var(--tg-text); }

/* Destination suggestions */
.tg-suggest { position: absolute; left: 0; top: calc(100% + 8px); min-width: 100%; width: 420px; max-width: 92vw; z-index: 1060; max-height: 380px; overflow-y: auto; display: none;
    background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 18px 50px rgba(17,38,79,.2); border: 1px solid #e3e8f0; }
.tg-suggest .list-group-item { cursor: pointer; border: 0; border-radius: 10px !important; padding: 10px 12px; margin: 0; }
.tg-suggest .list-group-item.active, .tg-suggest .list-group-item:hover { background: #eef3fb; color: var(--tg-text); }

/* Rooms & guests panel */
.tg-guests { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: 94vw; z-index: 1055; display: none; background: #fff; border-radius: 18px; border: 1px solid #e3e8f0;
    box-shadow: 0 22px 60px rgba(17,38,79,.22); overflow: hidden; animation: calIn .16s ease-out; }
.tg-guests-head { padding: 14px 18px 6px; font-weight: 700; font-size: 1rem; }
.tg-guests-body { max-height: 52vh; overflow-y: auto; padding: 4px 18px; }
.tg-guests-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid #edf0f5; background: #fafbfd; }
.tg-addroom { border: 0; background: none; color: var(--tg-primary); font-weight: 600; padding: 0; }
.tg-addroom:hover { text-decoration: underline; }
.room-block { border: 1px solid #e8edf4; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.room-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .88rem; color: var(--tg-primary); margin-bottom: 4px; }
.room-rm { border: 0; background: none; color: #c0392b; font-size: .8rem; font-weight: 600; padding: 0; }
.room-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.room-row + .room-row { border-top: 1px dashed #e3e8f0; }
.room-row b { display: block; font-size: .95rem; } .room-row small { color: #8a94a3; font-size: .75rem; }
.room-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 4px; }
.room-ages small { display: block; font-size: .72rem; color: #8a94a3; margin-bottom: 2px; }
.qty { display: inline-flex; align-items: center; gap: 12px; }
.qty b { min-width: 16px; text-align: center; font-size: 1rem; }
.qty button { width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 1.5px solid var(--tg-primary); background: #fff; color: var(--tg-primary); display: inline-flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.qty button:hover:not(:disabled) { background: var(--tg-primary); color: #fff; }
.qty button:disabled { border-color: #d5dbe4; color: #c3c9d3; cursor: not-allowed; }

@media (max-width: 991px) {
    .tg-sbar { flex-direction: column; padding: 8px; }
    .tg-field + .tg-field::before { top: 0; bottom: auto; left: 16px; right: 16px; width: auto; height: 1px; }
    .tg-sbtn { margin: 8px 0 0; padding: 15px; }
    .tg-guests { left: 0; right: 0; width: auto; }
    .tg-hero { padding: 48px 0 70px; }
}

/* Date-range calendar */
.tg-nights { background: #eef3fb; color: var(--tg-primary); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.tg-cal { position: absolute; left: 0; top: calc(100% + 8px); z-index: 1060; width: 660px; background: #fff; border: 1px solid #e3e8f0; border-radius: 18px; display: none; overflow: hidden; box-shadow: 0 22px 60px rgba(17,38,79,.22); }
.tg-cal.open { display: block; animation: calIn .16s ease-out; }
@keyframes calIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; }
.cal-hint { font-size: .85rem; color: #5b6676; font-weight: 500; }
.cal-hint i { color: var(--tg-accent); }
.cal-body { position: relative; padding: 6px 16px 10px; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-title { text-align: center; font-weight: 700; padding: 8px 0 10px; }
.cal-nav { position: absolute; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dde3ec; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--tg-text); z-index: 1; }
.cal-nav:hover:not(:disabled) { background: #eef3fb; border-color: var(--tg-primary); color: var(--tg-primary); }
.cal-nav:disabled { opacity: .35; }
.cal-nav.prev { left: 18px; } .cal-nav.next { right: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 600; color: #8a94a3; text-transform: uppercase; padding-bottom: 6px; }
.cal-dow.weekend { color: #d9534f; }
.cal-day { position: relative; height: 40px; border: 0; background: none; padding: 0; font-size: .9rem; color: var(--tg-text); cursor: pointer; }
.cal-day span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; transition: background .1s; }
.cal-day.weekend span { color: #d9534f; }
.cal-day:not(.disabled):not(.start):not(.end):hover span { background: #eef3fb; box-shadow: inset 0 0 0 1px var(--tg-primary); }
.cal-day.today span { font-weight: 700; box-shadow: inset 0 0 0 1px #c3ccd9; }
.cal-day.disabled { cursor: default; } .cal-day.disabled span { color: #c3c9d3 !important; text-decoration: line-through; text-decoration-color: #dfe3ea; }
.cal-day.too-far span { color: #aab2bf; }
.cal-day.in-range::before, .cal-day.has-range.start::before, .cal-day.has-range.end::before { content: ""; position: absolute; top: 1px; bottom: 1px; left: 0; right: 0; background: #e3edfb; }
.cal-day.has-range.start::before { left: 50%; } .cal-day.has-range.end::before { right: 50%; }
.cal-day.start.end::before { display: none; }
.cal-day.start span, .cal-day.end span { background: var(--tg-primary); color: #fff !important; font-weight: 700; box-shadow: 0 3px 8px rgba(11,78,162,.35); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #edf0f5; background: #fafbfd; }
.cal-sel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-sel-box { border: 1px solid #dde3ec; border-radius: 10px; padding: 4px 12px; background: #fff; min-width: 118px; }
.cal-sel-box.active { border-color: var(--tg-primary); box-shadow: 0 0 0 3px rgba(11,78,162,.12); }
.cal-sel-box small { display: block; font-size: .7rem; color: #8a94a3; text-transform: uppercase; letter-spacing: .03em; }
.cal-sel-box b { font-size: .88rem; }
@media (max-width: 767px) {
    .tg-cal { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
    .tg-cal.open { animation: calUp .2s ease-out; }
    @keyframes calUp { from { transform: translateY(100%); } to { transform: none; } }
    .cal-months { grid-template-columns: 1fr; }
    .cal-day { height: 46px; } .cal-day span { width: 42px; height: 42px; }
    .cal-sel-box { min-width: 0; }
}
@media (min-width: 768px) and (max-width: 991px) { .tg-cal { width: min(660px, calc(100vw - 40px)); } }

.tg-feature { background: #fff; border-radius: 12px; padding: 22px; height: 100%; border: 1px solid #e6ebf2; }
.tg-feature i { font-size: 1.8rem; color: var(--tg-accent); }

/* Results */
.tg-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.hotel-card { transition: box-shadow .15s; }
.hotel-card:hover { box-shadow: 0 6px 20px rgba(17,38,79,.10); }
.hotel-card .thumb { width: 100%; height: 100%; min-height: 190px; object-fit: cover; background: #dfe6f0; }
.tg-no-img { background: #e8edf3 url('/img/nohotel.png') center/contain no-repeat; }
.tg-hotel-banner { background: linear-gradient(135deg,#0b4ea2 0%,#1565c0 50%,#f58220 100%) !important; display:flex; align-items:center; justify-content:center; padding:12px; overflow:hidden; position:relative; }
.tg-hotel-banner::before { content:""; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='none'/%3E%3Ccircle cx='30' cy='30' r='28' stroke='rgba(255,255,255,.06)' stroke-width='1' fill='none'/%3E%3C/svg%3E") repeat; }
.tg-hotel-banner span { position:relative; color:#fff; font-weight:700; text-align:center; line-height:1.3; text-shadow:0 1px 4px rgba(0,0,0,.35); letter-spacing:.01em; }
.hotel-card .price { font-size: 1.45rem; font-weight: 700; color: var(--tg-text); }
.tg-stars { color: #f5b301; font-size: .8rem; }
.badge-soft-success { background: #e5f6ec; color: #13804a; font-weight: 500; }
.badge-soft-info { background: #e8f0fc; color: var(--tg-primary); font-weight: 500; }
.filter-card { position: sticky; top: 84px; }

/* ===== Results page: header, sort, chips ===== */
.tg-results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 16px; }
.tg-sort { display: inline-flex; background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.tg-sort a { padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 600; color: #5b6676; white-space: nowrap; }
.tg-sort a:hover { background: #f3f6fb; color: var(--tg-text); }
.tg-sort a.active { background: var(--tg-primary); color: #fff; box-shadow: 0 4px 10px rgba(11,78,162,.25); }
.tg-chip { display: inline-flex; align-items: center; gap: 8px; background: #eef3fb; color: var(--tg-primary); border: 1px solid #cfdcf1; border-radius: 999px; padding: 4px 8px 4px 14px; font-size: .84rem; font-weight: 600; }
.tg-chip i { font-size: .7rem; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.tg-chip:hover { background: #e0eafa; color: var(--tg-primary-dark); }
.tg-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* ===== Filters sidebar ===== */
@media (min-width: 992px) { .tg-filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: 16px; scrollbar-width: thin; } }
.tg-fcard { background: #fff; border: 1px solid #e3e8f0; border-radius: 16px; }
@media (max-width: 991px) { .tg-fcard { border: 0; border-radius: 0; } }
.tg-fhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 700; border-bottom: 1px solid #edf0f5; }
.tg-fhead i { color: var(--tg-primary); }
.tg-fcount { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--tg-accent); color: #fff; font-size: .72rem; padding: 0 6px; margin-left: 4px; }
.tg-fsec { padding: 14px 18px; border-bottom: 1px solid #edf0f5; }
.tg-fsec:last-of-type { border-bottom: 0; }
.tg-fsec-title { font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.tg-fsec-title small { font-weight: 500; color: #8a94a3; }
.tg-fnote { font-size: .74rem; color: #8a94a3; margin-top: 8px; line-height: 1.35; }
.tg-fsearch { display: flex; align-items: center; gap: 8px; border: 1px solid #dde3ec; border-radius: 10px; padding: 0 10px; transition: border-color .15s, box-shadow .15s; }
.tg-fsearch:focus-within { border-color: var(--tg-primary); box-shadow: 0 0 0 3px rgba(11,78,162,.12); }
.tg-fsearch i { color: #8a94a3; }
.tg-fsearch input { border: 0; outline: 0; padding: 8px 0; width: 100%; background: transparent; }
.tg-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .9rem; user-select: none; }
.tg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tg-opt .box { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c3ccd9; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .12s; }
.tg-opt:hover .box { border-color: var(--tg-primary); }
.tg-opt input:checked + .box { background: var(--tg-primary); border-color: var(--tg-primary); }
.tg-opt input:checked + .box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.tg-opt input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(11,78,162,.25); }
.tg-opt .lbl { flex: 1; min-width: 0; }
.tg-opt .cnt { font-size: .78rem; color: #8a94a3; background: #f3f6fb; border-radius: 999px; padding: 1px 8px; }
.tg-opt.disabled { opacity: .45; cursor: not-allowed; }
.tg-showmore { border: 0; background: none; color: var(--tg-primary); font-weight: 600; font-size: .85rem; padding: 6px 0 0; }
.tg-stars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tg-starbtn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid #dde3ec; border-radius: 10px; padding: 6px 4px; cursor: pointer; font-weight: 700; font-size: .88rem; transition: all .12s; margin: 0; }
.tg-starbtn input { position: absolute; opacity: 0; pointer-events: none; }
.tg-starbtn i { color: #f5b301; font-size: .78rem; }
.tg-starbtn small { font-weight: 500; color: #8a94a3; font-size: .72rem; }
.tg-starbtn:hover { border-color: var(--tg-primary); }
.tg-starbtn.on { border-color: var(--tg-primary); background: #eef3fb; color: var(--tg-primary); box-shadow: 0 0 0 1px var(--tg-primary); }
.tg-starbtn:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(11,78,162,.25); }
.tg-fsubmit { position: sticky; bottom: 0; padding: 12px 18px; background: #fff; border-top: 1px solid #edf0f5; }

/* Price histogram + dual slider */
.tg-hist { display: flex; align-items: flex-end; gap: 2px; height: 54px; padding: 0 9px; }
.tg-hist span { flex: 1; background: #dbe3ef; border-radius: 3px 3px 0 0; transition: background .12s; min-height: 3px; }
.tg-hist span.in { background: #8fb2e3; }
.tg-hist span.empty { opacity: .5; }
.tg-range { position: relative; height: 22px; margin: 0 0 8px; }
.tg-range::before { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 4px; margin-top: -2px; background: #e3e8f0; border-radius: 2px; }
.tg-range-fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--tg-primary); border-radius: 2px; margin-left: 9px; margin-right: 9px; }
.tg-range input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 22px; }
.tg-range input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.tg-range input[type=range]::-moz-range-track { background: none; }
.tg-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--tg-primary); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab; }
.tg-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--tg-primary); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab; }
.tg-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(11,78,162,.25); }
.tg-price-inputs { display: flex; align-items: center; gap: 8px; }
.tg-price-inputs label { flex: 1; border: 1px solid #dde3ec; border-radius: 10px; padding: 3px 10px; margin: 0; }
.tg-price-inputs label:focus-within { border-color: var(--tg-primary); }
.tg-price-inputs small { display: block; font-size: .68rem; color: #8a94a3; text-transform: uppercase; letter-spacing: .04em; }
.tg-price-inputs input { border: 0; outline: 0; width: 100%; font-weight: 700; padding: 0; background: transparent; -moz-appearance: textfield; }
.tg-price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Result cards extras */
.tg-kind { position: absolute; left: 10px; top: 10px; background: rgba(14,31,58,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.tg-room-line { font-size: .88rem; color: #3b4656; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-room-line i { color: #8a94a3; }
.hotel-card .price small { font-size: .8rem; font-weight: 500; color: #6b7685; }
.hotel-card .thumb { transition: transform .3s; }
.hotel-card:hover .thumb { transform: scale(1.03); }
.hotel-card .col-md-4 { overflow: hidden; }
@media (max-width: 767px) { .tg-pricecol { border-left: 0 !important; border-top: 1px solid #edf0f5; } .hotel-card .thumb { min-height: 200px; max-height: 220px; } }

/* Hotel page */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 6px; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; background: #dfe6f0; }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; } .gallery img:first-child { grid-column: span 2; grid-row: auto; } .gallery img:nth-child(n+4) { display: none; } }
.room-card .room-img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; background: #dfe6f0; }
.rate-row { border-top: 1px solid #edf0f5; padding: 12px 0; }
.rate-row:first-child { border-top: 0; }
.amenity-list { columns: 2; font-size: .9rem; }
@media (min-width: 992px) { .amenity-list { columns: 3; } }

/* Checkout / bookings */
.summary-card { position: sticky; top: 84px; }
.summary-card img { height: 150px; object-fit: cover; width: 100%; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--tg-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.booking-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; background: #dfe6f0; }
.kv dt { font-weight: 500; color: #5b6676; }
.kv dd { margin-bottom: .5rem; }

/* Booking confirmed */
.tg-confirm-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 28px 30px 22px; color: #fff;
    background: radial-gradient(circle at 90% -20%, rgba(245,130,32,.55), transparent 45%), linear-gradient(125deg, #0f8a5f 0%, #0b6e8c 45%, var(--tg-primary) 100%);
    box-shadow: 0 14px 40px rgba(11,78,162,.22); }
.tg-confirm-kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.tg-check { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.tg-check svg { width: 56px; height: 56px; }
.tg-check circle { fill: #fff; stroke: none; transform-origin: center; animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.tg-check path { fill: none; stroke: #0f8a5f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .35s ease-out forwards; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tg-ref-pill { background: #fff; color: var(--tg-text); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 210px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tg-ref-pill small { color: #6b7685; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.tg-ref-pill .ref { font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; color: var(--tg-primary); }
.tg-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.tg-confirm-actions .btn-outline-light { --bs-btn-hover-color: var(--tg-primary); }
.tg-confetti { position: absolute; inset: 0; pointer-events: none; }
.tg-confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: fall linear forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(260px) rotate(var(--r)); } }
.tg-next { display: flex; gap: 14px; background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 16px; }
.tg-next-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.tg-stay { display: flex; align-items: stretch; gap: 10px; background: #f6f9fd; border: 1px solid #e3ebf6; border-radius: 14px; padding: 14px 18px; }
.tg-stay-date { flex: 1; }
.tg-stay-date small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #8a94a3; font-weight: 600; margin-bottom: 4px; }
.tg-stay-date .day { font-size: 2.1rem; font-weight: 800; color: var(--tg-primary); line-height: 1; }
.tg-stay-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6b7685; font-size: .8rem; font-weight: 600; padding: 0 8px; position: relative; min-width: 90px; }
.tg-stay-mid::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 2px dashed #c9d6ea; z-index: 0; }
.tg-stay-mid i, .tg-stay-mid span { position: relative; z-index: 1; background: #f6f9fd; padding: 0 6px; }
.tg-stay-mid i { color: var(--tg-accent); font-size: 1.1rem; }
@media (max-width: 575px) { .tg-confirm-hero { padding: 22px 18px 18px; } .tg-stay-date .day { font-size: 1.6rem; } .tg-stay-mid { min-width: 60px; } }

/* Admin */
.admin-sidebar { background: #0e1f3a; min-height: calc(100vh - 57px); }
.admin-sidebar .nav-link { color: #c7d2e4; border-radius: 8px; padding: .5rem .8rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.stat { background: #fff; border-radius: 12px; border: 1px solid #e3e8f0; padding: 16px; }
.stat .v { font-size: 1.6rem; font-weight: 700; }
.stat .l { color: #6b7685; font-size: .85rem; }
pre.json { background: #0e1f3a; color: #d6e2ff; padding: 12px; border-radius: 8px; max-height: 520px; overflow: auto; font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.table td, .table th { vertical-align: middle; }

/* Voucher print */
@media print {
    .tg-header, .tg-footer, .no-print { display: none !important; }
    body { background: #fff; }
    .tg-card { border: 1px solid #999; }
}
