/**
 * 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-img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50px !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. */
.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;
}

.visa-list-grid .vprice-row {
  margin-top: auto;
}

/* 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%;
}

/* 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-img {
    width: 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;
  }
}