@import url("../../../inati/_palette-ySWM8g-.css");

[data-controller~="inati--coloc-display--coloc-display-full"] {
  display: flex;
  flex-direction: column;
  align-items: center;

  a.image-container {
    display: flex;
    justify-content: center; /* Centers the image horizontally */
    align-items: center;
    max-width: 95vw;
    margin: 0 auto;
    overflow: hidden; /* Ensures the cropped image doesn't overflow the container */
    width: 350px; /* Set the width of the container */
    height: 220px; /* Set the height of the container */
    border-radius: 2rem; /* Rounded corners for the container */

    @media (min-width: 750px) {
      box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.2);
    }

    &:hover, &:active {
      img {
        transform: scale(1.1);
      }
    }

    img {
      transition: transform 0.5s ease;
      width: 380px; /* Make the image fill the width of the container */
      height: 250px; /* Make the image fill the height of the container */
      object-fit: cover; /* Crops the image while maintaining its aspect ratio */
      object-position: center; /* Centers the cropped portion of the image */
    }
  }

  .description {
    margin: .5rem 0;
    width: 350px;
    max-width: 95vw;
    background-color: var(--inati-green-lighter);
    border-radius: 2rem;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;

    @media (min-width: 750px) {
      background-color: unset;
      margin: 0;
    }

    h2, p, ul {
      width: 100%;
      margin: 0;
    }

    h2 {
      .coloc-city {
        @media (min-width: 750px) {
          display: none;
        }
      }
    }

    .precisions {
      display: flex;
      align-items: start;
      flex-direction: column;
      width: 100%;

      @media (min-width: 750px) {
        flex-direction: column-reverse;
      }

      p.from {
        font-size: 1em;
      }

      ul {
        @media (min-width: 750px) {
          color: var(--inati-orange);
        }
      }
    }


    a {
      color: white;
      background-color: var(--inati-orange);
      text-decoration: none;
      font-weight: bold;
      font-size: 1em;
      border-radius: .5rem;
      text-align: center;
      padding: .5rem 1rem;
      margin-top: 1rem;

      @media (min-width: 750px) {
        display: none;
      }
    }

    p.price-conditions {
      font-size: .6em;
    }

  }
}
