/* ============================================
   VIAGGIANOW RESULTS & DETAILS
   Hotel / flight results, hotel details, loading and empty states.
   Builds on tokens and components in vn-design.css.
   ============================================ */

.vn-results {
  padding: 24px 0 80px;
  background: var(--vn-surface);
  min-height: 60vh;
}

/* ---------- Search summary bar ---------- */

.vn-summary {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 16px 16px 16px 20px;
  margin-bottom: 24px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
}

.vn-summary__main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 320px;
}

.vn-summary__place {
  margin: 0;
  color: var(--vn-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.vn-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-summary__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vn-summary__meta svg {
  width: 15px;
  height: 15px;
  color: var(--vn-subtle);
}

.vn-summary__route {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.vn-summary__route svg {
  width: 18px;
  height: 18px;
  color: var(--vn-muted);
}

.vn-summary__aside {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.vn-summary__count {
  color: var(--vn-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.vn-summary__count strong {
  color: var(--vn-ink);
  font-weight: 700;
}

.vn-progress {
  height: 3px;
  margin: -20px 0 24px;
  border-radius: 3px;
  background: var(--vn-border);
  overflow: hidden;
}

.vn-progress__bar {
  height: 100%;
  background: var(--vn-accent);
  transition: width 0.4s var(--vn-ease);
}

/* Modify-search drawer */
.vn-modify {
  background: var(--vn-white);
  border-bottom: 1px solid var(--vn-border);
}

.vn-modify .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ---------- Layout ---------- */

.vn-results__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---------- Toolbar: name search + sort ---------- */

.vn-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vn-field {
  position: relative;
  flex: 1 1 260px;
}

.vn-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--vn-muted);
  pointer-events: none;
}

body .vn-field input.form-control {
  min-height: 48px;
  padding-left: 44px !important;
  background: var(--vn-white) !important;
  border: 1px solid var(--vn-border) !important;
  border-radius: var(--vn-radius-pill) !important;
  box-shadow: none !important;
  color: var(--vn-ink);
  font-size: 0.9375rem;
}

body .vn-field input.form-control:hover {
  border-color: var(--vn-border-strong) !important;
}

body .vn-field input.form-control:focus {
  border-color: var(--vn-ink) !important;
  box-shadow: 0 0 0 3px rgba(18, 36, 46, 0.08) !important;
}

/* Segmented control */
.vn-seg {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--vn-radius-pill);
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
}

body .vn-seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0 !important;
  border-radius: var(--vn-radius-pill) !important;
  background: transparent !important;
  color: var(--vn-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color 0.18s var(--vn-ease), color 0.18s var(--vn-ease);
}

body .vn-seg button:hover {
  background: var(--vn-surface-2) !important;
  color: var(--vn-ink) !important;
}

body .vn-seg button.active {
  background: var(--vn-ink) !important;
  color: #fff !important;
}

.vn-seg svg {
  width: 16px;
  height: 16px;
}

.vn-filters-toggle {
  display: none !important;
}

/* ---------- Filters panel ---------- */

.vn-filters {
  position: sticky;
  top: calc(var(--vn-header-h) + 16px);
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  padding: 4px 20px 8px;
}

.vn-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}

.vn-filters__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

body .vn-filters__reset {
  padding: 0;
  border: 0;
  background: none !important;
  color: var(--vn-accent) !important;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none !important;
}

body .vn-filters__reset:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vn-filters__section {
  min-width: 0;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--vn-border);
}

.vn-filters__section legend {
  float: left;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: var(--vn-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.vn-filters__section legend + * {
  clear: left;
}

.vn-filters .irs {
  margin: 0 10px;
}

.vn-filters--skel {
  padding-top: 8px;
  padding-bottom: 16px;
}

.vn-results__layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

.vn-results__layout--solo > .vn-filters-wrap {
  display: none;
}

/* Existing filter cards become flat sections */
.vn-filters .card {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--vn-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.vn-filters .card-header {
  padding: 16px 0 8px !important;
  background: transparent !important;
  border: 0 !important;
}

.vn-filters .card-header a,
.vn-filters .card-header .card-title,
.vn-filters .card-header .btn {
  color: var(--vn-ink) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  box-shadow: none !important;
  background: transparent !important;
}

.vn-filters .card-header svg {
  color: var(--vn-muted);
  stroke: currentColor;
}

.vn-filters .card-body {
  padding: 0 0 16px !important;
}

.vn-filters .list-group-item,
.vn-filters li {
  background: transparent !important;
  border: 0 !important;
}

.vn-filters .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  padding: 0 8px !important;
  border-radius: var(--vn-radius-xs);
  transition: background-color 0.15s var(--vn-ease);
}

.vn-filters .form-check:hover {
  background: var(--vn-surface);
}

.vn-filters .form-check-input {
  float: none;
  margin: 0 !important;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-color: var(--vn-border-strong);
  box-shadow: none !important;
}

.vn-filters .form-check-input:checked {
  background-color: var(--vn-ink) !important;
  border-color: var(--vn-ink) !important;
}

.vn-filters .form-check-label {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--vn-text);
  font-size: 0.9375rem;
  font-weight: 500 !important;
  cursor: pointer;
}

/* Star icons inside filters: solid ink */
.vn-filters .form-check-label svg polygon {
  fill: var(--vn-ink);
  stroke: var(--vn-ink);
}

/* ion.rangeSlider: neutral skin */
.vn-filters .irs--round .irs-bar {
  background: var(--vn-ink);
}

.vn-filters .irs--round .irs-handle {
  border-color: var(--vn-ink);
  box-shadow: none;
}

.vn-filters .irs--round .irs-from,
.vn-filters .irs--round .irs-to,
.vn-filters .irs--round .irs-single {
  background: var(--vn-ink);
  font-size: 0.75rem;
}

.vn-filters .irs--round .irs-from::before,
.vn-filters .irs--round .irs-to::before,
.vn-filters .irs--round .irs-single::before {
  border-top-color: var(--vn-ink);
}

.vn-filters .irs--round .irs-line {
  background: var(--vn-surface-2);
}

/* ---------- Hotel card ---------- */

.vn-hotel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-hotel-list > li + li {
  margin-top: 16px;
}

.vn-hotel-card {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 220px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  overflow: hidden;
  transition: border-color 0.2s var(--vn-ease), box-shadow 0.2s var(--vn-ease);
}

.vn-hotel-card:hover {
  border-color: var(--vn-border-strong);
  box-shadow: var(--vn-shadow);
}

.vn-hotel-card__media {
  position: relative;
  min-height: 200px;
  margin: 8px;
  border-radius: var(--vn-radius);
  overflow: hidden;
  background: var(--vn-surface-2);
}

.vn-hotel-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  transition: transform 0.5s var(--vn-ease);
}

.vn-hotel-card:hover .vn-hotel-card__media img {
  transform: scale(1.04);
}

.vn-hotel-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 20px 20px 12px;
}

