/*--------------------------------------------------------------
  9. Sidebar
----------------------------------------------------------------*/
@media (min-width: 1200px) {
  .cs_right_sidebar {
    padding-left: 25px;
  }
}
.cs_sidebar_item {
  padding: 40px;
  &:not(:last-child) {
    margin-bottom: 30px;
  }
  @media (max-width: 1199px) {
    padding: 30px;
  }

  .cs_sidebar_search {
    border-radius: 5px;
    overflow: hidden;
    position: relative;

    input {
      width: 100%;
      padding: 18px 70px 18px 18px;
      border: none;
      outline: none;
      height: 58px;
    }

    button {
      width: 58px;
      height: 100%;
      padding: 10px;
      border: none;
      position: absolute;
      right: 0;
      top: 0;
      transition: all 0.4s ease;

      &:hover {
        background-color: var(--primary);
      }
    }
  }

  .cs_sidebar_widget_title {
    margin-bottom: 15px;
    position: relative;

    &::after {
      content: '';
      width: 2px;
      height: 24px;
      background-color: var(--accent);
      position: absolute;
      left: -40px;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  hr {
    border: 1px solid rgba(#102039, 0.1);
    margin-bottom: 30px;
  }

  .cs_cat_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    &:not(:last-child) {
      margin-bottom: 22px;
    }
  }

  .cs_recent_posts {
    li:not(:last-child) {
      margin-bottom: 20px;
    }
  }

  .cs_recent_post {
    display: flex;
    gap: 20px;
  }
  .cs_recent_post_info {
    padding-top: 3px;
  }

  .cs_recent_post_thumb {
    display: block;
    width: 100px;
    height: 90px;
    flex: none;
    border-radius: 5px;
    overflow: hidden;
  }

  .cs_recent_post_title {
    margin-bottom: 5px;
    a {
      display: block;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }

  .cs_tag_cloud {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cs_btn.cs_style_1 {
    padding: 13px 30px;
  }
  .cs_tag_link {
    display: inline-block;
    padding: 8px 18px;

    &:hover {
      background-color: var(--accent);
      color: var(--white);
    }
  }

  .cs_subscribe_form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .cs_input_field {
      position: relative;

      span {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        pointer-events: none;
      }
    }

    input {
      width: 100%;
      padding: 16px 20px;
      border: none;
      outline: none;
      border-radius: 4px;
      position: relative;
      background-color: var(--white);
    }
  }
}

.cs_sidebar.cs_style_1 {
  .cs_sidebar_search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--accent);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;

    input {
      flex: 1;
      padding: 12px 20px;
      border: none;
      outline: none;
    }

    button {
      border: none;
      outline: none;
      background-color: transparent;
      cursor: pointer;
      margin-right: 15px;
    }
  }

  .cs_info_widget {
    filter: drop-shadow(0px 3px 45px rgba(64, 40, 229, 0.06));
    padding: 35px 30px 40px;
    margin-bottom: 50px;

    .cs_widget_title {
      margin-bottom: 10px;
    }

    .cs_widget_subtitle {
      margin-bottom: 25px;
    }
  }

  .cs_info_item {
    display: flex;
    align-items: center;
    margin-bottom: 13px;

    .cs_info_title {
      width: 50%;
    }

    .cs_info_subtitle {
      width: 50%;
      text-align: left;
    }

    .cs_rating {
      letter-spacing: 10px;
      margin-left: -35px;

      &::before {
        font-weight: 900;
        color: var(--border);
      }
    }
  }

  .cs_booking_widget {
    padding: 25px 25px 35px;
    margin-top: 46px;

    .cs_widget_title {
      margin-bottom: 30px;
      font-weight: 600;
    }
  }

  .cs_booking_form {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .cs_input_field {
    background-color: var(--white);

    span {
      position: absolute;
      left: 15px;
      top: 17px;
      display: flex;
    }

    .cs_form_field {
      padding: 13px 20px 13px 40px;
      border: none;
      box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.05);
    }

    textarea {
      width: 100%;
      resize: none;
      padding: 10px 20px 10px 40px;
      border: none;
      outline: none;
    }
  }
  .cs_btn.cs_style_1 {
    padding: 11px 30px;
  }
  .cs_widget_title {
    margin-bottom: 30px;
  }
  .cs_post_widget {
    .cs_recent_posts {
      li:not(:last-child) {
        margin-bottom: 20px;
      }
    }

    .cs_recent_post {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .cs_recent_post_thumb {
      display: block;
      width: 100px;
      height: 80px;
      flex: none;
      border-radius: 3px;
      overflow: hidden;
    }

    .cs_recent_post_title {
      margin-bottom: 5px;
    }

    .cs_recent_post_meta {
      display: flex;
      align-items: center;
      gap: 15px;
    }
  }

  .cs_follow_widget {
    .cs_widget_title {
      margin-bottom: 17px;
    }

    .cs_social_btns {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      position: relative;

      &::after,
      &::before {
        content: '';
        width: 140px;
        height: 1px;
        background-color: var(--border);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }

      &::before {
        left: 0;
      }

      &::after {
        right: 0px;
      }
    }
  }
}
