/**
 * Visa Services section - storefront
 * ---------------------------------------------------------------------------
 * Taken from the visa-list.html template's own <style>, cut down to the rules
 * the card uses. Everything is prefixed visa- or vmeta-, so nothing here
 * reaches the tour package cards beside it.
 */

.visa-item .place-img::before {
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(181deg, rgb(0 0 0 / 35%) 0%, rgb(0 0 0 / 0%) 100%);
}

/* The country, on the photo: a picture cannot be trusted to say where a visa
   is for, and the name is what somebody scans a row of these for. */
.visa-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background-color: rgb(255 255 255 / 75%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: 0 4px 14px rgba(13, 26, 38, 0.18);
}

/* .visa-flag in front, and !important on the size: owl's own
   `.owl-carousel .owl-item img { width: 100% }` outranks a single class and
   stretches the flag into an oval. flex: none so the pill can't squeeze it,
   transform: none in case the theme's card-hover zoom on .place-img img
   catches it too. */
.visa-flag .visa-flag-img {
  display: block;
  flex: none;
  width: 20px !important;
  height: 20px !important;
  max-width: none;
  object-fit: cover;
  border-radius: 50% !important;
  transform: none !important;
}

.visa-flag-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #0d1a26;
  white-space: nowrap;
}

.place-item:hover .visa-flag {
  box-shadow: 0 6px 18px rgba(13, 26, 38, 0.24);
}

/* the heart, unsaved. grey rather than the theme's red: an empty heart in the
   colour a full one would be reads as already saved from across a grid, and
   the outline alone is too quiet a difference to carry that. */
/* all three carry !important together or none do: the unsaved rule needed it
   to beat the theme's own .fav-icon colour, and once one of them has it the
   other two never win however specific they are. */
/* The heart's white disc. Defined here so it doesn't depend on another
   section's CSS: on the landing page it used to come from the package
   sections, so on a custom page without them the heart rendered bare. */
.visa-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(13, 26, 38, 0.15);
  line-height: 1;
  transition: transform 0.15s ease;
}

.visa-fav:hover {
  transform: scale(1.06);
}

.visa-fav i {
  font-size: 12px;
  line-height: 1;
}

.visa-fav i {
  color: #858585 !important;
}

.visa-fav:hover i {
  color: #ff5533 !important;
}

/* saved. the filled glyph does most of the work; the colour is what makes it
   findable in a row of twelve. */
.visa-fav[aria-pressed='true'] i,
.visa-fav.selected i {
  color: #ff5533 !important;
}

/* Visa type and entry type, side by side under the title. */
.vmeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 9px 0;
  border-top: 1px solid #e7edf2;
  border-bottom: 1px solid #e7edf2;
}

.vmeta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding-right: 10px;
}

.vmeta-item + .vmeta-item {
  padding-left: 12px;
  padding-right: 0;
  border-left: 1px solid #eef2f6;
}

.vmeta-ico {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: #8b98a5;
  background: #d9d9d96e;
  width: 26px;
  height: 26px;
  text-align: center;
  align-items: center;
  display: flex;
  border-radius: 50%;
  justify-content: center;
}

.vmeta-body {
  min-width: 0;
}

.vmeta-label {
  font-size: 11px;
  line-height: 1.3;
  color: #8b98a5;
}