.vn-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--vn-ink);
}

.vn-stars svg {
  width: 14px;
  height: 14px;
}

.vn-hotel-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.vn-hotel-card__name a {
  color: var(--vn-ink) !important;
  text-decoration: none;
}

.vn-hotel-card__name a:hover {
  color: var(--vn-accent) !important;
}

.vn-hotel-card__address {
  display: flex;
  gap: 6px;
  margin: 0;
  color: var(--vn-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.vn-hotel-card__address svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.vn-hotel-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.vn-hotel-card__price {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 4px;
  padding: 20px;
  border-left: 1px solid var(--vn-border);
  text-align: right;
}

.vn-price__label {
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-price__amount {
  color: var(--vn-ink);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.vn-price__amount small {
  margin-right: 4px;
  color: var(--vn-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}

.vn-price__note {
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-price__note--profit {
  color: var(--vn-accent);
  font-weight: 500;
}

.vn-hotel-card__price .vn-btn {
  margin-top: 12px;
  width: 100%;
}

.vn-supplier-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- List footer ---------- */

.vn-list-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.vn-endnote {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-endnote::before,
.vn-endnote::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vn-border);
}

.vn-inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--vn-border);
  border-top-color: var(--vn-ink);
  border-radius: 50%;
  animation: vn-spin 0.8s linear infinite;
}

@keyframes vn-spin {
  to { transform: rotate(360deg); }
}

.vn-notice {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--vn-radius-sm);
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  color: var(--vn-text);
  font-size: 0.875rem;
}

/* ---------- Loading skeletons ---------- */

.vn-loading-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--vn-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.vn-loading-head .vn-dots {
  display: inline-flex;
  gap: 4px;
}

.vn-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vn-accent);
  animation: vn-dot 1.2s var(--vn-ease) infinite;
}

