/* =========================================================
   GO SAMOS – HOMEPAGE ATTRACTIONS
   1 μεγάλη κάρτα αριστερά + 3 μικρές δεξιά
   ========================================================= */


/* ---------------------------------------------------------
   ΜΕΓΑΛΗ FEATURED ΚΑΡΤΑ
   --------------------------------------------------------- */

.gosamos-attraction-featured-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

/* Όλα τα wrappers της εικόνας γεμίζουν την κάρτα */
.gosamos-attraction-featured-card .views-field-field-image,
.gosamos-attraction-featured-card .views-field-field-image .field-content,
.gosamos-attraction-featured-card .views-field-field-image a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Η εικόνα γεμίζει την κάρτα */
.gosamos-attraction-featured-card img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

/* Gradient */
.gosamos-attraction-featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

/* Τίτλος μεγάλης κάρτας */
.gosamos-attraction-featured-card .views-field-title {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
}

.gosamos-attraction-featured-card .views-field-title h3,
.gosamos-attraction-featured-card .views-field-title h4,
.gosamos-attraction-featured-card .views-field-title h5,
.gosamos-attraction-featured-card .views-field-title .field-content {
  position: static !important;
  margin: 0;
  padding: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
}

.gosamos-attraction-featured-card .views-field-title a,
.gosamos-attraction-featured-card .views-field-title a:link,
.gosamos-attraction-featured-card .views-field-title a:visited,
.gosamos-attraction-featured-card .views-field-title a:hover,
.gosamos-attraction-featured-card .views-field-title a:focus {
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}


/* ---------------------------------------------------------
   3 ΜΙΚΡΕΣ ΚΑΡΤΕΣ ΔΕΞΙΑ
   --------------------------------------------------------- */

.gosamos-attraction-small-card {
  position: relative;
  width: 100%;

  /*
   * Με 75% / 25% layout:
   * 3 κάρτες περίπου 1.9:1 + τα κενά τους
   * πλησιάζουν το ύψος της μεγάλης 16:9.
   */
  aspect-ratio: 1.24 / 1;

  overflow: hidden;
  border-radius: 14px;
  margin: 0 0 16px 0;
}

.gosamos-attraction-small-card:last-child {
  margin-bottom: 0;
}

/* Wrappers εικόνας */
.gosamos-attraction-small-card .views-field-field-image,
.gosamos-attraction-small-card .views-field-field-image .field-content,
.gosamos-attraction-small-card .views-field-field-image a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Εικόνα */
.gosamos-attraction-small-card img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

/* Gradient */
.gosamos-attraction-small-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

/* Τίτλος μικρής κάρτας */
.gosamos-attraction-small-card .views-field-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}

.gosamos-attraction-small-title,
.gosamos-attraction-small-card .views-field-title h3,
.gosamos-attraction-small-card .views-field-title h4,
.gosamos-attraction-small-card .views-field-title h5,
.gosamos-attraction-small-card .views-field-title .field-content {
  position: static !important;
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.gosamos-attraction-small-card .views-field-title a,
.gosamos-attraction-small-card .views-field-title a:link,
.gosamos-attraction-small-card .views-field-title a:visited,
.gosamos-attraction-small-card .views-field-title a:hover,
.gosamos-attraction-small-card .views-field-title a:focus {
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   Οι στήλες γίνονται 100%, άρα χρησιμοποιούμε πιο φυσική
   αναλογία και στις μικρές κάρτες.
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

  .gosamos-attraction-featured-card {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
  }

  .gosamos-attraction-small-card {
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
  }

  .gosamos-attraction-featured-card .views-field-title {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .gosamos-attraction-featured-card .views-field-title h3,
  .gosamos-attraction-featured-card .views-field-title h4,
  .gosamos-attraction-featured-card .views-field-title h5,
  .gosamos-attraction-featured-card .views-field-title .field-content {
    font-size: 22px;
  }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

  .gosamos-attraction-featured-card,
  .gosamos-attraction-small-card {
    border-radius: 12px;
  }

  .gosamos-attraction-featured-card .views-field-title {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .gosamos-attraction-featured-card .views-field-title h3,
  .gosamos-attraction-featured-card .views-field-title h4,
  .gosamos-attraction-featured-card .views-field-title h5,
  .gosamos-attraction-featured-card .views-field-title .field-content {
    font-size: 19px;
  }

  .gosamos-attraction-small-card .views-field-title {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

  .gosamos-attraction-small-title,
  .gosamos-attraction-small-card .views-field-title h3,
  .gosamos-attraction-small-card .views-field-title h4,
  .gosamos-attraction-small-card .views-field-title h5,
  .gosamos-attraction-small-card .views-field-title .field-content {
    font-size: 16px;
  }
}