/* ============================================
   VipCheapTour — Component Styles
   ============================================ */

/* ===== Buttons ===== */
.vct-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--vct-font-body); font-weight: 500;
  border: none; cursor: pointer;
  transition: all var(--vct-dur-fast) var(--vct-ease-out);
  white-space: nowrap;
}
.vct-btn:active { transform: scale(0.98); }

.vct-btn-primary {
  background: var(--vct-orange); color: #fff;
  padding: 14px 24px; border-radius: var(--vct-radius-sm);
  font-size: 16px; font-weight: 600;
}
.vct-btn-primary:hover { background: var(--vct-orange-active); }

.vct-btn-primary-pill {
  background: var(--vct-orange); color: #fff;
  padding: 12px 22px; border-radius: var(--vct-radius-pill);
  font-size: 15px; font-weight: 600;
}
.vct-btn-primary-pill:hover { background: var(--vct-orange-active); }

.vct-btn-secondary {
  background: transparent; color: var(--vct-ink);
  border: 1.5px solid var(--vct-ink);
  padding: 12px 22px; border-radius: var(--vct-radius-sm);
  font-size: 15px; font-weight: 600;
}
.vct-btn-secondary:hover { border-color: var(--vct-orange); color: var(--vct-orange); }

.vct-btn-ghost {
  background: transparent; color: var(--vct-ink);
  border: 1px solid var(--vct-hairline);
  padding: 10px 16px; border-radius: var(--vct-radius-pill);
  font-size: 14px; font-weight: 500;
}
.vct-btn-ghost:hover { background: var(--vct-surface-soft); }

.vct-btn-icon {
  width: 40px; height: 40px; border-radius: var(--vct-radius-pill);
  background: #fff; border: 1px solid var(--vct-hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--vct-ink); cursor: pointer;
}
.vct-btn-icon:hover { background: var(--vct-surface-soft); }

/* ===== Container ===== */
.vct-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ===== Chips ===== */
.vct-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--vct-radius-pill);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--vct-hairline);
  background: #fff; color: var(--vct-ink);
  cursor: pointer; white-space: nowrap;
  transition: all var(--vct-dur-fast) var(--vct-ease-out);
  font-family: var(--vct-font-body);
}
.vct-chip:hover { border-color: var(--vct-ink); }
.vct-chip.is-active {
  background: var(--vct-ink); color: #fff; border-color: var(--vct-ink);
}

/* ===== Tags (over photos) ===== */
.vct-tag {
  display: inline-block; padding: 4px 10px; border-radius: var(--vct-radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vct-tag-hit { background: var(--vct-orange); color: #fff; }
.vct-tag-new { background: var(--vct-teal); color: #fff; }

/* ===== Heart button (over photos) ===== */
.vct-heart {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: var(--vct-radius-pill);
  background: rgba(255,255,255,0.95);
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; backdrop-filter: blur(6px);
  z-index: 2; transition: transform var(--vct-dur-fast) var(--vct-ease-spring);
}
.vct-heart:hover { transform: scale(1.12); }
.vct-heart:active { transform: scale(0.95); }

/* ===== Photo card ===== */
.vct-photo {
  position: relative; overflow: hidden;
  border-radius: var(--vct-radius-md);
  background-color: var(--vct-surface-cool);
}
.vct-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--vct-dur-slow) var(--vct-ease-out);
}
.vct-photo:hover img { transform: scale(1.04); }

/* ===== Inputs ===== */
.vct-input {
  font-family: var(--vct-font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--vct-hairline);
  border-radius: var(--vct-radius-sm);
  background: #fff; color: var(--vct-ink);
  outline: none; width: 100%;
  transition: border-color var(--vct-dur-fast) var(--vct-ease-out);
}
.vct-input::placeholder { color: var(--vct-muted-soft); }
.vct-input:focus { border-color: var(--vct-ink); border-width: 2px; }

/* ===== Section headers ===== */
.vct-section-hd { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.vct-section-title { font-family: var(--vct-font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.015em; line-height: 1.08; color: var(--vct-ink); margin: 0; }
.vct-section-sub { font-size: 16px; color: var(--vct-muted); margin-top: 6px; }
.vct-section-link { font-size: 14px; font-weight: 600; color: var(--vct-orange); }

/* ===== Eyebrow tag ===== */
.vct-eyebrow-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--vct-orange);
}

/* ===== Star rating ===== */
.vct-stars { display: inline-flex; align-items: center; gap: 4px; color: var(--vct-orange); font-weight: 700; font-size: 14px; }

/* ===== Typography ===== */
.vct-script { font-family: var(--vct-font-script); }
.vct-tabular { font-variant-numeric: tabular-nums; }

/* ===== Scrollbar hide ===== */
.vct-scroll-x { overflow-x: auto; scrollbar-width: none; }
.vct-scroll-x::-webkit-scrollbar { display: none; }

/* ===== Animations ===== */
@keyframes vct-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vct-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vct-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 106, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0); }
}
@keyframes vct-shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}