.vn-dots span:nth-child(2) { animation-delay: 0.15s; }
.vn-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes vn-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.vn-skeleton {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 220px;
  gap: 20px;
  padding: 8px;
  margin-bottom: 16px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
}

.vn-skeleton--flight {
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 20px;
}

.vn-skel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--vn-surface-2);
}

.vn-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: vn-shimmer 1.4s infinite;
}

@keyframes vn-shimmer {
  to { transform: translateX(100%); }
}

.vn-skel--media { height: 184px; border-radius: var(--vn-radius); }
.vn-skel--line { height: 14px; margin-bottom: 12px; }
.vn-skel--title { height: 20px; width: 70%; margin: 16px 0 14px; }
.vn-skel--w40 { width: 40%; }
.vn-skel--w60 { width: 60%; }
.vn-skel--w80 { width: 80%; }
.vn-skel--price { height: 28px; width: 60%; margin: 16px 12px 12px auto; }
.vn-skel--btn { height: 44px; margin: 0 12px; border-radius: 999px; }

/* ---------- Flight card ---------- */

.vn-flight-list > li + li {
  margin-top: 16px;
}

.vn-flight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-flight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  overflow: hidden;
  transition: border-color 0.2s var(--vn-ease), box-shadow 0.2s var(--vn-ease);
}

.vn-flight-card:hover {
  border-color: var(--vn-border-strong);
  box-shadow: var(--vn-shadow);
}

.vn-flight-card__legs {
  min-width: 0;
}

.vn-leg {
  padding: 20px 24px;
}

.vn-leg + .vn-leg {
  border-top: 1px dashed var(--vn-border);
}

.vn-leg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vn-airline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--vn-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.vn-airline img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.vn-airline small {
  display: block;
  color: var(--vn-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.vn-leg__kind {
  color: var(--vn-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.vn-leg__route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.vn-leg__point strong {
  display: block;
  color: var(--vn-ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.vn-leg__point span {
  display: block;
  margin-top: 4px;
  color: var(--vn-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.vn-leg__point small {
  display: block;
  max-width: 180px;
  color: var(--vn-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vn-leg__point--end {
  text-align: right;
}

.vn-leg__point--end small {
  margin-left: auto;
}

.vn-timeline {
  text-align: center;
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-timeline__track {
  position: relative;
  height: 2px;
  margin: 8px 0;
  background: var(--vn-border-strong);
}

.vn-timeline__track::before,
.vn-timeline__track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--vn-border-strong);
  border-radius: 50%;
  background: var(--vn-white);
  transform: translateY(-50%);
}

.vn-timeline__track::before { left: -2px; }
.vn-timeline__track::after { right: -2px; }

.vn-timeline__stop {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vn-muted);
  transform: translate(-50%, -50%);
}

.vn-timeline__direct {
  color: var(--vn-accent);
  font-weight: 600;
}

.vn-leg__more {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.vn-bag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-bag svg {
  width: 15px;
  height: 15px;
}

body .vn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 0;
  border: 0;
  background: none !important;
  color: var(--vn-ink) !important;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none !important;
  text-decoration: none;
}

body .vn-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vn-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--vn-ease);
}

.vn-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.vn-segments {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--vn-border);
}

.vn-segments li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--vn-border);
  font-size: 0.875rem;
}

.vn-segments img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.vn-segments strong {
  color: var(--vn-ink);
  font-weight: 600;
}

.vn-segments span {
  color: var(--vn-muted);
}

.vn-segments__layover {
  display: block !important;
  grid-column: 2 / -1;
  padding: 0 !important;
  border: 0 !important;
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-flight-card__price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 24px 20px;
  border-left: 1px solid var(--vn-border);
  background: var(--vn-surface);
  text-align: right;
}

.vn-flight-card__price .vn-btn {
  margin-top: 12px;
  width: 100%;
}

.vn-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

body .vn-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--vn-border) !important;
  border-radius: var(--vn-radius-pill) !important;
  background: var(--vn-white) !important;
  color: var(--vn-ink) !important;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: none !important;
}

body .vn-pagination .active button {
  background: var(--vn-ink) !important;
  border-color: var(--vn-ink) !important;
  color: #fff !important;
}

body .vn-pagination .disabled button {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Empty state ---------- */

.vn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 56px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius-lg);
  text-align: center;
  animation: vn-rise 0.5s var(--vn-ease) both;
}

