/* TIT Booking — unified design system */
:root {
  --tit-bg: #0c1222;
  --tit-surface: #121a2e;
  --tit-card: #161f36;
  --tit-line: rgba(255, 255, 255, 0.08);
  --tit-text: #e8ecf4;
  --tit-muted: #9aa4b8;
  --tit-accent: #c9a227;
  --tit-accent-2: #e4c76b;
  --tit-danger: #e85d6c;
  --tit-ok: #3ecf8e;
  --tit-radius: 14px;
  --tit-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --tit-font: "DM Sans", system-ui, -apple-system, sans-serif;
  --tit-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.tit-body {
  margin: 0;
  font-family: var(--tit-font);
  background: var(--tit-bg);
  color: var(--tit-text);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--tit-accent-2);
}

.tit-wrap {
  width: 100%;
  max-width: var(--tit-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.tit-topbar {
  background: #070b14;
  border-bottom: 1px solid var(--tit-line);
  font-size: 0.9rem;
}

.tit-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
}

.tit-topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--tit-muted);
}

.tit-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tit-topbar__user {
  color: var(--tit-accent-2);
  font-weight: 600;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tit-muted {
  opacity: 0.45;
}

/* Buttons */
.tit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--tit-text);
}

.tit-btn--ghost {
  border-color: var(--tit-line);
  background: rgba(255, 255, 255, 0.03);
}

.tit-btn--ghost:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.tit-btn--primary {
  background: linear-gradient(135deg, var(--tit-accent), #a88316);
  color: #0c0c0c;
  border: none;
}

.tit-btn--primary:hover {
  filter: brightness(1.06);
  color: #0c0c0c;
}

/* Dropdown */
.tit-dropdown {
  position: relative;
}

.tit-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--tit-card);
  border: 1px solid var(--tit-line);
  border-radius: 12px;
  box-shadow: var(--tit-shadow);
  z-index: 50;
  padding: 6px;
}

.tit-dropdown__menu--right {
  left: auto;
  right: 0;
}

.tit-dropdown.is-open .tit-dropdown__menu {
  display: block;
}

.tit-dropdown__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--tit-text);
}

.tit-dropdown__menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tit-dropdown__menu a.is-active {
  color: var(--tit-accent-2);
  font-weight: 700;
}

/* Main nav */
.tit-nav {
  background: rgba(18, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tit-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.tit-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.tit-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tit-brand img {
  border-radius: 10px;
}

.tit-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.tit-nav__link {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--tit-muted);
}

.tit-nav__link:hover,
.tit-nav__link.is-active {
  color: var(--tit-text);
  background: rgba(255, 255, 255, 0.06);
}

.tit-nav__dropdown .tit-dropdown__btn {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 8px 10px;
}

/* Hero */
.tit-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #05070e;
}

.tit-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.tit-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.1) 0%, rgba(5, 7, 14, 0.85) 100%);
}

.tit-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 20px 56px;
}

.tit-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.tit-hero p {
  margin: 0 0 24px;
  color: var(--tit-muted);
  max-width: 520px;
}

.tit-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Search strip */
.tit-search {
  margin-top: -36px;
  position: relative;
  z-index: 3;
  padding: 0 20px 48px;
}

.tit-search__card {
  background: var(--tit-card);
  border: 1px solid var(--tit-line);
  border-radius: var(--tit-radius);
  box-shadow: var(--tit-shadow);
  padding: 20px;
}

.tit-search form {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .tit-search form {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }
}

.tit-field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tit-muted);
  margin-bottom: 6px;
}

.tit-field input,
.tit-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tit-line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--tit-text);
  font: inherit;
}

.tit-field input:focus,
.tit-field select:focus {
  outline: 2px solid rgba(201, 162, 39, 0.35);
  outline-offset: 2px;
}

/* Sections */
.tit-section {
  padding: 40px 0 56px;
}

.tit-section__title {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.tit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Hotel cards */
.tit-card {
  display: flex;
  flex-direction: column;
  background: var(--tit-card);
  border: 1px solid var(--tit-line);
  border-radius: var(--tit-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.tit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tit-shadow);
}

.tit-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1020;
}

.tit-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tit-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tit-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tit-card__meta {
  color: var(--tit-muted);
  font-size: 0.9rem;
}

.tit-card__price {
  margin-top: auto;
  font-weight: 800;
  color: var(--tit-accent-2);
}

/* Destinations */
.tit-dest-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.tit-dest {
  position: relative;
  border-radius: var(--tit-radius);
  overflow: hidden;
  border: 1px solid var(--tit-line);
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.tit-dest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.tit-dest:hover img {
  opacity: 0.95;
}

.tit-dest span {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  font-weight: 700;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

/* Footer */
.tit-footer {
  border-top: 1px solid var(--tit-line);
  padding: 40px 0 28px;
  margin-top: 40px;
  background: #070b14;
}

.tit-footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tit-footer__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tit-muted);
}

.tit-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tit-footer__list--compact li {
  color: var(--tit-muted);
  font-size: 0.92rem;
}

.tit-footer__list a:hover {
  color: var(--tit-accent-2);
}

.tit-social {
  display: flex;
  gap: 10px;
}

.tit-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--tit-line);
  color: var(--tit-text);
}

.tit-social a:hover {
  border-color: rgba(201, 162, 39, 0.5);
  color: var(--tit-accent-2);
}

.tit-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}

.tit-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tit-line);
}

.tit-pay-badge img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.tit-footer__copy {
  margin: 24px 0 0;
  text-align: center;
  color: var(--tit-muted);
  font-size: 0.85rem;
}

/* Hotels page */
.tit-page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--tit-line);
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.6), transparent);
}

.tit-page-hero h1 {
  margin: 0 0 8px;
}

.tit-muted-block {
  color: var(--tit-muted);
  max-width: 560px;
}

.tit-guests {
  position: relative;
}

.tit-guests__box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tit-line);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.tit-guests__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--tit-card);
  border: 1px solid var(--tit-line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--tit-shadow);
}

.tit-guests.is-open .tit-guests__panel {
  display: block;
}

.tit-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tit-line);
}

.tit-counter:last-child {
  border-bottom: none;
}

.tit-counter button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--tit-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--tit-text);
  cursor: pointer;
  font-size: 1.1rem;
}

.tit-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--tit-muted);
  border: 1px dashed var(--tit-line);
  border-radius: var(--tit-radius);
}

/* Auth pages */
.tit-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.tit-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--tit-card);
  border: 1px solid var(--tit-line);
  border-radius: var(--tit-radius);
  padding: 28px 26px 26px;
  box-shadow: var(--tit-shadow);
}

.tit-auth__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 800;
}

.tit-auth__logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.tit-auth form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tit-auth input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tit-line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--tit-text);
  font: inherit;
}

.tit-auth button[type="submit"] {
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tit-accent), #a88316);
  color: #0c0c0c;
}

.tit-auth__msg {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.tit-auth__links {
  margin-top: 16px;
  text-align: center;
  color: var(--tit-muted);
  font-size: 0.92rem;
}

/* Utilities */
.tit-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