.vct-fade-in { animation: vct-fade-in 320ms var(--vct-ease-out) both; }
.vct-fade-up { animation: vct-fade-up 400ms var(--vct-ease-out) both; }

/* Staggered card entry */
.vct-stagger > * {
  animation: vct-fade-up 400ms var(--vct-ease-out) both;
}
.vct-stagger > *:nth-child(1) { animation-delay: 0ms; }
.vct-stagger > *:nth-child(2) { animation-delay: 60ms; }
.vct-stagger > *:nth-child(3) { animation-delay: 120ms; }
.vct-stagger > *:nth-child(4) { animation-delay: 180ms; }
.vct-stagger > *:nth-child(5) { animation-delay: 240ms; }
.vct-stagger > *:nth-child(6) { animation-delay: 300ms; }
.vct-stagger > *:nth-child(7) { animation-delay: 360ms; }
.vct-stagger > *:nth-child(8) { animation-delay: 420ms; }

/* ===== Skeleton loader ===== */
.vct-skeleton {
  background: linear-gradient(90deg, var(--vct-surface-soft) 25%, var(--vct-surface-warm) 50%, var(--vct-surface-soft) 75%);
  background-size: 400px 100%;
  animation: vct-shimmer 1.4s ease infinite;
  border-radius: var(--vct-radius-md);
}

/* ===== Tour card hover lift ===== */
.vct-tour-card {
  cursor: pointer;
  transition: transform var(--vct-dur-base) var(--vct-ease-out);
}
.vct-tour-card:hover { transform: translateY(-4px); }

/* ===== Filter sidebar ===== */
.vct-filter-group { margin-bottom: 28px; }
.vct-filter-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--vct-ink); margin-bottom: 14px; display: block;
}
.vct-filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; cursor: pointer; font-size: 15px; color: var(--vct-body);
  transition: color var(--vct-dur-fast);
}
.vct-filter-option:hover { color: var(--vct-ink); }
.vct-filter-option input[type="checkbox"] {
  width: 18px; height: 18px; border-radius: 4px; accent-color: var(--vct-teal);
  flex-shrink: 0; cursor: pointer;
}

/* ===== Range slider ===== */
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--vct-hairline); border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--vct-orange); cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 106, 26, 0.3);
}

/* ===== Sort dropdown ===== */
.vct-select {
  appearance: none; font-family: var(--vct-font-body); font-size: 14px; font-weight: 600;
  padding: 10px 36px 10px 16px; border-radius: var(--vct-radius-pill);
  border: 1px solid var(--vct-hairline); background: #fff; color: var(--vct-ink);
  cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7a7e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ===== Header ===== */
.vct-header {
  position: sticky; top: 0; z-index: 100;
  transition: background var(--vct-dur-base) var(--vct-ease-out),
              box-shadow var(--vct-dur-base) var(--vct-ease-out),
              backdrop-filter var(--vct-dur-base) var(--vct-ease-out);
}
.vct-header.is-scrolled {
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--vct-hairline);
}
.vct-header.is-transparent { background: transparent; }