@keyframes vn-rise {
  from { opacity: 0; transform: translateY(12px); }
}

.vn-empty__scene {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
  overflow: visible;
}

.vn-empty__title {
  max-width: 520px;
  margin: 0 0 10px;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

.vn-empty__text {
  max-width: 500px;
  margin: 0;
  color: var(--vn-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.vn-empty__tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.vn-empty__tips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--vn-radius-pill);
  background: var(--vn-surface);
  border: 1px solid var(--vn-border);
  color: var(--vn-text);
  font-size: 0.875rem;
  animation: vn-rise 0.5s var(--vn-ease) both;
}

.vn-empty__tips li:nth-child(1) { animation-delay: 0.15s; }
.vn-empty__tips li:nth-child(2) { animation-delay: 0.25s; }
.vn-empty__tips li:nth-child(3) { animation-delay: 0.35s; }

.vn-empty__tips svg {
  width: 15px;
  height: 15px;
  color: var(--vn-accent);
}

.vn-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Scene drawing */
.vn-sc-bg { fill: var(--vn-surface); }
.vn-sc-ring { fill: none; stroke: var(--vn-border); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.vn-sc-line { fill: none; stroke: var(--vn-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vn-sc-fill { fill: var(--vn-white); }
.vn-sc-ground { stroke: var(--vn-border-strong); stroke-width: 2; stroke-linecap: round; }
.vn-sc-cloud { fill: var(--vn-white); stroke: var(--vn-border-strong); stroke-width: 1.5; stroke-linejoin: round; }
.vn-sc-win { fill: var(--vn-surface-2); }
.vn-sc-win--lit { animation: vn-win 3.2s steps(1) infinite; }
.vn-sc-glass { fill: rgba(255, 255, 255, 0.75); stroke: var(--vn-accent); stroke-width: 3; }
.vn-sc-handle { stroke: var(--vn-ink); stroke-width: 5; stroke-linecap: round; }
.vn-sc-trail { fill: none; stroke: var(--vn-border-strong); stroke-width: 2; stroke-dasharray: 4 6; stroke-linecap: round; animation: vn-dash 1.2s linear infinite; }
.vn-sc-plane { fill: var(--vn-ink); }
.vn-sc-accent { fill: var(--vn-accent); }
.vn-sc-track { stroke: var(--vn-border-strong); stroke-width: 4; stroke-linecap: round; }
.vn-sc-knob { fill: var(--vn-white); stroke: var(--vn-ink); stroke-width: 2.5; }
.vn-sc-q { fill: var(--vn-white); font: 700 13px var(--vn-font); }

.vn-sc-cloud--a { animation: vn-drift 7s ease-in-out infinite alternate; }
.vn-sc-cloud--b { animation: vn-drift 9s ease-in-out -3s infinite alternate-reverse; }
.vn-sc-lens { animation: vn-sweep 4.8s ease-in-out infinite; transform-box: view-box; transform-origin: 0 0; }
.vn-sc-bob { animation: vn-bob 2.4s ease-in-out infinite; }

.vn-sc-pinq { fill: var(--vn-ink); font: 700 13px var(--vn-font); }

/* Plane flies along the dashed arc, then lands on the question-mark pin */
.vn-sc-flyer {
  transform: translate(120px, 62px);
}

@supports (offset-path: path("M0 0")) {
  .vn-sc-flyer {
    transform: none;
    offset-path: path("M34 138 Q120 14 206 118");
    offset-rotate: auto;
    animation: vn-fly 4.2s cubic-bezier(0.45, 0, 0.35, 1) infinite;
  }
}

@keyframes vn-fly {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  82% { opacity: 1; }
  92%, 100% { offset-distance: 100%; opacity: 0; }
}

.vn-sc-slide { animation: vn-slide 3.6s ease-in-out infinite; }
.vn-sc-slide--b { animation-delay: -1.2s; animation-direction: reverse; }
.vn-sc-slide--c { animation-delay: -2.4s; }

@keyframes vn-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(28px); }
}

@keyframes vn-drift {
  from { transform: translateX(-10px); }
  to { transform: translateX(10px); }
}

@keyframes vn-sweep {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-38px, -14px) rotate(-6deg); }
  50% { transform: translate(-74px, 2px) rotate(0deg); }
  75% { transform: translate(-34px, 12px) rotate(6deg); }
}

