@use '../../../styles/abstracts/index' as *;

/* Organism - widget tile */
/* Extends o-widget */

.o-widget--tile {

  &-wrapper {
    flex: 1;
    overflow: auto;
    height: 100%;
    padding-bottom: toRem(60);
  }

  &__list {
    @extend %list-unstyled;
    display: flex;
    flex-wrap: wrap;
    gap: toRem(20);
    padding: toRem(20);

    &__item {
      display: flex;
      flex-direction: column;
      flex-basis: 32%;
      padding: 0;
      border-radius: toRem(5);
      border: 1px solid black;

      .o-widget.o-widget--detail {
        height: auto;
        padding-top: 15px;
      }


      .properties-container {
        flex: 1;
        margin-top: 1rem;

        &.-map {
          flex-basis: toRem(150);
        }

        .properties-content {
          &__values {
            position: relative;
            display: flex;
            cursor: pointer;

            &__label {
              margin-right: toRem(5);
            }

            &__text {
              font-weight: 500;
            }

            &__raw {
              img, video {
                max-height: 150px;
                max-width: 200px;
              }
            }
          }
        }
      }

      &__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: toRem(10);

        &__title {
          margin-bottom: 0;
          padding-bottom: 0;
          font-size: toRem(17);
        }

        .a-checkbox {
          margin-bottom: 0;
        }

        &__id {
          padding: toRem(10);
          margin-bottom: 0;
          font-size: toRem(12);
        }
      }

      &__footer {
        margin-top: 15px;

        .category-header {
          margin-bottom: 0;
        }
      }
    }
  }

}