/* ===== Nav active ===== */
.vct-nav-link {
  font-size: 15px; font-weight: 500; color: var(--vct-body);
  padding: 4px 0; position: relative;
  border-bottom: 2px solid transparent;
  transition: color var(--vct-dur-fast), border-color var(--vct-dur-fast);
}
.vct-nav-link:hover { color: var(--vct-ink); }
.vct-nav-link.is-active {
  color: var(--vct-ink);
  border-bottom-color: var(--vct-orange);
}

/* ===== Accordion ===== */
.vct-accordion-body {
  overflow: hidden;
  transition: max-height 300ms var(--vct-ease-out), opacity 250ms var(--vct-ease-out);
  max-height: 0; opacity: 0;
}
.vct-accordion-body.is-open { max-height: 400px; opacity: 1; }

/* ===== Price badge ===== */
.vct-price-old {
  font-variant-numeric: tabular-nums;
  color: var(--vct-muted-soft);
  text-decoration: line-through;
  font-size: 14px;
}
.vct-price-main {
  font-family: var(--vct-font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ===== Booking modal ===== */
.vct-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 42, 46, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: vct-fade-in 200ms var(--vct-ease-out);
}
.vct-modal {
  background: var(--vct-paper); border-radius: var(--vct-radius-lg);
  width: min(560px, 94vw); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--vct-shadow-float);
  animation: vct-fade-up 280ms var(--vct-ease-out);
}

/* ===== Responsive ===== */
/* Защита от горизонтального переполнения и «уползающих» картинок */
body { overflow-x: clip; }
img { max-width: 100%; }

/* Планшет */
@media (max-width: 1023px) {
  .vct-container { padding: 0 24px; }
  .vct-section-title { font-size: 30px; }
}

/* Телефон */
@media (max-width: 639px) {
  .vct-container { padding: 0 16px; }
  .vct-section-title { font-size: 25px; }
  .vct-section-sub { font-size: 15px; }
  .vct-section-hd { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
  .vct-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
}

/* Утилиты адаптивных колонок — display:grid и gap задаются на самом элементе */
.vct-cols-2 { grid-template-columns: 1fr 1fr; }
.vct-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vct-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .vct-cols-3, .vct-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .vct-cols-2, .vct-cols-3 { grid-template-columns: 1fr; }
  .vct-cols-4 { grid-template-columns: 1fr 1fr; }
}

/* Особые адаптивные раскладки */
.vct-mosaic { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 1023px) {
  .vct-mosaic { grid-template-columns: 1fr 1fr; }
  .vct-mosaic > * { grid-column: auto !important; }
}
@media (max-width: 639px) {
  .vct-mosaic { grid-template-columns: 1fr; }
}

.vct-kv { grid-template-columns: 280px 1fr; }
@media (max-width: 639px) { .vct-kv { grid-template-columns: 1fr; row-gap: 2px !important; } }

.vct-split { grid-template-columns: 320px 1fr; }
@media (max-width: 1023px) { .vct-split { grid-template-columns: 1fr; } .vct-split > div { position: static !important; } }

.vct-feat { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 1023px) { .vct-feat { grid-template-columns: 1fr; } }

@media (max-width: 767px) {
  .vct-hotcard-featured { flex-direction: column !important; }
  .vct-hotcard-featured > div:first-child { flex: 0 0 auto !important; aspect-ratio: 16/10 !important; }
}

.vct-otzyv-stats { grid-template-columns: auto 1fr 1fr 1fr; }
@media (max-width: 1023px) { .vct-otzyv-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .vct-otzyv-stats { grid-template-columns: 1fr; padding: 28px 22px !important; gap: 24px !important; } }
