/* Destination catalog + product detail — extends vkleyka design language */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dest-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 40px;
}

.dest-featured .dest-panel {
  display: block;
  min-height: 360px;
  text-decoration: none;
  color: inherit;
}

.dest-catalog {
  margin-top: 8px;
}

.dest-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 14px 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dest-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}

.dest-search input:focus {
  outline: 2px solid rgba(48, 182, 195, 0.35);
  border-color: var(--field);
}

.dest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dest-chip {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s;
}

.dest-chip:hover {
  color: var(--ink);
  border-color: var(--field);
}

.dest-chip.is-active {
  background: var(--field);
  border-color: var(--field);
  color: var(--white);
}

.dest-sort {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dest-sort select {
  height: 36px;
  min-width: 120px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}

.dest-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.visa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.visa-grid--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visa-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.visa-card:hover {
  border-color: var(--field);
  transform: translateY(-2px);
}

.visa-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #e7eef0 0%, #d5e2e4 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 8px;
}

.visa-card__media img {
  width: auto;
  max-width: 72%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(11, 20, 24, 0.12);
}

.visa-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.visa-card__body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.visa-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.visa-card__badge {
  display: none !important;
}

.visa-card__price {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.visa-card:focus-visible {
  outline: 3px solid var(--field);
  outline-offset: 3px;
}

.dest-chip:focus-visible,
.dest-search input:focus-visible,
.dest-sort select:focus-visible {
  outline: 3px solid rgba(48, 182, 195, 0.55);
  outline-offset: 2px;
}

.dest-count {
  display: none;
}

.dest-more {
  margin-top: 28px;
  text-align: center;
}

.dest-more__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--field-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dest-more__link:hover,
.dest-more__link:focus-visible {
  color: var(--ink);
}

.dest-more__btn {
  display: inline-flex;
}

.dest-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}

.dest-popular__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.dest-popular__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dest-popular__links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
}

.dest-popular__links a:hover,
.dest-popular__links a:focus-visible {
  border-color: var(--field);
  color: var(--field-deep);
}

.catalog-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-cta p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  max-width: 42ch;
}

.catalog-cta .btn {
  flex-shrink: 0;
}

.dest-empty {
  padding: 28px 0;
  color: var(--muted);
}

.page-intro {
  padding: calc(var(--header-h) + 36px) 0 12px;
  background: var(--paper);
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 10px 0 8px;
}

.page-intro p {
  color: var(--muted);
  max-width: 62ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--field-deep);
}

/* Detail page */
.page-detail .header,
.page-catalog .header {
  background: rgba(241, 247, 245, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.page-detail .logo-text,
.page-catalog .logo-text {
  color: var(--ink);
}

.page-detail .nav__links a,
.page-catalog .nav__links a {
  color: var(--muted);
}

.page-detail .nav__links a:hover,
.page-catalog .nav__links a:hover {
  color: var(--ink);
}

.detail-hero {
  padding: calc(var(--header-h) + 28px) 0 8px;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-hero__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #e7eef0 0%, #d5e2e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.detail-hero__media img {
  width: auto;
  max-width: 78%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(11, 20, 24, 0.14);
}

.detail-badge {
  display: inline-block;
  margin: 16px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--field-deep);
}

.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.detail-subtitle {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 54ch;
}

.detail-price {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-price strong {
  display: inline-block;
  margin-left: 8px;
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn--ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.btn--ghost-dark:hover {
  border-color: var(--field);
  color: var(--field-deep);
}

.detail-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  min-height: 240px;
}

.detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.section--detail {
  padding-top: 20px;
}

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 880px;
}

.detail-lead {
  padding: 18px 20px;
  background: var(--white);
  border-left: 3px solid var(--field);
  border-radius: var(--radius);
}

.detail-lead__label {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-verified {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.fact-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fact-chip {
  position: relative;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact-chip__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.fact-chip__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}

.fact-chip__tip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--field-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.fact-chip__popover {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 6px);
  z-index: 5;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(11, 20, 24, 0.18);
}

.fact-chip.is-open .fact-chip__popover,
.fact-chip:focus-within .fact-chip__popover {
  display: block;
}

.detail-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-block > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acc-block > summary::-webkit-details-marker {
  display: none;
}

.acc-block > summary h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.acc-block > summary::after {
  content: '+';
  color: var(--field);
  font-size: 22px;
  line-height: 1;
}

.acc-block[open] > summary::after {
  transform: rotate(45deg);
}

.acc-block__body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}

.detail-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-list span,
.detail-list p {
  color: var(--muted);
  font-size: 14px;
}

.detail-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

.detail-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--field);
}

.detail-tips {
  list-style: disc;
  padding: 14px 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-tips li {
  margin-bottom: 6px;
}

.detail-tips-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.detail-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.detail-cta-bar h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
}

.detail-cta-bar p {
  color: rgba(241, 247, 245, 0.72);
  font-size: 14px;
}

.section--related {
  padding-top: 10px;
}

/* Longer FAQ answers on detail pages */
.page-detail .faq__item.open .faq__answer,
.page-catalog .faq__item.open .faq__answer {
  max-height: 1200px;
}

.page-detail .faq__answer p {
  max-width: 70ch;
}

@media (max-width: 1024px) {
  .dest-toolbar {
    grid-template-columns: 1fr;
  }

  .visa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visa-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dest-featured {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .dest-featured .dest-panel {
    min-height: min(320px, 58vh);
  }

  .visa-grid,
  .visa-grid--related {
    grid-template-columns: 1fr;
  }

  .fact-chips {
    grid-template-columns: 1fr;
  }

  .detail-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