@keyframes vn-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes vn-dash {
  to { stroke-dashoffset: -20; }
}

@keyframes vn-win {
  0%, 100% { fill: var(--vn-surface-2); }
  50% { fill: var(--vn-accent-soft); }
}

/* ---------- Hotel details ---------- */

.vn-detail {
  padding: 16px 0 80px;
  background: var(--vn-surface);
}

.vn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--vn-subtle);
}

.vn-breadcrumb a {
  color: var(--vn-muted) !important;
  text-decoration: none;
}

.vn-breadcrumb a:hover {
  color: var(--vn-ink) !important;
}

.vn-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.vn-detail-head h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.vn-detail-head .vn-stars svg {
  width: 16px;
  height: 16px;
}

.vn-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.vn-gallery {
  position: relative;
  height: 460px;
  border-radius: var(--vn-radius-lg);
  overflow: hidden;
  background: var(--vn-surface-2);
}

.vn-gallery .loading-overlay {
  background: var(--vn-surface-2) !important;
  color: var(--vn-muted) !important;
}

.vn-gallery .rsUni,
.vn-gallery .rsUni .rsOverflow,
.vn-gallery .rsUni .rsSlide,
.vn-gallery .rsUni .rsThumbs {
  background: var(--vn-surface-2) !important;
}

.vn-gallery .rsUni .rsThumb.rsNavSelected .thumbIco {
  border: 2px solid #fff !important;
  border-radius: 6px;
}

.vn-gallery .rsUni .rsArrowIcn {
  border-radius: 50%;
  background-color: rgba(18, 36, 46, 0.55);
}

.vn-stay {
  position: sticky;
  top: calc(var(--vn-header-h) + 16px);
  padding: 24px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius-lg);
}

.vn-stay h2 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
}

.vn-stay > p {
  margin: 0 0 20px;
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-stay .form-floating > .form-control,
.vn-stay .form-select {
  border-color: var(--vn-border) !important;
  border-radius: var(--vn-radius-sm) !important;
  background-color: var(--vn-white) !important;
  box-shadow: none !important;
}

.vn-stay .form-floating > label svg {
  stroke: var(--vn-muted);
  width: 15px;
  height: 15px;
}

.vn-stay .qty-box {
  display: grid !important;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px !important;
}

.vn-stay .qty-box label,
.vn-stay .qty-box label strong {
  color: var(--vn-text) !important;
  font-size: 0.9375rem;
  font-weight: 500 !important;
}

.vn-stay .sidebar-widget-item {
  margin-top: 16px !important;
  color: var(--vn-text) !important;
}

.vn-stay .btn-box {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.vn-stay .btn-box .btn,
.vn-stay .btn-box a {
  height: auto !important;
  min-height: 48px;
  border-radius: var(--vn-radius-pill) !important;
}

.vn-section-card {
  margin-top: 24px;
  padding: 28px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius-lg);
}

.vn-section-card > h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vn-prose {
  color: var(--vn-text);
  line-height: 1.7;
}

.vn-prose p:last-child {
  margin-bottom: 0;
}

.vn-amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vn-text);
  font-size: 0.9375rem;
}

.vn-amenities svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--vn-accent);
}

.vn-policies {
  margin: 0;
}

.vn-policies > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--vn-border);
}

.vn-policies > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.vn-policies dt {
  color: var(--vn-ink);
  font-weight: 600;
}

.vn-policies dd {
  margin: 0;
  color: var(--vn-text);
}

#map {
  height: 380px !important;
  border-radius: var(--vn-radius);
  overflow: hidden;
}

.vn-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vn-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius-sm);
  color: var(--vn-ink) !important;
  text-decoration: none;
  transition: border-color 0.18s var(--vn-ease);
}

.vn-mini:hover {
  border-color: var(--vn-border-strong);
}

.vn-mini img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.vn-mini strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vn-mini span {
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-mini > div {
  min-width: 0;
}

/* ---------- Rooms ---------- */

.vn-rooms-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 16px;
}