.vmeta-value {
  font-size: 13px;
  font-weight: 500;
  color: #0d1a26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Equal heights across a row, with the price pinned to the bottom, so cards
   with a two-line title still line up with the ones beside them. */
.visa-list-grid .place-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.visa-list-grid .place-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* !important because the card's my-2 is a Bootstrap utility (itself !important)
   and would otherwise keep the price row from sinking to the bottom. */
.visa-list-grid .vprice-row {
  margin-top: auto !important;
}

/* Placeholder card: same frame as a real one, minus the dark gradient the
   photo overlay would paint over the grey block. */
.visa-placeholder .place-img::before {
  display: none;
}

.visa-placeholder-img {
  height: 200px;
}

/* The carousel's own items have to stretch too, or a short card leaves a gap
   under it inside the strip. */
.visa-listings-slider .owl-stage {
  display: flex;
}

.visa-listings-slider .owl-item {
  display: flex;
}

.visa-listings-slider .owl-item > .visa-card-col {
  width: 100%;
}

/* The wrapper between the column and the card has to pass the height down,
   or the card's height:100% has nothing to fill and the price row floats. */
.visa-card-col,
.visa-card-wrap {
  display: flex;
  flex-direction: column;
}

/* Width only on the wrapper. The column's width belongs to whoever lays it out:
   Bootstrap's row-cols-* in the grid, the .owl-item rule above in the carousel.
   Setting it here overrode row-cols and made every grid card full width. */
.visa-card-wrap {
  width: 100%;
}

.visa-card-wrap > .visa-item {
  flex: 1 1 auto;
}

/* padding gives the shadow room inside the carousel item, so the stage's
   overflow:hidden can't clip it */
.visa-card-wrap {
  padding: 2px 4px 26px;
}

.visa-card-wrap .visa-item {
  border: 1px solid #ededed;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 10px -6px rgba(0, 0, 0, 0.07) !important;
}

/* Arrows on the strip's left and right edges, level with the cards. The nav
   is a sibling of .owl-stage-outer, so the stage's overflow:hidden doesn't
   clip buttons that sit outside it. .owl-carousel is in every selector to
   outrank the theme's own .owl-nav rules. */
.visa-listings-slider.owl-carousel {
  position: relative;
}

.visa-listings-slider.owl-carousel .owl-nav {
  margin: 0;
}

.visa-listings-slider.owl-carousel .owl-nav.disabled {
  display: none;
}

.visa-listings-slider.owl-carousel .owl-nav button.owl-prev,
.visa-listings-slider.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  /* centre on the card, not the item: the bottom 26px of each item is the
     wrapper's shadow padding, so the middle of the card is 13px higher */
  top: calc(50% - 13px);
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  color: #1d2939 !important;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.visa-listings-slider.owl-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.visa-listings-slider.owl-carousel .owl-nav button.owl-next {
  right: -20px;
}

.visa-listings-slider.owl-carousel .owl-nav button:not(.disabled):hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* first or last slide: faded, not hidden, so the strip doesn't look like it
   lost a control */
.visa-listings-slider.owl-carousel .owl-nav button.disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* Narrower screens have less margin beside the container, so pull the
   arrows in until they sit over the card edges instead of off-screen. */
@media (max-width: 1199.98px) {
  .visa-listings-slider.owl-carousel .owl-nav button.owl-prev { left: -12px; }
  .visa-listings-slider.owl-carousel .owl-nav button.owl-next { right: -12px; }
}

@media (max-width: 767.98px) {
  .visa-listings-slider.owl-carousel .owl-nav button.owl-prev { left: -4px; }
  .visa-listings-slider.owl-carousel .owl-nav button.owl-next { right: -4px; }
}

/* On a phone the card turns on its side: photo left, text right. A column of
   full-width photos is a lot of scrolling for a list somebody is skimming. */
@media (max-width: 767.98px) {
  .visa-list-grid .place-item {
    flex-direction: row;
    align-items: stretch;
  }

  .visa-list-grid .place-img {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
  }

  .visa-list-grid .place-img > a,
  .visa-list-grid .place-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .visa-list-grid .place-img,
  .visa-list-grid .place-img img {
    border-radius: 10px 0 0 10px;
  }

  .visa-list-grid .place-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px !important;
  }

  .visa-list-grid .fav-item {
    padding: 8px !important;
  }

  .visa-list-grid .visa-flag {
    gap: 0;
    padding: 3px;
  }

  .visa-list-grid .visa-flag-name {
    display: none;
  }

  .visa-list-grid .visa-flag .visa-flag-img {
    width: 25px !important;
    height: 25px !important;
  }

  .visa-list-grid .card-text {
    font-size: 16px !important;
    line-height: 1.25;
  }

  .visa-list-grid .place-content > .text-gray-6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .visa-list-grid .vmeta {
    padding: 6px 0;
  }

  .visa-list-grid .vprice-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .visa-list-grid .visa-placeholder-img {
    height: 100%;
    min-height: 120px;
  }
}