.vn-rooms-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vn-rooms-head p {
  margin: 0;
  color: var(--vn-muted);
  font-size: 0.875rem;
}

.vn-room {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  margin-bottom: 16px;
  background: var(--vn-white);
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius-lg);
  overflow: hidden;
}

.vn-room__media {
  position: relative;
  margin: 8px;
  min-height: 180px;
  border-radius: var(--vn-radius-lg);
  overflow: hidden;
  background: var(--vn-surface-2);
}

.vn-room__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-room__body {
  min-width: 0;
  padding: 20px 24px 8px 16px;
}

.vn-room__name {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vn-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--vn-border);
}

.vn-room__name + .vn-rate,
.vn-room__body > form:first-of-type .vn-rate {
  margin-top: 12px;
}

.vn-rate__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.vn-rate__board {
  color: var(--vn-ink);
  font-weight: 600;
}

.vn-rate__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.vn-rate__features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vn-text);
}

.vn-rate__features svg {
  width: 15px;
  height: 15px;
  color: var(--vn-accent);
}

.vn-rate__features .is-warn,
.vn-rate__features .is-warn svg {
  color: var(--vn-danger);
}

.vn-rate__features .is-muted {
  color: var(--vn-muted);
}

body .vn-rate__more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none !important;
  color: var(--vn-accent) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: none !important;
}

body .vn-rate__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vn-rate__buy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px 16px;
  text-align: right;
}

.vn-rate__buy .vn-price {
  grid-column: 1 / -1;
}

.vn-rate__buy .form-select {
  min-width: 150px;
  min-height: 44px;
  border-color: var(--vn-border) !important;
  border-radius: var(--vn-radius-pill) !important;
  font-size: 0.875rem;
  box-shadow: none !important;
}

.vn-rate__buy .vn-btn {
  min-width: 140px;
}

.vn-badge-best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--vn-radius-pill);
  background: var(--vn-accent-soft);
  color: var(--vn-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.vn-occupancy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vn-muted);
  font-size: 0.8125rem;
}

.vn-occupancy svg {
  width: 15px;
  height: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .vn-hotel-card {
    grid-template-columns: 220px minmax(0, 1fr) 200px;
  }

  .vn-skeleton {
    grid-template-columns: 220px minmax(0, 1fr) 200px;
  }

  .vn-detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .vn-amenities,
  .vn-mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .vn-results__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-filters-toggle {
    display: inline-flex !important;
  }

  .vn-filters-wrap:not(.show) {
    display: none;
  }

  /* Filters open as a bottom sheet */
  .vn-filters-wrap.show {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: flex-end;
    background: rgba(18, 36, 46, 0.5);
    animation: vn-fade 0.2s var(--vn-ease);
  }

  .vn-filters-wrap.show .vn-filters {
    position: static;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 24px;
    border: 0;
    border-radius: var(--vn-radius-lg) 20px 0 0;
    animation: vn-sheet 0.28s var(--vn-ease);
  }

  .vn-filters__close {
    display: inline-flex !important;
  }

  .vn-hotel-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .vn-hotel-card__price {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px 12px;
    border-left: 0;
    text-align: left;
  }

  .vn-hotel-card__price .vn-btn {
    width: auto;
    margin-top: 0;
  }

  .vn-skeleton {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .vn-skeleton > :last-child {
    display: none;
  }

  .vn-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-stay {
    position: static;
  }

  .vn-gallery {
    height: 380px;
  }

  .vn-room {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-room__media {
    min-height: 200px;
  }

  .vn-room__body {
    padding: 8px 20px 4px;
  }
}

@media (max-width: 767.98px) {
  .vn-results {
    padding-top: 16px;
  }

  .vn-summary {
    padding: 14px 16px;
  }

  .vn-summary .vn-icon {
    display: none;
  }

  .vn-summary__aside {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .vn-toolbar .vn-seg {
    flex: 1 1 auto;
  }

  .vn-seg button {
    flex: 1 1 0;
    justify-content: center;
  }

  .vn-hotel-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-hotel-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .vn-hotel-card__body {
    padding: 8px 16px 12px;
  }

  .vn-hotel-card__price {
    grid-column: 1;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--vn-border);
  }

  .vn-skeleton {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-skeleton > :nth-child(2) {
    padding: 0 8px;
  }

  .vn-flight-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-skeleton--flight {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-leg {
    padding: 16px;
  }

  .vn-leg__route {
    gap: 12px;
  }

  .vn-leg__point strong {
    font-size: 1.25rem;
  }

  .vn-leg__point small {
    display: none;
  }

  .vn-flight-card__price {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-left: 0;
    border-top: 1px solid var(--vn-border);
    text-align: left;
  }

  .vn-flight-card__price .vn-btn {
    width: auto;
    margin-top: 0;
  }

  .vn-empty {
    padding: 32px 16px 40px;
  }

  .vn-empty__actions,
  .vn-empty__actions .vn-btn {
    width: 100%;
  }

  .vn-gallery {
    height: 280px;
    border-radius: var(--vn-radius);
  }

  .vn-section-card {
    padding: 20px;
  }

  .vn-amenities,
  .vn-mini-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-policies > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-rate {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-rate__buy {
    grid-template-columns: minmax(0, 1fr) auto;
    text-align: left;
  }

  .vn-rate__buy .form-select {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vn-sc-cloud--a,
  .vn-sc-cloud--b,
  .vn-sc-lens,
  .vn-sc-bob,
  .vn-sc-trail,
  .vn-sc-win--lit,
  .vn-sc-flyer,
  .vn-sc-slide,
  .vn-skel::after,
  .vn-dots span {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vn-sc-flyer {
    offset-distance: 55%;
  }
}

body .vn-empty__home,
body .vn-empty__home:visited {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--vn-ink) !important;
}

body .vn-empty__home:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vn-filters__head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body .vn-filters__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--vn-border) !important;
  border-radius: 50% !important;
  background: var(--vn-white) !important;
  color: var(--vn-ink) !important;
  box-shadow: none !important;
}

.vn-filters__close svg {
  width: 18px;
  height: 18px;
}

@keyframes vn-fade {
  from { opacity: 0; }
}

@keyframes vn-sheet {
  from { transform: translateY(40px); opacity: 0; }
}

/* ---------- Hotel details: layout pieces ---------- */

.vn-detail-head .vn-hotel-card__address {
  font-size: 0.9375rem;
}

.gallery-container.vn-gallery {
  height: 460px;
  min-height: 0 !important;
}

.vn-detail-side {
  min-width: 0;
}

.vn-stay .row {
  --bs-gutter-x: 12px;
}

.vn-stay .form-floating > label {
  color: var(--vn-muted);
}

.vn-rooms {
  scroll-margin-top: calc(var(--vn-header-h) + 16px);
}

.vn-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--vn-radius-lg);
  background: var(--vn-ink);
  color: rgba(255, 255, 255, 0.72);
}

.vn-help-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vn-help-card p {
  margin: 0;
}

.vn-help-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 991.98px) {
  .gallery-container.vn-gallery {
    height: 380px;
  }
}

@media (max-width: 767.98px) {
  .gallery-container.vn-gallery {
    height: 260px;
  }

  .vn-detail-head .vn-btn {
    width: 100%;
  }

  .vn-help-card {
    padding: 24px;
  }

  .vn-help-card__actions,
  .vn-help-card__actions .vn-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .vn-rate__buy {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-rate__buy .vn-btn {
    width: 100%;
  }
}

/* Fare without hold bag (03/12/2026) */
.vn-bag--none {
  color: #a4430f;
  font-weight: 600;
}

/* "No flights" suggestions: nearby dates + nearby airports (Karam, 01/12/2026) */
.vn-suggest {
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  display: grid;
  gap: 20px;
}

.vn-suggest__block[hidden] {
  display: none;
}

.vn-suggest__title {
  margin: 0 0 10px;
  color: var(--vn-ink);
  font-size: 1rem;
  font-weight: 700;
}

.vn-suggest__chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.vn-suggest__chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius-sm);
  background: #fff;
  color: var(--vn-text);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.vn-suggest__chip strong {
  color: var(--vn-ink);
  font-size: 0.9375rem;
}

.vn-suggest__chip:hover,
.vn-suggest__chip:focus-visible {
  border-color: var(--vn-accent);
  background: var(--vn-accent-soft);
  color: var(--vn-text);
}

.vn-suggest__note {
  margin: 8px 0 0;
  color: var(--vn-muted);
  font-size: 0.75rem;
}
